@emilgroup/notification-sdk 0.8.1-beta.7 → 0.8.1-beta.70

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 (122) hide show
  1. package/.openapi-generator/FILES +25 -0
  2. package/README.md +2 -2
  3. package/api/email-mailboxes-api.ts +153 -0
  4. package/api/email-messages-api.ts +197 -40
  5. package/api/email-subscriptions-api.ts +799 -0
  6. package/api/email-tracking-api.ts +313 -52
  7. package/api/email-verifications-api.ts +32 -14
  8. package/api/health-api.ts +1 -1
  9. package/api/layouts-api.ts +96 -51
  10. package/api/msgraph-webhooks-api.ts +278 -0
  11. package/api/notification-templates-api.ts +96 -51
  12. package/api/notifications-api.ts +128 -7
  13. package/api.ts +6 -0
  14. package/base.ts +239 -43
  15. package/common.ts +3 -2
  16. package/configuration.ts +20 -0
  17. package/dist/api/email-mailboxes-api.d.ts +87 -0
  18. package/dist/api/email-mailboxes-api.js +225 -0
  19. package/dist/api/email-messages-api.d.ts +110 -32
  20. package/dist/api/email-messages-api.js +199 -56
  21. package/dist/api/email-subscriptions-api.d.ts +432 -0
  22. package/dist/api/email-subscriptions-api.js +761 -0
  23. package/dist/api/email-tracking-api.d.ts +174 -44
  24. package/dist/api/email-tracking-api.js +299 -64
  25. package/dist/api/email-verifications-api.d.ts +18 -10
  26. package/dist/api/email-verifications-api.js +46 -24
  27. package/dist/api/health-api.d.ts +1 -1
  28. package/dist/api/health-api.js +1 -1
  29. package/dist/api/layouts-api.d.ts +61 -41
  30. package/dist/api/layouts-api.js +119 -70
  31. package/dist/api/msgraph-webhooks-api.d.ts +168 -0
  32. package/dist/api/msgraph-webhooks-api.js +305 -0
  33. package/dist/api/notification-templates-api.d.ts +61 -41
  34. package/dist/api/notification-templates-api.js +119 -70
  35. package/dist/api/notifications-api.d.ts +66 -5
  36. package/dist/api/notifications-api.js +123 -12
  37. package/dist/api.d.ts +3 -0
  38. package/dist/api.js +3 -0
  39. package/dist/base.d.ts +26 -0
  40. package/dist/base.js +243 -60
  41. package/dist/common.d.ts +1 -1
  42. package/dist/common.js +1 -0
  43. package/dist/configuration.d.ts +17 -0
  44. package/dist/configuration.js +2 -0
  45. package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
  46. package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
  47. package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
  48. package/dist/models/assign-email-thread-entity-response-class.js +15 -0
  49. package/dist/models/catch-up-email-subscription-response-class.d.ts +24 -0
  50. package/dist/models/catch-up-email-subscription-response-class.js +15 -0
  51. package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +24 -0
  52. package/dist/models/catch-up-email-subscriptions-request-dto.js +15 -0
  53. package/dist/models/catch-up-email-subscriptions-response-class.d.ts +30 -0
  54. package/dist/models/catch-up-email-subscriptions-response-class.js +15 -0
  55. package/dist/models/email-mailbox-class.d.ts +47 -0
  56. package/dist/models/email-mailbox-class.js +20 -0
  57. package/dist/models/email-message-class.d.ts +102 -7
  58. package/dist/models/email-message-class.js +25 -2
  59. package/dist/models/email-message-summary-class.d.ts +121 -0
  60. package/dist/models/email-message-summary-class.js +37 -0
  61. package/dist/models/email-subscription-class.d.ts +110 -0
  62. package/dist/models/email-subscription-class.js +23 -0
  63. package/dist/models/email-thread-class.d.ts +37 -5
  64. package/dist/models/entity-ref-class.d.ts +37 -0
  65. package/dist/models/entity-ref-class.js +22 -0
  66. package/dist/models/get-email-subscription-response-class.d.ts +25 -0
  67. package/dist/models/get-email-subscription-response-class.js +15 -0
  68. package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
  69. package/dist/models/grpc-send-email-request-dto.js +22 -0
  70. package/dist/models/index.d.ts +22 -0
  71. package/dist/models/index.js +22 -0
  72. package/dist/models/inline-attachment-dto.d.ts +36 -0
  73. package/dist/models/inline-attachment-dto.js +15 -0
  74. package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
  75. package/dist/models/list-email-mailboxes-response-class.js +15 -0
  76. package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
  77. package/dist/models/list-email-subscriptions-response-class.js +15 -0
  78. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
  79. package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
  80. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
  81. package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
  82. package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
  83. package/dist/models/renew-email-subscription-response-class.js +15 -0
  84. package/dist/models/resend-email-message-body-dto.d.ts +30 -0
  85. package/dist/models/resend-email-message-body-dto.js +15 -0
  86. package/dist/models/resend-email-message-response-class.d.ts +25 -0
  87. package/dist/models/resend-email-message-response-class.js +15 -0
  88. package/dist/models/send-email-request-dto.d.ts +131 -0
  89. package/dist/models/send-email-request-dto.js +22 -0
  90. package/dist/models/send-email-response-class.d.ts +24 -0
  91. package/dist/models/send-email-response-class.js +15 -0
  92. package/dist/models/send-notification-request-dto.d.ts +10 -1
  93. package/dist/models/send-notification-request-dto.js +2 -1
  94. package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
  95. package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
  96. package/models/assign-email-thread-entity-body-dto.ts +52 -0
  97. package/models/assign-email-thread-entity-response-class.ts +31 -0
  98. package/models/catch-up-email-subscription-response-class.ts +30 -0
  99. package/models/catch-up-email-subscriptions-request-dto.ts +30 -0
  100. package/models/catch-up-email-subscriptions-response-class.ts +36 -0
  101. package/models/email-mailbox-class.ts +56 -0
  102. package/models/email-message-class.ts +108 -8
  103. package/models/email-message-summary-class.ts +133 -0
  104. package/models/email-subscription-class.ts +119 -0
  105. package/models/email-thread-class.ts +37 -5
  106. package/models/entity-ref-class.ts +46 -0
  107. package/models/get-email-subscription-response-class.ts +31 -0
  108. package/models/grpc-send-email-request-dto.ts +144 -0
  109. package/models/index.ts +22 -0
  110. package/models/inline-attachment-dto.ts +42 -0
  111. package/models/list-email-mailboxes-response-class.ts +49 -0
  112. package/models/list-email-subscriptions-response-class.ts +49 -0
  113. package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
  114. package/models/reconcile-email-subscriptions-response-class.ts +54 -0
  115. package/models/renew-email-subscription-response-class.ts +31 -0
  116. package/models/resend-email-message-body-dto.ts +36 -0
  117. package/models/resend-email-message-response-class.ts +31 -0
  118. package/models/send-email-request-dto.ts +138 -0
  119. package/models/send-email-response-class.ts +30 -0
  120. package/models/send-notification-request-dto.ts +9 -2
  121. package/models/unassign-email-thread-entity-response-class.ts +31 -0
  122. package/package.json +2 -2
