Skip to content

Commit 8cd8ab2

Browse files
committed
add documentation ignore to healthcheck
1 parent 66a5935 commit 8cd8ab2

File tree

119 files changed

+255
-3681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+255
-3681
lines changed

.speakeasy/gen.lock

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
lockVersion: 2.0.0
22
id: 6bff3a53-3f0b-40b4-942f-ff70dc583ae5
33
management:
4-
docChecksum: 72ee652703e7c5bf6e49092765924b4d
4+
docChecksum: e13e9f257b632aa7d9006e0ca6bac271
55
docVersion: "1.0"
66
speakeasyVersion: 1.469.0
77
generationVersion: 2.493.21
8-
releaseVersion: 0.0.5
9-
configChecksum: ff92708e8fbd60ee1e9fda95b454414a
8+
releaseVersion: 0.1.0
9+
configChecksum: f2665e7189365830c6eac6afd60624cd
1010
published: true
1111
features:
1212
typescript:
1313
acceptHeaders: 2.81.2
1414
additionalDependencies: 0.1.0
15-
additionalProperties: 0.1.1
1615
constsAndDefaults: 0.1.11
1716
core: 3.18.16
1817
defaultEnabledRetries: 0.1.0
@@ -119,9 +118,6 @@ generatedFiles:
119118
- docs/models/components/filtertopicsresponsedto.md
120119
- docs/models/components/getsubscriberpreferencesresponsedto.md
121120
- docs/models/components/gettopicresponsedto.md
122-
- docs/models/components/idempotencetestingresponse.md
123-
- docs/models/components/idempotencybehaviorenum.md
124-
- docs/models/components/idempotencytestingdto.md
125121
- docs/models/components/integrationresponsedto.md
126122
- docs/models/components/issues.md
127123
- docs/models/components/markallmessageasrequestdto.md
@@ -228,17 +224,11 @@ generatedFiles:
228224
- docs/models/components/workflowresponse.md
229225
- docs/models/components/workflowresponsedata.md
230226
- docs/models/components/workflowtostepcontrolvaluesdto.md
231-
- docs/models/errors/details.md
232227
- docs/models/errors/errordto.md
233228
- docs/models/errors/errors.md
234-
- docs/models/errors/errort.md
235-
- docs/models/errors/healthcontrollerhealthcheckresponsebody.md
236-
- docs/models/errors/info.md
237229
- docs/models/errors/validationerrordto.md
238230
- docs/models/errors/value.md
239231
- docs/models/operations/channel.md
240-
- docs/models/operations/details.md
241-
- docs/models/operations/errort.md
242232
- docs/models/operations/eventscontrollerbroadcasteventtoallrequest.md
243233
- docs/models/operations/eventscontrollerbroadcasteventtoallresponse.md
244234
- docs/models/operations/eventscontrollercancelrequest.md
@@ -247,13 +237,6 @@ generatedFiles:
247237
- docs/models/operations/eventscontrollertriggerbulkresponse.md
248238
- docs/models/operations/eventscontrollertriggerrequest.md
249239
- docs/models/operations/eventscontrollertriggerresponse.md
250-
- docs/models/operations/healthcontrollergeneraterandomnumberrequest.md
251-
- docs/models/operations/healthcontrollergeneraterandomnumberresponse.md
252-
- docs/models/operations/healthcontrollerhealthcheckrequest.md
253-
- docs/models/operations/healthcontrollerhealthcheckresponsebody.md
254-
- docs/models/operations/healthcontrollertestidempotencyrequest.md
255-
- docs/models/operations/healthcontrollertestidempotencyresponse.md
256-
- docs/models/operations/info.md
257240
- docs/models/operations/integrationscontrollercreateintegrationrequest.md
258241
- docs/models/operations/integrationscontrollercreateintegrationresponse.md
259242
- docs/models/operations/integrationscontrollergetactiveintegrationsrequest.md
@@ -362,8 +345,6 @@ generatedFiles:
362345
- package.json
363346
- src/core.ts
364347
- src/funcs/cancel.ts
365-
- src/funcs/generateRandomNumber.ts
366-
- src/funcs/healthControllerHealthCheck.ts
367348
- src/funcs/integrationsCreate.ts
368349
- src/funcs/integrationsDelete.ts
369350
- src/funcs/integrationsList.ts
@@ -399,7 +380,6 @@ generatedFiles:
399380
- src/funcs/subscribersPropertiesUpdateOnlineFlag.ts
400381
- src/funcs/subscribersRetrieve.ts
401382
- src/funcs/subscribersUpdate.ts
402-
- src/funcs/testIdempotency.ts
403383
- src/funcs/topicsCreate.ts
404384
- src/funcs/topicsDelete.ts
405385
- src/funcs/topicsList.ts
@@ -483,9 +463,6 @@ generatedFiles:
483463
- src/models/components/filtertopicsresponsedto.ts
484464
- src/models/components/getsubscriberpreferencesresponsedto.ts
485465
- src/models/components/gettopicresponsedto.ts
486-
- src/models/components/idempotencetestingresponse.ts
487-
- src/models/components/idempotencybehaviorenum.ts
488-
- src/models/components/idempotencytestingdto.ts
489466
- src/models/components/index.ts
490467
- src/models/components/integrationresponsedto.ts
491468
- src/models/components/markallmessageasrequestdto.ts
@@ -553,7 +530,6 @@ generatedFiles:
553530
- src/models/components/workflowresponse.ts
554531
- src/models/components/workflowtostepcontrolvaluesdto.ts
555532
- src/models/errors/errordto.ts
556-
- src/models/errors/healthcontrollerhealthcheck.ts
557533
- src/models/errors/httpclienterrors.ts
558534
- src/models/errors/index.ts
559535
- src/models/errors/sdkerror.ts
@@ -563,9 +539,6 @@ generatedFiles:
563539
- src/models/operations/eventscontrollercancel.ts
564540
- src/models/operations/eventscontrollertrigger.ts
565541
- src/models/operations/eventscontrollertriggerbulk.ts
566-
- src/models/operations/healthcontrollergeneraterandomnumber.ts
567-
- src/models/operations/healthcontrollerhealthcheck.ts
568-
- src/models/operations/healthcontrollertestidempotency.ts
569542
- src/models/operations/index.ts
570543
- src/models/operations/integrationscontrollercreateintegration.ts
571544
- src/models/operations/integrationscontrollergetactiveintegrations.ts

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
typescript:
16-
version: 0.0.5
16+
version: 0.1.0
1717
additionalDependencies:
1818
dependencies: {}
1919
devDependencies: {}

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.469.0
22
sources:
33
json-development:
44
sourceNamespace: json-development
5-
sourceRevisionDigest: sha256:aa51e11f7c7f58ba6c9aae991e0c9094ae43574b3b560d545234933069348dbb
6-
sourceBlobDigest: sha256:d94a02331a5697ba9e62b4762064fc64b2245960b3eba89e2ab7f2cd75abd8dd
5+
sourceRevisionDigest: sha256:f86a7c4644f11cb6d3c8f6f55be75b5176a72b6796ffb020f3f74e4f56ba39d4
6+
sourceBlobDigest: sha256:9f11c13a8f35483564a47ef29be554048b0cc6c518f6bc21ec2ce8995e9b59bb
77
tags:
88
- latest
99
- "1.0"
1010
targets:
1111
my-first-target:
1212
source: json-development
1313
sourceNamespace: json-development
14-
sourceRevisionDigest: sha256:aa51e11f7c7f58ba6c9aae991e0c9094ae43574b3b560d545234933069348dbb
15-
sourceBlobDigest: sha256:d94a02331a5697ba9e62b4762064fc64b2245960b3eba89e2ab7f2cd75abd8dd
14+
sourceRevisionDigest: sha256:f86a7c4644f11cb6d3c8f6f55be75b5176a72b6796ffb020f3f74e4f56ba39d4
15+
sourceBlobDigest: sha256:9f11c13a8f35483564a47ef29be554048b0cc6c518f6bc21ec2ce8995e9b59bb
1616
codeSamplesNamespace: code-samples-typescript
17-
codeSamplesRevisionDigest: sha256:963f699df6bf82e256a5fcdfbafbc6dae6c910aafd770a105788de33f3e02018
17+
codeSamplesRevisionDigest: sha256:d2ee210eda22dfe3f16ea4c82effabf47936ef8afad1ff6403e12b0de808a03a
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

