@zyphr-dev/node-sdk 0.1.42 → 0.1.43
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/dist/index.cjs +1763 -321
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2122 -643
- package/dist/index.d.ts +2122 -643
- package/dist/index.js +1582 -316
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +35 -1
- package/src/src/apis/AuthUserDirectoryApi.ts +54 -36
- package/src/src/apis/DomainsApi.ts +7 -6
- package/src/src/apis/InboxApi.ts +78 -54
- package/src/src/apis/TemplatesApi.ts +10 -6
- package/src/src/apis/WaaSDeliveriesApi.ts +17 -12
- package/src/src/apis/WaaSEndpointsApi.ts +50 -30
- package/src/src/apis/WaaSEventTypesApi.ts +17 -12
- package/src/src/models/CloseWaaSEndpointCircuit200Response.ts +88 -0
- package/src/src/models/CloseWaaSEndpointCircuit200ResponseData.ts +76 -0
- package/src/src/models/GetEndUserById200Response.ts +88 -0
- package/src/src/models/GetEndUserClaims200Response.ts +88 -0
- package/src/src/models/GetEndUserClaims200ResponseData.ts +65 -0
- package/src/src/models/GetSubscriberInboxPreferences200Response.ts +73 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseData.ts +88 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInner.ts +88 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataCategoriesInnerCategory.ts +97 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobal.ts +73 -0
- package/src/src/models/GetSubscriberInboxPreferences200ResponseDataGlobalChannelsInner.ts +94 -0
- package/src/src/models/GetSubscriberNotification200Response.ts +73 -0
- package/src/src/models/GetSubscriberUnreadCount200Response.ts +73 -0
- package/src/src/models/GetWaaSDelivery200Response.ts +88 -0
- package/src/src/models/GetWaaSEndpointCircuit200Response.ts +88 -0
- package/src/src/models/GetWaaSEndpointCircuit200ResponseData.ts +123 -0
- package/src/src/models/GetWaaSEndpointMetrics200Response.ts +88 -0
- package/src/src/models/GetWaaSEndpointMetrics200ResponseData.ts +99 -0
- package/src/src/models/GetWaaSEndpointMetrics200ResponseDataHealth.ts +87 -0
- package/src/src/models/GetWaaSEndpointMetrics200ResponseDataWindowsValue.ts +126 -0
- package/src/src/models/InviteEndUser200Response.ts +88 -0
- package/src/src/models/InviteEndUser200ResponseData.ts +81 -0
- package/src/src/models/ListEndUsers200Response.ts +88 -0
- package/src/src/models/{ListWorkflowExecutions200ResponseMeta.ts → ListEndUsers200ResponseMeta.ts} +15 -15
- package/src/src/models/ListWorkflowExecutions200Response.ts +11 -11
- package/src/src/models/MarkAllSubscriberNotificationsRead200Response.ts +73 -0
- package/src/src/models/RotateWaaSEndpointSecret200Response.ts +88 -0
- package/src/src/models/RotateWaaSEndpointSecret200ResponseData.ts +66 -0
- package/src/src/models/SendTemplateTestEmail202Response.ts +90 -0
- package/src/src/models/SendTemplateTestEmail202ResponseData.ts +120 -0
- package/src/src/models/SendTemplateTestEmail202ResponseMeta.ts +66 -0
- package/src/src/models/SmsListResponse.ts +10 -10
- package/src/src/models/UpdateSubscriberPreferences200Response.ts +73 -0
- package/src/src/models/UpdateSubscriberPreferences200ResponseData.ts +81 -0
- package/src/src/models/UpdateSubscriberPreferences200ResponseDataPreferencesInner.ts +102 -0
- package/src/src/models/UpdateWaaSEndpoint200Response.ts +88 -0
- package/src/src/models/UpdateWaaSEventType200Response.ts +88 -0
- package/src/src/models/index.ts +35 -1
package/src/src/apis/InboxApi.ts
CHANGED
|
@@ -18,10 +18,14 @@ import type {
|
|
|
18
18
|
ApiError,
|
|
19
19
|
GenerateSubscriberToken200Response,
|
|
20
20
|
GenerateSubscriberTokenRequest,
|
|
21
|
+
GetSubscriberInboxPreferences200Response,
|
|
22
|
+
GetSubscriberNotification200Response,
|
|
23
|
+
GetSubscriberUnreadCount200Response,
|
|
21
24
|
InboxListResponse,
|
|
22
25
|
InboxNotificationResponse,
|
|
23
26
|
MarkAllInboxReadRequest,
|
|
24
27
|
MarkAllReadResponse,
|
|
28
|
+
MarkAllSubscriberNotificationsRead200Response,
|
|
25
29
|
MarkAllSubscriberNotificationsReadRequest,
|
|
26
30
|
MarkInboxReadRequest,
|
|
27
31
|
PayloadTooLargeError,
|
|
@@ -30,6 +34,7 @@ import type {
|
|
|
30
34
|
SendInAppRequest,
|
|
31
35
|
SendInAppResponse,
|
|
32
36
|
UnreadCountResponse,
|
|
37
|
+
UpdateSubscriberPreferences200Response,
|
|
33
38
|
UpdateSubscriberPreferencesRequest,
|
|
34
39
|
} from '../models/index';
|
|
35
40
|
import {
|
|
@@ -39,6 +44,12 @@ import {
|
|
|
39
44
|
GenerateSubscriberToken200ResponseToJSON,
|
|
40
45
|
GenerateSubscriberTokenRequestFromJSON,
|
|
41
46
|
GenerateSubscriberTokenRequestToJSON,
|
|
47
|
+
GetSubscriberInboxPreferences200ResponseFromJSON,
|
|
48
|
+
GetSubscriberInboxPreferences200ResponseToJSON,
|
|
49
|
+
GetSubscriberNotification200ResponseFromJSON,
|
|
50
|
+
GetSubscriberNotification200ResponseToJSON,
|
|
51
|
+
GetSubscriberUnreadCount200ResponseFromJSON,
|
|
52
|
+
GetSubscriberUnreadCount200ResponseToJSON,
|
|
42
53
|
InboxListResponseFromJSON,
|
|
43
54
|
InboxListResponseToJSON,
|
|
44
55
|
InboxNotificationResponseFromJSON,
|
|
@@ -47,6 +58,8 @@ import {
|
|
|
47
58
|
MarkAllInboxReadRequestToJSON,
|
|
48
59
|
MarkAllReadResponseFromJSON,
|
|
49
60
|
MarkAllReadResponseToJSON,
|
|
61
|
+
MarkAllSubscriberNotificationsRead200ResponseFromJSON,
|
|
62
|
+
MarkAllSubscriberNotificationsRead200ResponseToJSON,
|
|
50
63
|
MarkAllSubscriberNotificationsReadRequestFromJSON,
|
|
51
64
|
MarkAllSubscriberNotificationsReadRequestToJSON,
|
|
52
65
|
MarkInboxReadRequestFromJSON,
|
|
@@ -63,6 +76,8 @@ import {
|
|
|
63
76
|
SendInAppResponseToJSON,
|
|
64
77
|
UnreadCountResponseFromJSON,
|
|
65
78
|
UnreadCountResponseToJSON,
|
|
79
|
+
UpdateSubscriberPreferences200ResponseFromJSON,
|
|
80
|
+
UpdateSubscriberPreferences200ResponseToJSON,
|
|
66
81
|
UpdateSubscriberPreferencesRequestFromJSON,
|
|
67
82
|
UpdateSubscriberPreferencesRequestToJSON,
|
|
68
83
|
} from '../models/index';
|
|
@@ -194,12 +209,12 @@ export interface InboxApiInterface {
|
|
|
194
209
|
* @throws {RequiredError}
|
|
195
210
|
* @memberof InboxApiInterface
|
|
196
211
|
*/
|
|
197
|
-
archiveSubscriberNotificationRaw(requestParameters: InboxApiArchiveSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
212
|
+
archiveSubscriberNotificationRaw(requestParameters: InboxApiArchiveSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberNotification200Response>>;
|
|
198
213
|
|
|
199
214
|
/**
|
|
200
215
|
* Archive a notification
|
|
201
216
|
*/
|
|
202
|
-
archiveSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
217
|
+
archiveSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberNotification200Response>;
|
|
203
218
|
|
|
204
219
|
/**
|
|
205
220
|
* Permanently delete an in-app notification.
|
|
@@ -275,13 +290,13 @@ export interface InboxApiInterface {
|
|
|
275
290
|
* @throws {RequiredError}
|
|
276
291
|
* @memberof InboxApiInterface
|
|
277
292
|
*/
|
|
278
|
-
getSubscriberInboxPreferencesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
293
|
+
getSubscriberInboxPreferencesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberInboxPreferences200Response>>;
|
|
279
294
|
|
|
280
295
|
/**
|
|
281
296
|
* Get notification preferences grouped by category for the authenticated subscriber.
|
|
282
297
|
* Get subscriber preferences
|
|
283
298
|
*/
|
|
284
|
-
getSubscriberInboxPreferences(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
299
|
+
getSubscriberInboxPreferences(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberInboxPreferences200Response>;
|
|
285
300
|
|
|
286
301
|
/**
|
|
287
302
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
@@ -291,13 +306,13 @@ export interface InboxApiInterface {
|
|
|
291
306
|
* @throws {RequiredError}
|
|
292
307
|
* @memberof InboxApiInterface
|
|
293
308
|
*/
|
|
294
|
-
getSubscriberNotificationRaw(requestParameters: InboxApiGetSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
309
|
+
getSubscriberNotificationRaw(requestParameters: InboxApiGetSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberNotification200Response>>;
|
|
295
310
|
|
|
296
311
|
/**
|
|
297
312
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
298
313
|
* Get a notification
|
|
299
314
|
*/
|
|
300
|
-
getSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
315
|
+
getSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberNotification200Response>;
|
|
301
316
|
|
|
302
317
|
/**
|
|
303
318
|
* Get the unread notification count for the authenticated subscriber.
|
|
@@ -306,13 +321,13 @@ export interface InboxApiInterface {
|
|
|
306
321
|
* @throws {RequiredError}
|
|
307
322
|
* @memberof InboxApiInterface
|
|
308
323
|
*/
|
|
309
|
-
getSubscriberUnreadCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
324
|
+
getSubscriberUnreadCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberUnreadCount200Response>>;
|
|
310
325
|
|
|
311
326
|
/**
|
|
312
327
|
* Get the unread notification count for the authenticated subscriber.
|
|
313
328
|
* Get unread count
|
|
314
329
|
*/
|
|
315
|
-
getSubscriberUnreadCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
330
|
+
getSubscriberUnreadCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberUnreadCount200Response>;
|
|
316
331
|
|
|
317
332
|
/**
|
|
318
333
|
* Get the count of unread in-app notifications for a subscriber.
|
|
@@ -344,13 +359,13 @@ export interface InboxApiInterface {
|
|
|
344
359
|
* @throws {RequiredError}
|
|
345
360
|
* @memberof InboxApiInterface
|
|
346
361
|
*/
|
|
347
|
-
listAllInboxRaw(requestParameters: InboxApiListAllInboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
362
|
+
listAllInboxRaw(requestParameters: InboxApiListAllInboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InboxListResponse>>;
|
|
348
363
|
|
|
349
364
|
/**
|
|
350
365
|
* List all in-app notifications for the current project. Used by the dashboard to display all notifications without requiring a subscriber selection.
|
|
351
366
|
* List all project notifications
|
|
352
367
|
*/
|
|
353
|
-
listAllInbox(subscriberId?: string, status?: ListAllInboxStatusEnum, category?: string, search?: string, limit?: number, offset?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
368
|
+
listAllInbox(subscriberId?: string, status?: ListAllInboxStatusEnum, category?: string, search?: string, limit?: number, offset?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InboxListResponse>;
|
|
354
369
|
|
|
355
370
|
/**
|
|
356
371
|
* Retrieve in-app notifications for a subscriber. Requires subscriber_id or external_id.
|
|
@@ -387,13 +402,13 @@ export interface InboxApiInterface {
|
|
|
387
402
|
* @throws {RequiredError}
|
|
388
403
|
* @memberof InboxApiInterface
|
|
389
404
|
*/
|
|
390
|
-
listSubscriberNotificationsRaw(requestParameters: InboxApiListSubscriberNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
405
|
+
listSubscriberNotificationsRaw(requestParameters: InboxApiListSubscriberNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InboxListResponse>>;
|
|
391
406
|
|
|
392
407
|
/**
|
|
393
408
|
* List notifications for the authenticated subscriber. Supports cursor-based pagination.
|
|
394
409
|
* List subscriber notifications
|
|
395
410
|
*/
|
|
396
|
-
listSubscriberNotifications(category?: string, includeRead?: boolean, includeArchived?: boolean, limit?: number, cursor?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
411
|
+
listSubscriberNotifications(category?: string, includeRead?: boolean, includeArchived?: boolean, limit?: number, cursor?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InboxListResponse>;
|
|
397
412
|
|
|
398
413
|
/**
|
|
399
414
|
* Mark all unread in-app notifications as read for a subscriber. Optionally filter by category.
|
|
@@ -419,12 +434,12 @@ export interface InboxApiInterface {
|
|
|
419
434
|
* @throws {RequiredError}
|
|
420
435
|
* @memberof InboxApiInterface
|
|
421
436
|
*/
|
|
422
|
-
markAllSubscriberNotificationsReadRaw(requestParameters: InboxApiMarkAllSubscriberNotificationsReadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
437
|
+
markAllSubscriberNotificationsReadRaw(requestParameters: InboxApiMarkAllSubscriberNotificationsReadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarkAllSubscriberNotificationsRead200Response>>;
|
|
423
438
|
|
|
424
439
|
/**
|
|
425
440
|
* Mark all notifications as read
|
|
426
441
|
*/
|
|
427
|
-
markAllSubscriberNotificationsRead(markAllSubscriberNotificationsReadRequest?: MarkAllSubscriberNotificationsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
442
|
+
markAllSubscriberNotificationsRead(markAllSubscriberNotificationsReadRequest?: MarkAllSubscriberNotificationsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarkAllSubscriberNotificationsRead200Response>;
|
|
428
443
|
|
|
429
444
|
/**
|
|
430
445
|
* Mark a specific in-app notification as read.
|
|
@@ -451,12 +466,12 @@ export interface InboxApiInterface {
|
|
|
451
466
|
* @throws {RequiredError}
|
|
452
467
|
* @memberof InboxApiInterface
|
|
453
468
|
*/
|
|
454
|
-
markSubscriberNotificationReadRaw(requestParameters: InboxApiMarkSubscriberNotificationReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
469
|
+
markSubscriberNotificationReadRaw(requestParameters: InboxApiMarkSubscriberNotificationReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberNotification200Response>>;
|
|
455
470
|
|
|
456
471
|
/**
|
|
457
472
|
* Mark notification as read
|
|
458
473
|
*/
|
|
459
|
-
markSubscriberNotificationRead(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
474
|
+
markSubscriberNotificationRead(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberNotification200Response>;
|
|
460
475
|
|
|
461
476
|
/**
|
|
462
477
|
* Send in-app notifications to multiple subscribers in a single request (max 100).
|
|
@@ -498,13 +513,13 @@ export interface InboxApiInterface {
|
|
|
498
513
|
* @throws {RequiredError}
|
|
499
514
|
* @memberof InboxApiInterface
|
|
500
515
|
*/
|
|
501
|
-
updateSubscriberPreferencesRaw(requestParameters: InboxApiUpdateSubscriberPreferencesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
516
|
+
updateSubscriberPreferencesRaw(requestParameters: InboxApiUpdateSubscriberPreferencesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSubscriberPreferences200Response>>;
|
|
502
517
|
|
|
503
518
|
/**
|
|
504
519
|
* Update notification channel preferences for specific categories or globally.
|
|
505
520
|
* Update subscriber preferences
|
|
506
521
|
*/
|
|
507
|
-
updateSubscriberPreferences(updateSubscriberPreferencesRequest: UpdateSubscriberPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
522
|
+
updateSubscriberPreferences(updateSubscriberPreferencesRequest: UpdateSubscriberPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSubscriberPreferences200Response>;
|
|
508
523
|
|
|
509
524
|
}
|
|
510
525
|
|
|
@@ -558,7 +573,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
558
573
|
/**
|
|
559
574
|
* Archive a notification
|
|
560
575
|
*/
|
|
561
|
-
async archiveSubscriberNotificationRaw(requestParameters: InboxApiArchiveSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
576
|
+
async archiveSubscriberNotificationRaw(requestParameters: InboxApiArchiveSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberNotification200Response>> {
|
|
562
577
|
if (requestParameters['id'] == null) {
|
|
563
578
|
throw new runtime.RequiredError(
|
|
564
579
|
'id',
|
|
@@ -585,14 +600,15 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
585
600
|
query: queryParameters,
|
|
586
601
|
}, initOverrides);
|
|
587
602
|
|
|
588
|
-
return new runtime.
|
|
603
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
589
604
|
}
|
|
590
605
|
|
|
591
606
|
/**
|
|
592
607
|
* Archive a notification
|
|
593
608
|
*/
|
|
594
|
-
async archiveSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
595
|
-
await this.archiveSubscriberNotificationRaw({ id: id }, initOverrides);
|
|
609
|
+
async archiveSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberNotification200Response> {
|
|
610
|
+
const response = await this.archiveSubscriberNotificationRaw({ id: id }, initOverrides);
|
|
611
|
+
return await response.value();
|
|
596
612
|
}
|
|
597
613
|
|
|
598
614
|
/**
|
|
@@ -774,7 +790,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
774
790
|
* Get notification preferences grouped by category for the authenticated subscriber.
|
|
775
791
|
* Get subscriber preferences
|
|
776
792
|
*/
|
|
777
|
-
async getSubscriberInboxPreferencesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
793
|
+
async getSubscriberInboxPreferencesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberInboxPreferences200Response>> {
|
|
778
794
|
const queryParameters: any = {};
|
|
779
795
|
|
|
780
796
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -794,22 +810,23 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
794
810
|
query: queryParameters,
|
|
795
811
|
}, initOverrides);
|
|
796
812
|
|
|
797
|
-
return new runtime.
|
|
813
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSubscriberInboxPreferences200ResponseFromJSON(jsonValue));
|
|
798
814
|
}
|
|
799
815
|
|
|
800
816
|
/**
|
|
801
817
|
* Get notification preferences grouped by category for the authenticated subscriber.
|
|
802
818
|
* Get subscriber preferences
|
|
803
819
|
*/
|
|
804
|
-
async getSubscriberInboxPreferences(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
805
|
-
await this.getSubscriberInboxPreferencesRaw(initOverrides);
|
|
820
|
+
async getSubscriberInboxPreferences(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberInboxPreferences200Response> {
|
|
821
|
+
const response = await this.getSubscriberInboxPreferencesRaw(initOverrides);
|
|
822
|
+
return await response.value();
|
|
806
823
|
}
|
|
807
824
|
|
|
808
825
|
/**
|
|
809
826
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
810
827
|
* Get a notification
|
|
811
828
|
*/
|
|
812
|
-
async getSubscriberNotificationRaw(requestParameters: InboxApiGetSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
829
|
+
async getSubscriberNotificationRaw(requestParameters: InboxApiGetSubscriberNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberNotification200Response>> {
|
|
813
830
|
if (requestParameters['id'] == null) {
|
|
814
831
|
throw new runtime.RequiredError(
|
|
815
832
|
'id',
|
|
@@ -836,22 +853,23 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
836
853
|
query: queryParameters,
|
|
837
854
|
}, initOverrides);
|
|
838
855
|
|
|
839
|
-
return new runtime.
|
|
856
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
840
857
|
}
|
|
841
858
|
|
|
842
859
|
/**
|
|
843
860
|
* Get a specific notification by ID for the authenticated subscriber.
|
|
844
861
|
* Get a notification
|
|
845
862
|
*/
|
|
846
|
-
async getSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
847
|
-
await this.getSubscriberNotificationRaw({ id: id }, initOverrides);
|
|
863
|
+
async getSubscriberNotification(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberNotification200Response> {
|
|
864
|
+
const response = await this.getSubscriberNotificationRaw({ id: id }, initOverrides);
|
|
865
|
+
return await response.value();
|
|
848
866
|
}
|
|
849
867
|
|
|
850
868
|
/**
|
|
851
869
|
* Get the unread notification count for the authenticated subscriber.
|
|
852
870
|
* Get unread count
|
|
853
871
|
*/
|
|
854
|
-
async getSubscriberUnreadCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
872
|
+
async getSubscriberUnreadCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberUnreadCount200Response>> {
|
|
855
873
|
const queryParameters: any = {};
|
|
856
874
|
|
|
857
875
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -871,15 +889,16 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
871
889
|
query: queryParameters,
|
|
872
890
|
}, initOverrides);
|
|
873
891
|
|
|
874
|
-
return new runtime.
|
|
892
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSubscriberUnreadCount200ResponseFromJSON(jsonValue));
|
|
875
893
|
}
|
|
876
894
|
|
|
877
895
|
/**
|
|
878
896
|
* Get the unread notification count for the authenticated subscriber.
|
|
879
897
|
* Get unread count
|
|
880
898
|
*/
|
|
881
|
-
async getSubscriberUnreadCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
882
|
-
await this.getSubscriberUnreadCountRaw(initOverrides);
|
|
899
|
+
async getSubscriberUnreadCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberUnreadCount200Response> {
|
|
900
|
+
const response = await this.getSubscriberUnreadCountRaw(initOverrides);
|
|
901
|
+
return await response.value();
|
|
883
902
|
}
|
|
884
903
|
|
|
885
904
|
/**
|
|
@@ -926,7 +945,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
926
945
|
* List all in-app notifications for the current project. Used by the dashboard to display all notifications without requiring a subscriber selection.
|
|
927
946
|
* List all project notifications
|
|
928
947
|
*/
|
|
929
|
-
async listAllInboxRaw(requestParameters: InboxApiListAllInboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
948
|
+
async listAllInboxRaw(requestParameters: InboxApiListAllInboxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InboxListResponse>> {
|
|
930
949
|
const queryParameters: any = {};
|
|
931
950
|
|
|
932
951
|
if (requestParameters['subscriberId'] != null) {
|
|
@@ -966,15 +985,16 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
966
985
|
query: queryParameters,
|
|
967
986
|
}, initOverrides);
|
|
968
987
|
|
|
969
|
-
return new runtime.
|
|
988
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InboxListResponseFromJSON(jsonValue));
|
|
970
989
|
}
|
|
971
990
|
|
|
972
991
|
/**
|
|
973
992
|
* List all in-app notifications for the current project. Used by the dashboard to display all notifications without requiring a subscriber selection.
|
|
974
993
|
* List all project notifications
|
|
975
994
|
*/
|
|
976
|
-
async listAllInbox(subscriberId?: string, status?: ListAllInboxStatusEnum, category?: string, search?: string, limit?: number, offset?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
977
|
-
await this.listAllInboxRaw({ subscriberId: subscriberId, status: status, category: category, search: search, limit: limit, offset: offset }, initOverrides);
|
|
995
|
+
async listAllInbox(subscriberId?: string, status?: ListAllInboxStatusEnum, category?: string, search?: string, limit?: number, offset?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InboxListResponse> {
|
|
996
|
+
const response = await this.listAllInboxRaw({ subscriberId: subscriberId, status: status, category: category, search: search, limit: limit, offset: offset }, initOverrides);
|
|
997
|
+
return await response.value();
|
|
978
998
|
}
|
|
979
999
|
|
|
980
1000
|
/**
|
|
@@ -1045,7 +1065,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1045
1065
|
* List notifications for the authenticated subscriber. Supports cursor-based pagination.
|
|
1046
1066
|
* List subscriber notifications
|
|
1047
1067
|
*/
|
|
1048
|
-
async listSubscriberNotificationsRaw(requestParameters: InboxApiListSubscriberNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1068
|
+
async listSubscriberNotificationsRaw(requestParameters: InboxApiListSubscriberNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InboxListResponse>> {
|
|
1049
1069
|
const queryParameters: any = {};
|
|
1050
1070
|
|
|
1051
1071
|
if (requestParameters['category'] != null) {
|
|
@@ -1085,15 +1105,16 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1085
1105
|
query: queryParameters,
|
|
1086
1106
|
}, initOverrides);
|
|
1087
1107
|
|
|
1088
|
-
return new runtime.
|
|
1108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InboxListResponseFromJSON(jsonValue));
|
|
1089
1109
|
}
|
|
1090
1110
|
|
|
1091
1111
|
/**
|
|
1092
1112
|
* List notifications for the authenticated subscriber. Supports cursor-based pagination.
|
|
1093
1113
|
* List subscriber notifications
|
|
1094
1114
|
*/
|
|
1095
|
-
async listSubscriberNotifications(category?: string, includeRead?: boolean, includeArchived?: boolean, limit?: number, cursor?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1096
|
-
await this.listSubscriberNotificationsRaw({ category: category, includeRead: includeRead, includeArchived: includeArchived, limit: limit, cursor: cursor }, initOverrides);
|
|
1115
|
+
async listSubscriberNotifications(category?: string, includeRead?: boolean, includeArchived?: boolean, limit?: number, cursor?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InboxListResponse> {
|
|
1116
|
+
const response = await this.listSubscriberNotificationsRaw({ category: category, includeRead: includeRead, includeArchived: includeArchived, limit: limit, cursor: cursor }, initOverrides);
|
|
1117
|
+
return await response.value();
|
|
1097
1118
|
}
|
|
1098
1119
|
|
|
1099
1120
|
/**
|
|
@@ -1141,7 +1162,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1141
1162
|
/**
|
|
1142
1163
|
* Mark all notifications as read
|
|
1143
1164
|
*/
|
|
1144
|
-
async markAllSubscriberNotificationsReadRaw(requestParameters: InboxApiMarkAllSubscriberNotificationsReadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1165
|
+
async markAllSubscriberNotificationsReadRaw(requestParameters: InboxApiMarkAllSubscriberNotificationsReadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarkAllSubscriberNotificationsRead200Response>> {
|
|
1145
1166
|
const queryParameters: any = {};
|
|
1146
1167
|
|
|
1147
1168
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -1164,14 +1185,15 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1164
1185
|
body: MarkAllSubscriberNotificationsReadRequestToJSON(requestParameters['markAllSubscriberNotificationsReadRequest']),
|
|
1165
1186
|
}, initOverrides);
|
|
1166
1187
|
|
|
1167
|
-
return new runtime.
|
|
1188
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MarkAllSubscriberNotificationsRead200ResponseFromJSON(jsonValue));
|
|
1168
1189
|
}
|
|
1169
1190
|
|
|
1170
1191
|
/**
|
|
1171
1192
|
* Mark all notifications as read
|
|
1172
1193
|
*/
|
|
1173
|
-
async markAllSubscriberNotificationsRead(markAllSubscriberNotificationsReadRequest?: MarkAllSubscriberNotificationsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1174
|
-
await this.markAllSubscriberNotificationsReadRaw({ markAllSubscriberNotificationsReadRequest: markAllSubscriberNotificationsReadRequest }, initOverrides);
|
|
1194
|
+
async markAllSubscriberNotificationsRead(markAllSubscriberNotificationsReadRequest?: MarkAllSubscriberNotificationsReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarkAllSubscriberNotificationsRead200Response> {
|
|
1195
|
+
const response = await this.markAllSubscriberNotificationsReadRaw({ markAllSubscriberNotificationsReadRequest: markAllSubscriberNotificationsReadRequest }, initOverrides);
|
|
1196
|
+
return await response.value();
|
|
1175
1197
|
}
|
|
1176
1198
|
|
|
1177
1199
|
/**
|
|
@@ -1219,7 +1241,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1219
1241
|
/**
|
|
1220
1242
|
* Mark notification as read
|
|
1221
1243
|
*/
|
|
1222
|
-
async markSubscriberNotificationReadRaw(requestParameters: InboxApiMarkSubscriberNotificationReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1244
|
+
async markSubscriberNotificationReadRaw(requestParameters: InboxApiMarkSubscriberNotificationReadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriberNotification200Response>> {
|
|
1223
1245
|
if (requestParameters['id'] == null) {
|
|
1224
1246
|
throw new runtime.RequiredError(
|
|
1225
1247
|
'id',
|
|
@@ -1246,14 +1268,15 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1246
1268
|
query: queryParameters,
|
|
1247
1269
|
}, initOverrides);
|
|
1248
1270
|
|
|
1249
|
-
return new runtime.
|
|
1271
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSubscriberNotification200ResponseFromJSON(jsonValue));
|
|
1250
1272
|
}
|
|
1251
1273
|
|
|
1252
1274
|
/**
|
|
1253
1275
|
* Mark notification as read
|
|
1254
1276
|
*/
|
|
1255
|
-
async markSubscriberNotificationRead(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1256
|
-
await this.markSubscriberNotificationReadRaw({ id: id }, initOverrides);
|
|
1277
|
+
async markSubscriberNotificationRead(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriberNotification200Response> {
|
|
1278
|
+
const response = await this.markSubscriberNotificationReadRaw({ id: id }, initOverrides);
|
|
1279
|
+
return await response.value();
|
|
1257
1280
|
}
|
|
1258
1281
|
|
|
1259
1282
|
/**
|
|
@@ -1344,7 +1367,7 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1344
1367
|
* Update notification channel preferences for specific categories or globally.
|
|
1345
1368
|
* Update subscriber preferences
|
|
1346
1369
|
*/
|
|
1347
|
-
async updateSubscriberPreferencesRaw(requestParameters: InboxApiUpdateSubscriberPreferencesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1370
|
+
async updateSubscriberPreferencesRaw(requestParameters: InboxApiUpdateSubscriberPreferencesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSubscriberPreferences200Response>> {
|
|
1348
1371
|
if (requestParameters['updateSubscriberPreferencesRequest'] == null) {
|
|
1349
1372
|
throw new runtime.RequiredError(
|
|
1350
1373
|
'updateSubscriberPreferencesRequest',
|
|
@@ -1374,15 +1397,16 @@ export class InboxApi extends runtime.BaseAPI implements InboxApiInterface {
|
|
|
1374
1397
|
body: UpdateSubscriberPreferencesRequestToJSON(requestParameters['updateSubscriberPreferencesRequest']),
|
|
1375
1398
|
}, initOverrides);
|
|
1376
1399
|
|
|
1377
|
-
return new runtime.
|
|
1400
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSubscriberPreferences200ResponseFromJSON(jsonValue));
|
|
1378
1401
|
}
|
|
1379
1402
|
|
|
1380
1403
|
/**
|
|
1381
1404
|
* Update notification channel preferences for specific categories or globally.
|
|
1382
1405
|
* Update subscriber preferences
|
|
1383
1406
|
*/
|
|
1384
|
-
async updateSubscriberPreferences(updateSubscriberPreferencesRequest: UpdateSubscriberPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1385
|
-
await this.updateSubscriberPreferencesRaw({ updateSubscriberPreferencesRequest: updateSubscriberPreferencesRequest }, initOverrides);
|
|
1407
|
+
async updateSubscriberPreferences(updateSubscriberPreferencesRequest: UpdateSubscriberPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSubscriberPreferences200Response> {
|
|
1408
|
+
const response = await this.updateSubscriberPreferencesRaw({ updateSubscriberPreferencesRequest: updateSubscriberPreferencesRequest }, initOverrides);
|
|
1409
|
+
return await response.value();
|
|
1386
1410
|
}
|
|
1387
1411
|
|
|
1388
1412
|
}
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
DeleteResult,
|
|
21
21
|
PayloadTooLargeError,
|
|
22
22
|
RenderTemplateRequest,
|
|
23
|
+
SendTemplateTestEmail202Response,
|
|
23
24
|
SendTemplateTestEmailRequest,
|
|
24
25
|
TemplateListResponse,
|
|
25
26
|
TemplateRenderResponse,
|
|
@@ -37,6 +38,8 @@ import {
|
|
|
37
38
|
PayloadTooLargeErrorToJSON,
|
|
38
39
|
RenderTemplateRequestFromJSON,
|
|
39
40
|
RenderTemplateRequestToJSON,
|
|
41
|
+
SendTemplateTestEmail202ResponseFromJSON,
|
|
42
|
+
SendTemplateTestEmail202ResponseToJSON,
|
|
40
43
|
SendTemplateTestEmailRequestFromJSON,
|
|
41
44
|
SendTemplateTestEmailRequestToJSON,
|
|
42
45
|
TemplateListResponseFromJSON,
|
|
@@ -179,13 +182,13 @@ export interface TemplatesApiInterface {
|
|
|
179
182
|
* @throws {RequiredError}
|
|
180
183
|
* @memberof TemplatesApiInterface
|
|
181
184
|
*/
|
|
182
|
-
sendTemplateTestEmailRaw(requestParameters: TemplatesApiSendTemplateTestEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
185
|
+
sendTemplateTestEmailRaw(requestParameters: TemplatesApiSendTemplateTestEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendTemplateTestEmail202Response>>;
|
|
183
186
|
|
|
184
187
|
/**
|
|
185
188
|
* Render the template and send a one-off test email (dashboard JWT auth). Because this is a send-capable endpoint, a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`.
|
|
186
189
|
* Send a test email using a template
|
|
187
190
|
*/
|
|
188
|
-
sendTemplateTestEmail(id: string, sendTemplateTestEmailRequest: SendTemplateTestEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
191
|
+
sendTemplateTestEmail(id: string, sendTemplateTestEmailRequest: SendTemplateTestEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendTemplateTestEmail202Response>;
|
|
189
192
|
|
|
190
193
|
/**
|
|
191
194
|
* Update an existing template. Only provided fields are changed.
|
|
@@ -424,7 +427,7 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa
|
|
|
424
427
|
* Render the template and send a one-off test email (dashboard JWT auth). Because this is a send-capable endpoint, a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`.
|
|
425
428
|
* Send a test email using a template
|
|
426
429
|
*/
|
|
427
|
-
async sendTemplateTestEmailRaw(requestParameters: TemplatesApiSendTemplateTestEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
430
|
+
async sendTemplateTestEmailRaw(requestParameters: TemplatesApiSendTemplateTestEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendTemplateTestEmail202Response>> {
|
|
428
431
|
if (requestParameters['id'] == null) {
|
|
429
432
|
throw new runtime.RequiredError(
|
|
430
433
|
'id',
|
|
@@ -461,15 +464,16 @@ export class TemplatesApi extends runtime.BaseAPI implements TemplatesApiInterfa
|
|
|
461
464
|
body: SendTemplateTestEmailRequestToJSON(requestParameters['sendTemplateTestEmailRequest']),
|
|
462
465
|
}, initOverrides);
|
|
463
466
|
|
|
464
|
-
return new runtime.
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SendTemplateTestEmail202ResponseFromJSON(jsonValue));
|
|
465
468
|
}
|
|
466
469
|
|
|
467
470
|
/**
|
|
468
471
|
* Render the template and send a one-off test email (dashboard JWT auth). Because this is a send-capable endpoint, a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`.
|
|
469
472
|
* Send a test email using a template
|
|
470
473
|
*/
|
|
471
|
-
async sendTemplateTestEmail(id: string, sendTemplateTestEmailRequest: SendTemplateTestEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
472
|
-
await this.sendTemplateTestEmailRaw({ id: id, sendTemplateTestEmailRequest: sendTemplateTestEmailRequest }, initOverrides);
|
|
474
|
+
async sendTemplateTestEmail(id: string, sendTemplateTestEmailRequest: SendTemplateTestEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendTemplateTestEmail202Response> {
|
|
475
|
+
const response = await this.sendTemplateTestEmailRaw({ id: id, sendTemplateTestEmailRequest: sendTemplateTestEmailRequest }, initOverrides);
|
|
476
|
+
return await response.value();
|
|
473
477
|
}
|
|
474
478
|
|
|
475
479
|
/**
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
GetWaaSDelivery200Response,
|
|
18
19
|
ListWaaSEndpointDeliveries200Response,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
22
|
+
GetWaaSDelivery200ResponseFromJSON,
|
|
23
|
+
GetWaaSDelivery200ResponseToJSON,
|
|
21
24
|
ListWaaSEndpointDeliveries200ResponseFromJSON,
|
|
22
25
|
ListWaaSEndpointDeliveries200ResponseToJSON,
|
|
23
26
|
} from '../models/index';
|
|
@@ -65,13 +68,13 @@ export interface WaaSDeliveriesApiInterface {
|
|
|
65
68
|
* @throws {RequiredError}
|
|
66
69
|
* @memberof WaaSDeliveriesApiInterface
|
|
67
70
|
*/
|
|
68
|
-
getWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiGetWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
71
|
+
getWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiGetWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWaaSDelivery200Response>>;
|
|
69
72
|
|
|
70
73
|
/**
|
|
71
74
|
* Get full delivery details including request/response data.
|
|
72
75
|
* Get delivery detail
|
|
73
76
|
*/
|
|
74
|
-
getWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
77
|
+
getWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWaaSDelivery200Response>;
|
|
75
78
|
|
|
76
79
|
/**
|
|
77
80
|
* List delivery records for a WaaS application. Filter by tenant, event type, or status.
|
|
@@ -123,13 +126,13 @@ export interface WaaSDeliveriesApiInterface {
|
|
|
123
126
|
* @throws {RequiredError}
|
|
124
127
|
* @memberof WaaSDeliveriesApiInterface
|
|
125
128
|
*/
|
|
126
|
-
retryWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiRetryWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
129
|
+
retryWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiRetryWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWaaSDelivery200Response>>;
|
|
127
130
|
|
|
128
131
|
/**
|
|
129
132
|
* Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
130
133
|
* Retry a delivery
|
|
131
134
|
*/
|
|
132
|
-
retryWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
135
|
+
retryWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWaaSDelivery200Response>;
|
|
133
136
|
|
|
134
137
|
}
|
|
135
138
|
|
|
@@ -142,7 +145,7 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
|
|
|
142
145
|
* Get full delivery details including request/response data.
|
|
143
146
|
* Get delivery detail
|
|
144
147
|
*/
|
|
145
|
-
async getWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiGetWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
148
|
+
async getWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiGetWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWaaSDelivery200Response>> {
|
|
146
149
|
if (requestParameters['appId'] == null) {
|
|
147
150
|
throw new runtime.RequiredError(
|
|
148
151
|
'appId',
|
|
@@ -172,15 +175,16 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
|
|
|
172
175
|
query: queryParameters,
|
|
173
176
|
}, initOverrides);
|
|
174
177
|
|
|
175
|
-
return new runtime.
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetWaaSDelivery200ResponseFromJSON(jsonValue));
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
/**
|
|
179
182
|
* Get full delivery details including request/response data.
|
|
180
183
|
* Get delivery detail
|
|
181
184
|
*/
|
|
182
|
-
async getWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
183
|
-
await this.getWaaSDeliveryRaw({ appId: appId, deliveryId: deliveryId }, initOverrides);
|
|
185
|
+
async getWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWaaSDelivery200Response> {
|
|
186
|
+
const response = await this.getWaaSDeliveryRaw({ appId: appId, deliveryId: deliveryId }, initOverrides);
|
|
187
|
+
return await response.value();
|
|
184
188
|
}
|
|
185
189
|
|
|
186
190
|
/**
|
|
@@ -304,7 +308,7 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
|
|
|
304
308
|
* Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
305
309
|
* Retry a delivery
|
|
306
310
|
*/
|
|
307
|
-
async retryWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiRetryWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
311
|
+
async retryWaaSDeliveryRaw(requestParameters: WaaSDeliveriesApiRetryWaaSDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWaaSDelivery200Response>> {
|
|
308
312
|
if (requestParameters['appId'] == null) {
|
|
309
313
|
throw new runtime.RequiredError(
|
|
310
314
|
'appId',
|
|
@@ -334,15 +338,16 @@ export class WaaSDeliveriesApi extends runtime.BaseAPI implements WaaSDeliveries
|
|
|
334
338
|
query: queryParameters,
|
|
335
339
|
}, initOverrides);
|
|
336
340
|
|
|
337
|
-
return new runtime.
|
|
341
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetWaaSDelivery200ResponseFromJSON(jsonValue));
|
|
338
342
|
}
|
|
339
343
|
|
|
340
344
|
/**
|
|
341
345
|
* Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
342
346
|
* Retry a delivery
|
|
343
347
|
*/
|
|
344
|
-
async retryWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
345
|
-
await this.retryWaaSDeliveryRaw({ appId: appId, deliveryId: deliveryId }, initOverrides);
|
|
348
|
+
async retryWaaSDelivery(appId: string, deliveryId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWaaSDelivery200Response> {
|
|
349
|
+
const response = await this.retryWaaSDeliveryRaw({ appId: appId, deliveryId: deliveryId }, initOverrides);
|
|
350
|
+
return await response.value();
|
|
346
351
|
}
|
|
347
352
|
|
|
348
353
|
}
|