@novu/api 0.0.1-alpha.83 → 0.0.1-alpha.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -30
- package/hooks/novu-custom-hook.js +1 -1
- package/hooks/novu-custom-hook.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/index.d.ts +0 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -7
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +8 -8
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +14 -13
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +4 -4
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +2 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/stepfilter.d.ts +8 -8
- package/models/components/stepfilter.d.ts.map +1 -1
- package/models/components/stepfilter.js +13 -13
- package/models/components/stepfilter.js.map +1 -1
- package/models/components/topicpayloaddto.d.ts +27 -2
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +22 -4
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +28 -4
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +57 -5
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +8 -8
- package/models/components/triggereventresponsedto.d.ts.map +1 -1
- package/models/components/triggereventresponsedto.js +14 -13
- package/models/components/triggereventresponsedto.js.map +1 -1
- package/models/operations/index.d.ts +0 -9
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -9
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -9
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -15
- package/sdk/sdk.js.map +1 -1
- package/src/hooks/novu-custom-hook.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -7
- package/src/models/components/integrationresponsedto.ts +14 -18
- package/src/models/components/notificationfeeditemdto.ts +4 -4
- package/src/models/components/stepfilter.ts +16 -15
- package/src/models/components/topicpayloaddto.ts +30 -8
- package/src/models/components/triggereventrequestdto.ts +109 -17
- package/src/models/components/triggereventresponsedto.ts +14 -18
- package/src/models/operations/index.ts +0 -9
- package/src/sdk/sdk.ts +0 -18
- package/docs/sdks/apikeys/README.md +0 -79
- package/docs/sdks/environments/README.md +0 -154
- package/docs/sdks/executiondetails/README.md +0 -84
- package/docs/sdks/workflowgroups/README.md +0 -382
- package/funcs/environmentsApiKeysList.d.ts +0 -12
- package/funcs/environmentsApiKeysList.d.ts.map +0 -1
- package/funcs/environmentsApiKeysList.js +0 -97
- package/funcs/environmentsApiKeysList.js.map +0 -1
- package/funcs/environmentsList.d.ts +0 -12
- package/funcs/environmentsList.d.ts.map +0 -1
- package/funcs/environmentsList.js +0 -97
- package/funcs/environmentsList.js.map +0 -1
- package/funcs/environmentsRetrieve.d.ts +0 -12
- package/funcs/environmentsRetrieve.d.ts.map +0 -1
- package/funcs/environmentsRetrieve.js +0 -97
- package/funcs/environmentsRetrieve.js.map +0 -1
- package/funcs/executionDetailsRetrieve.d.ts +0 -12
- package/funcs/executionDetailsRetrieve.d.ts.map +0 -1
- package/funcs/executionDetailsRetrieve.js +0 -117
- package/funcs/executionDetailsRetrieve.js.map +0 -1
- package/funcs/workflowGroupsCreate.d.ts +0 -16
- package/funcs/workflowGroupsCreate.d.ts.map +0 -1
- package/funcs/workflowGroupsCreate.js +0 -111
- package/funcs/workflowGroupsCreate.js.map +0 -1
- package/funcs/workflowGroupsDelete.d.ts +0 -15
- package/funcs/workflowGroupsDelete.d.ts.map +0 -1
- package/funcs/workflowGroupsDelete.js +0 -120
- package/funcs/workflowGroupsDelete.js.map +0 -1
- package/funcs/workflowGroupsList.d.ts +0 -15
- package/funcs/workflowGroupsList.d.ts.map +0 -1
- package/funcs/workflowGroupsList.js +0 -100
- package/funcs/workflowGroupsList.js.map +0 -1
- package/funcs/workflowGroupsRetrieve.d.ts +0 -15
- package/funcs/workflowGroupsRetrieve.d.ts.map +0 -1
- package/funcs/workflowGroupsRetrieve.js +0 -120
- package/funcs/workflowGroupsRetrieve.js.map +0 -1
- package/funcs/workflowGroupsUpdate.d.ts +0 -16
- package/funcs/workflowGroupsUpdate.d.ts.map +0 -1
- package/funcs/workflowGroupsUpdate.js +0 -124
- package/funcs/workflowGroupsUpdate.js.map +0 -1
- package/models/components/apikey.d.ts +0 -31
- package/models/components/apikey.d.ts.map +0 -1
- package/models/components/apikey.js +0 -71
- package/models/components/apikey.js.map +0 -1
- package/models/components/createnotificationgrouprequestdto.d.ts +0 -29
- package/models/components/createnotificationgrouprequestdto.d.ts.map +0 -1
- package/models/components/createnotificationgrouprequestdto.js +0 -59
- package/models/components/createnotificationgrouprequestdto.js.map +0 -1
- package/models/components/deletenotificationgroupresponsedto.d.ts +0 -66
- package/models/components/deletenotificationgroupresponsedto.d.ts.map +0 -1
- package/models/components/deletenotificationgroupresponsedto.js +0 -83
- package/models/components/deletenotificationgroupresponsedto.js.map +0 -1
- package/models/components/environmentresponsedto.d.ts +0 -41
- package/models/components/environmentresponsedto.d.ts.map +0 -1
- package/models/components/environmentresponsedto.js +0 -84
- package/models/components/environmentresponsedto.js.map +0 -1
- package/models/components/executiondetailsresponsedto.d.ts +0 -176
- package/models/components/executiondetailsresponsedto.d.ts.map +0 -1
- package/models/components/executiondetailsresponsedto.js +0 -187
- package/models/components/executiondetailsresponsedto.js.map +0 -1
- package/models/components/notificationgroupresponsedto.d.ts +0 -37
- package/models/components/notificationgroupresponsedto.d.ts.map +0 -1
- package/models/components/notificationgroupresponsedto.js +0 -82
- package/models/components/notificationgroupresponsedto.js.map +0 -1
- package/models/components/triggerrecipientstypeenum.d.ts +0 -28
- package/models/components/triggerrecipientstypeenum.d.ts.map +0 -1
- package/models/components/triggerrecipientstypeenum.js +0 -50
- package/models/components/triggerrecipientstypeenum.js.map +0 -1
- package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts +0 -36
- package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1getcurrentenvironment.js +0 -73
- package/models/operations/environmentscontrollerv1getcurrentenvironment.js.map +0 -1
- package/models/operations/environmentscontrollerv1listmyenvironments.d.ts +0 -36
- package/models/operations/environmentscontrollerv1listmyenvironments.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1listmyenvironments.js +0 -73
- package/models/operations/environmentscontrollerv1listmyenvironments.js.map +0 -1
- package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts +0 -36
- package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1listorganizationapikeys.js +0 -75
- package/models/operations/environmentscontrollerv1listorganizationapikeys.js.map +0 -1
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts +0 -63
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts.map +0 -1
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js +0 -106
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js.map +0 -1
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts +0 -36
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.js +0 -75
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts +0 -61
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js +0 -104
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts +0 -61
- package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollergetnotificationgroup.js +0 -104
- package/models/operations/notificationgroupscontrollergetnotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts +0 -36
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.js +0 -75
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.js.map +0 -1
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts +0 -63
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js +0 -114
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js.map +0 -1
- package/sdk/apikeys.d.ts +0 -9
- package/sdk/apikeys.d.ts.map +0 -1
- package/sdk/apikeys.js +0 -19
- package/sdk/apikeys.js.map +0 -1
- package/sdk/environments.d.ts +0 -16
- package/sdk/environments.d.ts.map +0 -1
- package/sdk/environments.js +0 -31
- package/sdk/environments.js.map +0 -1
- package/sdk/executiondetails.d.ts +0 -9
- package/sdk/executiondetails.d.ts.map +0 -1
- package/sdk/executiondetails.js +0 -19
- package/sdk/executiondetails.js.map +0 -1
- package/sdk/workflowgroups.d.ts +0 -41
- package/sdk/workflowgroups.d.ts.map +0 -1
- package/sdk/workflowgroups.js +0 -62
- package/sdk/workflowgroups.js.map +0 -1
- package/src/funcs/environmentsApiKeysList.ts +0 -124
- package/src/funcs/environmentsList.ts +0 -124
- package/src/funcs/environmentsRetrieve.ts +0 -124
- package/src/funcs/executionDetailsRetrieve.ts +0 -157
- package/src/funcs/workflowGroupsCreate.ts +0 -145
- package/src/funcs/workflowGroupsDelete.ts +0 -157
- package/src/funcs/workflowGroupsList.ts +0 -127
- package/src/funcs/workflowGroupsRetrieve.ts +0 -157
- package/src/funcs/workflowGroupsUpdate.ts +0 -164
- package/src/models/components/apikey.ts +0 -72
- package/src/models/components/createnotificationgrouprequestdto.ts +0 -69
- package/src/models/components/deletenotificationgroupresponsedto.ts +0 -117
- package/src/models/components/environmentresponsedto.ts +0 -103
- package/src/models/components/executiondetailsresponsedto.ts +0 -244
- package/src/models/components/notificationgroupresponsedto.ts +0 -99
- package/src/models/components/triggerrecipientstypeenum.ts +0 -35
- package/src/models/operations/environmentscontrollerv1getcurrentenvironment.ts +0 -96
- package/src/models/operations/environmentscontrollerv1listmyenvironments.ts +0 -96
- package/src/models/operations/environmentscontrollerv1listorganizationapikeys.ts +0 -94
- package/src/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.ts +0 -176
- package/src/models/operations/notificationgroupscontrollercreatenotificationgroup.ts +0 -95
- package/src/models/operations/notificationgroupscontrollerdeletenotificationgroup.ts +0 -166
- package/src/models/operations/notificationgroupscontrollergetnotificationgroup.ts +0 -165
- package/src/models/operations/notificationgroupscontrollerlistnotificationgroups.ts +0 -95
- package/src/models/operations/notificationgroupscontrollerupdatenotificationgroup.ts +0 -182
- package/src/sdk/apikeys.ts +0 -24
- package/src/sdk/environments.ts +0 -41
- package/src/sdk/executiondetails.ts +0 -28
- package/src/sdk/workflowgroups.ts +0 -111
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# ApiKeys
|
|
2
|
-
(*environments.apiKeys*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [list](#list) - Get api keys
|
|
9
|
-
|
|
10
|
-
## list
|
|
11
|
-
|
|
12
|
-
Get api keys
|
|
13
|
-
|
|
14
|
-
### Example Usage
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { Novu } from "@novu/api";
|
|
18
|
-
|
|
19
|
-
const novu = new Novu({
|
|
20
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
async function run() {
|
|
24
|
-
const result = await novu.environments.apiKeys.list();
|
|
25
|
-
|
|
26
|
-
// Handle the result
|
|
27
|
-
console.log(result);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
run();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Standalone function
|
|
34
|
-
|
|
35
|
-
The standalone function version of this method:
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
39
|
-
import { environmentsApiKeysList } from "@novu/api/funcs/environmentsApiKeysList.js";
|
|
40
|
-
|
|
41
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
42
|
-
// You can create one instance of it to use across an application.
|
|
43
|
-
const novu = new NovuCore({
|
|
44
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
async function run() {
|
|
48
|
-
const res = await environmentsApiKeysList(novu);
|
|
49
|
-
|
|
50
|
-
if (!res.ok) {
|
|
51
|
-
throw res.error;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { value: result } = res;
|
|
55
|
-
|
|
56
|
-
// Handle the result
|
|
57
|
-
console.log(result);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
run();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Parameters
|
|
64
|
-
|
|
65
|
-
| Parameter | Type | Required | Description |
|
|
66
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
68
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
69
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
70
|
-
|
|
71
|
-
### Response
|
|
72
|
-
|
|
73
|
-
**Promise\<[operations.EnvironmentsControllerV1ListOrganizationApiKeysResponse](../../models/operations/environmentscontrollerv1listorganizationapikeysresponse.md)\>**
|
|
74
|
-
|
|
75
|
-
### Errors
|
|
76
|
-
|
|
77
|
-
| Error Type | Status Code | Content Type |
|
|
78
|
-
| --------------- | --------------- | --------------- |
|
|
79
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# Environments
|
|
2
|
-
(*environments*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
Novu uses the concept of environments to ensure logical separation of your data and configuration. This means that subscribers, and preferences created in one environment are never accessible to another.
|
|
7
|
-
<https://docs.novu.co/platform/environments>
|
|
8
|
-
|
|
9
|
-
### Available Operations
|
|
10
|
-
|
|
11
|
-
* [retrieve](#retrieve) - Get current environment
|
|
12
|
-
* [list](#list) - Get environments
|
|
13
|
-
|
|
14
|
-
## retrieve
|
|
15
|
-
|
|
16
|
-
Get current environment
|
|
17
|
-
|
|
18
|
-
### Example Usage
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { Novu } from "@novu/api";
|
|
22
|
-
|
|
23
|
-
const novu = new Novu({
|
|
24
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
async function run() {
|
|
28
|
-
const result = await novu.environments.retrieve();
|
|
29
|
-
|
|
30
|
-
// Handle the result
|
|
31
|
-
console.log(result);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
run();
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Standalone function
|
|
38
|
-
|
|
39
|
-
The standalone function version of this method:
|
|
40
|
-
|
|
41
|
-
```typescript
|
|
42
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
43
|
-
import { environmentsRetrieve } from "@novu/api/funcs/environmentsRetrieve.js";
|
|
44
|
-
|
|
45
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
46
|
-
// You can create one instance of it to use across an application.
|
|
47
|
-
const novu = new NovuCore({
|
|
48
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
async function run() {
|
|
52
|
-
const res = await environmentsRetrieve(novu);
|
|
53
|
-
|
|
54
|
-
if (!res.ok) {
|
|
55
|
-
throw res.error;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const { value: result } = res;
|
|
59
|
-
|
|
60
|
-
// Handle the result
|
|
61
|
-
console.log(result);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
run();
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Parameters
|
|
68
|
-
|
|
69
|
-
| Parameter | Type | Required | Description |
|
|
70
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
71
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
72
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
73
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
74
|
-
|
|
75
|
-
### Response
|
|
76
|
-
|
|
77
|
-
**Promise\<[operations.EnvironmentsControllerV1GetCurrentEnvironmentResponse](../../models/operations/environmentscontrollerv1getcurrentenvironmentresponse.md)\>**
|
|
78
|
-
|
|
79
|
-
### Errors
|
|
80
|
-
|
|
81
|
-
| Error Type | Status Code | Content Type |
|
|
82
|
-
| --------------- | --------------- | --------------- |
|
|
83
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
84
|
-
|
|
85
|
-
## list
|
|
86
|
-
|
|
87
|
-
Get environments
|
|
88
|
-
|
|
89
|
-
### Example Usage
|
|
90
|
-
|
|
91
|
-
```typescript
|
|
92
|
-
import { Novu } from "@novu/api";
|
|
93
|
-
|
|
94
|
-
const novu = new Novu({
|
|
95
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
async function run() {
|
|
99
|
-
const result = await novu.environments.list();
|
|
100
|
-
|
|
101
|
-
// Handle the result
|
|
102
|
-
console.log(result);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
run();
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Standalone function
|
|
109
|
-
|
|
110
|
-
The standalone function version of this method:
|
|
111
|
-
|
|
112
|
-
```typescript
|
|
113
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
114
|
-
import { environmentsList } from "@novu/api/funcs/environmentsList.js";
|
|
115
|
-
|
|
116
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
117
|
-
// You can create one instance of it to use across an application.
|
|
118
|
-
const novu = new NovuCore({
|
|
119
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
async function run() {
|
|
123
|
-
const res = await environmentsList(novu);
|
|
124
|
-
|
|
125
|
-
if (!res.ok) {
|
|
126
|
-
throw res.error;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const { value: result } = res;
|
|
130
|
-
|
|
131
|
-
// Handle the result
|
|
132
|
-
console.log(result);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
run();
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
### Parameters
|
|
139
|
-
|
|
140
|
-
| Parameter | Type | Required | Description |
|
|
141
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
142
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
143
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
144
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
145
|
-
|
|
146
|
-
### Response
|
|
147
|
-
|
|
148
|
-
**Promise\<[operations.EnvironmentsControllerV1ListMyEnvironmentsResponse](../../models/operations/environmentscontrollerv1listmyenvironmentsresponse.md)\>**
|
|
149
|
-
|
|
150
|
-
### Errors
|
|
151
|
-
|
|
152
|
-
| Error Type | Status Code | Content Type |
|
|
153
|
-
| --------------- | --------------- | --------------- |
|
|
154
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# ExecutionDetails
|
|
2
|
-
(*executionDetails*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
Execution details are used to track the execution of a workflow. They provided detailed information on the execution of a workflow, including the status of each step, the input and output of each step, and the overall status of the execution.
|
|
7
|
-
<https://docs.novu.co/activity-feed>
|
|
8
|
-
|
|
9
|
-
### Available Operations
|
|
10
|
-
|
|
11
|
-
* [retrieve](#retrieve) - Get execution details
|
|
12
|
-
|
|
13
|
-
## retrieve
|
|
14
|
-
|
|
15
|
-
Get execution details
|
|
16
|
-
|
|
17
|
-
### Example Usage
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { Novu } from "@novu/api";
|
|
21
|
-
|
|
22
|
-
const novu = new Novu({
|
|
23
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
async function run() {
|
|
27
|
-
const result = await novu.executionDetails.retrieve("<id>", "<id>");
|
|
28
|
-
|
|
29
|
-
// Handle the result
|
|
30
|
-
console.log(result);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
run();
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Standalone function
|
|
37
|
-
|
|
38
|
-
The standalone function version of this method:
|
|
39
|
-
|
|
40
|
-
```typescript
|
|
41
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
42
|
-
import { executionDetailsRetrieve } from "@novu/api/funcs/executionDetailsRetrieve.js";
|
|
43
|
-
|
|
44
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
45
|
-
// You can create one instance of it to use across an application.
|
|
46
|
-
const novu = new NovuCore({
|
|
47
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
async function run() {
|
|
51
|
-
const res = await executionDetailsRetrieve(novu, "<id>", "<id>");
|
|
52
|
-
|
|
53
|
-
if (!res.ok) {
|
|
54
|
-
throw res.error;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const { value: result } = res;
|
|
58
|
-
|
|
59
|
-
// Handle the result
|
|
60
|
-
console.log(result);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
run();
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Parameters
|
|
67
|
-
|
|
68
|
-
| Parameter | Type | Required | Description |
|
|
69
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
70
|
-
| `notificationId` | *string* | :heavy_check_mark: | N/A |
|
|
71
|
-
| `subscriberId` | *string* | :heavy_check_mark: | N/A |
|
|
72
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
73
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
74
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
75
|
-
|
|
76
|
-
### Response
|
|
77
|
-
|
|
78
|
-
**Promise\<[operations.ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse](../../models/operations/executiondetailscontrollergetexecutiondetailsfornotificationresponse.md)\>**
|
|
79
|
-
|
|
80
|
-
### Errors
|
|
81
|
-
|
|
82
|
-
| Error Type | Status Code | Content Type |
|
|
83
|
-
| --------------- | --------------- | --------------- |
|
|
84
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|