Skip to content

Commit

Permalink
add idempotency test endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Jan 13, 2025
1 parent 2070c58 commit 8d8c2b9
Show file tree
Hide file tree
Showing 38 changed files with 76 additions and 287 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.speakeasy/reports
/react-query
/__tests__
/funcs
Expand Down
218 changes: 6 additions & 212 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 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.173
version: 0.0.1-alpha.175
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand All @@ -22,6 +22,7 @@ typescript:
author: Novu
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enableCustomCodeRegions: false
enableReactQuery: false
enumFormat: union
flattenGlobalSecurity: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.460.2
speakeasyVersion: 1.468.2
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:ca889f14add2869c786802e0d3055e5a41c7b60bf026170caf6dc2a2bd9f3ce1
sourceBlobDigest: sha256:60bf0137bc4340cb70fd8a5772397ea2c2ba551fb7c434f49e6f615ae16fddea
sourceRevisionDigest: sha256:580c6bd42fd13e170c6b680229e820d3d6438b664952081c19820aad511505d6
sourceBlobDigest: sha256:ab8e8daf7f729d09d69a3060980440570217f12d6d03cc4f414d27ef43effbac
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:ca889f14add2869c786802e0d3055e5a41c7b60bf026170caf6dc2a2bd9f3ce1
sourceBlobDigest: sha256:60bf0137bc4340cb70fd8a5772397ea2c2ba551fb7c434f49e6f615ae16fddea
sourceRevisionDigest: sha256:580c6bd42fd13e170c6b680229e820d3d6438b664952081c19820aad511505d6
sourceBlobDigest: sha256:ab8e8daf7f729d09d69a3060980440570217f12d6d03cc4f414d27ef43effbac
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:10b012e59e8440bd903c0e4c8b5b54991fd4064c9e1498f658873d4ac2a98366
codeSamplesRevisionDigest: sha256:61a17f54ae320df141a590b1d4e21f73dec5ac5e933d2212e984d596eb71ecfb
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/activitiesresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let value: ActivitiesResponseDto = {

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `hasMore` | *boolean* | :heavy_check_mark: | Whether there are more activities |
| `hasMore` | *boolean* | :heavy_check_mark: | Indicates if there are more activities in the result set |
| `data` | [components.ActivityNotificationResponseDto](../../models/components/activitynotificationresponsedto.md)[] | :heavy_check_mark: | Array of activity notifications |
| `pageSize` | *number* | :heavy_check_mark: | Page size of the activities |
| `page` | *number* | :heavy_check_mark: | Current page of the activities |
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ let value: ActivityNotificationSubscriberResponseDto = {

## Fields

| Field | Type | Required | Description |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| `firstName` | *string* | :heavy_minus_sign: | First name of the subscriber |
| `id` | *string* | :heavy_check_mark: | Unique identifier of the subscriber |
| `lastName` | *string* | :heavy_minus_sign: | Last name of the subscriber |
| `email` | *string* | :heavy_minus_sign: | Email of the subscriber |
| `phone` | *string* | :heavy_minus_sign: | Phone number of the subscriber |
| Field | Type | Required | Description |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| `firstName` | *string* | :heavy_minus_sign: | First name of the subscriber |
| `id` | *string* | :heavy_check_mark: | External unique identifier of the subscriber |
| `lastName` | *string* | :heavy_minus_sign: | Last name of the subscriber |
| `email` | *string* | :heavy_minus_sign: | Email address of the subscriber |
| `phone` | *string* | :heavy_minus_sign: | Phone number of the subscriber |
1 change: 0 additions & 1 deletion docs/models/components/actor.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# 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


Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/messageresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ let value: MessageResponseDto = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1708661962865",
updatedAt: "1735040369571",
createdAt: "1710353524711",
updatedAt: "1736731931417",
},
createdAt: "1707442372695",
createdAt: "1709133934542",
content: "<value>",
transactionId: "<id>",
channel: "push",
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Status of the trigger
```typescript
import { Status } from "@novu/api/models/components";

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

## Values

```typescript
"error" | "trigger_not_active" | "no_workflow_active_steps_defined" | "no_workflow_steps_defined" | "processed" | "subscriber_id_missing" | "no_tenant_found"
"error" | "trigger_not_active" | "no_workflow_active_steps_defined" | "no_workflow_steps_defined" | "processed" | "no_tenant_found"
```
4 changes: 2 additions & 2 deletions docs/models/components/subscriberresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ let value: SubscriberResponseDto = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1712685472827",
updatedAt: "1735040581611",
createdAt: "1714377034712",
updatedAt: "1736732143496",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/triggereventrequestdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ let value: TriggerEventRequestDto = {
| `overrides` | Record<string, Record<string, *any*>> | :heavy_minus_sign: | This could be used to override provider specific configurations | {<br/>"fcm": {<br/>"data": {<br/>"key": "value"<br/>}<br/>}<br/>} |
| `to` | *components.To* | :heavy_check_mark: | The recipients list of people who will receive the notification. | |
| `transactionId` | *string* | :heavy_minus_sign: | A unique identifier for this transaction, we will generate a UUID if not provided. | |
| `actor` | *components.Actor* | :heavy_minus_sign: | It is used to display the Avatar of the provided actor's subscriber id or actor object.<br/><br/> If a new actor object is provided, we will create a new subscriber in our system | |
| `actor` | *components.Actor* | :heavy_minus_sign: | It is used to display the Avatar of the provided actor's subscriber id or actor object.<br/> If a new actor object is provided, we will create a new subscriber in our system | |
| `tenant` | *components.Tenant* | :heavy_minus_sign: | It is used to specify a tenant context during trigger event.<br/> Existing tenants will be updated with the provided details. | |
| `controls` | [components.WorkflowToStepControlValuesDto](../../models/components/workflowtostepcontrolvaluesdto.md) | :heavy_minus_sign: | Additional control configurations. | |
2 changes: 1 addition & 1 deletion docs/models/operations/eventscontrollertriggerresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let value: EventsControllerTriggerResponse = {
},
result: {
acknowledged: false,
status: "subscriber_id_missing",
status: "processed",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerCreateSubscriberResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1716614363891",
updatedAt: "1735010042706",
createdAt: "1718305925812",
updatedAt: "1736701604627",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ let value: SubscribersControllerGetSubscriberResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1717922741793",
updatedAt: "1735036297497",
createdAt: "1719614303713",
updatedAt: "1736727859417",
},
};
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ let value: SubscribersControllerListSubscribersResponse = {
organizationId: "<id>",
environmentId: "<id>",
deleted: false,
createdAt: "1708058374483",
updatedAt: "1735068803805",
createdAt: "1709749936408",
updatedAt: "1736760365730",
},
],
},
Expand Down
Loading

0 comments on commit 8d8c2b9

Please sign in to comment.