@novu/api 0.0.4 → 0.0.5
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 +20 -114
- package/docs/sdks/novu/README.md +227 -0
- package/funcs/{adminGenerateRandomNumber.d.ts → generateRandomNumber.d.ts} +2 -2
- package/funcs/generateRandomNumber.d.ts.map +1 -0
- package/funcs/{adminGenerateRandomNumber.js → generateRandomNumber.js} +4 -4
- package/funcs/generateRandomNumber.js.map +1 -0
- package/funcs/{adminHealthControllerHealthCheck.d.ts → healthControllerHealthCheck.d.ts} +2 -2
- package/funcs/healthControllerHealthCheck.d.ts.map +1 -0
- package/funcs/{adminHealthControllerHealthCheck.js → healthControllerHealthCheck.js} +4 -4
- package/funcs/healthControllerHealthCheck.js.map +1 -0
- package/funcs/{adminTestIdempotency.d.ts → testIdempotency.d.ts} +2 -2
- package/funcs/testIdempotency.d.ts.map +1 -0
- package/funcs/{adminTestIdempotency.js → testIdempotency.js} +4 -4
- package/funcs/testIdempotency.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +12 -4
- package/sdk/sdk.js.map +1 -1
- package/sources/json-development.json +1 -10
- package/src/funcs/{adminGenerateRandomNumber.ts → generateRandomNumber.ts} +1 -1
- package/src/funcs/{adminHealthControllerHealthCheck.ts → healthControllerHealthCheck.ts} +1 -1
- package/src/funcs/{adminTestIdempotency.ts → testIdempotency.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/sdk.ts +38 -6
- package/docs/sdks/admin/README.md +0 -234
- package/funcs/adminGenerateRandomNumber.d.ts.map +0 -1
- package/funcs/adminGenerateRandomNumber.js.map +0 -1
- package/funcs/adminHealthControllerHealthCheck.d.ts.map +0 -1
- package/funcs/adminHealthControllerHealthCheck.js.map +0 -1
- package/funcs/adminTestIdempotency.d.ts.map +0 -1
- package/funcs/adminTestIdempotency.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/sdk/admin.ts +0 -48
package/README.md
CHANGED
|
@@ -216,12 +216,6 @@ run();
|
|
|
216
216
|
<details open>
|
|
217
217
|
<summary>Available methods</summary>
|
|
218
218
|
|
|
219
|
-
### [admin](docs/sdks/admin/README.md)
|
|
220
|
-
|
|
221
|
-
* [healthControllerHealthCheck](docs/sdks/admin/README.md#healthcontrollerhealthcheck)
|
|
222
|
-
* [testIdempotency](docs/sdks/admin/README.md#testidempotency)
|
|
223
|
-
* [generateRandomNumber](docs/sdks/admin/README.md#generaterandomnumber)
|
|
224
|
-
|
|
225
219
|
### [integrations](docs/sdks/integrations/README.md)
|
|
226
220
|
|
|
227
221
|
* [list](docs/sdks/integrations/README.md#list) - Get integrations
|
|
@@ -253,6 +247,9 @@ run();
|
|
|
253
247
|
|
|
254
248
|
### [Novu SDK](docs/sdks/novu/README.md)
|
|
255
249
|
|
|
250
|
+
* [healthControllerHealthCheck](docs/sdks/novu/README.md#healthcontrollerhealthcheck)
|
|
251
|
+
* [testIdempotency](docs/sdks/novu/README.md#testidempotency)
|
|
252
|
+
* [generateRandomNumber](docs/sdks/novu/README.md#generaterandomnumber)
|
|
256
253
|
* [trigger](docs/sdks/novu/README.md#trigger) - Trigger event
|
|
257
254
|
* [triggerBulk](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event
|
|
258
255
|
* [triggerBroadcast](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
|
|
@@ -332,10 +329,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
332
329
|
|
|
333
330
|
<summary>Available standalone functions</summary>
|
|
334
331
|
|
|
335
|
-
- [`adminGenerateRandomNumber`](docs/sdks/admin/README.md#generaterandomnumber)
|
|
336
|
-
- [`adminHealthControllerHealthCheck`](docs/sdks/admin/README.md#healthcontrollerhealthcheck)
|
|
337
|
-
- [`adminTestIdempotency`](docs/sdks/admin/README.md#testidempotency)
|
|
338
332
|
- [`cancel`](docs/sdks/novu/README.md#cancel) - Cancel triggered event
|
|
333
|
+
- [`generateRandomNumber`](docs/sdks/novu/README.md#generaterandomnumber)
|
|
334
|
+
- [`healthControllerHealthCheck`](docs/sdks/novu/README.md#healthcontrollerhealthcheck)
|
|
339
335
|
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create integration
|
|
340
336
|
- [`integrationsDelete`](docs/sdks/integrations/README.md#delete) - Delete integration
|
|
341
337
|
- [`integrationsList`](docs/sdks/integrations/README.md#list) - Get integrations
|
|
@@ -371,6 +367,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
371
367
|
- [`subscribersPropertiesUpdateOnlineFlag`](docs/sdks/properties/README.md#updateonlineflag) - Update subscriber online status
|
|
372
368
|
- [`subscribersRetrieve`](docs/sdks/subscribers/README.md#retrieve) - Get subscriber
|
|
373
369
|
- [`subscribersUpdate`](docs/sdks/subscribers/README.md#update) - Update subscriber
|
|
370
|
+
- [`testIdempotency`](docs/sdks/novu/README.md#testidempotency)
|
|
374
371
|
- [`topicsCreate`](docs/sdks/topics/README.md#create) - Topic creation
|
|
375
372
|
- [`topicsDelete`](docs/sdks/topics/README.md#delete) - Delete topic
|
|
376
373
|
- [`topicsList`](docs/sdks/topics/README.md#list) - Get topic list filtered
|
|
@@ -422,24 +419,20 @@ run();
|
|
|
422
419
|
<!-- Start Error Handling [errors] -->
|
|
423
420
|
## Error Handling
|
|
424
421
|
|
|
425
|
-
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `
|
|
422
|
+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `healthControllerHealthCheck` method may throw the following errors:
|
|
426
423
|
|
|
427
|
-
| Error Type
|
|
428
|
-
|
|
|
429
|
-
| errors.
|
|
430
|
-
| errors.
|
|
431
|
-
| errors.ValidationErrorDto | 422 | application/json |
|
|
432
|
-
| errors.ErrorDto | 500 | application/json |
|
|
433
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
424
|
+
| Error Type | Status Code | Content Type |
|
|
425
|
+
| ---------------------------------------------- | ----------- | ---------------- |
|
|
426
|
+
| errors.HealthControllerHealthCheckResponseBody | 503 | application/json |
|
|
427
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
434
428
|
|
|
435
429
|
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
|
|
436
430
|
|
|
437
431
|
```typescript
|
|
438
432
|
import { Novu } from "@novu/api";
|
|
439
433
|
import {
|
|
440
|
-
|
|
434
|
+
HealthControllerHealthCheckResponseBody,
|
|
441
435
|
SDKValidationError,
|
|
442
|
-
ValidationErrorDto,
|
|
443
436
|
} from "@novu/api/models/errors";
|
|
444
437
|
|
|
445
438
|
const novu = new Novu({
|
|
@@ -449,19 +442,7 @@ const novu = new Novu({
|
|
|
449
442
|
async function run() {
|
|
450
443
|
let result;
|
|
451
444
|
try {
|
|
452
|
-
result = await novu.
|
|
453
|
-
name: "workflow_identifier",
|
|
454
|
-
to: [
|
|
455
|
-
{
|
|
456
|
-
topicKey: "<value>",
|
|
457
|
-
type: "Topic",
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
topicKey: "<value>",
|
|
461
|
-
type: "Topic",
|
|
462
|
-
},
|
|
463
|
-
],
|
|
464
|
-
});
|
|
445
|
+
result = await novu.healthControllerHealthCheck();
|
|
465
446
|
|
|
466
447
|
// Handle the result
|
|
467
448
|
console.log(result);
|
|
@@ -475,23 +456,8 @@ async function run() {
|
|
|
475
456
|
console.error(err.rawValue);
|
|
476
457
|
return;
|
|
477
458
|
}
|
|
478
|
-
case (err instanceof
|
|
479
|
-
// Handle err.data$:
|
|
480
|
-
console.error(err);
|
|
481
|
-
return;
|
|
482
|
-
}
|
|
483
|
-
case (err instanceof ErrorDto): {
|
|
484
|
-
// Handle err.data$: ErrorDtoData
|
|
485
|
-
console.error(err);
|
|
486
|
-
return;
|
|
487
|
-
}
|
|
488
|
-
case (err instanceof ValidationErrorDto): {
|
|
489
|
-
// Handle err.data$: ValidationErrorDtoData
|
|
490
|
-
console.error(err);
|
|
491
|
-
return;
|
|
492
|
-
}
|
|
493
|
-
case (err instanceof ErrorDto): {
|
|
494
|
-
// Handle err.data$: ErrorDtoData
|
|
459
|
+
case (err instanceof HealthControllerHealthCheckResponseBody): {
|
|
460
|
+
// Handle err.data$: HealthControllerHealthCheckResponseBodyData
|
|
495
461
|
console.error(err);
|
|
496
462
|
return;
|
|
497
463
|
}
|
|
@@ -543,19 +509,7 @@ const novu = new Novu({
|
|
|
543
509
|
});
|
|
544
510
|
|
|
545
511
|
async function run() {
|
|
546
|
-
const result = await novu.
|
|
547
|
-
name: "workflow_identifier",
|
|
548
|
-
to: [
|
|
549
|
-
{
|
|
550
|
-
topicKey: "<value>",
|
|
551
|
-
type: "Topic",
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
topicKey: "<value>",
|
|
555
|
-
type: "Topic",
|
|
556
|
-
},
|
|
557
|
-
],
|
|
558
|
-
});
|
|
512
|
+
const result = await novu.healthControllerHealthCheck();
|
|
559
513
|
|
|
560
514
|
// Handle the result
|
|
561
515
|
console.log(result);
|
|
@@ -577,19 +531,7 @@ const novu = new Novu({
|
|
|
577
531
|
});
|
|
578
532
|
|
|
579
533
|
async function run() {
|
|
580
|
-
const result = await novu.
|
|
581
|
-
name: "workflow_identifier",
|
|
582
|
-
to: [
|
|
583
|
-
{
|
|
584
|
-
topicKey: "<value>",
|
|
585
|
-
type: "Topic",
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
topicKey: "<value>",
|
|
589
|
-
type: "Topic",
|
|
590
|
-
},
|
|
591
|
-
],
|
|
592
|
-
});
|
|
534
|
+
const result = await novu.healthControllerHealthCheck();
|
|
593
535
|
|
|
594
536
|
// Handle the result
|
|
595
537
|
console.log(result);
|
|
@@ -669,19 +611,7 @@ const novu = new Novu({
|
|
|
669
611
|
});
|
|
670
612
|
|
|
671
613
|
async function run() {
|
|
672
|
-
const result = await novu.
|
|
673
|
-
name: "workflow_identifier",
|
|
674
|
-
to: [
|
|
675
|
-
{
|
|
676
|
-
topicKey: "<value>",
|
|
677
|
-
type: "Topic",
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
topicKey: "<value>",
|
|
681
|
-
type: "Topic",
|
|
682
|
-
},
|
|
683
|
-
],
|
|
684
|
-
});
|
|
614
|
+
const result = await novu.healthControllerHealthCheck();
|
|
685
615
|
|
|
686
616
|
// Handle the result
|
|
687
617
|
console.log(result);
|
|
@@ -706,19 +636,7 @@ const novu = new Novu({
|
|
|
706
636
|
});
|
|
707
637
|
|
|
708
638
|
async function run() {
|
|
709
|
-
const result = await novu.
|
|
710
|
-
name: "workflow_identifier",
|
|
711
|
-
to: [
|
|
712
|
-
{
|
|
713
|
-
topicKey: "<value>",
|
|
714
|
-
type: "Topic",
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
topicKey: "<value>",
|
|
718
|
-
type: "Topic",
|
|
719
|
-
},
|
|
720
|
-
],
|
|
721
|
-
}, {
|
|
639
|
+
const result = await novu.healthControllerHealthCheck({
|
|
722
640
|
retries: {
|
|
723
641
|
strategy: "backoff",
|
|
724
642
|
backoff: {
|
|
@@ -758,19 +676,7 @@ const novu = new Novu({
|
|
|
758
676
|
});
|
|
759
677
|
|
|
760
678
|
async function run() {
|
|
761
|
-
const result = await novu.
|
|
762
|
-
name: "workflow_identifier",
|
|
763
|
-
to: [
|
|
764
|
-
{
|
|
765
|
-
topicKey: "<value>",
|
|
766
|
-
type: "Topic",
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
topicKey: "<value>",
|
|
770
|
-
type: "Topic",
|
|
771
|
-
},
|
|
772
|
-
],
|
|
773
|
-
});
|
|
679
|
+
const result = await novu.healthControllerHealthCheck();
|
|
774
680
|
|
|
775
681
|
// Handle the result
|
|
776
682
|
console.log(result);
|
package/docs/sdks/novu/README.md
CHANGED
|
@@ -9,11 +9,238 @@ Novu Documentation
|
|
|
9
9
|
|
|
10
10
|
### Available Operations
|
|
11
11
|
|
|
12
|
+
* [healthControllerHealthCheck](#healthcontrollerhealthcheck)
|
|
13
|
+
* [testIdempotency](#testidempotency)
|
|
14
|
+
* [generateRandomNumber](#generaterandomnumber)
|
|
12
15
|
* [trigger](#trigger) - Trigger event
|
|
13
16
|
* [triggerBulk](#triggerbulk) - Bulk trigger event
|
|
14
17
|
* [triggerBroadcast](#triggerbroadcast) - Broadcast event to all
|
|
15
18
|
* [cancel](#cancel) - Cancel triggered event
|
|
16
19
|
|
|
20
|
+
## healthControllerHealthCheck
|
|
21
|
+
|
|
22
|
+
### Example Usage
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { Novu } from "@novu/api";
|
|
26
|
+
|
|
27
|
+
const novu = new Novu({
|
|
28
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
const result = await novu.healthControllerHealthCheck();
|
|
33
|
+
|
|
34
|
+
// Handle the result
|
|
35
|
+
console.log(result);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
run();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Standalone function
|
|
42
|
+
|
|
43
|
+
The standalone function version of this method:
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
47
|
+
import { healthControllerHealthCheck } from "@novu/api/funcs/healthControllerHealthCheck.js";
|
|
48
|
+
|
|
49
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
50
|
+
// You can create one instance of it to use across an application.
|
|
51
|
+
const novu = new NovuCore({
|
|
52
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
async function run() {
|
|
56
|
+
const res = await healthControllerHealthCheck(novu);
|
|
57
|
+
|
|
58
|
+
if (!res.ok) {
|
|
59
|
+
throw res.error;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const { value: result } = res;
|
|
63
|
+
|
|
64
|
+
// Handle the result
|
|
65
|
+
console.log(result);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
run();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Parameter | Type | Required | Description |
|
|
74
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
76
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
+
| `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. |
|
|
78
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
+
|
|
80
|
+
### Response
|
|
81
|
+
|
|
82
|
+
**Promise\<[operations.HealthControllerHealthCheckResponseBody](../../models/operations/healthcontrollerhealthcheckresponsebody.md)\>**
|
|
83
|
+
|
|
84
|
+
### Errors
|
|
85
|
+
|
|
86
|
+
| Error Type | Status Code | Content Type |
|
|
87
|
+
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
|
|
88
|
+
| errors.HealthControllerHealthCheckResponseBody | 503 | application/json |
|
|
89
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
90
|
+
|
|
91
|
+
## testIdempotency
|
|
92
|
+
|
|
93
|
+
### Example Usage
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { Novu } from "@novu/api";
|
|
97
|
+
|
|
98
|
+
const novu = new Novu({
|
|
99
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
async function run() {
|
|
103
|
+
const result = await novu.testIdempotency({
|
|
104
|
+
expectedBehavior: "IMMEDIATE_EXCEPTION",
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
// Handle the result
|
|
108
|
+
console.log(result);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
run();
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Standalone function
|
|
115
|
+
|
|
116
|
+
The standalone function version of this method:
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
120
|
+
import { testIdempotency } from "@novu/api/funcs/testIdempotency.js";
|
|
121
|
+
|
|
122
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
123
|
+
// You can create one instance of it to use across an application.
|
|
124
|
+
const novu = new NovuCore({
|
|
125
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
async function run() {
|
|
129
|
+
const res = await testIdempotency(novu, {
|
|
130
|
+
expectedBehavior: "IMMEDIATE_EXCEPTION",
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
if (!res.ok) {
|
|
134
|
+
throw res.error;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const { value: result } = res;
|
|
138
|
+
|
|
139
|
+
// Handle the result
|
|
140
|
+
console.log(result);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
run();
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
| Parameter | Type | Required | Description |
|
|
149
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
150
|
+
| `idempotencyTestingDto` | [components.IdempotencyTestingDto](../../models/components/idempotencytestingdto.md) | :heavy_check_mark: | N/A |
|
|
151
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
152
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
153
|
+
| `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. |
|
|
154
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
155
|
+
|
|
156
|
+
### Response
|
|
157
|
+
|
|
158
|
+
**Promise\<[operations.HealthControllerTestIdempotencyResponse](../../models/operations/healthcontrollertestidempotencyresponse.md)\>**
|
|
159
|
+
|
|
160
|
+
### Errors
|
|
161
|
+
|
|
162
|
+
| Error Type | Status Code | Content Type |
|
|
163
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
164
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
165
|
+
| errors.ErrorDto | 414 | application/json |
|
|
166
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
167
|
+
| errors.ErrorDto | 500 | application/json |
|
|
168
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
169
|
+
|
|
170
|
+
## generateRandomNumber
|
|
171
|
+
|
|
172
|
+
### Example Usage
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import { Novu } from "@novu/api";
|
|
176
|
+
|
|
177
|
+
const novu = new Novu({
|
|
178
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
async function run() {
|
|
182
|
+
const result = await novu.generateRandomNumber();
|
|
183
|
+
|
|
184
|
+
// Handle the result
|
|
185
|
+
console.log(result);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
run();
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Standalone function
|
|
192
|
+
|
|
193
|
+
The standalone function version of this method:
|
|
194
|
+
|
|
195
|
+
```typescript
|
|
196
|
+
import { NovuCore } from "@novu/api/core.js";
|
|
197
|
+
import { generateRandomNumber } from "@novu/api/funcs/generateRandomNumber.js";
|
|
198
|
+
|
|
199
|
+
// Use `NovuCore` for best tree-shaking performance.
|
|
200
|
+
// You can create one instance of it to use across an application.
|
|
201
|
+
const novu = new NovuCore({
|
|
202
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
async function run() {
|
|
206
|
+
const res = await generateRandomNumber(novu);
|
|
207
|
+
|
|
208
|
+
if (!res.ok) {
|
|
209
|
+
throw res.error;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const { value: result } = res;
|
|
213
|
+
|
|
214
|
+
// Handle the result
|
|
215
|
+
console.log(result);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
run();
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
| Parameter | Type | Required | Description |
|
|
224
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
225
|
+
| `idempotencyKey` | *string* | :heavy_minus_sign: | A header for idempotency purposes |
|
|
226
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
227
|
+
| `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. |
|
|
228
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
229
|
+
|
|
230
|
+
### Response
|
|
231
|
+
|
|
232
|
+
**Promise\<[operations.HealthControllerGenerateRandomNumberResponse](../../models/operations/healthcontrollergeneraterandomnumberresponse.md)\>**
|
|
233
|
+
|
|
234
|
+
### Errors
|
|
235
|
+
|
|
236
|
+
| Error Type | Status Code | Content Type |
|
|
237
|
+
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
|
|
238
|
+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
|
|
239
|
+
| errors.ErrorDto | 414 | application/json |
|
|
240
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
241
|
+
| errors.ErrorDto | 500 | application/json |
|
|
242
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
243
|
+
|
|
17
244
|
## trigger
|
|
18
245
|
|
|
19
246
|
|
|
@@ -6,5 +6,5 @@ import { SDKError } from "../models/errors/sdkerror.js";
|
|
|
6
6
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
|
-
export declare function
|
|
10
|
-
//# sourceMappingURL=
|
|
9
|
+
export declare function generateRandomNumber(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=generateRandomNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateRandomNumber.d.ts","sourceRoot":"","sources":["../src/funcs/generateRandomNumber.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,oBAAoB,CACxC,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"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.generateRandomNumber = void 0;
|
|
30
30
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
31
|
const M = __importStar(require("../lib/matchers.js"));
|
|
32
32
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
@@ -35,7 +35,7 @@ const security_js_1 = require("../lib/security.js");
|
|
|
35
35
|
const url_js_1 = require("../lib/url.js");
|
|
36
36
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
37
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function
|
|
38
|
+
async function generateRandomNumber(client, idempotencyKey, options) {
|
|
39
39
|
const input = {
|
|
40
40
|
idempotencyKey: idempotencyKey,
|
|
41
41
|
};
|
|
@@ -122,5 +122,5 @@ async function adminGenerateRandomNumber(client, idempotencyKey, options) {
|
|
|
122
122
|
}
|
|
123
123
|
return result;
|
|
124
124
|
}
|
|
125
|
-
exports.
|
|
126
|
-
//# sourceMappingURL=
|
|
125
|
+
exports.generateRandomNumber = generateRandomNumber;
|
|
126
|
+
//# sourceMappingURL=generateRandomNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateRandomNumber.js","sourceRoot":"","sources":["../src/funcs/generateRandomNumber.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,oBAAoB,CACxC,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;SAClE,KAAK,CAAC,KAAK,CAAC,EACjB,yBAAyB,CAC1B,CAAC;IACF,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,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,oDA6JC"}
|
|
@@ -6,5 +6,5 @@ import { SDKError } from "../models/errors/sdkerror.js";
|
|
|
6
6
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
|
-
export declare function
|
|
10
|
-
//# sourceMappingURL=
|
|
9
|
+
export declare function healthControllerHealthCheck(client: NovuCore, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<Result<operations.HealthControllerHealthCheckResponseBody, errors.HealthControllerHealthCheckResponseBody | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
10
|
+
//# sourceMappingURL=healthControllerHealthCheck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthControllerHealthCheck.d.ts","sourceRoot":"","sources":["../src/funcs/healthControllerHealthCheck.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,2BAA2B,CAC/C,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"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.healthControllerHealthCheck = void 0;
|
|
30
30
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
31
|
const M = __importStar(require("../lib/matchers.js"));
|
|
32
32
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
@@ -35,7 +35,7 @@ const security_js_1 = require("../lib/security.js");
|
|
|
35
35
|
const url_js_1 = require("../lib/url.js");
|
|
36
36
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
37
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function
|
|
38
|
+
async function healthControllerHealthCheck(client, idempotencyKey, options) {
|
|
39
39
|
const input = {
|
|
40
40
|
idempotencyKey: idempotencyKey,
|
|
41
41
|
};
|
|
@@ -105,5 +105,5 @@ async function adminHealthControllerHealthCheck(client, idempotencyKey, options)
|
|
|
105
105
|
}
|
|
106
106
|
return result;
|
|
107
107
|
}
|
|
108
|
-
exports.
|
|
109
|
-
//# sourceMappingURL=
|
|
108
|
+
exports.healthControllerHealthCheck = healthControllerHealthCheck;
|
|
109
|
+
//# sourceMappingURL=healthControllerHealthCheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthControllerHealthCheck.js","sourceRoot":"","sources":["../src/funcs/healthControllerHealthCheck.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,2BAA2B,CAC/C,MAAgB,EAChB,cAAmC,EACnC,OAAwB;IAcxB,MAAM,KAAK,GAAkD;QAC3D,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,iDAAiD,CA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D,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,kEA+HC"}
|
|
@@ -7,5 +7,5 @@ import { SDKError } from "../models/errors/sdkerror.js";
|
|
|
7
7
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
8
|
import * as operations from "../models/operations/index.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
|
-
export declare function
|
|
11
|
-
//# sourceMappingURL=
|
|
10
|
+
export declare function testIdempotency(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=testIdempotency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testIdempotency.d.ts","sourceRoot":"","sources":["../src/funcs/testIdempotency.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,eAAe,CACnC,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"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.testIdempotency = void 0;
|
|
30
30
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
31
|
const M = __importStar(require("../lib/matchers.js"));
|
|
32
32
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
@@ -35,7 +35,7 @@ const security_js_1 = require("../lib/security.js");
|
|
|
35
35
|
const url_js_1 = require("../lib/url.js");
|
|
36
36
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
37
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
-
async function
|
|
38
|
+
async function testIdempotency(client, idempotencyTestingDto, idempotencyKey, options) {
|
|
39
39
|
const input = {
|
|
40
40
|
idempotencyTestingDto: idempotencyTestingDto,
|
|
41
41
|
idempotencyKey: idempotencyKey,
|
|
@@ -125,5 +125,5 @@ async function adminTestIdempotency(client, idempotencyTestingDto, idempotencyKe
|
|
|
125
125
|
}
|
|
126
126
|
return result;
|
|
127
127
|
}
|
|
128
|
-
exports.
|
|
129
|
-
//# sourceMappingURL=
|
|
128
|
+
exports.testIdempotency = testIdempotency;
|
|
129
|
+
//# sourceMappingURL=testIdempotency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testIdempotency.js","sourceRoot":"","sources":["../src/funcs/testIdempotency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAA+D;AAC/D,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,eAAe,CACnC,MAAgB,EAChB,qBAAuD,EACvD,cAAmC,EACnC,OAAwB;IAiBxB,MAAM,KAAK,GAAsD;QAC/D,qBAAqB,EAAE,qBAAqB;QAC5C,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,qDAAqD,CAAC,KAAK,CACpE,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,qBAAqB,EAAE;QAC7D,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,mCAAmC,CAAC,EAAE,CAAC;IAE/D,MAAM,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