@emilgroup/notification-sdk 0.8.1-beta.59 → 0.8.1-beta.60

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 CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/notification-sdk@0.8.1-beta.59 --save
20
+ npm install @emilgroup/notification-sdk@0.8.1-beta.60 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/notification-sdk@0.8.1-beta.59
24
+ yarn add @emilgroup/notification-sdk@0.8.1-beta.60
25
25
  ```
26
26
 
27
27
  And then you can import ``.
package/common.ts CHANGED
@@ -130,9 +130,10 @@ export const toPathString = function (url: URL) {
130
130
  * @export
131
131
  */
132
132
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
133
- return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
133
+ // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
134
+ return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
134
135
  const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
135
- return axios.request<T, R>(axiosRequestArgs);
136
+ return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
136
137
  };
137
138
  }
138
139
 
@@ -83,5 +83,5 @@ export declare class EmailMailboxesApi extends BaseAPI {
83
83
  * @throws {RequiredError}
84
84
  * @memberof EmailMailboxesApi
85
85
  */
86
- listEmailMailboxes(requestParameters?: EmailMailboxesApiListEmailMailboxesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMailboxesResponseClass, any, {}>>;
86
+ listEmailMailboxes(requestParameters?: EmailMailboxesApiListEmailMailboxesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMailboxesResponseClass, any, {}, any>>;
87
87
  }
@@ -296,7 +296,7 @@ export declare class EmailMessagesApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof EmailMessagesApi
298
298
  */
299
- downloadAttachment(requestParameters: EmailMessagesApiDownloadAttachmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadAttachmentResponseClass, any, {}>>;
299
+ downloadAttachment(requestParameters: EmailMessagesApiDownloadAttachmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadAttachmentResponseClass, any, {}, any>>;
300
300
  /**
301
301
  * Retrieves the details of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
302
302
  * @summary Retrieve the email message
@@ -305,7 +305,7 @@ export declare class EmailMessagesApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof EmailMessagesApi
307
307
  */
308
- getMessage(requestParameters: EmailMessagesApiGetMessageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailMessageResponseClass, any, {}>>;
308
+ getMessage(requestParameters: EmailMessagesApiGetMessageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailMessageResponseClass, any, {}, any>>;
309
309
  /**
310
310
  * Returns the attachments of the email message with the given code. **Required Permissions** \"notification-management.email-messages.view\"
311
311
  * @summary List the email message attachments
@@ -314,7 +314,7 @@ export declare class EmailMessagesApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof EmailMessagesApi
316
316
  */
317
- listAttachments(requestParameters: EmailMessagesApiListAttachmentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailAttachmentsResponseClass, any, {}>>;
317
+ listAttachments(requestParameters: EmailMessagesApiListAttachmentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailAttachmentsResponseClass, any, {}, any>>;
318
318
  /**
319
319
  * Returns a list of sent and received email messages. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
320
320
  * @summary List email messages
@@ -323,5 +323,5 @@ export declare class EmailMessagesApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof EmailMessagesApi
325
325
  */
326
- listEmailMessages(requestParameters?: EmailMessagesApiListEmailMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}>>;
326
+ listEmailMessages(requestParameters?: EmailMessagesApiListEmailMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}, any>>;
327
327
  }
@@ -383,7 +383,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
383
383
  * @throws {RequiredError}
384
384
  * @memberof EmailSubscriptionsApi
385
385
  */
386
- catchUpEmailSubscription(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionResponseClass, any, {}>>;
386
+ catchUpEmailSubscription(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionResponseClass, any, {}, any>>;
387
387
  /**
388
388
  * Queues a catch-up for every subscription of the email channel: Microsoft Graph is asked for every change since the last catch-up, and mail that never arrived through a notification is ingested. Returns straight away with how many catch-ups were queued. **Required Permissions** \"tenant-management.settings.update\"
389
389
  * @summary Catch up missed mail for all email subscriptions
@@ -392,7 +392,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
392
392
  * @throws {RequiredError}
393
393
  * @memberof EmailSubscriptionsApi
394
394
  */
395
- catchUpEmailSubscriptions(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionsResponseClass, any, {}>>;
395
+ catchUpEmailSubscriptions(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CatchUpEmailSubscriptionsResponseClass, any, {}, any>>;
396
396
  /**
397
397
  * Retrieves the email subscription with the given id. **Required Permissions** \"tenant-management.settings.view\"
398
398
  * @summary Retrieve the email subscription
@@ -401,7 +401,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
401
401
  * @throws {RequiredError}
402
402
  * @memberof EmailSubscriptionsApi
403
403
  */
404
- getEmailSubscription(requestParameters: EmailSubscriptionsApiGetEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailSubscriptionResponseClass, any, {}>>;
404
+ getEmailSubscription(requestParameters: EmailSubscriptionsApiGetEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailSubscriptionResponseClass, any, {}, any>>;
405
405
  /**
406
406
  * Returns the Microsoft Graph mail subscriptions of the tenant, one per mailbox and folder of the email channel, with their status, expiry and last error. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
407
407
  * @summary List email subscriptions
@@ -410,7 +410,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
410
410
  * @throws {RequiredError}
411
411
  * @memberof EmailSubscriptionsApi
412
412
  */
413
- listEmailSubscriptions(requestParameters?: EmailSubscriptionsApiListEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailSubscriptionsResponseClass, any, {}>>;
413
+ listEmailSubscriptions(requestParameters?: EmailSubscriptionsApiListEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailSubscriptionsResponseClass, any, {}, any>>;
414
414
  /**
415
415
  * Brings the subscriptions in line with the mailboxes and folders of the email channel: creates the missing ones, deletes the ones no longer configured and recreates expired or failed ones. Returns how many subscriptions each step touched. **Required Permissions** \"tenant-management.settings.update\"
416
416
  * @summary Reconcile the email subscriptions
@@ -419,7 +419,7 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
419
419
  * @throws {RequiredError}
420
420
  * @memberof EmailSubscriptionsApi
421
421
  */
422
- reconcileEmailSubscriptions(requestParameters: EmailSubscriptionsApiReconcileEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReconcileEmailSubscriptionsResponseClass, any, {}>>;
422
+ reconcileEmailSubscriptions(requestParameters: EmailSubscriptionsApiReconcileEmailSubscriptionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReconcileEmailSubscriptionsResponseClass, any, {}, any>>;
423
423
  /**
424
424
  * Renews the subscription in Microsoft Graph right away and returns it with its new expiry. A pending or failed subscription, or one Graph no longer knows, is created again. Fails with 503 when Graph rejects the call; the error is kept on the subscription. **Required Permissions** \"tenant-management.settings.update\"
425
425
  * @summary Renew the email subscription
@@ -428,5 +428,5 @@ export declare class EmailSubscriptionsApi extends BaseAPI {
428
428
  * @throws {RequiredError}
429
429
  * @memberof EmailSubscriptionsApi
430
430
  */
431
- renewEmailSubscription(requestParameters: EmailSubscriptionsApiRenewEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RenewEmailSubscriptionResponseClass, any, {}>>;
431
+ renewEmailSubscription(requestParameters: EmailSubscriptionsApiRenewEmailSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RenewEmailSubscriptionResponseClass, any, {}, any>>;
432
432
  }
@@ -426,7 +426,7 @@ export declare class EmailTrackingApi extends BaseAPI {
426
426
  * @throws {RequiredError}
427
427
  * @memberof EmailTrackingApi
428
428
  */
429
- assignEntity(requestParameters: EmailTrackingApiAssignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignEmailThreadEntityResponseClass, any, {}>>;
429
+ assignEntity(requestParameters: EmailTrackingApiAssignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignEmailThreadEntityResponseClass, any, {}, any>>;
430
430
  /**
431
431
  * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
432
432
  * @summary Close the email thread
@@ -435,7 +435,7 @@ export declare class EmailTrackingApi extends BaseAPI {
435
435
  * @throws {RequiredError}
436
436
  * @memberof EmailTrackingApi
437
437
  */
438
- closeThread(requestParameters: EmailTrackingApiCloseThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}>>;
438
+ closeThread(requestParameters: EmailTrackingApiCloseThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}, any>>;
439
439
  /**
440
440
  * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
441
441
  * @summary Retrieve the email thread
@@ -444,7 +444,7 @@ export declare class EmailTrackingApi extends BaseAPI {
444
444
  * @throws {RequiredError}
445
445
  * @memberof EmailTrackingApi
446
446
  */
447
- getThread(requestParameters: EmailTrackingApiGetThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}>>;
447
+ getThread(requestParameters: EmailTrackingApiGetThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}, any>>;
448
448
  /**
449
449
  * Returns the email messages of the email thread with the given code. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
450
450
  * @summary List email messages
@@ -453,7 +453,7 @@ export declare class EmailTrackingApi extends BaseAPI {
453
453
  * @throws {RequiredError}
454
454
  * @memberof EmailTrackingApi
455
455
  */
456
- listMessages(requestParameters: EmailTrackingApiListMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}>>;
456
+ listMessages(requestParameters: EmailTrackingApiListMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}, any>>;
457
457
  /**
458
458
  * Returns a list of email threads, newest first. A thread groups an email with its replies; each item carries the newest message of the thread in latestMessage and the number of messages in messageCount. Threads without a message yet are not listed. Filter on the newest message with latestDirection (inbox tabs), latestDeliveryStatus or latestWorkflowStatus (use latestWorkflowStatus==$null for threads whose newest message has no workflow). Add expand=messages to get every message of each thread, without bodies. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
459
459
  * @summary List email threads
@@ -462,7 +462,7 @@ export declare class EmailTrackingApi extends BaseAPI {
462
462
  * @throws {RequiredError}
463
463
  * @memberof EmailTrackingApi
464
464
  */
465
- listThreads(requestParameters?: EmailTrackingApiListThreadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailThreadsResponseClass, any, {}>>;
465
+ listThreads(requestParameters?: EmailTrackingApiListThreadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailThreadsResponseClass, any, {}, any>>;
466
466
  /**
467
467
  * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
468
468
  * @summary Unassign an email thread from its entity
@@ -471,5 +471,5 @@ export declare class EmailTrackingApi extends BaseAPI {
471
471
  * @throws {RequiredError}
472
472
  * @memberof EmailTrackingApi
473
473
  */
474
- unassignEntity(requestParameters: EmailTrackingApiUnassignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnassignEmailThreadEntityResponseClass, any, {}>>;
474
+ unassignEntity(requestParameters: EmailTrackingApiUnassignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnassignEmailThreadEntityResponseClass, any, {}, any>>;
475
475
  }
@@ -141,7 +141,7 @@ export declare class EmailVerificationsApi extends BaseAPI {
141
141
  * @throws {RequiredError}
142
142
  * @memberof EmailVerificationsApi
143
143
  */
144
- completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any, {}>>;
144
+ completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any, {}, any>>;
145
145
  /**
146
146
  * Sends a verification token to the given email address. Use the complete endpoint to verify the token. **Required Permissions** none
147
147
  * @summary Initiate an email verification
@@ -150,5 +150,5 @@ export declare class EmailVerificationsApi extends BaseAPI {
150
150
  * @throws {RequiredError}
151
151
  * @memberof EmailVerificationsApi
152
152
  */
153
- initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any, {}>>;
153
+ initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any, {}, any>>;
154
154
  }
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
70
70
  }
@@ -353,7 +353,7 @@ export declare class LayoutsApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof LayoutsApi
355
355
  */
356
- createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}>>;
356
+ createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}, any>>;
357
357
  /**
358
358
  * Permanently deletes the layout with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
359
359
  * @summary Delete the layout
@@ -362,7 +362,7 @@ export declare class LayoutsApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof LayoutsApi
364
364
  */
365
- deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
365
+ deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
366
366
  /**
367
367
  * Retrieves the details of the layout with the given id. **Required Permissions** \"notification-management.email-templates.view\"
368
368
  * @summary Retrieve the layout
@@ -371,7 +371,7 @@ export declare class LayoutsApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof LayoutsApi
373
373
  */
374
- getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}>>;
374
+ getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}, any>>;
375
375
  /**
376
376
  * Returns a list of layouts. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
377
377
  * @summary List layouts
@@ -380,7 +380,7 @@ export declare class LayoutsApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof LayoutsApi
382
382
  */
383
- listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}>>;
383
+ listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}, any>>;
384
384
  /**
385
385
  * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
386
386
  * @summary Update the layout
@@ -389,5 +389,5 @@ export declare class LayoutsApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof LayoutsApi
391
391
  */
392
- updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}>>;
392
+ updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}, any>>;
393
393
  }
@@ -155,7 +155,7 @@ export declare class MSGraphWebhooksApi extends BaseAPI {
155
155
  * @throws {RequiredError}
156
156
  * @memberof MSGraphWebhooksApi
157
157
  */
158
- receiveLifecycle(requestParameters: MSGraphWebhooksApiReceiveLifecycleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
158
+ receiveLifecycle(requestParameters: MSGraphWebhooksApiReceiveLifecycleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
159
159
  /**
160
160
  * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
161
161
  * @summary Receive Microsoft Graph change notifications
@@ -164,5 +164,5 @@ export declare class MSGraphWebhooksApi extends BaseAPI {
164
164
  * @throws {RequiredError}
165
165
  * @memberof MSGraphWebhooksApi
166
166
  */
167
- receiveNotifications(requestParameters: MSGraphWebhooksApiReceiveNotificationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
167
+ receiveNotifications(requestParameters: MSGraphWebhooksApiReceiveNotificationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
168
168
  }
@@ -362,7 +362,7 @@ export declare class NotificationTemplatesApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof NotificationTemplatesApi
364
364
  */
365
- createNotificationTemplate(requestParameters: NotificationTemplatesApiCreateNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNotificationTemplateResponseClass, any, {}>>;
365
+ createNotificationTemplate(requestParameters: NotificationTemplatesApiCreateNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNotificationTemplateResponseClass, any, {}, any>>;
366
366
  /**
367
367
  * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
368
368
  * @summary Delete the notification template
@@ -371,7 +371,7 @@ export declare class NotificationTemplatesApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof NotificationTemplatesApi
373
373
  */
374
- deleteNotificationTemplate(requestParameters: NotificationTemplatesApiDeleteNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
374
+ deleteNotificationTemplate(requestParameters: NotificationTemplatesApiDeleteNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
375
375
  /**
376
376
  * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
377
377
  * @summary Retrieve the notification template
@@ -380,7 +380,7 @@ export declare class NotificationTemplatesApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof NotificationTemplatesApi
382
382
  */
383
- getNotificationTemplate(requestParameters: NotificationTemplatesApiGetNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNotificationTemplateResponseClass, any, {}>>;
383
+ getNotificationTemplate(requestParameters: NotificationTemplatesApiGetNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNotificationTemplateResponseClass, any, {}, any>>;
384
384
  /**
385
385
  * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
386
386
  * @summary List notification templates
@@ -389,7 +389,7 @@ export declare class NotificationTemplatesApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof NotificationTemplatesApi
391
391
  */
392
- listNotificationTemplates(requestParameters?: NotificationTemplatesApiListNotificationTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNotificationTemplatesResponseClass, any, {}>>;
392
+ listNotificationTemplates(requestParameters?: NotificationTemplatesApiListNotificationTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNotificationTemplatesResponseClass, any, {}, any>>;
393
393
  /**
394
394
  * Updates the specified notification template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
395
395
  * @summary Update the notification template
@@ -398,5 +398,5 @@ export declare class NotificationTemplatesApi extends BaseAPI {
398
398
  * @throws {RequiredError}
399
399
  * @memberof NotificationTemplatesApi
400
400
  */
401
- updateNotificationTemplate(requestParameters: NotificationTemplatesApiUpdateNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNotificationTemplateResponseClass, any, {}>>;
401
+ updateNotificationTemplate(requestParameters: NotificationTemplatesApiUpdateNotificationTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNotificationTemplateResponseClass, any, {}, any>>;
402
402
  }
@@ -141,7 +141,7 @@ export declare class NotificationsApi extends BaseAPI {
141
141
  * @throws {RequiredError}
142
142
  * @memberof NotificationsApi
143
143
  */
144
- sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendEmailResponseClass, any, {}>>;
144
+ sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendEmailResponseClass, any, {}, any>>;
145
145
  /**
146
146
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
147
147
  * @summary Send a notification
@@ -150,5 +150,5 @@ export declare class NotificationsApi extends BaseAPI {
150
150
  * @throws {RequiredError}
151
151
  * @memberof NotificationsApi
152
152
  */
153
- sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendNotificationResponseClass, any, {}>>;
153
+ sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendNotificationResponseClass, any, {}, any>>;
154
154
  }
package/dist/common.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
66
  /**
67
67
  * EMIL NotificationService
68
68
  * The EMIL NotificationService API description
package/dist/common.js CHANGED
@@ -233,6 +233,7 @@ exports.toPathString = toPathString;
233
233
  * @export
234
234
  */
235
235
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
236
+ // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
236
237
  return function (axios, basePath) {
237
238
  if (axios === void 0) { axios = globalAxios; }
238
239
  if (basePath === void 0) { basePath = BASE_PATH; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/notification-sdk",
3
- "version": "0.8.1-beta.59",
3
+ "version": "0.8.1-beta.60",
4
4
  "description": "OpenAPI client for @emilgroup/notification-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.18.0"
21
+ "axios": "1.20.0"
22
22
  },
23
23
  "devDependencies": {
24
24