@emilgroup/notification-sdk 0.8.1-beta.49 → 0.8.1-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/.openapi-generator/FILES +0 -20
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +28 -40
  4. package/api/email-tracking-api.ts +40 -271
  5. package/api/email-verifications-api.ts +8 -16
  6. package/api/layouts-api.ts +36 -56
  7. package/api/notification-templates-api.ts +36 -56
  8. package/api/notifications-api.ts +4 -115
  9. package/api.ts +0 -6
  10. package/base.ts +15 -36
  11. package/configuration.ts +0 -11
  12. package/dist/api/email-messages-api.d.ts +28 -40
  13. package/dist/api/email-messages-api.js +25 -37
  14. package/dist/api/email-tracking-api.d.ts +40 -170
  15. package/dist/api/email-tracking-api.js +34 -233
  16. package/dist/api/email-verifications-api.d.ts +8 -16
  17. package/dist/api/email-verifications-api.js +8 -16
  18. package/dist/api/layouts-api.d.ts +36 -56
  19. package/dist/api/layouts-api.js +32 -52
  20. package/dist/api/notification-templates-api.d.ts +36 -56
  21. package/dist/api/notification-templates-api.js +32 -52
  22. package/dist/api/notifications-api.d.ts +4 -65
  23. package/dist/api/notifications-api.js +4 -101
  24. package/dist/api.d.ts +0 -3
  25. package/dist/api.js +0 -3
  26. package/dist/base.d.ts +0 -1
  27. package/dist/base.js +16 -36
  28. package/dist/configuration.d.ts +0 -9
  29. package/dist/configuration.js +0 -1
  30. package/dist/models/email-message-class.d.ts +7 -73
  31. package/dist/models/email-message-class.js +3 -22
  32. package/dist/models/email-thread-class.d.ts +5 -37
  33. package/dist/models/index.d.ts +0 -17
  34. package/dist/models/index.js +0 -17
  35. package/dist/models/send-notification-request-dto.d.ts +1 -10
  36. package/dist/models/send-notification-request-dto.js +1 -2
  37. package/models/email-message-class.ts +8 -78
  38. package/models/email-thread-class.ts +5 -37
  39. package/models/index.ts +0 -17
  40. package/models/send-notification-request-dto.ts +2 -9
  41. package/package.json +1 -1
  42. package/api/email-mailboxes-api.ts +0 -148
  43. package/api/email-subscriptions-api.ts +0 -559
  44. package/api/msgraph-webhooks-api.ts +0 -278
  45. package/dist/api/email-mailboxes-api.d.ts +0 -87
  46. package/dist/api/email-mailboxes-api.js +0 -218
  47. package/dist/api/email-subscriptions-api.d.ts +0 -319
  48. package/dist/api/email-subscriptions-api.js +0 -537
  49. package/dist/api/msgraph-webhooks-api.d.ts +0 -168
  50. package/dist/api/msgraph-webhooks-api.js +0 -305
  51. package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
  52. package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
  53. package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
  54. package/dist/models/assign-email-thread-entity-response-class.js +0 -15
  55. package/dist/models/email-mailbox-class.d.ts +0 -47
  56. package/dist/models/email-mailbox-class.js +0 -20
  57. package/dist/models/email-message-summary-class.d.ts +0 -98
  58. package/dist/models/email-message-summary-class.js +0 -33
  59. package/dist/models/email-subscription-class.d.ts +0 -104
  60. package/dist/models/email-subscription-class.js +0 -23
  61. package/dist/models/entity-ref-class.d.ts +0 -37
  62. package/dist/models/entity-ref-class.js +0 -22
  63. package/dist/models/get-email-subscription-response-class.d.ts +0 -25
  64. package/dist/models/get-email-subscription-response-class.js +0 -15
  65. package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
  66. package/dist/models/grpc-send-email-request-dto.js +0 -22
  67. package/dist/models/inline-attachment-dto.d.ts +0 -36
  68. package/dist/models/inline-attachment-dto.js +0 -15
  69. package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
  70. package/dist/models/list-email-mailboxes-response-class.js +0 -15
  71. package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
  72. package/dist/models/list-email-subscriptions-response-class.js +0 -15
  73. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
  74. package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
  75. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
  76. package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
  77. package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
  78. package/dist/models/renew-email-subscription-response-class.js +0 -15
  79. package/dist/models/send-email-request-dto.d.ts +0 -131
  80. package/dist/models/send-email-request-dto.js +0 -22
  81. package/dist/models/send-email-response-class.d.ts +0 -24
  82. package/dist/models/send-email-response-class.js +0 -15
  83. package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
  84. package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
  85. package/models/assign-email-thread-entity-body-dto.ts +0 -52
  86. package/models/assign-email-thread-entity-response-class.ts +0 -31
  87. package/models/email-mailbox-class.ts +0 -56
  88. package/models/email-message-summary-class.ts +0 -109
  89. package/models/email-subscription-class.ts +0 -113
  90. package/models/entity-ref-class.ts +0 -46
  91. package/models/get-email-subscription-response-class.ts +0 -31
  92. package/models/grpc-send-email-request-dto.ts +0 -144
  93. package/models/inline-attachment-dto.ts +0 -42
  94. package/models/list-email-mailboxes-response-class.ts +0 -49
  95. package/models/list-email-subscriptions-response-class.ts +0 -49
  96. package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
  97. package/models/reconcile-email-subscriptions-response-class.ts +0 -54
  98. package/models/renew-email-subscription-response-class.ts +0 -31
  99. package/models/send-email-request-dto.ts +0 -138
  100. package/models/send-email-response-class.ts +0 -30
  101. package/models/unassign-email-thread-entity-response-class.ts +0 -31