@@ -39,7 +39,8 @@ import { UpdateNotificationTemplateResponseClass } from '../models';
39
39
  export const NotificationTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * undefined **Required Permissions** \"notification-management.email-templates.create\"
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
43
44
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
44
45
  * @param {string} [authorization] Bearer Token
45
46
  * @param {*} [options] Override http request option.
@@ -66,8 +67,13 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
66
67
  // http bearer authentication required
67
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
69
 
69
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
70
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
+ if (authorizationValue || authorizationKeepEmpty) {
76
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
71
77
  }
72
78
 
73
79
 
@@ -85,7 +91,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
85
91
  };
86
92
  },
87
93
  /**
88
- * undefined **Required Permissions** \"notification-management.email-templates.delete\"
94
+ * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
95
+ * @summary Delete the notification template
89
96
  * @param {number} id
90
97
  * @param {string} [authorization] Bearer Token
91
98
  * @param {*} [options] Override http request option.
@@ -113,8 +120,13 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
113
120
  // http bearer authentication required
114
121
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
122
 
116
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
117
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
124
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
125
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
126
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
127
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
128
+ if (authorizationValue || authorizationKeepEmpty) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
118
130
  }
119
131
 
120
132
 
@@ -129,7 +141,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
129
141
  };
130
142
  },
131
143
  /**
132
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
144
+ * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
145
+ * @summary Retrieve the notification template
133
146
  * @param {number} id
134
147
  * @param {number} id2
135
148
  * @param {string} [authorization] Bearer Token
@@ -169,8 +182,13 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
169
182
  localVarQueryParameter['expand'] = expand;
170
183
  }
171
184
 
172
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
173
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
185
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
186
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
187
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
188
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
189
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
190
+ if (authorizationValue || authorizationKeepEmpty) {
191
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
174
192
  }
175
193
 
176
194
 
@@ -185,15 +203,16 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
185
203
  };
186
204
  },
187
205
  /**
188
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
206
+ * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
207
+ * @summary List notification templates
189
208
  * @param {string} [authorization] Bearer Token
190
209
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
191
210
  * @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.
192
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
211
+ * @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>
193
212
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.
213
+ * @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>
214
+ * @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>
215
+ * @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>
197
216
  * @param {*} [options] Override http request option.
198
217
  * @throws {RequiredError}
199
218
  */
