Skip to content

Commit

Permalink
fix after success hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 9, 2024
1 parent d7dea34 commit 534dbe0
Show file tree
Hide file tree
Showing 93 changed files with 1,352 additions and 348 deletions.
21 changes: 15 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 6bff3a53-3f0b-40b4-942f-ff70dc583ae5
management:
docChecksum: 92fd174fcec8436e782e2dd65b9ca913
docChecksum: 7656686695d54efcc007c3194bb9e9d6
docVersion: "1.0"
speakeasyVersion: 1.453.4
generationVersion: 2.474.6
releaseVersion: 0.0.1-alpha.70
configChecksum: 1a90fadeceee20d1afea263bbcad6182
releaseVersion: 0.0.1-alpha.74
configChecksum: 2ff328e4ac26a8a420b393b999a2c223
published: true
features:
typescript:
Expand Down Expand Up @@ -47,6 +47,8 @@ generatedFiles:
- docs/models/components/activitynotificationtemplateresponsedto.md
- docs/models/components/activitystatsresponsedto.md
- docs/models/components/actor.md
- docs/models/components/actordata.md
- docs/models/components/actortypeenum.md
- docs/models/components/addsubscribersrequestdto.md
- docs/models/components/apikey.md
- docs/models/components/assignsubscribertotopicdto.md
Expand Down Expand Up @@ -108,10 +110,10 @@ generatedFiles:
- docs/models/components/markallmessageasrequestdtomarkas.md
- docs/models/components/markas.md
- docs/models/components/markmessageactionasseendto.md
- docs/models/components/markmessageactionasseendtopayload.md
- docs/models/components/markmessageactionasseendtostatus.md
- docs/models/components/messageaction.md
- docs/models/components/messageactionresult.md
- docs/models/components/messageactionresultpayload.md
- docs/models/components/messageactionresulttype.md
- docs/models/components/messageactionstatus.md
- docs/models/components/messagebutton.md
Expand All @@ -130,6 +132,9 @@ generatedFiles:
- docs/models/components/messagetemplate.md
- docs/models/components/metadata.md
- docs/models/components/monthlytype.md
- docs/models/components/notificationdto.md
- docs/models/components/notificationdtochannel.md
- docs/models/components/notificationdtostatus.md
- docs/models/components/notificationgroup.md
- docs/models/components/notificationgroupresponsedto.md
- docs/models/components/notificationstep.md
Expand Down Expand Up @@ -173,6 +178,7 @@ generatedFiles:
- docs/models/components/topicpayloaddto.md
- docs/models/components/topicsubscriberdto.md
- docs/models/components/triggereventrequestdto.md
- docs/models/components/triggereventrequestdtoactor.md
- docs/models/components/triggereventresponsedto.md
- docs/models/components/triggereventresponsedtostatus.md
- docs/models/components/triggereventtoallrequestdto.md
Expand Down Expand Up @@ -353,7 +359,7 @@ generatedFiles:
- src/funcs/subscribersMessagesMarkAll.ts
- src/funcs/subscribersMessagesMarkAllAs.ts
- src/funcs/subscribersMessagesUpdateAsSeen.ts
- src/funcs/subscribersNotificationsRetrieve.ts
- src/funcs/subscribersNotificationsFeed.ts
- src/funcs/subscribersNotificationsUnseenCount.ts
- src/funcs/subscribersPreferencesList.ts
- src/funcs/subscribersPreferencesRetrieveByLevel.ts
Expand Down Expand Up @@ -403,6 +409,8 @@ generatedFiles:
- src/models/components/activitynotificationsubscriberresponsedto.ts
- src/models/components/activitynotificationtemplateresponsedto.ts
- src/models/components/activitystatsresponsedto.ts
- src/models/components/actor.ts
- src/models/components/actortypeenum.ts
- src/models/components/addsubscribersrequestdto.ts
- src/models/components/apikey.ts
- src/models/components/assignsubscribertotopicdto.ts
Expand Down Expand Up @@ -450,6 +458,7 @@ generatedFiles:
- src/models/components/messagemarkasrequestdto.ts
- src/models/components/messageresponsedto.ts
- src/models/components/messagetemplate.ts
- src/models/components/notificationdto.ts
- src/models/components/notificationgroup.ts
- src/models/components/notificationgroupresponsedto.ts
- src/models/components/notificationstep.ts
Expand Down Expand Up @@ -861,7 +870,7 @@ examples:
payload: "btoa(JSON.stringify({ foo: 123 })) results in base64 encoded string like eyJmb28iOjEyM30="
responses:
"200":
application/json: {"page": "1526.70", "hasMore": true, "pageSize": "9643.05", "data": [{"hasMore": true, "data": ["<value>", "<value>"], "pageSize": "1031.10", "page": "1522.73"}, {"hasMore": false, "data": [], "pageSize": "5271.67", "page": "9499.10"}]}
application/json: {"page": "1526.70", "hasMore": true, "pageSize": "9643.05", "data": [{"hasMore": true, "data": [{"_id": "<id>", "_templateId": "<id>", "_environmentId": "<id>", "_messageTemplateId": "<id>", "_organizationId": "<id>", "_notificationId": "<id>", "_subscriberId": "<id>", "_feedId": "<id>", "_jobId": "<id>", "transactionId": "<id>", "content": "<value>", "channel": "push", "read": false, "seen": false, "deleted": false, "cta": {}, "status": "warning", "payload": {"key": "<value>", "key1": "<value>", "key2": "<value>"}, "overrides": {"key": "<value>", "key1": "<value>", "key2": "<value>"}}, {"_id": "<id>", "_templateId": "<id>", "_environmentId": "<id>", "_messageTemplateId": "<id>", "_organizationId": "<id>", "_notificationId": "<id>", "_subscriberId": "<id>", "_feedId": "<id>", "_jobId": "<id>", "transactionId": "<id>", "content": "<value>", "channel": "sms", "read": true, "seen": false, "deleted": true, "cta": {}, "status": "warning", "payload": {"key": "<value>", "key1": "<value>"}, "overrides": {"key": "<value>", "key1": "<value>"}}], "pageSize": "1031.10", "page": "1522.73"}, {"hasMore": false, "data": [], "pageSize": "5271.67", "page": "9499.10"}]}
SubscribersController_markMessagesAs:
speakeasy-default-subscribers-controller-mark-messages-as:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.0.1-alpha.70
version: 0.0.1-alpha.74
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.453.4
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:fcc580d43aec097e827f7ec9369f285d7564eb95dfcef159203811dc8d86d7e3
sourceBlobDigest: sha256:51b9cdd1a1f2ebd3b6c2729bb958e54f45f527d221f6419a611e337f336e9a7a
sourceRevisionDigest: sha256:7af3af5203d0b8763363cafe5331f118bfe7a53445adbab5b1421d40c812b7cd
sourceBlobDigest: sha256:586a95c4bf7575b394ba59141a7020703e01cb183c4e45cb8a89c74977f40464
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:fcc580d43aec097e827f7ec9369f285d7564eb95dfcef159203811dc8d86d7e3
sourceBlobDigest: sha256:51b9cdd1a1f2ebd3b6c2729bb958e54f45f527d221f6419a611e337f336e9a7a
sourceRevisionDigest: sha256:7af3af5203d0b8763363cafe5331f118bfe7a53445adbab5b1421d40c812b7cd
sourceBlobDigest: sha256:586a95c4bf7575b394ba59141a7020703e01cb183c4e45cb8a89c74977f40464
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:a0d61843e2e18df5fbf574e385f932dacfea1650fba44d2d68f42761bc3ce966
codeSamplesRevisionDigest: sha256:099010ac625efddb2b44e233939f465f1643465b3023d108d4e7ac5d03c67b95
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ run();