@@ -39,8 +39,7 @@ import { UpdateNotificationTemplateResponseClass } from '../models';
39
39
  export const NotificationTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * Creates a notification template that defines the subject and body of an email. Templates are referenced by their `slug` when sending notifications. **Required Permissions** \"notification-management.email-templates.create\"
43
- * @summary Create the notification template
42
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
44
43
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
45
44
  * @param {string} [authorization] Bearer Token
46
45
  * @param {*} [options] Override http request option.
@@ -86,8 +85,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
86
85
  };
87
86
  },
88
87
  /**
89
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
90
- * @summary Delete the notification template
88
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
91
89
  * @param {number} id
92
90
  * @param {string} [authorization] Bearer Token
93
91
  * @param {*} [options] Override http request option.
@@ -131,8 +129,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
131
129
  };
132
130
  },
133
131
  /**
134
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
135
- * @summary Retrieve the notification template
132
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
136
133
  * @param {number} id
137
134
  * @param {number} id2
138
135
  * @param {string} [authorization] Bearer Token
@@ -188,16 +185,15 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
188
185
  };
189
186
  },
190
187
  /**
191
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
192
- * @summary List notification templates
188
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
193
189
  * @param {string} [authorization] Bearer Token
194
190
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
195
191
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
196
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, slug</i>
192
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
197
193
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
198
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, createdAt</i>
199
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bodyTemplateAlias, headerTemplateAlias, footerTemplateAlias<i>
200
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, slug</i>
194
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
195
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
196
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
201
197
  * @param {*} [options] Override http request option.
202
198
  * @throws {RequiredError}
203
199
  */
@@ -264,8 +260,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
264
260
  };
265
261
  },