@@ -244,8 +263,13 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
244
263
  localVarQueryParameter['filters'] = filters;
245
264
  }
246
265
 
247
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
248
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
266
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
267
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
268
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
269
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
270
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
271
+ if (authorizationValue || authorizationKeepEmpty) {
272
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
249
273
  }
250
274
 
251
275
 
@@ -260,7 +284,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
260
284
  };
261
285
  },
262
286
  /**
263
- * undefined **Required Permissions** \"notification-management.email-templates.update\"
287
+ * 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\"
288
+ * @summary Update the notification template
264
289
  * @param {number} id
265
290
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
266
291
  * @param {string} [authorization] Bearer Token
@@ -291,8 +316,13 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
291
316
  // http bearer authentication required
292
317
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
318
 
294
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
320
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
321
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
322
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
323
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
324
+ if (authorizationValue || authorizationKeepEmpty) {
325
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
296
326
  }
297
327
 
298
328
 
@@ -320,7 +350,8 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
320
350
  const localVarAxiosParamCreator = NotificationTemplatesApiAxiosParamCreator(configuration)
321
351
  return {
322
352
  /**
323
- * undefined **Required Permissions** \"notification-management.email-templates.create\"
353
+ * 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\"
354
+ * @summary Create the notification template
324
355
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
325
356
  * @param {string} [authorization] Bearer Token
326
357
  * @param {*} [options] Override http request option.
@@ -331,7 +362,8 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
331
362
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
332
363
  },
333
364
  /**
334
- * undefined **Required Permissions** \"notification-management.email-templates.delete\"
365
+ * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
366
+ * @summary Delete the notification template
335
367
  * @param {number} id
336
368
  * @param {string} [authorization] Bearer Token
337
369
  * @param {*} [options] Override http request option.
@@ -342,7 +374,8 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
342
374
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
375
  },
344
376
  /**
345
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
377
+ * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
378
+ * @summary Retrieve the notification template
346
379
  * @param {number} id
347
380
  * @param {number} id2
348
381
  * @param {string} [authorization] Bearer Token
@@ -355,15 +388,16 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
355
388
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
356
389
  },
357
390
  /**
358
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
391
+ * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
392
+ * @summary List notification templates
359
393
  * @param {string} [authorization] Bearer Token
360
394
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
361
395
  * @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.
362
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
396
+ * @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>
363
397
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.
398
+ * @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>
399
+ * @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>
400
+ * @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>
367
401
  * @param {*} [options] Override http request option.
368
402
  * @throws {RequiredError}
369
403
  */
@@ -372,7 +406,8 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
372
406
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
407
  },
