Skip to content

Commit

Permalink
change handle different content types
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 20, 2024
1 parent e570421 commit fdf8494
Show file tree
Hide file tree
Showing 75 changed files with 214 additions and 246 deletions.
8 changes: 3 additions & 5 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: c0f64442bc4daa293218b56c6e1eddd3
docChecksum: dfeb1b09afae2678c941e6558a3ba4e8
docVersion: "1.0"
speakeasyVersion: 1.456.1
generationVersion: 2.481.0
releaseVersion: 0.0.1-alpha.141
configChecksum: 466978b08e1eb51a180ce4f3d980f9d2
releaseVersion: 0.0.1-alpha.142
configChecksum: 65888122404bae475c0f59cb53058b64
published: true
features:
typescript:
Expand Down Expand Up @@ -122,7 +122,6 @@ generatedFiles:
- docs/models/components/messagecta.md
- docs/models/components/messagectadata.md
- docs/models/components/messagectatype.md
- docs/models/components/messageentity.md
- docs/models/components/messageid.md
- docs/models/components/messagemarkasrequestdto.md
- docs/models/components/messageresponsedto.md
Expand Down Expand Up @@ -436,7 +435,6 @@ generatedFiles:
- src/models/components/messagebutton.ts
- src/models/components/messagecta.ts
- src/models/components/messagectadata.ts
- src/models/components/messageentity.ts
- src/models/components/messagemarkasrequestdto.ts
- src/models/components/messageresponsedto.ts
- src/models/components/messagetemplate.ts
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.141
version: 0.0.1-alpha.142
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.456.1
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:bd10a80aee63cde5f5397d087f40527534026e131d7836269a7721227e05fd2d
sourceBlobDigest: sha256:447d53c2c3c428aace27fdfc3fd486b9bc886c389fdf3785b9d01f4c7fb114ab
sourceRevisionDigest: sha256:9a70d7c2584ac4732307fb010f2a44045c2957da6cde45618cbe419d9d787f74
sourceBlobDigest: sha256:caffb599140cc5bfe06c0696e5cbf6cc98ebfee35679f2fc5f0d9d7c0233e556
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:bd10a80aee63cde5f5397d087f40527534026e131d7836269a7721227e05fd2d
sourceBlobDigest: sha256:447d53c2c3c428aace27fdfc3fd486b9bc886c389fdf3785b9d01f4c7fb114ab
sourceRevisionDigest: sha256:9a70d7c2584ac4732307fb010f2a44045c2957da6cde45618cbe419d9d787f74
sourceBlobDigest: sha256:caffb599140cc5bfe06c0696e5cbf6cc98ebfee35679f2fc5f0d9d7c0233e556
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:c1e3b2c68242316dfb056078edda66f9d8c4122543eebf1cbab1979264fedeee
codeSamplesRevisionDigest: sha256:7ba558ffe5fbb0e909053ba1606259db3e15e8fc9d26fc019f91bf17bb39096d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
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: 1103.75,
page: 6563.30,
pageSize: 1965.82,
page: 3687.25,
};
```

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

let value: ActivityGraphStatesResponse = {
id: "<id>",
count: 2961.40,
count: 4142.63,
templates: [
"<value>",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { ActivityNotificationExecutionDetailResponseDto } from "@novu/api/models
let value: ActivityNotificationExecutionDetailResponseDto = {
id: "<id>",
jobId: "<id>",
status: "ReadConfirmation",
status: "Pending",
detail: "<value>",
isRetry: false,
isTest: false,
providerId: "bulk-sms",
source: "Webhook",
providerId: "fcm",
source: "Credentials",
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Status of the execution detail
```typescript
import { ActivityNotificationExecutionDetailResponseDtoStatus } from "@novu/api/models/components";