266
262
  /**
267
- * 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\"
268
- * @summary Update the notification template
263
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
269
264
  * @param {number} id
270
265
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
271
266
  * @param {string} [authorization] Bearer Token
@@ -325,8 +320,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
325
320
  const localVarAxiosParamCreator = NotificationTemplatesApiAxiosParamCreator(configuration)
326
321
  return {
327
322
  /**
328
- * Creates a notification template that defines the subject and body of an email. Templates are referenced by their `slug` when sending notifications. **Required Permissions** \"notification-management.email-templates.create\"
329
- * @summary Create the notification template
323
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
330
324
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
331
325
  * @param {string} [authorization] Bearer Token
332
326
  * @param {*} [options] Override http request option.
@@ -337,8 +331,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
337
331
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
338
332
  },
339
333
  /**
340
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
341
- * @summary Delete the notification template
334
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
342
335
  * @param {number} id
343
336
  * @param {string} [authorization] Bearer Token
344
337
  * @param {*} [options] Override http request option.
@@ -349,8 +342,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
349
342
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
343
  },
351
344
  /**
352
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
353
- * @summary Retrieve the notification template
345
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
354
346
  * @param {number} id
355
347
  * @param {number} id2
356
348
  * @param {string} [authorization] Bearer Token
@@ -363,16 +355,15 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
363
355
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
356
  },
365
357
  /**
366
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
367
- * @summary List notification templates
358
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
368
359
  * @param {string} [authorization] Bearer Token
369
360
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
370
361
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
371
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, slug</i>
362
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
372
363
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
373
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, createdAt</i>
374
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bodyTemplateAlias, headerTemplateAlias, footerTemplateAlias<i>
375
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, slug</i>
364
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
365
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
366
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
376
367
  * @param {*} [options] Override http request option.
377
368
  * @throws {RequiredError}
378
369
  */
@@ -381,8 +372,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
381
372
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
373
  },
383
374
  /**
384
- * 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\"
385
- * @summary Update the notification template
375
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
386
376
  * @param {number} id
387
377
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
388
378
  * @param {string} [authorization] Bearer Token
@@ -404,8 +394,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
404
394
  const localVarFp = NotificationTemplatesApiFp(configuration)
405
395
  return {
406
396
  /**
407
- * Creates a notification template that defines the subject and body of an email. Templates are referenced by their `slug` when sending notifications. **Required Permissions** \"notification-management.email-templates.create\"
408
- * @summary Create the notification template
397
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
409
398
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
410
399
  * @param {string} [authorization] Bearer Token
411
400
  * @param {*} [options] Override http request option.
@@ -415,8 +404,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
415
404
  return localVarFp.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
416
405
  },
417
406
  /**
418
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
419
- * @summary Delete the notification template
407
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
420
408
  * @param {number} id
421
409
  * @param {string} [authorization] Bearer Token
422
410
  * @param {*} [options] Override http request option.
@@ -426,8 +414,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
426
414
  return localVarFp.deleteNotificationTemplate(id, authorization, options).then((request) => request(axios, basePath));
427
415
  },
428
416
  /**
429
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
430
- * @summary Retrieve the notification template
417
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
431
418
  * @param {number} id
432
419
  * @param {number} id2
433
420
  * @param {string} [authorization] Bearer Token
@@ -439,16 +426,15 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
439
426
  return localVarFp.getNotificationTemplate(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
440
427
  },
441
428
  /**
442
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
443
- * @summary List notification templates
429
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
444
430
  * @param {string} [authorization] Bearer Token
445
431
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
446
432
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
447
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, slug</i>
433
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
448
434
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
449
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, createdAt</i>
450
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bodyTemplateAlias, headerTemplateAlias, footerTemplateAlias<i>
451
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, slug</i>
435
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
436
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
437
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
452
438
  * @param {*} [options] Override http request option.
453
439
  * @throws {RequiredError}
454
440
  */
@@ -456,8 +442,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
456
442
  return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
457
443
  },
458
444
  /**
459
- * 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\"
460
- * @summary Update the notification template
445
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
461
446
  * @param {number} id
462
447
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
463
448
  * @param {string} [authorization] Bearer Token
@@ -575,7 +560,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
575
560
  readonly pageToken?: string
576
561
 
577
562
  /**
578
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: name, slug</i>
563
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
579
564
  * @type {string}
580
565
  * @memberof NotificationTemplatesApiListNotificationTemplates
581
566
  */