374
408
  /**
375
- * undefined **Required Permissions** \"notification-management.email-templates.update\"
409
+ * 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\"
410
+ * @summary Update the notification template
376
411
  * @param {number} id
377
412
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
378
413
  * @param {string} [authorization] Bearer Token
@@ -394,7 +429,8 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
394
429
  const localVarFp = NotificationTemplatesApiFp(configuration)
395
430
  return {
396
431
  /**
397
- * undefined **Required Permissions** \"notification-management.email-templates.create\"
432
+ * 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\"
433
+ * @summary Create the notification template
398
434
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
399
435
  * @param {string} [authorization] Bearer Token
400
436
  * @param {*} [options] Override http request option.
@@ -404,7 +440,8 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
404
440
  return localVarFp.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
405
441
  },
406
442
  /**
407
- * undefined **Required Permissions** \"notification-management.email-templates.delete\"
443
+ * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
444
+ * @summary Delete the notification template
408
445
  * @param {number} id
409
446
  * @param {string} [authorization] Bearer Token
410
447
  * @param {*} [options] Override http request option.
@@ -414,7 +451,8 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
414
451
  return localVarFp.deleteNotificationTemplate(id, authorization, options).then((request) => request(axios, basePath));
415
452
  },
416
453
  /**
417
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
454
+ * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
455
+ * @summary Retrieve the notification template
418
456
  * @param {number} id
419
457
  * @param {number} id2
420
458
  * @param {string} [authorization] Bearer Token
@@ -426,15 +464,16 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
426
464
  return localVarFp.getNotificationTemplate(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
427
465
  },
428
466
  /**
429
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
467
+ * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
468
+ * @summary List notification templates
430
469
  * @param {string} [authorization] Bearer Token
431
470
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
432
471
  * @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.
433
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
472
+ * @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>
434
473
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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.
474
+ * @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>
475
+ * @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>
476
+ * @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>
438
477
  * @param {*} [options] Override http request option.
439
478
  * @throws {RequiredError}
440
479
  */
@@ -442,7 +481,8 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
442
481
  return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
443
482
  },
444
483
  /**
445
- * undefined **Required Permissions** \"notification-management.email-templates.update\"
484
+ * 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\"
485
+ * @summary Update the notification template
446
486
  * @param {number} id
447
487
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
448
488
  * @param {string} [authorization] Bearer Token
@@ -560,7 +600,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
560
600
  readonly pageToken?: string
561
601
 
562
602
  /**
563
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
603
+ * 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>
564
604
  * @type {string}
565
605
  * @memberof NotificationTemplatesApiListNotificationTemplates
566
606
  */
@@ -574,21 +614,21 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
574
614
  readonly search?: string
575
615
 
576
616
  /**
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.
617
+ * 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>
578
618
  * @type {string}
579
619
  * @memberof NotificationTemplatesApiListNotificationTemplates
580
620
  */
581
621
  readonly order?: string
582
622
 
583
623
  /**
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.
624
+ * 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>
585
625
  * @type {string}
586
626
  * @memberof NotificationTemplatesApiListNotificationTemplates
587
627
  */
588
628
  readonly expand?: string
589
629
 
590
630
  /**
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.
631
+ * 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>
592
632
  * @type {string}
593
633
  * @memberof NotificationTemplatesApiListNotificationTemplates
594
634
  */