#### [subscribers.notifications](docs/sdks/novunotifications/README.md)

* [retrieve](docs/sdks/novunotifications/README.md#retrieve) - Get in-app notification feed for a particular subscriber
* [feed](docs/sdks/novunotifications/README.md#feed) - Get in-app notification feed for a particular subscriber
* [unseenCount](docs/sdks/novunotifications/README.md#unseencount) - Get the unseen in-app notifications count for subscribers feed

#### [subscribers.preferences](docs/sdks/preferences/README.md)
Expand Down Expand Up @@ -380,7 +380,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`subscribersMessagesMarkAll`](docs/sdks/novumessages/README.md#markall) - Marks all the subscriber messages as read, unread, seen or unseen. Optionally you can pass feed id (or array) to mark messages of a particular feed.
- [`subscribersMessagesMarkAllAs`](docs/sdks/novumessages/README.md#markallas) - Mark a subscriber messages as seen, read, unseen or unread
- [`subscribersMessagesUpdateAsSeen`](docs/sdks/novumessages/README.md#updateasseen) - Mark message action as seen
- [`subscribersNotificationsRetrieve`](docs/sdks/novunotifications/README.md#retrieve) - Get in-app notification feed for a particular subscriber
- [`subscribersNotificationsFeed`](docs/sdks/novunotifications/README.md#feed) - Get in-app notification feed for a particular subscriber
- [`subscribersNotificationsUnseenCount`](docs/sdks/novunotifications/README.md#unseencount) - Get the unseen in-app notifications count for subscribers feed
- [`subscribersPreferencesList`](docs/sdks/preferences/README.md#list) - Get subscriber preferences
- [`subscribersPreferencesRetrieveByLevel`](docs/sdks/preferences/README.md#retrievebylevel) - Get subscriber preferences by level
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/activitiesresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let value: ActivitiesResponseDto = {
transactionId: "<id>",
},
],
pageSize: 2828.07,
page: 1201.97,
pageSize: 4142.63,
page: 641.47,
};
```

Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/activitygraphstatesresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { ActivityGraphStatesResponse } from "@novu/api/models/components";

let value: ActivityGraphStatesResponse = {
id: "<id>",
count: 641.47,
count: 939.41,
templates: [
"<value>",
],
channels: [
"chat",
"sms",
],
};
```
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/activitystatsresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import { ActivityStatsResponseDto } from "@novu/api/models/components";

let value: ActivityStatsResponseDto = {
weeklySent: 1187.28,
monthlySent: 3179.83,
weeklySent: 5666.01,
monthlySent: 2653.89,
};
```

Expand Down
26 changes: 11 additions & 15 deletions docs/models/components/actor.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
# Actor

It is used to display the Avatar of the provided actor's subscriber id or actor object.

If a new actor object is provided, we will create a new subscriber in our system


## Supported Types

### `string`
## Example Usage

```typescript
const value: string = "<value>";
```

### `components.SubscriberPayloadDto`
import { Actor } from "@novu/api/models/components";

```typescript
const value: components.SubscriberPayloadDto = {
subscriberId: "<id>",
let value: Actor = {
data: {},
type: "system_icon",
};
```

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `data` | [components.ActorData](../../models/components/actordata.md) | :heavy_check_mark: | The data associated with the actor, can be null if not applicable. |
| `type` | [components.ActorTypeEnum](../../models/components/actortypeenum.md) | :heavy_check_mark: | The type of the actor, indicating the role in the notification process. |
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# MessageActionResultPayload
# ActorData

The data associated with the actor, can be null if not applicable.

## Example Usage

```typescript
import { MessageActionResultPayload } from "@novu/api/models/components";
import { ActorData } from "@novu/api/models/components";

let value: MessageActionResultPayload = {};
let value: ActorData = {};
```

## Fields
Expand Down
17 changes: 17 additions & 0 deletions docs/models/components/actortypeenum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ActorTypeEnum

The type of the actor, indicating the role in the notification process.

## Example Usage

```typescript
import { ActorTypeEnum } from "@novu/api/models/components";

let value: ActorTypeEnum = "system_icon";
```

## Values

```typescript
"none" | "user" | "system_icon" | "system_custom"
```
3 changes: 2 additions & 1 deletion docs/models/components/bulktriggereventdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ let value: BulkTriggerEventDto = {
},
to: [
{
subscriberId: "<id>",
topicKey: "<value>",
type: "Topic",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { Channel } from "@novu/api/models/components";

let value: Channel = "custom";
let value: Channel = "in_app";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelcredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { ChannelCredentials } from "@novu/api/models/components";

let value: ChannelCredentials = {
webhookUrl: "https://orange-mozzarella.name/",
webhookUrl: "https://kaleidoscopic-status.net",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelpreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { ChannelPreference } from "@novu/api/models/components";

let value: ChannelPreference = {
type: "push",
type: "sms",
enabled: false,
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelpreferencetype.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The type of channel that is enabled or not
```typescript
import { ChannelPreferenceType } from "@novu/api/models/components";

let value: ChannelPreferenceType = "email";
let value: ChannelPreferenceType = "chat";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { Channels } from "@novu/api/models/components";

let value: Channels = "sms";
let value: Channels = "trigger";
```

## Values
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/channelsettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import { ChannelSettings } from "@novu/api/models/components";

let value: ChannelSettings = {
providerId: "slack",
providerId: "ryver",
credentials: {
webhookUrl: "https://finished-receptor.org",
webhookUrl: "https://pale-milestone.biz",
},
integrationId: "<id>",
};
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelsettingsproviderid.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The provider identifier for the credentials
```typescript
import { ChannelSettingsProviderId } from "@novu/api/models/components";

let value: ChannelSettingsProviderId = "pushpad";
let value: ChannelSettingsProviderId = "pusher-beams";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channeltypeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { ChannelTypeEnum } from "@novu/api/models/components";

let value: ChannelTypeEnum = "email";
let value: ChannelTypeEnum = "sms";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

```typescript
const value: components.EmailBlock = {
type: "text",
type: "button",
content: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/createintegrationrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CreateIntegrationRequestDto } from "@novu/api/models/components";

let value: CreateIntegrationRequestDto = {
providerId: "<id>",
channel: "in_app",
channel: "chat",
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The channel type for the integration
```typescript
import { CreateIntegrationRequestDtoChannel } from "@novu/api/models/components";

let value: CreateIntegrationRequestDtoChannel = "sms";
let value: CreateIntegrationRequestDtoChannel = "email";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/createsubscriberrequestdtodata.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const value: boolean = false;
### `number`

```typescript
const value: number = 2230.82;
const value: number = 2974.37;
```

2 changes: 1 addition & 1 deletion docs/models/components/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const value: boolean = false;
### `number`

```typescript
const value: number = 1965.82;
const value: number = 8379.45;
```

2 changes: 1 addition & 1 deletion docs/models/components/delayregularmetadataunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { DelayRegularMetadataUnit } from "@novu/api/models/components";

let value: DelayRegularMetadataUnit = "months";
let value: DelayRegularMetadataUnit = "minutes";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/digesttimedmetadataunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { DigestTimedMetadataUnit } from "@novu/api/models/components";

let value: DigestTimedMetadataUnit = "weeks";
let value: DigestTimedMetadataUnit = "days";
```

## Values
Expand Down
Loading

0 comments on commit 534dbe0

Please sign in to comment.