Skip to content

Commit

Permalink
change add error definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 16, 2024
1 parent 1eb36ac commit 2ee411e
Show file tree
Hide file tree
Showing 35 changed files with 879 additions and 46 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# ActivityNotificationExecutionDetailResponseDto

## Example Usage

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

let value: ActivityNotificationExecutionDetailResponseDto = {
id: "<id>",
jobId: "<id>",
status: "Pending",
detail: "<value>",
isRetry: false,
isTest: false,
providerId: 7392.64,
source: "Credentials",
};
```

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` | *string* | :heavy_check_mark: | Unique identifier of the execution detail |
| `jobId` | *string* | :heavy_check_mark: | Unique identifier of the job |
| `status` | [components.ActivityNotificationExecutionDetailResponseDtoStatus](../../models/components/activitynotificationexecutiondetailresponsedtostatus.md) | :heavy_check_mark: | Status of the execution detail |
| `detail` | *string* | :heavy_check_mark: | Detailed information about the execution |
| `isRetry` | *boolean* | :heavy_check_mark: | Whether the execution is a retry or not |
| `isTest` | *boolean* | :heavy_check_mark: | Whether the execution is a test or not |
| `providerId` | *number* | :heavy_check_mark: | Provider ID of the job |
| `raw` | *string* | :heavy_minus_sign: | Raw data of the execution |
| `source` | [components.Source](../../models/components/source.md) | :heavy_check_mark: | Source of the execution detail |
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ActivityNotificationExecutionDetailResponseDtoStatus

Status of the execution detail

## Example Usage

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

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

## Values

```typescript
"Success" | "Warning" | "Failed" | "Pending" | "Queued" | "ReadConfirmation"
```
44 changes: 44 additions & 0 deletions docs/models/components/activitynotificationjobresponsedto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# ActivityNotificationJobResponseDto

## Example Usage

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

let value: ActivityNotificationJobResponseDto = {
id: "<id>",
type: "<value>",
executionDetails: [
{
id: "<id>",
jobId: "<id>",
status: "Success",
detail: "<value>",
isRetry: false,
isTest: false,
providerId: 8379.45,
source: "Credentials",
},
],
step: {
id: "<id>",
active: false,
filters: {},
},
providerId: 9764.59,
status: "<value>",
};
```

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `id` | *string* | :heavy_check_mark: | Unique identifier of the job |
| `type` | *string* | :heavy_check_mark: | Type of the job |
| `digest` | [components.Digest](../../models/components/digest.md) | :heavy_minus_sign: | Optional digest for the job |
| `executionDetails` | [components.ActivityNotificationExecutionDetailResponseDto](../../models/components/activitynotificationexecutiondetailresponsedto.md)[] | :heavy_check_mark: | Execution details of the job |
| `step` | [components.ActivityNotificationStepResponseDto](../../models/components/activitynotificationstepresponsedto.md) | :heavy_check_mark: | Step details of the job |
| `payload` | [components.Payload](../../models/components/payload.md) | :heavy_minus_sign: | Optional payload for the job |
| `providerId` | *number* | :heavy_check_mark: | Provider ID of the job |
| `status` | *string* | :heavy_check_mark: | Status of the job |
22 changes: 22 additions & 0 deletions docs/models/components/activitynotificationstepresponsedto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ActivityNotificationStepResponseDto

## Example Usage

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

let value: ActivityNotificationStepResponseDto = {
id: "<id>",
active: false,
filters: {},
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `id` | *string* | :heavy_check_mark: | Unique identifier of the step |
| `active` | *boolean* | :heavy_check_mark: | Whether the step is active or not |
| `filters` | [components.StepFilter](../../models/components/stepfilter.md) | :heavy_check_mark: | Filter criteria for the step |
| `template` | [components.MessageTemplateDto](../../models/components/messagetemplatedto.md) | :heavy_minus_sign: | Optional template for the step |
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 = "chat";
let value: Channel = "in_app";
```

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

The type of channel that is enabled or not

## Example Usage

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

let value: ChannelPreferenceType = "push";
```

## Values

```typescript
"in_app" | "email" | "sms" | "chat" | "push"
```
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 = 4663.11;
const value: number = 6531.08;
```

16 changes: 16 additions & 0 deletions docs/models/components/digest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Digest

Optional digest for the job

## Example Usage

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

let value: Digest = {};
```

## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
14 changes: 14 additions & 0 deletions docs/models/components/messageactionresultpayload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# MessageActionResultPayload

## Example Usage

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

let value: MessageActionResultPayload = {};
```

## Fields

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

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

## Values
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 @@ -9,7 +9,7 @@ let value: MessageMarkAsRequestDto = {
messageId: [
"<id>",
],
markAs: "unread",
markAs: "unseen",
};
```

Expand Down
14 changes: 14 additions & 0 deletions docs/models/components/messagetemplatedto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# MessageTemplateDto

## Example Usage

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

let value: MessageTemplateDto = {};
```

## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
17 changes: 17 additions & 0 deletions docs/models/components/source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Source

Source of the execution detail

## Example Usage

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

let value: Source = "Webhook";
```

## Values

```typescript
"Credentials" | "Internal" | "Payload" | "Webhook"
```
2 changes: 1 addition & 1 deletion docs/models/components/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Status of the trigger
```typescript
import { Status } from "@novu/api/models/components";

let value: Status = "no_workflow_steps_defined";
let value: Status = "no_workflow_active_steps_defined";
```

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

let value: SubscriberChannelDto = {
providerId: "msteams",
providerId: "getstream",
credentials: {},
};
```
Expand Down
3 changes: 2 additions & 1 deletion docs/models/components/to.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ The recipients list of people who will receive the notification.
```typescript
const value: components.One[] = [
{
subscriberId: "<id>",
topicKey: "<value>",
type: "Topic",
},
];
```
Expand Down
3 changes: 1 addition & 2 deletions docs/models/components/triggereventrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ let value: TriggerEventRequestDto = {
},
to: [
{
topicKey: "<value>",
type: "Subscriber",
subscriberId: "<id>",
},
],
};
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/triggereventresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TriggerEventResponseDto } from "@novu/api/models/components";

let value: TriggerEventResponseDto = {
acknowledged: false,
status: "no_workflow_steps_defined",
status: "no_workflow_active_steps_defined",
};
```

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

let value: TriggerRecipientsTypeEnum = "Topic";
let value: TriggerRecipientsTypeEnum = "Subscriber";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/operations/channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The channel of the message to be deleted
```typescript
import { Channel } from "@novu/api/models/operations";

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

## Values
Expand Down
Loading

0 comments on commit 2ee411e

Please sign in to comment.