@@ -631,57 +671,62 @@ export interface NotificationTemplatesApiUpdateNotificationTemplateRequest {
631
671
  */
632
672
  export class NotificationTemplatesApi extends BaseAPI {
633
673
  /**
634
- * undefined **Required Permissions** \"notification-management.email-templates.create\"
674
+ * 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\"
675
+ * @summary Create the notification template
635
676
  * @param {NotificationTemplatesApiCreateNotificationTemplateRequest} requestParameters Request parameters.
636
677
  * @param {*} [options] Override http request option.
637
678
  * @throws {RequiredError}
638
679
  * @memberof NotificationTemplatesApi
639
680
  */
640
681
  public createNotificationTemplate(requestParameters: NotificationTemplatesApiCreateNotificationTemplateRequest, options?: AxiosRequestConfig) {
641
- return NotificationTemplatesApiFp(this.configuration).createNotificationTemplate(requestParameters.createNotificationTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
682
+ return NotificationTemplatesApiFp(this.configuration).createNotificationTemplate(requestParameters.createNotificationTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
642
683
  }
643
684
 
644
685
  /**
645
- * undefined **Required Permissions** \"notification-management.email-templates.delete\"
686
+ * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
687
+ * @summary Delete the notification template
646
688
  * @param {NotificationTemplatesApiDeleteNotificationTemplateRequest} requestParameters Request parameters.
647
689
  * @param {*} [options] Override http request option.
648
690
  * @throws {RequiredError}
649
691
  * @memberof NotificationTemplatesApi
650
692
  */
651
693
  public deleteNotificationTemplate(requestParameters: NotificationTemplatesApiDeleteNotificationTemplateRequest, options?: AxiosRequestConfig) {
652
- return NotificationTemplatesApiFp(this.configuration).deleteNotificationTemplate(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
694
+ return NotificationTemplatesApiFp(this.configuration).deleteNotificationTemplate(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
653
695
  }
654
696
 
655
697
  /**
656
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
698
+ * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
699
+ * @summary Retrieve the notification template
657
700
  * @param {NotificationTemplatesApiGetNotificationTemplateRequest} requestParameters Request parameters.
658
701
  * @param {*} [options] Override http request option.
659
702
  * @throws {RequiredError}
660
703
  * @memberof NotificationTemplatesApi
661
704
  */
662
705
  public getNotificationTemplate(requestParameters: NotificationTemplatesApiGetNotificationTemplateRequest, options?: AxiosRequestConfig) {
663
- return NotificationTemplatesApiFp(this.configuration).getNotificationTemplate(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
706
+ return NotificationTemplatesApiFp(this.configuration).getNotificationTemplate(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
664
707
  }
665
708
 
666
709
  /**
667
- * undefined **Required Permissions** \"notification-management.email-templates.view\"
710
+ * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
711
+ * @summary List notification templates
668
712
  * @param {NotificationTemplatesApiListNotificationTemplatesRequest} requestParameters Request parameters.
669
713
  * @param {*} [options] Override http request option.
670
714
  * @throws {RequiredError}
671
715
  * @memberof NotificationTemplatesApi
672
716
  */
673
717
  public listNotificationTemplates(requestParameters: NotificationTemplatesApiListNotificationTemplatesRequest = {}, options?: AxiosRequestConfig) {
674
- return NotificationTemplatesApiFp(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
718
+ return NotificationTemplatesApiFp(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
675
719
  }
676
720
 
677
721
  /**
678
- * undefined **Required Permissions** \"notification-management.email-templates.update\"
722
+ * 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\"
723
+ * @summary Update the notification template
679
724
  * @param {NotificationTemplatesApiUpdateNotificationTemplateRequest} requestParameters Request parameters.
680
725
  * @param {*} [options] Override http request option.
681
726
  * @throws {RequiredError}
682
727
  * @memberof NotificationTemplatesApi
683
728
  */
684
729
  public updateNotificationTemplate(requestParameters: NotificationTemplatesApiUpdateNotificationTemplateRequest, options?: AxiosRequestConfig) {
685
- return NotificationTemplatesApiFp(this.configuration).updateNotificationTemplate(requestParameters.id, requestParameters.updateNotificationTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
730
+ return NotificationTemplatesApiFp(this.configuration).updateNotificationTemplate(requestParameters.id, requestParameters.updateNotificationTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
686
731
  }
687
732
  }
@@ -21,6 +21,10 @@ 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
24
28
  import { SendNotificationRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { SendNotificationResponseClass } from '../models';
@@ -31,7 +35,60 @@ import { SendNotificationResponseClass } from '../models';
31
35
  export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
32
36
  return {
33
37
  /**
34
- * undefined **Required Permissions** none
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
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
67
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
68
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
69
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
70
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
71
+ if (authorizationValue || authorizationKeepEmpty) {
72
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
73
+ }
74
+
75
+
76
+
77
+ localVarHeaderParameter['Content-Type'] = 'application/json';
78
+
79
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
80
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
+ localVarRequestOptions.data = serializeDataIfNeeded(sendEmailRequestDto, localVarRequestOptions, configuration)
83
+
84
+ return {
85
+ url: toPathString(localVarUrlObj),
86
+ options: localVarRequestOptions,
87
+ };
88
+ },
89
+ /**
90
+ * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
91
+ * @summary Send a notification
35
92
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
36
93
  * @param {string} [authorization] Bearer Token
37
94
  * @param {*} [options] Override http request option.
@@ -58,8 +115,13 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
58
115
  // http bearer authentication required
59
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
117
 
61
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
62
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
118
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
119
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
120
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
121
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
122
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
123
+ if (authorizationValue || authorizationKeepEmpty) {
124
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
63
125
  }
64
126
 
65
127
 
@@ -87,7 +149,20 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
87
149
  const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
88
150
  return {
89
151
  /**
90
- * undefined **Required Permissions** none
152
+ * 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
153
+ * @summary Send an email without a template
154
+ * @param {SendEmailRequestDto} sendEmailRequestDto
155
+ * @param {string} [authorization] Bearer Token
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ async sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendEmailResponseClass>> {
160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendEmail(sendEmailRequestDto, authorization, options);
161
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
162
+ },
163
+ /**
164
+ * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
165
+ * @summary Send a notification
91
166
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
92
167
  * @param {string} [authorization] Bearer Token
93
168
  * @param {*} [options] Override http request option.
@@ -108,7 +183,19 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
108
183
  const localVarFp = NotificationsApiFp(configuration)
109
184
  return {
110
185
  /**
111
- * undefined **Required Permissions** none
186
+ * 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
187
+ * @summary Send an email without a template
188
+ * @param {SendEmailRequestDto} sendEmailRequestDto
189
+ * @param {string} [authorization] Bearer Token
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: any): AxiosPromise<SendEmailResponseClass> {
194
+ return localVarFp.sendEmail(sendEmailRequestDto, authorization, options).then((request) => request(axios, basePath));
195
+ },
196
+ /**
197
+ * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
198
+ * @summary Send a notification
112
199
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
113
200
  * @param {string} [authorization] Bearer Token
114
201
  * @param {*} [options] Override http request option.
@@ -120,6 +207,27 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
120
207
  };
121
208
  };
122
209
 
210
+ /**
211
+ * Request parameters for sendEmail operation in NotificationsApi.
212
+ * @export
213
+ * @interface NotificationsApiSendEmailRequest
214
+ */
215
+ export interface NotificationsApiSendEmailRequest {
216
+ /**
217
+ *
218
+ * @type {SendEmailRequestDto}
219
+ * @memberof NotificationsApiSendEmail
220
+ */
221
+ readonly sendEmailRequestDto: SendEmailRequestDto
222
+
223
+ /**
224
+ * Bearer Token
225
+ * @type {string}
226
+ * @memberof NotificationsApiSendEmail
227
+ */
228
+ readonly authorization?: string
229
+ }
230
+
123
231
  /**
124
232
  * Request parameters for sendNotification operation in NotificationsApi.
125
233
  * @export
@@ -149,13 +257,26 @@ export interface NotificationsApiSendNotificationRequest {
149
257
  */
150
258
  export class NotificationsApi extends BaseAPI {
151
259
  /**
152
- * undefined **Required Permissions** none
260
+ * 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
261
+ * @summary Send an email without a template
262
+ * @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ * @memberof NotificationsApi
266
+ */
267
+ public sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig) {
268
+ return NotificationsApiFp(this.configuration).sendEmail(requestParameters.sendEmailRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
269
+ }
270
+
271
+ /**
272
+ * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
273
+ * @summary Send a notification
153
274
  * @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
154
275
  * @param {*} [options] Override http request option.
155
276
  * @throws {RequiredError}
156
277
  * @memberof NotificationsApi
157
278
  */
158
279
  public sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig) {
159
- return NotificationsApiFp(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
280
+ return NotificationsApiFp(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
160
281
  }
161
282
  }
package/api.ts CHANGED
@@ -20,20 +20,26 @@ 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';
23
24
  import { EmailMessagesApi } from './api';
25
+ import { EmailSubscriptionsApi } from './api';
24
26
  import { EmailTrackingApi } from './api';
25
27
  import { EmailVerificationsApi } from './api';
26
28
  import { HealthApi } from './api';
27
29
  import { LayoutsApi } from './api';
30
+ import { MSGraphWebhooksApi } from './api';
28
31
  import { NotificationTemplatesApi } from './api';
29
32
  import { NotificationsApi } from './api';
30
33
 
31
34
 
35
+ export * from './api/email-mailboxes-api';
32
36
  export * from './api/email-messages-api';
37
+ export * from './api/email-subscriptions-api';
33
38
  export * from './api/email-tracking-api';
34
39
  export * from './api/email-verifications-api';
35
40
  export * from './api/health-api';
36
41
  export * from './api/layouts-api';
42
+ export * from './api/msgraph-webhooks-api';
37
43
  export * from './api/notification-templates-api';
38
44
  export * from './api/notifications-api';
39
45