README.md

Lines changed: 105 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ run();
247247

248248
### [Novu SDK](docs/sdks/novu/README.md)
249249

250-
* [healthControllerHealthCheck](docs/sdks/novu/README.md#healthcontrollerhealthcheck)
251-
* [testIdempotency](docs/sdks/novu/README.md#testidempotency)
252-
* [generateRandomNumber](docs/sdks/novu/README.md#generaterandomnumber)
253250
* [trigger](docs/sdks/novu/README.md#trigger) - Trigger event
254251
* [triggerBulk](docs/sdks/novu/README.md#triggerbulk) - Bulk trigger event
255252
* [triggerBroadcast](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
@@ -330,8 +327,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
330327
<summary>Available standalone functions</summary>
331328

332329
- [`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)
335330
- [`integrationsCreate`](docs/sdks/integrations/README.md#create) - Create integration
336331
- [`integrationsDelete`](docs/sdks/integrations/README.md#delete) - Delete integration
337332
- [`integrationsList`](docs/sdks/integrations/README.md#list) - Get integrations
@@ -367,7 +362,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
367362
- [`subscribersPropertiesUpdateOnlineFlag`](docs/sdks/properties/README.md#updateonlineflag) - Update subscriber online status
368363
- [`subscribersRetrieve`](docs/sdks/subscribers/README.md#retrieve) - Get subscriber
369364
- [`subscribersUpdate`](docs/sdks/subscribers/README.md#update) - Update subscriber
370-
- [`testIdempotency`](docs/sdks/novu/README.md#testidempotency)
371365
- [`topicsCreate`](docs/sdks/topics/README.md#create) - Topic creation
372366
- [`topicsDelete`](docs/sdks/topics/README.md#delete) - Delete topic
373367
- [`topicsList`](docs/sdks/topics/README.md#list) - Get topic list filtered
@@ -419,20 +413,24 @@ run();
419413
<!-- Start Error Handling [errors] -->
420414
## Error Handling
421415

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:
416+
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 `trigger` method may throw the following errors:
423417

424-
| Error Type | Status Code | Content Type |
425-
| ---------------------------------------------- | ----------- | ---------------- |
426-
| errors.HealthControllerHealthCheckResponseBody | 503 | application/json |
427-
| errors.SDKError | 4XX, 5XX | \*/\* |
418+
| Error Type | Status Code | Content Type |
419+
| ------------------------- | -------------------------------------- | ---------------- |
420+
| errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
421+
| errors.ErrorDto | 414 | application/json |
422+
| errors.ValidationErrorDto | 422 | application/json |
423+
| errors.ErrorDto | 500 | application/json |
424+
| errors.SDKError | 4XX, 5XX | \*/\* |
428425

429426
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
430427

431428
```typescript
432429
import { Novu } from "@novu/api";
433430
import {
434-
HealthControllerHealthCheckResponseBody,
431+
ErrorDto,
435432
SDKValidationError,
433+
ValidationErrorDto,
436434
} from "@novu/api/models/errors";
437435

438436
const novu = new Novu({
@@ -442,7 +440,19 @@ const novu = new Novu({
442440
async function run() {
443441
let result;
444442
try {
445-
result = await novu.healthControllerHealthCheck();
443+
result = await novu.trigger({
444+
name: "workflow_identifier",
445+
to: [
446+
{
447+
topicKey: "<value>",
448+
type: "Topic",
449+
},
450+
{
451+
topicKey: "<value>",
452+
type: "Topic",
453+
},
454+
],
455+
});
446456

447457
// Handle the result
448458
console.log(result);
@@ -456,8 +466,23 @@ async function run() {
456466
console.error(err.rawValue);
457467
return;
458468
}
459-
case (err instanceof HealthControllerHealthCheckResponseBody): {
460-
// Handle err.data$: HealthControllerHealthCheckResponseBodyData
469+
case (err instanceof ErrorDto): {
470+
// Handle err.data$: ErrorDtoData
471+
console.error(err);
472+
return;
473+
}
474+
case (err instanceof ErrorDto): {
475+
// Handle err.data$: ErrorDtoData
476+
console.error(err);
477+
return;
478+
}
479+
case (err instanceof ValidationErrorDto): {
480+
// Handle err.data$: ValidationErrorDtoData
481+
console.error(err);
482+
return;
483+
}
484+
case (err instanceof ErrorDto): {
485+
// Handle err.data$: ErrorDtoData
461486
console.error(err);
462487
return;
463488
}
@@ -509,7 +534,19 @@ const novu = new Novu({
509534
});
510535

511536
async function run() {
512-
const result = await novu.healthControllerHealthCheck();
537+
const result = await novu.trigger({
538+
name: "workflow_identifier",
539+
to: [
540+
{
541+
topicKey: "<value>",
542+
type: "Topic",
543+
},
544+
{
545+
topicKey: "<value>",
546+
type: "Topic",
547+
},
548+
],
549+
});
513550

514551
// Handle the result
515552
console.log(result);
@@ -531,7 +568,19 @@ const novu = new Novu({
531568
});
532569

533570
async function run() {
534-
const result = await novu.healthControllerHealthCheck();
571+
const result = await novu.trigger({
572+
name: "workflow_identifier",
573+
to: [
574+
{
575+
topicKey: "<value>",
576+
type: "Topic",
577+
},
578+
{
579+
topicKey: "<value>",
580+
type: "Topic",
581+
},
582+
],
583+
});
535584

536585
// Handle the result
537586
console.log(result);
@@ -611,7 +660,19 @@ const novu = new Novu({
611660
});
612661

613662
async function run() {
614-
const result = await novu.healthControllerHealthCheck();
663+
const result = await novu.trigger({
664+
name: "workflow_identifier",
665+
to: [
666+
{
667+
topicKey: "<value>",
668+
type: "Topic",
669+
},
670+
{
671+
topicKey: "<value>",
672+
type: "Topic",
673+
},
674+
],
675+
});
615676

616677
// Handle the result
617678
console.log(result);
@@ -636,7 +697,19 @@ const novu = new Novu({
636697
});
637698

638699
async function run() {
639-
const result = await novu.healthControllerHealthCheck({
700+
const result = await novu.trigger({
701+
name: "workflow_identifier",
702+
to: [
703+
{
704+
topicKey: "<value>",
705+
type: "Topic",
706+
},
707+
{
708+
topicKey: "<value>",
709+
type: "Topic",
710+
},
711+
],
712+
}, {
640713
retries: {
641714
strategy: "backoff",
642715
backoff: {
@@ -676,7 +749,19 @@ const novu = new Novu({
676749
});
677750

678751
async function run() {
679-
const result = await novu.healthControllerHealthCheck();
752+
const result = await novu.trigger({
753+
name: "workflow_identifier",
754+
to: [
755+
{
756+
topicKey: "<value>",
757+
type: "Topic",
758+
},
759+
{
760+
topicKey: "<value>",
761+
type: "Topic",
762+
},
763+
],
764+
});
680765

681766
// Handle the result
682767
console.log(result);

docs/models/components/activitiesresponsedto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { ActivitiesResponseDto } from "@novu/api/models/components";
88
let value: ActivitiesResponseDto = {
99
hasMore: false,
1010
data: [],
11-
pageSize: 8289.4,
12-
page: 46.95,
11+
pageSize: 6674.11,
12+
page: 1317.97,
1313
};
1414
```
1515

docs/models/components/activitygraphstatesresponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { ActivityGraphStatesResponse } from "@novu/api/models/components";
77

88
let value: ActivityGraphStatesResponse = {
99
id: "<id>",
10-
count: 8919.24,
10+
count: 5743.25,
1111
templates: [
1212
"<value>",
1313
],
1414
channels: [
15-
"push",
15+
"chat",
1616
],
1717
};
1818
```

docs/models/components/activitynotificationexecutiondetailresponsedto.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { ActivityNotificationExecutionDetailResponseDto } from "@novu/api/models
77

88
let value: ActivityNotificationExecutionDetailResponseDto = {
99
id: "<id>",
10-
status: "Pending",
10+
status: "ReadConfirmation",
1111
detail: "<value>",
1212
isRetry: false,
1313
isTest: false,
14-
providerId: "mailgun",
15-
source: "Internal",
14+
providerId: "ring-central",
15+
source: "Payload",
1616
};
1717
```
1818

0 commit comments

Comments
 (0)