@novu/api 0.0.4 → 0.1.0
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 -9
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -3
- package/models/components/index.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/sources/json-development.json +0 -1170
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -3
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/index.ts +0 -3
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/admin/README.md +0 -234
- package/funcs/adminGenerateRandomNumber.d.ts +0 -10
- package/funcs/adminGenerateRandomNumber.d.ts.map +0 -1
- package/funcs/adminGenerateRandomNumber.js +0 -126
- package/funcs/adminGenerateRandomNumber.js.map +0 -1
- package/funcs/adminHealthControllerHealthCheck.d.ts +0 -10
- package/funcs/adminHealthControllerHealthCheck.d.ts.map +0 -1
- package/funcs/adminHealthControllerHealthCheck.js +0 -109
- package/funcs/adminHealthControllerHealthCheck.js.map +0 -1
- package/funcs/adminTestIdempotency.d.ts +0 -11
- package/funcs/adminTestIdempotency.d.ts.map +0 -1
- package/funcs/adminTestIdempotency.js +0 -129
- package/funcs/adminTestIdempotency.js.map +0 -1
- package/models/components/idempotencetestingresponse.d.ts +0 -32
- package/models/components/idempotencetestingresponse.d.ts.map +0 -1
- package/models/components/idempotencetestingresponse.js +0 -59
- package/models/components/idempotencetestingresponse.js.map +0 -1
- package/models/components/idempotencybehaviorenum.d.ts +0 -37
- package/models/components/idempotencybehaviorenum.d.ts.map +0 -1
- package/models/components/idempotencybehaviorenum.js +0 -54
- package/models/components/idempotencybehaviorenum.js.map +0 -1
- package/models/components/idempotencytestingdto.d.ts +0 -33
- package/models/components/idempotencytestingdto.d.ts.map +0 -1
- package/models/components/idempotencytestingdto.js +0 -60
- package/models/components/idempotencytestingdto.js.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.d.ts +0 -153
- package/models/errors/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.js +0 -190
- package/models/errors/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts +0 -64
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.js +0 -108
- package/models/operations/healthcontrollergeneraterandomnumber.js.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.d.ts +0 -165
- package/models/operations/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.js +0 -206
- package/models/operations/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollertestidempotency.d.ts +0 -66
- package/models/operations/healthcontrollertestidempotency.d.ts.map +0 -1
- package/models/operations/healthcontrollertestidempotency.js +0 -112
- package/models/operations/healthcontrollertestidempotency.js.map +0 -1
- package/sdk/admin.d.ts +0 -9
- package/sdk/admin.d.ts.map +0 -1
- package/sdk/admin.js +0 -24
- package/sdk/admin.js.map +0 -1
- package/src/funcs/adminGenerateRandomNumber.ts +0 -183
- package/src/funcs/adminHealthControllerHealthCheck.ts +0 -153
- package/src/funcs/adminTestIdempotency.ts +0 -190
- package/src/models/components/idempotencetestingresponse.ts +0 -69
- package/src/models/components/idempotencybehaviorenum.ts +0 -42
- package/src/models/components/idempotencytestingdto.ts +0 -74
- package/src/models/errors/healthcontrollerhealthcheck.ts +0 -291
- package/src/models/operations/healthcontrollergeneraterandomnumber.ts +0 -177
- package/src/models/operations/healthcontrollerhealthcheck.ts +0 -358
- package/src/models/operations/healthcontrollertestidempotency.ts +0 -174
- package/src/sdk/admin.ts +0 -48
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0
|
|
58
|
+
sdkVersion: "0.1.0",
|
|
59
59
|
genVersion: "2.493.21",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0 2.493.21 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -55,9 +55,6 @@ export * from "./fieldfilterpartdto.js";
|
|
|
55
55
|
export * from "./filtertopicsresponsedto.js";
|
|
56
56
|
export * from "./getsubscriberpreferencesresponsedto.js";
|
|
57
57
|
export * from "./gettopicresponsedto.js";
|
|
58
|
-
export * from "./idempotencetestingresponse.js";
|
|
59
|
-
export * from "./idempotencybehaviorenum.js";
|
|
60
|
-
export * from "./idempotencytestingdto.js";
|
|
61
58
|
export * from "./integrationresponsedto.js";
|
|
62
59
|
export * from "./markallmessageasrequestdto.js";
|
|
63
60
|
export * from "./markmessageactionasseendto.js";
|
|
@@ -6,9 +6,6 @@ export * from "./eventscontrollerbroadcasteventtoall.js";
|
|
|
6
6
|
export * from "./eventscontrollercancel.js";
|
|
7
7
|
export * from "./eventscontrollertrigger.js";
|
|
8
8
|
export * from "./eventscontrollertriggerbulk.js";
|
|
9
|
-
export * from "./healthcontrollergeneraterandomnumber.js";
|
|
10
|
-
export * from "./healthcontrollerhealthcheck.js";
|
|
11
|
-
export * from "./healthcontrollertestidempotency.js";
|
|
12
9
|
export * from "./integrationscontrollercreateintegration.js";
|
|
13
10
|
export * from "./integrationscontrollergetactiveintegrations.js";
|
|
14
11
|
export * from "./integrationscontrollergetwebhooksupportstatus.js";
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
10
10
|
import * as components from "../models/components/index.js";
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
12
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
-
import { Admin } from "./admin.js";
|
|
14
13
|
import { Integrations } from "./integrations.js";
|
|
15
14
|
import { Messages } from "./messages.js";
|
|
16
15
|
import { Notifications } from "./notifications.js";
|
|
@@ -18,11 +17,6 @@ import { Subscribers } from "./subscribers.js";
|
|
|
18
17
|
import { Topics } from "./topics.js";
|
|
19
18
|
|
|
20
19
|
export class Novu extends ClientSDK {
|
|
21
|
-
private _admin?: Admin;
|
|
22
|
-
get admin(): Admin {
|
|
23
|
-
return (this._admin ??= new Admin(this._options));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
20
|
private _notifications?: Notifications;
|
|
27
21
|
get notifications(): Notifications {
|
|
28
22
|
return (this._notifications ??= new Notifications(this._options));
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
# Admin
|
|
2
|
-
(*admin*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [healthControllerHealthCheck](#healthcontrollerhealthcheck)
|
|
9
|
-
* [testIdempotency](#testidempotency)
|
|
10
|
-
* [generateRandomNumber](#generaterandomnumber)
|
|
11
|
-
|
|
12
|
-
## healthControllerHealthCheck
|
|
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.admin.healthControllerHealthCheck();
|
|
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 { adminHealthControllerHealthCheck } from "@novu/api/funcs/adminHealthControllerHealthCheck.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 adminHealthControllerHealthCheck(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
|
-
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
68
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
69
|
-
| `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. |
|
|
70
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
-
|
|
72
|
-
### Response
|
|
73
|
-
|
|
74
|
-
**Promise\<[operations.HealthControllerHealthCheckResponseBody](../../models/operations/healthcontrollerhealthcheckresponsebody.md)\>**
|
|
75
|
-
|
|
76
|
-
### Errors
|
|
77
|
-
|
|
78
|
-
| Error Type | Status Code | Content Type |
|
|
79
|
-
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
|
|
80
|
-
| errors.HealthControllerHealthCheckResponseBody | 503 | application/json |
|
|
81
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
82
|
-
|
|
83
|
-
## testIdempotency
|
|
84
|
-
|
|
85
|
-
### Example Usage
|
|
86
|
-
|
|
87
|
-
```typescript
|
|
88
|
-
import { Novu } from "@novu/api";
|
|
89
|
-
|
|
90
|
-
const novu = new Novu({
|
|
91
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
async function run() {
|
|
95
|
-
const result = await novu.admin.testIdempotency({
|
|
96
|
-
expectedBehavior: "IMMEDIATE_EXCEPTION",
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
// Handle the result
|
|
100
|
-
console.log(result);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
run();
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Standalone function
|
|
107
|
-
|
|
108
|
-
The standalone function version of this method:
|
|
109
|
-
|
|
110
|
-
```typescript
|
|
111
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
112
|
-
import { adminTestIdempotency } from "@novu/api/funcs/adminTestIdempotency.js";
|
|
113
|
-
|
|
114
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
115
|
-
// You can create one instance of it to use across an application.
|
|
116
|
-
const novu = new NovuCore({
|
|
117
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
async function run() {
|
|
121
|
-
const res = await adminTestIdempotency(novu, {
|
|
122
|
-
expectedBehavior: "IMMEDIATE_EXCEPTION",
|
|
123
|
-
});
|
|
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
|
-
| `idempotencyTestingDto` | [components.IdempotencyTestingDto](../../models/components/idempotencytestingdto.md) | :heavy_check_mark: | N/A |
|
|
143
|
-
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
144
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
145
|
-
| `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. |
|
|
146
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
147
|
-
|
|
148
|
-
### Response
|
|
149
|
-
|
|
150
|
-
**Promise\<[operations.HealthControllerTestIdempotencyResponse](../../models/operations/healthcontrollertestidempotencyresponse.md)\>**
|
|
151
|
-
|
|
152
|
-
### Errors
|
|
153
|
-
|
|
154
|
-
| Error Type | Status Code | Content Type |
|
|
155
|
-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
156
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
157
|
-
| errors.ErrorDto | 414 | application/json |
|
|
158
|
-
| errors.ValidationErrorDto | 422 | application/json |
|
|
159
|
-
| errors.ErrorDto | 500 | application/json |
|
|
160
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
161
|
-
|
|
162
|
-
## generateRandomNumber
|
|
163
|
-
|
|
164
|
-
### Example Usage
|
|
165
|
-
|
|
166
|
-
```typescript
|
|
167
|
-
import { Novu } from "@novu/api";
|
|
168
|
-
|
|
169
|
-
const novu = new Novu({
|
|
170
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
async function run() {
|
|
174
|
-
const result = await novu.admin.generateRandomNumber();
|
|
175
|
-
|
|
176
|
-
// Handle the result
|
|
177
|
-
console.log(result);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
run();
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### Standalone function
|
|
184
|
-
|
|
185
|
-
The standalone function version of this method:
|
|
186
|
-
|
|
187
|
-
```typescript
|
|
188
|
-
import { NovuCore } from "@novu/api/core.js";
|
|
189
|
-
import { adminGenerateRandomNumber } from "@novu/api/funcs/adminGenerateRandomNumber.js";
|
|
190
|
-
|
|
191
|
-
// Use `NovuCore` for best tree-shaking performance.
|
|
192
|
-
// You can create one instance of it to use across an application.
|
|
193
|
-
const novu = new NovuCore({
|
|
194
|
-
apiKey: "<YOUR_API_KEY_HERE>",
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
async function run() {
|
|
198
|
-
const res = await adminGenerateRandomNumber(novu);
|
|
199
|
-
|
|
200
|
-
if (!res.ok) {
|
|
201
|
-
throw res.error;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const { value: result } = res;
|
|
205
|
-
|
|
206
|
-
// Handle the result
|
|
207
|
-
console.log(result);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
run();
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### Parameters
|
|
214
|
-
|
|
215
|
-
| Parameter | Type | Required | Description |
|
|
216
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
217
|
-
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
218
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
219
|
-
| `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. |
|
|
220
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
221
|
-
|
|
222
|
-
### Response
|
|
223
|
-
|
|
224
|
-
**Promise\<[operations.HealthControllerGenerateRandomNumberResponse](../../models/operations/healthcontrollergeneraterandomnumberresponse.md)\>**
|
|
225
|
-
|
|
226
|
-
### Errors
|
|
227
|
-
|
|
228
|
-
| Error Type | Status Code | Content Type |
|
|
229
|
-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
230
|
-
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
231
|
-
| errors.ErrorDto | 414 | application/json |
|
|
232
|
-
| errors.ValidationErrorDto | 422 | application/json |
|
|
233
|
-
| errors.ErrorDto | 500 | application/json |
|
|
234
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NovuCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
export declare function adminGenerateRandomNumber(client: NovuCore, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerGenerateRandomNumberResponse, errors.ErrorDto | errors.ErrorDto | errors.ValidationErrorDto | errors.ErrorDto | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
-
//# sourceMappingURL=adminGenerateRandomNumber.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminGenerateRandomNumber.d.ts","sourceRoot":"","sources":["../src/funcs/adminGenerateRandomNumber.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,QAAQ,EAChB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,4CAA4C,EACrD,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,QAAQ,GACf,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA0IA"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.adminGenerateRandomNumber = void 0;
|
|
30
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
-
const security_js_1 = require("../lib/security.js");
|
|
35
|
-
const url_js_1 = require("../lib/url.js");
|
|
36
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function adminGenerateRandomNumber(client, idempotencyKey, options) {
|
|
39
|
-
const input = {
|
|
40
|
-
idempotencyKey: idempotencyKey,
|
|
41
|
-
};
|
|
42
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.HealthControllerGenerateRandomNumberRequest$outboundSchema
|
|
43
|
-
.parse(value), "Input validation failed");
|
|
44
|
-
if (!parsed.ok) {
|
|
45
|
-
return parsed;
|
|
46
|
-
}
|
|
47
|
-
const payload = parsed.value;
|
|
48
|
-
const body = null;
|
|
49
|
-
const path = (0, url_js_1.pathToFunc)("/v1/health-check/test-idempotency")();
|
|
50
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
51
|
-
Accept: "application/json",
|
|
52
|
-
"idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
53
|
-
}));
|
|
54
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
55
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
56
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
57
|
-
const context = {
|
|
58
|
-
operationID: "HealthController_generateRandomNumber",
|
|
59
|
-
oAuth2Scopes: [],
|
|
60
|
-
resolvedSecurity: requestSecurity,
|
|
61
|
-
securitySource: client._options.apiKey,
|
|
62
|
-
retryConfig: options?.retries
|
|
63
|
-
|| client._options.retryConfig
|
|
64
|
-
|| {
|
|
65
|
-
strategy: "backoff",
|
|
66
|
-
backoff: {
|
|
67
|
-
initialInterval: 1000,
|
|
68
|
-
maxInterval: 30000,
|
|
69
|
-
exponent: 1.5,
|
|
70
|
-
maxElapsedTime: 3600000,
|
|
71
|
-
},
|
|
72
|
-
retryConnectionErrors: true,
|
|
73
|
-
}
|
|
74
|
-
|| { strategy: "none" },
|
|
75
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
76
|
-
};
|
|
77
|
-
const requestRes = client._createRequest(context, {
|
|
78
|
-
security: requestSecurity,
|
|
79
|
-
method: "GET",
|
|
80
|
-
baseURL: options?.serverURL,
|
|
81
|
-
path: path,
|
|
82
|
-
headers: headers,
|
|
83
|
-
body: body,
|
|
84
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
85
|
-
}, options);
|
|
86
|
-
if (!requestRes.ok) {
|
|
87
|
-
return requestRes;
|
|
88
|
-
}
|
|
89
|
-
const req = requestRes.value;
|
|
90
|
-
const doResult = await client._do(req, {
|
|
91
|
-
context,
|
|
92
|
-
errorCodes: [
|
|
93
|
-
"400",
|
|
94
|
-
"401",
|
|
95
|
-
"403",
|
|
96
|
-
"404",
|
|
97
|
-
"405",
|
|
98
|
-
"409",
|
|
99
|
-
"413",
|
|
100
|
-
"414",
|
|
101
|
-
"415",
|
|
102
|
-
"422",
|
|
103
|
-
"429",
|
|
104
|
-
"4XX",
|
|
105
|
-
"500",
|
|
106
|
-
"503",
|
|
107
|
-
"5XX",
|
|
108
|
-
],
|
|
109
|
-
retryConfig: context.retryConfig,
|
|
110
|
-
retryCodes: context.retryCodes,
|
|
111
|
-
});
|
|
112
|
-
if (!doResult.ok) {
|
|
113
|
-
return doResult;
|
|
114
|
-
}
|
|
115
|
-
const response = doResult.value;
|
|
116
|
-
const responseFields = {
|
|
117
|
-
HttpMeta: { Response: response, Request: req },
|
|
118
|
-
};
|
|
119
|
-
const [result] = await M.match(M.json(201, operations.HealthControllerGenerateRandomNumberResponse$inboundSchema, { hdrs: true, key: "Result" }), M.jsonErr([400, 401, 403, 404, 405, 409, 413, 415], errors.ErrorDto$inboundSchema, { hdrs: true }), M.jsonErr(414, errors.ErrorDto$inboundSchema), M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }), M.fail(429), M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }), M.fail(503), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
120
|
-
if (!result.ok) {
|
|
121
|
-
return result;
|
|
122
|
-
}
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
exports.adminGenerateRandomNumber = adminGenerateRandomNumber;
|
|
126
|
-
//# sourceMappingURL=adminGenerateRandomNumber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminGenerateRandomNumber.js","sourceRoot":"","sources":["../src/funcs/adminGenerateRandomNumber.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,yBAAyB,CAC7C,MAAgB,EAChB,cAAmC,EACnC,OAAwB;IAiBxB,MAAM,KAAK,GAA2D;QACpE,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,0DAA0D;SACl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IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAc5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,EACrE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAC9B,EACD,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACxC,MAAM,CAAC,sBAAsB,EAC7B,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAC7C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACvE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC7D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AA7JD,8DA6JC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NovuCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
export declare function adminHealthControllerHealthCheck(client: NovuCore, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerHealthCheckResponseBody, errors.HealthControllerHealthCheckResponseBody | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
-
//# sourceMappingURL=adminHealthControllerHealthCheck.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminHealthControllerHealthCheck.d.ts","sourceRoot":"","sources":["../src/funcs/adminHealthControllerHealthCheck.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,QAAQ,EAChB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,uCAAuC,GAC9C,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA+GA"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.adminHealthControllerHealthCheck = void 0;
|
|
30
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
-
const security_js_1 = require("../lib/security.js");
|
|
35
|
-
const url_js_1 = require("../lib/url.js");
|
|
36
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function adminHealthControllerHealthCheck(client, idempotencyKey, options) {
|
|
39
|
-
const input = {
|
|
40
|
-
idempotencyKey: idempotencyKey,
|
|
41
|
-
};
|
|
42
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.HealthControllerHealthCheckRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43
|
-
if (!parsed.ok) {
|
|
44
|
-
return parsed;
|
|
45
|
-
}
|
|
46
|
-
const payload = parsed.value;
|
|
47
|
-
const body = null;
|
|
48
|
-
const path = (0, url_js_1.pathToFunc)("/v1/health-check")();
|
|
49
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
50
|
-
Accept: "application/json",
|
|
51
|
-
"idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
|
|
52
|
-
}));
|
|
53
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
54
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
55
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
56
|
-
const context = {
|
|
57
|
-
operationID: "HealthController_healthCheck",
|
|
58
|
-
oAuth2Scopes: [],
|
|
59
|
-
resolvedSecurity: requestSecurity,
|
|
60
|
-
securitySource: client._options.apiKey,
|
|
61
|
-
retryConfig: options?.retries
|
|
62
|
-
|| client._options.retryConfig
|
|
63
|
-
|| {
|
|
64
|
-
strategy: "backoff",
|
|
65
|
-
backoff: {
|
|
66
|
-
initialInterval: 1000,
|
|
67
|
-
maxInterval: 30000,
|
|
68
|
-
exponent: 1.5,
|
|
69
|
-
maxElapsedTime: 3600000,
|
|
70
|
-
},
|
|
71
|
-
retryConnectionErrors: true,
|
|
72
|
-
}
|
|
73
|
-
|| { strategy: "none" },
|
|
74
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
75
|
-
};
|
|
76
|
-
const requestRes = client._createRequest(context, {
|
|
77
|
-
security: requestSecurity,
|
|
78
|
-
method: "GET",
|
|
79
|
-
baseURL: options?.serverURL,
|
|
80
|
-
path: path,
|
|
81
|
-
headers: headers,
|
|
82
|
-
body: body,
|
|
83
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
84
|
-
}, options);
|
|
85
|
-
if (!requestRes.ok) {
|
|
86
|
-
return requestRes;
|
|
87
|
-
}
|
|
88
|
-
const req = requestRes.value;
|
|
89
|
-
const doResult = await client._do(req, {
|
|
90
|
-
context,
|
|
91
|
-
errorCodes: ["4XX", "503", "5XX"],
|
|
92
|
-
retryConfig: context.retryConfig,
|
|
93
|
-
retryCodes: context.retryCodes,
|
|
94
|
-
});
|
|
95
|
-
if (!doResult.ok) {
|
|
96
|
-
return doResult;
|
|
97
|
-
}
|
|
98
|
-
const response = doResult.value;
|
|
99
|
-
const responseFields = {
|
|
100
|
-
HttpMeta: { Response: response, Request: req },
|
|
101
|
-
};
|
|
102
|
-
const [result] = await M.match(M.json(200, operations.HealthControllerHealthCheckResponseBody$inboundSchema), M.jsonErr(503, errors.HealthControllerHealthCheckResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
103
|
-
if (!result.ok) {
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
exports.adminHealthControllerHealthCheck = adminHealthControllerHealthCheck;
|
|
109
|
-
//# sourceMappingURL=adminHealthControllerHealthCheck.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminHealthControllerHealthCheck.js","sourceRoot":"","sources":["../src/funcs/adminHealthControll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WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,qDAAqD,CACjE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,qDAAqD,CAC7D,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AA/HD,4EA+HC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NovuCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
export declare function adminTestIdempotency(client: NovuCore, idempotencyTestingDto: components.IdempotencyTestingDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerTestIdempotencyResponse, errors.ErrorDto | errors.ErrorDto | errors.ValidationErrorDto | errors.ErrorDto | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
-
//# sourceMappingURL=adminTestIdempotency.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminTestIdempotency.d.ts","sourceRoot":"","sources":["../src/funcs/adminTestIdempotency.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,QAAQ,EAChB,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,EACvD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,QAAQ,GACf,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA+IA"}
|