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 de8f0bd commit 910fcbb
Show file tree
Hide file tree
Showing 38 changed files with 60 additions and 118 deletions.
7 changes: 3 additions & 4 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: cba710e135508061c084776b3a4a1ccf
docChecksum: 7b3dfe3f8873dc99e60a2f159cc989b8
docVersion: "1.0"
speakeasyVersion: 1.456.1
generationVersion: 2.481.0
releaseVersion: 0.0.1-alpha.145
configChecksum: 8eded2f4a278abe6b04a5ff8a5ec72a3
releaseVersion: 0.0.1-alpha.146
configChecksum: c62cc9d17cb743c0a9d12cac4c7fae1b
published: true
features:
typescript:
Expand Down Expand Up @@ -65,7 +65,6 @@ generatedFiles:
- docs/models/components/channelcredentialsdto.md
- docs/models/components/channelctatypeenum.md
- docs/models/components/channelpreference.md
- docs/models/components/channelpreferencetype.md
- docs/models/components/channels.md
- docs/models/components/channelsettings.md
- docs/models/components/channelsettingsproviderid.md
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.145
version: 0.0.1-alpha.146
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:39323a9fbd97f54ee2abba3359e99315a9d41da2e7bc2bc4f081bde9236d9e13
sourceBlobDigest: sha256:a0b3c12b6ec20fd4262e16c47d0e1f8d33cdced865c0cd3bd075eb4f4a8a6fc8
sourceRevisionDigest: sha256:db6c4507f14cd0cacf8fda9f6036598b88789bca6e2f9982230c6fc823b0f2aa
sourceBlobDigest: sha256:ce3b4d52a905810de4bd56c8b1e4088539306fa58a6c48283e0c17f6d8b3f620
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:39323a9fbd97f54ee2abba3359e99315a9d41da2e7bc2bc4f081bde9236d9e13
sourceBlobDigest: sha256:a0b3c12b6ec20fd4262e16c47d0e1f8d33cdced865c0cd3bd075eb4f4a8a6fc8
sourceRevisionDigest: sha256:db6c4507f14cd0cacf8fda9f6036598b88789bca6e2f9982230c6fc823b0f2aa
sourceBlobDigest: sha256:ce3b4d52a905810de4bd56c8b1e4088539306fa58a6c48283e0c17f6d8b3f620
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:5c067edcfacb694404b916a8255dba9cf67acc66ca6f6e87dd856978dc8cec18
codeSamplesRevisionDigest: sha256:60fa4c6e8b20f012fb64970cd2f5df5b7b60073fae3dac0e16e5a1b61b66c5c6
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
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: "user",
};
```

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 = "system_icon";
let value: ActorTypeEnum = "system_custom";
```

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

let value: BackoffUnit = "minutes";
let value: BackoffUnit = "hours";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/buttontypeenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Type of button for the action result
```typescript
import { ButtonTypeEnum } from "@novu/api/models/components";

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

## Values
Expand Down
10 changes: 5 additions & 5 deletions docs/models/components/channelpreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import { ChannelPreference } from "@novu/api/models/components";

let value: ChannelPreference = {
type: "email",
type: "sms",
enabled: false,
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `type` | [components.ChannelPreferenceType](../../models/components/channelpreferencetype.md) | :heavy_check_mark: | The type of channel that is enabled or not |
| `enabled` | *boolean* | :heavy_check_mark: | If channel is enabled or not |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `type` | [components.ChannelTypeEnum](../../models/components/channeltypeenum.md) | :heavy_check_mark: | Channel type through which the message is sent |
| `enabled` | *boolean* | :heavy_check_mark: | If channel is enabled or not |
17 changes: 0 additions & 17 deletions docs/models/components/channelpreferencetype.md

This file was deleted.

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 = "minutes";
let value: DelayRegularMetadataUnit = "weeks";
```

## Values
Expand Down
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/emailblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { EmailBlock } from "@novu/api/models/components";

let value: EmailBlock = {
type: "button",
type: "text",
content: "<value>",
};
```
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/feedresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ let value: FeedResponseDto = {
updatedAt: new Date("2024-12-10T10:10:59.639Z"),
actor: {
data: null,
type: "system_custom",
type: "none",
},
transactionId: "transaction_123456",
templateIdentifier: "template_abcdef",
providerId: "provider_xyz",
content: "This is a test notification content.",
subject: "Test Notification Subject",
channel: "sms",
channel: "push",
read: false,
seen: true,
deleted: false,
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 = "seen";
let value: MarkAllMessageAsRequestDtoMarkAs = "unread";
```

## 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 = "seen";
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: "pending",
status: "done",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/messageactionstatusenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status of the message action
```typescript
import { MessageActionStatusEnum } from "@novu/api/models/components";

let value: MessageActionStatusEnum = "pending";
let value: MessageActionStatusEnum = "done";
```

## Values
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: "secondary",
type: "primary",
content: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/messagemarkasrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MessageMarkAsRequestDto } from "@novu/api/models/components";

let value: MessageMarkAsRequestDto = {
messageId: "<id>",
markAs: "seen",
markAs: "unseen",
};
```

Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/messageresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ let value: MessageResponseDto = {
createdAt: "<value>",
content: "<value>",
transactionId: "<id>",
channel: "sms",
channel: "chat",
read: false,
seen: false,
cta: {
data: {},
},
status: "warning",
status: "error",
};
```

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

let value: MessageStatusEnum = "error";
let value: MessageStatusEnum = "warning";
```

## Values
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/notificationfeeditemdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ let value: NotificationFeedItemDto = {
updatedAt: new Date("2024-12-10T10:10:59.639Z"),
actor: {
data: null,
type: "system_custom",
type: "user",
},
transactionId: "transaction_123456",
templateIdentifier: "template_abcdef",
providerId: "provider_xyz",
content: "This is a test notification content.",
subject: "Test Notification Subject",
channel: "chat",
channel: "push",
read: false,
seen: true,
deleted: false,
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/ordinal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { Ordinal } from "@novu/api/models/components";

let value: Ordinal = "last";
let value: Ordinal = "1";
```

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

let value: OrdinalValue = "thursday";
let value: OrdinalValue = "weekday";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/textalignenum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Text alignment for the email block
```typescript
import { TextAlignEnum } from "@novu/api/models/components";

let value: TextAlignEnum = "center";
let value: TextAlignEnum = "left";
```

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

let value: Unit = "days";
let value: Unit = "months";
```

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

let value: UnseenCountResponse = {
count: 8817.35,
count: 5812.73,
};
```

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

let value: WeekDays = "tuesday";
let value: WeekDays = "thursday";
```

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

let value: WorkflowResponse = {
name: "<value>",
description: "mouser inject worth uh-huh substitution psst upon er",
description: "outfit hidden remand whether seriously",
active: false,
draft: false,
preferenceSettings: {},
Expand Down
2 changes: 1 addition & 1 deletion docs/models/errors/value.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const value: string = "<value>";
### `number`

```typescript
const value: number = 246.79;
const value: number = 5772.29;
```

### `boolean`
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@novu/api",
"version": "0.0.1-alpha.145",
"version": "0.0.1-alpha.146",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@novu/api",
"version": "0.0.1-alpha.145",
"version": "0.0.1-alpha.146",
"author": "Novu",
"main": "./index.js",
"sideEffects": false,
Expand Down
Loading

0 comments on commit 910fcbb

Please sign in to comment.