let value: ActivityNotificationExecutionDetailResponseDtoStatus =
"ReadConfirmation";
let value: ActivityNotificationExecutionDetailResponseDtoStatus = "Failed";
```

## Values
Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/activitynotificationjobresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ let value: ActivityNotificationJobResponseDto = {
{
id: "<id>",
jobId: "<id>",
status: "Success",
status: "Queued",
detail: "<value>",
isRetry: false,
isTest: false,
providerId: "mailersend",
source: "Internal",
providerId: "sendgrid",
source: "Webhook",
},
],
step: {
Expand All @@ -27,7 +27,7 @@ let value: ActivityNotificationJobResponseDto = {
{},
],
},
providerId: "push-webhook",
providerId: "sendgrid",
status: "<value>",
};
```
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: 391.88,
monthlySent: 2828.07,
weeklySent: 2961.40,
monthlySent: 1187.28,
};
```

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

let value: ActorFeedItemDto = {
data: null,
type: "system_custom",
type: "system_icon",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/actortypeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The type of the actor, indicating the role in the notification process.
```typescript
import { ActorTypeEnum } from "@novu/api/models/components";

let value: ActorTypeEnum = "user";
let value: ActorTypeEnum = "system_custom";
```

## Values
Expand Down
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: "Subscriber",
},
],
},
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 @@ -7,7 +7,7 @@ The channel type for the integration, which defines how the integration communic
```typescript
import { Channel } from "@novu/api/models/components";

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

## 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://raw-ceramic.net/",
webhookUrl: "https://forsaken-contractor.name",
};
```

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: "sms",
type: "email",
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 = "sms";
```

## 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 = "in_app";
let value: Channels = "email";
```

## 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: "ryver",
providerId: "whatsapp-business",
credentials: {
webhookUrl: "https://bulky-minister.org",
webhookUrl: "https://glass-pigpen.com",
},
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 = "whatsapp-business";
let value: ChannelSettingsProviderId = "discord";
```

## 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 @@ -7,7 +7,7 @@ The channel through which the notification is sent.
```typescript
import { ChannelTypeEnum } from "@novu/api/models/components";

let value: ChannelTypeEnum = "chat";
let value: ChannelTypeEnum = "in_app";
```

## Values
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: "chat",
channel: "sms",
};
```

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 = "in_app";
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 = 2894.06;
const value: number = 201.08;
```

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 = 2088.77;
const value: number = 6531.08;
```

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

let value: DigestRegularMetadata = {
type: "regular",
type: "backoff",
};
```

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

let value: DigestRegularMetadataType = "backoff";
let value: DigestRegularMetadataType = "regular";
```

## 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 = "hours";
let value: DigestTimedMetadataUnit = "days";
```

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

let value: EmailBlockStyles = {
textAlign: "left",
textAlign: "center",
};
```

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

let value: EmailBlockType = "text";
let value: EmailBlockType = "button";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/feedresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let value: FeedResponseDto = {
updatedAt: new Date("2024-12-10T10:10:59.639Z"),
actor: {
data: null,
type: "system_icon",
type: "system_custom",
},
transactionId: "transaction_123456",
templateIdentifier: "template_abcdef",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/markallmessageasrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { MarkAllMessageAsRequestDto } from "@novu/api/models/components";

let value: MarkAllMessageAsRequestDto = {
markAs: "unread",
markAs: "read",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/markallmessageasrequestdtomarkas.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Mark all subscriber messages as read, unread, seen or unseen
```typescript
import { MarkAllMessageAsRequestDtoMarkAs } from "@novu/api/models/components";

let value: MarkAllMessageAsRequestDtoMarkAs = "unread";
let value: MarkAllMessageAsRequestDtoMarkAs = "seen";
```

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

let value: MarkAs = "unread";
let value: MarkAs = "read";
```

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

let value: MarkMessageActionAsSeenDto = {
status: "done",
status: "pending",
};
```

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

let value: MessageButton = {
type: "primary",
type: "secondary",
content: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/messagebuttontype.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { MessageButtonType } from "@novu/api/models/components";

let value: MessageButtonType = "secondary";
let value: MessageButtonType = "primary";
```

## Values
Expand Down
Loading

0 comments on commit fdf8494

Please sign in to comment.