@@ -589,21 +574,21 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
589
574
  readonly search?: string
590
575
 
591
576
  /**
592
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, name, createdAt</i>
577
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
593
578
  * @type {string}
594
579
  * @memberof NotificationTemplatesApiListNotificationTemplates
595
580
  */
596
581
  readonly order?: string
597
582
 
598
583
  /**
599
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bodyTemplateAlias, headerTemplateAlias, footerTemplateAlias<i>
584
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
600
585
  * @type {string}
601
586
  * @memberof NotificationTemplatesApiListNotificationTemplates
602
587
  */
603
588
  readonly expand?: string
604
589
 
605
590
  /**
606
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: name, slug</i>
591
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
607
592
  * @type {string}
608
593
  * @memberof NotificationTemplatesApiListNotificationTemplates
609
594
  */
@@ -646,8 +631,7 @@ export interface NotificationTemplatesApiUpdateNotificationTemplateRequest {
646
631
  */
647
632
  export class NotificationTemplatesApi extends BaseAPI {
648
633
  /**
649
- * Creates a notification template that defines the subject and body of an email. Templates are referenced by their `slug` when sending notifications. **Required Permissions** \"notification-management.email-templates.create\"
650
- * @summary Create the notification template
634
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
651
635
  * @param {NotificationTemplatesApiCreateNotificationTemplateRequest} requestParameters Request parameters.
652
636
  * @param {*} [options] Override http request option.
653
637
  * @throws {RequiredError}
@@ -658,8 +642,7 @@ export class NotificationTemplatesApi extends BaseAPI {
658
642
  }
659
643
 
660
644
  /**
661
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
662
- * @summary Delete the notification template
645
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
663
646
  * @param {NotificationTemplatesApiDeleteNotificationTemplateRequest} requestParameters Request parameters.
664
647
  * @param {*} [options] Override http request option.
665
648
  * @throws {RequiredError}
@@ -670,8 +653,7 @@ export class NotificationTemplatesApi extends BaseAPI {
670
653
  }
671
654
 
672
655
  /**
673
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
674
- * @summary Retrieve the notification template
656
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
675
657
  * @param {NotificationTemplatesApiGetNotificationTemplateRequest} requestParameters Request parameters.
676
658
  * @param {*} [options] Override http request option.
677
659
  * @throws {RequiredError}
@@ -682,8 +664,7 @@ export class NotificationTemplatesApi extends BaseAPI {
682
664
  }
683
665
 
684
666
  /**
685
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
686
- * @summary List notification templates
667
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
687
668
  * @param {NotificationTemplatesApiListNotificationTemplatesRequest} requestParameters Request parameters.
688
669
  * @param {*} [options] Override http request option.
689
670
  * @throws {RequiredError}
@@ -694,8 +675,7 @@ export class NotificationTemplatesApi extends BaseAPI {
694
675
  }
695
676
 
696
677
  /**
697
- * 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\"
698
- * @summary Update the notification template
678
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
699
679
  * @param {NotificationTemplatesApiUpdateNotificationTemplateRequest} requestParameters Request parameters.
700
680
  * @param {*} [options] Override http request option.
701
681
  * @throws {RequiredError}
@@ -21,10 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { SendEmailRequestDto } from '../models';
25
- // @ts-ignore
26
- import { SendEmailResponseClass } from '../models';
27
- // @ts-ignore
28
24
  import { SendNotificationRequestDto } from '../models';
29
25
  // @ts-ignore
30
26
  import { SendNotificationResponseClass } from '../models';
@@ -35,55 +31,7 @@ import { SendNotificationResponseClass } from '../models';
35
31
  export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
36
32
  return {
37
33
  /**
38
- * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
39
- * @summary Send an email without a template
40
- * @param {SendEmailRequestDto} sendEmailRequestDto
41
- * @param {string} [authorization] Bearer Token
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- sendEmail: async (sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'sendEmailRequestDto' is not null or undefined
47
- assertParamExists('sendEmail', 'sendEmailRequestDto', sendEmailRequestDto)
48
- const localVarPath = `/notificationservice/v1/notifications/emails`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
- let baseOptions;
52
- let baseAccessToken;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
55
- baseAccessToken = configuration.accessToken;
56
- }
57
-
58
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
- const localVarHeaderParameter = {} as any;
60
- const localVarQueryParameter = {} as any;
61
-
62
- // authentication bearer required
63
- // http bearer authentication required
64
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
-
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
- }
69
-
70
-
71
-
72
- localVarHeaderParameter['Content-Type'] = 'application/json';
73
-
74
- setSearchParams(localVarUrlObj, localVarQueryParameter);
75
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(sendEmailRequestDto, localVarRequestOptions, configuration)
78
-
79
- return {
80
- url: toPathString(localVarUrlObj),
81
- options: localVarRequestOptions,
82
- };
83
- },
84
- /**
85
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
86
- * @summary Send a notification
34
+ * undefined **Required Permissions** none
87
35
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
88
36
  * @param {string} [authorization] Bearer Token
89
37
  * @param {*} [options] Override http request option.
@@ -139,20 +87,7 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
139
87
  const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
140
88
  return {
141
89
  /**
142
- * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
143
- * @summary Send an email without a template
144
- * @param {SendEmailRequestDto} sendEmailRequestDto
145
- * @param {string} [authorization] Bearer Token
146
- * @param {*} [options] Override http request option.
147
- * @throws {RequiredError}
148
- */
149
- async sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendEmailResponseClass>> {
150
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendEmail(sendEmailRequestDto, authorization, options);
151
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
- },
153
- /**
154
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
155
- * @summary Send a notification
90
+ * undefined **Required Permissions** none
156
91
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
157
92
  * @param {string} [authorization] Bearer Token
158
93
  * @param {*} [options] Override http request option.
@@ -173,19 +108,7 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
173
108
  const localVarFp = NotificationsApiFp(configuration)
174
109
  return {
175
110
  /**
176
- * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
177
- * @summary Send an email without a template
178
- * @param {SendEmailRequestDto} sendEmailRequestDto
179
- * @param {string} [authorization] Bearer Token
180
- * @param {*} [options] Override http request option.
181
- * @throws {RequiredError}
182
- */
183
- sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: any): AxiosPromise<SendEmailResponseClass> {
184
- return localVarFp.sendEmail(sendEmailRequestDto, authorization, options).then((request) => request(axios, basePath));
185
- },
186
- /**
187
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
188
- * @summary Send a notification
111
+ * undefined **Required Permissions** none
189
112
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
190
113
  * @param {string} [authorization] Bearer Token
191
114
  * @param {*} [options] Override http request option.
@@ -197,27 +120,6 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
197
120
  };
198
121
  };
199
122
 
200
- /**
201
- * Request parameters for sendEmail operation in NotificationsApi.
202
- * @export
203
- * @interface NotificationsApiSendEmailRequest
204
- */
205
- export interface NotificationsApiSendEmailRequest {
206
- /**
207
- *
208
- * @type {SendEmailRequestDto}
209
- * @memberof NotificationsApiSendEmail
210
- */
211
- readonly sendEmailRequestDto: SendEmailRequestDto
212
-
213
- /**
214
- * Bearer Token
215
- * @type {string}
216
- * @memberof NotificationsApiSendEmail
217
- */
218
- readonly authorization?: string
219
- }
220
-
221
123
  /**
222
124
  * Request parameters for sendNotification operation in NotificationsApi.
223
125
  * @export
@@ -247,20 +149,7 @@ export interface NotificationsApiSendNotificationRequest {
247
149
  */
248
150
  export class NotificationsApi extends BaseAPI {
249
151
  /**
250
- * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
251
- * @summary Send an email without a template
252
- * @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- * @memberof NotificationsApi
256
- */
257
- public sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig) {
258
- return NotificationsApiFp(this.configuration).sendEmail(requestParameters.sendEmailRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
259
- }
260
-
261
- /**
262
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
263
- * @summary Send a notification
152
+ * undefined **Required Permissions** none
264
153
  * @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
265
154
  * @param {*} [options] Override http request option.
266
155
  * @throws {RequiredError}
package/api.ts CHANGED
@@ -20,26 +20,20 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
- import { EmailMailboxesApi } from './api';
24
23
  import { EmailMessagesApi } from './api';
25
- import { EmailSubscriptionsApi } from './api';
26
24
  import { EmailTrackingApi } from './api';
27
25
  import { EmailVerificationsApi } from './api';
28
26
  import { HealthApi } from './api';
29
27
  import { LayoutsApi } from './api';
30
- import { MSGraphWebhooksApi } from './api';
31
28
  import { NotificationTemplatesApi } from './api';
32
29
  import { NotificationsApi } from './api';
33
30
 
34
31
 
35
- export * from './api/email-mailboxes-api';
36
32
  export * from './api/email-messages-api';
37
- export * from './api/email-subscriptions-api';
38
33
  export * from './api/email-tracking-api';
39
34
  export * from './api/email-verifications-api';
40
35
  export * from './api/health-api';
41
36
  export * from './api/layouts-api';
42
- export * from './api/msgraph-webhooks-api';
43
37
  export * from './api/notification-templates-api';
44
38
  export * from './api/notifications-api';
45
39
 
package/base.ts CHANGED
@@ -102,14 +102,10 @@ export class BaseAPI {
102
102
  this.configuration = configuration;
103
103
  this.basePath = configuration.basePath || this.basePath;
104
104
 
105
- if (configuration.cookieAuth) {
106
- this.useCookieAuth();
107
- } else {
108
- // Use config token if provided, otherwise use tokenData token
109
- const configToken = this.configuration.accessToken;
110
- const storedToken = accessToken ? `Bearer ${accessToken}` : '';
111
- this.configuration.accessToken = configToken || storedToken;
112
- }
105
+ // Use config token if provided, otherwise use tokenData token
106
+ const configToken = this.configuration.accessToken;
107
+ const storedToken = accessToken ? `Bearer ${accessToken}` : '';
108
+ this.configuration.accessToken = configToken || storedToken;
113
109
  } else {
114
110
  const { accessToken, username } = this.tokenData;
115
111
 
@@ -123,12 +119,6 @@ export class BaseAPI {
123
119
  this.attachInterceptor(axios);
124
120
  }
125
121
 
126
- // Cookie mode: the browser sends the HttpOnly access cookie, so no token is read from storage.
127
- private useCookieAuth() {
128
- this.configuration.username = this.configuration.username || this.tokenData.username;
129
- this.configuration.baseOptions = { ...this.configuration.baseOptions, withCredentials: true };
130
- }
131
-
132
122
  selectEnvironment(env: Environment) {
133
123
  this.selectBasePath(env);
134
124
  }
@@ -162,12 +152,10 @@ export class BaseAPI {
162
152
  const { data: { accessToken, permissions } } = response;
163
153
 
164
154
  this.configuration.username = username;
155
+ this.configuration.accessToken = `Bearer ${accessToken}`;
165
156
  this.tokenData.username = username;
157
+ this.tokenData.accessToken = accessToken;
166
158
  this.tokenData.permissions = permissions;
167
- if (!this.configuration.cookieAuth) {
168
- this.configuration.accessToken = `Bearer ${accessToken}`;
169
- this.tokenData.accessToken = accessToken;
170
- }
171
159
 
172
160
  // Switch workspace if provided
173
161
  if (targetWorkspace) {
@@ -190,7 +178,7 @@ export class BaseAPI {
190
178
  url: `${this.configuration.basePath}/authservice/v1/workspaces/switch`,
191
179
  headers: {
192
180
  'Content-Type': 'application/json',
193
- ...(this.configuration.cookieAuth ? {} : { 'Authorization': `Bearer ${this.configuration.accessToken}` }),
181
+ 'Authorization': `Bearer ${this.configuration.accessToken}`,
194
182
  },
195
183
  data: {
196
184
  username: this.configuration.username,
@@ -202,12 +190,10 @@ export class BaseAPI {
202
190
  const response = await globalAxios.request<SwitchWorkspaceResponseClass>(options);
203
191
 
204
192
  const { data: { accessToken, permissions } } = response;
205
-
193
+
194
+ this.configuration.accessToken = `Bearer ${accessToken}`;
195
+ this.tokenData.accessToken = accessToken;
206
196
  this.tokenData.permissions = permissions;
207
- if (!this.configuration.cookieAuth) {
208
- this.configuration.accessToken = `Bearer ${accessToken}`;
209
- this.tokenData.accessToken = accessToken;
210
- }
211
197
 
212
198
  this.storeTokenData({
213
199
  ...this.tokenData
@@ -247,11 +233,6 @@ export class BaseAPI {
247
233
 
248
234
  private storeTokenData(tokenData?: TokenData) {
249
235
  if (typeof window !== 'undefined') {
250
- if (tokenData && this.configuration?.cookieAuth) {
251
- // Cookie mode saves who is logged in, never the token; a token saved by apps not yet migrated stays.
252
- const { username, permissions } = tokenData;
253
- tokenData = { ...(defaultStorage().get<TokenData>(TOKEN_DATA) || {}), username, permissions };
254
- }
255
236
  defaultStorage().set<TokenData>(TOKEN_DATA, tokenData);
256
237
  }
257
238
  }
@@ -282,17 +263,15 @@ export class BaseAPI {
282
263
  originalConfig._retry = true;
283
264
  try {
284
265
  const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
266
+ const accessToken = `Bearer ${tokenString}`;
285
267
  this.tokenData.permissions = permissions;
286
268
 
287
269
  delete originalConfig.headers['Authorization']
288
270
 
289
- // In cookie mode the refresh reply renewed the access cookie, so retry without a header.
290
- if (!this.configuration.cookieAuth) {
291
- const accessToken = `Bearer ${tokenString}`;
292
- originalConfig.headers['Authorization'] = accessToken;
293
- this.configuration.accessToken = accessToken;
294
- this.tokenData.accessToken = tokenString;
295
- }
271
+ originalConfig.headers['Authorization'] = accessToken;
272
+
273
+ this.configuration.accessToken = accessToken;
274
+ this.tokenData.accessToken = tokenString;
296
275
 
297
276
  this.storeTokenData(this.tokenData);
298
277
 
package/configuration.ts CHANGED
@@ -21,7 +21,6 @@ export interface ConfigurationParameters {
21
21
  basePath?: string;
22
22
  baseOptions?: any;
23
23
  formDataCtor?: new () => any;
24
- cookieAuth?: boolean;
25
24
  }
26
25
 
27
26
  export class Configuration {
@@ -75,15 +74,6 @@ export class Configuration {
75
74
  */
76
75
  formDataCtor?: new () => any;
77
76
 
78
- /**
79
- * Authenticate with the HttpOnly access cookie instead of a stored token: every call sends credentials.
80
- * The browser holds one cookie, so use it with one logged-in account; log out through the auth service.
81
- *
82
- * @type {boolean}
83
- * @memberof Configuration
84
- */
85
- cookieAuth?: boolean;
86
-
87
77
  constructor(param: ConfigurationParameters = {}) {
88
78
  this.apiKey = param.apiKey;
89
79
  this.username = param.username;
@@ -92,7 +82,6 @@ export class Configuration {
92
82
  this.basePath = param.basePath;
93
83
  this.baseOptions = param.baseOptions;
94
84
  this.formDataCtor = param.formDataCtor;
95
- this.cookieAuth = param.cookieAuth;
96
85
  }
97
86
 
98
87
  /**