@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.
Files changed (203) hide show
  1. package/README.md +0 -30
  2. package/hooks/novu-custom-hook.js +1 -1
  3. package/hooks/novu-custom-hook.js.map +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/config.js.map +1 -1
  7. package/models/components/index.d.ts +0 -7
  8. package/models/components/index.d.ts.map +1 -1
  9. package/models/components/index.js +0 -7
  10. package/models/components/index.js.map +1 -1
  11. package/models/components/integrationresponsedto.d.ts +8 -8
  12. package/models/components/integrationresponsedto.d.ts.map +1 -1
  13. package/models/components/integrationresponsedto.js +14 -13
  14. package/models/components/integrationresponsedto.js.map +1 -1
  15. package/models/components/notificationfeeditemdto.d.ts +4 -4
  16. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  17. package/models/components/notificationfeeditemdto.js +2 -2
  18. package/models/components/notificationfeeditemdto.js.map +1 -1
  19. package/models/components/stepfilter.d.ts +8 -8
  20. package/models/components/stepfilter.d.ts.map +1 -1
  21. package/models/components/stepfilter.js +13 -13
  22. package/models/components/stepfilter.js.map +1 -1
  23. package/models/components/topicpayloaddto.d.ts +27 -2
  24. package/models/components/topicpayloaddto.d.ts.map +1 -1
  25. package/models/components/topicpayloaddto.js +22 -4
  26. package/models/components/topicpayloaddto.js.map +1 -1
  27. package/models/components/triggereventrequestdto.d.ts +28 -4
  28. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  29. package/models/components/triggereventrequestdto.js +57 -5
  30. package/models/components/triggereventrequestdto.js.map +1 -1
  31. package/models/components/triggereventresponsedto.d.ts +8 -8
  32. package/models/components/triggereventresponsedto.d.ts.map +1 -1
  33. package/models/components/triggereventresponsedto.js +14 -13
  34. package/models/components/triggereventresponsedto.js.map +1 -1
  35. package/models/operations/index.d.ts +0 -9
  36. package/models/operations/index.d.ts.map +1 -1
  37. package/models/operations/index.js +0 -9
  38. package/models/operations/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/sdk/sdk.d.ts +0 -9
  41. package/sdk/sdk.d.ts.map +1 -1
  42. package/sdk/sdk.js +0 -15
  43. package/sdk/sdk.js.map +1 -1
  44. package/src/hooks/novu-custom-hook.ts +1 -1
  45. package/src/lib/config.ts +3 -3
  46. package/src/models/components/index.ts +0 -7
  47. package/src/models/components/integrationresponsedto.ts +14 -18
  48. package/src/models/components/notificationfeeditemdto.ts +4 -4
  49. package/src/models/components/stepfilter.ts +16 -15
  50. package/src/models/components/topicpayloaddto.ts +30 -8
  51. package/src/models/components/triggereventrequestdto.ts +109 -17
  52. package/src/models/components/triggereventresponsedto.ts +14 -18
  53. package/src/models/operations/index.ts +0 -9
  54. package/src/sdk/sdk.ts +0 -18
  55. package/docs/sdks/apikeys/README.md +0 -79
  56. package/docs/sdks/environments/README.md +0 -154
  57. package/docs/sdks/executiondetails/README.md +0 -84
  58. package/docs/sdks/workflowgroups/README.md +0 -382
  59. package/funcs/environmentsApiKeysList.d.ts +0 -12
  60. package/funcs/environmentsApiKeysList.d.ts.map +0 -1
  61. package/funcs/environmentsApiKeysList.js +0 -97
  62. package/funcs/environmentsApiKeysList.js.map +0 -1
  63. package/funcs/environmentsList.d.ts +0 -12
  64. package/funcs/environmentsList.d.ts.map +0 -1
  65. package/funcs/environmentsList.js +0 -97
  66. package/funcs/environmentsList.js.map +0 -1
  67. package/funcs/environmentsRetrieve.d.ts +0 -12
  68. package/funcs/environmentsRetrieve.d.ts.map +0 -1
  69. package/funcs/environmentsRetrieve.js +0 -97
  70. package/funcs/environmentsRetrieve.js.map +0 -1
  71. package/funcs/executionDetailsRetrieve.d.ts +0 -12
  72. package/funcs/executionDetailsRetrieve.d.ts.map +0 -1
  73. package/funcs/executionDetailsRetrieve.js +0 -117
  74. package/funcs/executionDetailsRetrieve.js.map +0 -1
  75. package/funcs/workflowGroupsCreate.d.ts +0 -16
  76. package/funcs/workflowGroupsCreate.d.ts.map +0 -1
  77. package/funcs/workflowGroupsCreate.js +0 -111
  78. package/funcs/workflowGroupsCreate.js.map +0 -1
  79. package/funcs/workflowGroupsDelete.d.ts +0 -15
  80. package/funcs/workflowGroupsDelete.d.ts.map +0 -1
  81. package/funcs/workflowGroupsDelete.js +0 -120
  82. package/funcs/workflowGroupsDelete.js.map +0 -1
  83. package/funcs/workflowGroupsList.d.ts +0 -15
  84. package/funcs/workflowGroupsList.d.ts.map +0 -1
  85. package/funcs/workflowGroupsList.js +0 -100
  86. package/funcs/workflowGroupsList.js.map +0 -1
  87. package/funcs/workflowGroupsRetrieve.d.ts +0 -15
  88. package/funcs/workflowGroupsRetrieve.d.ts.map +0 -1
  89. package/funcs/workflowGroupsRetrieve.js +0 -120
  90. package/funcs/workflowGroupsRetrieve.js.map +0 -1
  91. package/funcs/workflowGroupsUpdate.d.ts +0 -16
  92. package/funcs/workflowGroupsUpdate.d.ts.map +0 -1
  93. package/funcs/workflowGroupsUpdate.js +0 -124
  94. package/funcs/workflowGroupsUpdate.js.map +0 -1
  95. package/models/components/apikey.d.ts +0 -31
  96. package/models/components/apikey.d.ts.map +0 -1
  97. package/models/components/apikey.js +0 -71
  98. package/models/components/apikey.js.map +0 -1
  99. package/models/components/createnotificationgrouprequestdto.d.ts +0 -29
  100. package/models/components/createnotificationgrouprequestdto.d.ts.map +0 -1
  101. package/models/components/createnotificationgrouprequestdto.js +0 -59
  102. package/models/components/createnotificationgrouprequestdto.js.map +0 -1
  103. package/models/components/deletenotificationgroupresponsedto.d.ts +0 -66
  104. package/models/components/deletenotificationgroupresponsedto.d.ts.map +0 -1
  105. package/models/components/deletenotificationgroupresponsedto.js +0 -83
  106. package/models/components/deletenotificationgroupresponsedto.js.map +0 -1
  107. package/models/components/environmentresponsedto.d.ts +0 -41
  108. package/models/components/environmentresponsedto.d.ts.map +0 -1
  109. package/models/components/environmentresponsedto.js +0 -84
  110. package/models/components/environmentresponsedto.js.map +0 -1
  111. package/models/components/executiondetailsresponsedto.d.ts +0 -176
  112. package/models/components/executiondetailsresponsedto.d.ts.map +0 -1
  113. package/models/components/executiondetailsresponsedto.js +0 -187
  114. package/models/components/executiondetailsresponsedto.js.map +0 -1
  115. package/models/components/notificationgroupresponsedto.d.ts +0 -37
  116. package/models/components/notificationgroupresponsedto.d.ts.map +0 -1
  117. package/models/components/notificationgroupresponsedto.js +0 -82
  118. package/models/components/notificationgroupresponsedto.js.map +0 -1
  119. package/models/components/triggerrecipientstypeenum.d.ts +0 -28
  120. package/models/components/triggerrecipientstypeenum.d.ts.map +0 -1
  121. package/models/components/triggerrecipientstypeenum.js +0 -50
  122. package/models/components/triggerrecipientstypeenum.js.map +0 -1
  123. package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts +0 -36
  124. package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts.map +0 -1
  125. package/models/operations/environmentscontrollerv1getcurrentenvironment.js +0 -73
  126. package/models/operations/environmentscontrollerv1getcurrentenvironment.js.map +0 -1
  127. package/models/operations/environmentscontrollerv1listmyenvironments.d.ts +0 -36
  128. package/models/operations/environmentscontrollerv1listmyenvironments.d.ts.map +0 -1
  129. package/models/operations/environmentscontrollerv1listmyenvironments.js +0 -73
  130. package/models/operations/environmentscontrollerv1listmyenvironments.js.map +0 -1
  131. package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts +0 -36
  132. package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts.map +0 -1
  133. package/models/operations/environmentscontrollerv1listorganizationapikeys.js +0 -75
  134. package/models/operations/environmentscontrollerv1listorganizationapikeys.js.map +0 -1
  135. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts +0 -63
  136. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts.map +0 -1
  137. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js +0 -106
  138. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js.map +0 -1
  139. package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts +0 -36
  140. package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts.map +0 -1
  141. package/models/operations/notificationgroupscontrollercreatenotificationgroup.js +0 -75
  142. package/models/operations/notificationgroupscontrollercreatenotificationgroup.js.map +0 -1
  143. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts +0 -61
  144. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts.map +0 -1
  145. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js +0 -104
  146. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js.map +0 -1
  147. package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts +0 -61
  148. package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts.map +0 -1
  149. package/models/operations/notificationgroupscontrollergetnotificationgroup.js +0 -104
  150. package/models/operations/notificationgroupscontrollergetnotificationgroup.js.map +0 -1
  151. package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts +0 -36
  152. package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts.map +0 -1
  153. package/models/operations/notificationgroupscontrollerlistnotificationgroups.js +0 -75
  154. package/models/operations/notificationgroupscontrollerlistnotificationgroups.js.map +0 -1
  155. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts +0 -63
  156. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts.map +0 -1
  157. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js +0 -114
  158. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js.map +0 -1
  159. package/sdk/apikeys.d.ts +0 -9
  160. package/sdk/apikeys.d.ts.map +0 -1
  161. package/sdk/apikeys.js +0 -19
  162. package/sdk/apikeys.js.map +0 -1
  163. package/sdk/environments.d.ts +0 -16
  164. package/sdk/environments.d.ts.map +0 -1
  165. package/sdk/environments.js +0 -31
  166. package/sdk/environments.js.map +0 -1
  167. package/sdk/executiondetails.d.ts +0 -9
  168. package/sdk/executiondetails.d.ts.map +0 -1
  169. package/sdk/executiondetails.js +0 -19
  170. package/sdk/executiondetails.js.map +0 -1
  171. package/sdk/workflowgroups.d.ts +0 -41
  172. package/sdk/workflowgroups.d.ts.map +0 -1
  173. package/sdk/workflowgroups.js +0 -62
  174. package/sdk/workflowgroups.js.map +0 -1
  175. package/src/funcs/environmentsApiKeysList.ts +0 -124
  176. package/src/funcs/environmentsList.ts +0 -124
  177. package/src/funcs/environmentsRetrieve.ts +0 -124
  178. package/src/funcs/executionDetailsRetrieve.ts +0 -157
  179. package/src/funcs/workflowGroupsCreate.ts +0 -145
  180. package/src/funcs/workflowGroupsDelete.ts +0 -157
  181. package/src/funcs/workflowGroupsList.ts +0 -127
  182. package/src/funcs/workflowGroupsRetrieve.ts +0 -157
  183. package/src/funcs/workflowGroupsUpdate.ts +0 -164
  184. package/src/models/components/apikey.ts +0 -72
  185. package/src/models/components/createnotificationgrouprequestdto.ts +0 -69
  186. package/src/models/components/deletenotificationgroupresponsedto.ts +0 -117
  187. package/src/models/components/environmentresponsedto.ts +0 -103
  188. package/src/models/components/executiondetailsresponsedto.ts +0 -244
  189. package/src/models/components/notificationgroupresponsedto.ts +0 -99
  190. package/src/models/components/triggerrecipientstypeenum.ts +0 -35
  191. package/src/models/operations/environmentscontrollerv1getcurrentenvironment.ts +0 -96
  192. package/src/models/operations/environmentscontrollerv1listmyenvironments.ts +0 -96
  193. package/src/models/operations/environmentscontrollerv1listorganizationapikeys.ts +0 -94
  194. package/src/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.ts +0 -176
  195. package/src/models/operations/notificationgroupscontrollercreatenotificationgroup.ts +0 -95
  196. package/src/models/operations/notificationgroupscontrollerdeletenotificationgroup.ts +0 -166
  197. package/src/models/operations/notificationgroupscontrollergetnotificationgroup.ts +0 -165
  198. package/src/models/operations/notificationgroupscontrollerlistnotificationgroups.ts +0 -95
  199. package/src/models/operations/notificationgroupscontrollerupdatenotificationgroup.ts +0 -182
  200. package/src/sdk/apikeys.ts +0 -24
  201. package/src/sdk/environments.ts +0 -41
  202. package/src/sdk/executiondetails.ts +0 -28
  203. 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 | \*/\* |