@emilgroup/notification-sdk 0.8.1-beta.59 → 0.8.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -23
- package/README.md +2 -2
- package/api/email-messages-api.ts +36 -56
- package/api/email-tracking-api.ts +48 -291
- package/api/email-verifications-api.ts +12 -24
- package/api/layouts-api.ts +46 -76
- package/api/notification-templates-api.ts +46 -76
- package/api/notifications-api.ts +6 -121
- package/api.ts +0 -6
- package/base.ts +41 -174
- package/configuration.ts +0 -20
- package/dist/api/email-messages-api.d.ts +28 -40
- package/dist/api/email-messages-api.js +40 -62
- package/dist/api/email-tracking-api.d.ts +40 -170
- package/dist/api/email-tracking-api.js +48 -261
- package/dist/api/email-verifications-api.d.ts +8 -16
- package/dist/api/email-verifications-api.js +16 -30
- package/dist/api/layouts-api.d.ts +36 -56
- package/dist/api/layouts-api.js +50 -81
- package/dist/api/notification-templates-api.d.ts +36 -56
- package/dist/api/notification-templates-api.js +50 -81
- package/dist/api/notifications-api.d.ts +4 -65
- package/dist/api/notifications-api.js +8 -111
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/base.d.ts +0 -24
- package/dist/base.js +59 -178
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/email-message-class.d.ts +7 -73
- package/dist/models/email-message-class.js +3 -22
- package/dist/models/email-thread-class.d.ts +5 -37
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -20
- package/dist/models/send-notification-request-dto.d.ts +1 -10
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +8 -78
- package/models/email-thread-class.ts +5 -37
- package/models/index.ts +0 -20
- package/models/send-notification-request-dto.ts +2 -9
- package/package.json +1 -1
- package/api/email-mailboxes-api.ts +0 -150
- package/api/email-subscriptions-api.ts +0 -781
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/email-mailboxes-api.d.ts +0 -87
- package/dist/api/email-mailboxes-api.js +0 -221
- package/dist/api/email-subscriptions-api.d.ts +0 -432
- package/dist/api/email-subscriptions-api.js +0 -738
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
- package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-thread-entity-response-class.js +0 -15
- package/dist/models/catch-up-email-subscription-response-class.d.ts +0 -24
- package/dist/models/catch-up-email-subscription-response-class.js +0 -15
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
- package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
- package/dist/models/email-mailbox-class.d.ts +0 -47
- package/dist/models/email-mailbox-class.js +0 -20
- package/dist/models/email-message-summary-class.d.ts +0 -98
- package/dist/models/email-message-summary-class.js +0 -33
- package/dist/models/email-subscription-class.d.ts +0 -110
- package/dist/models/email-subscription-class.js +0 -23
- package/dist/models/entity-ref-class.d.ts +0 -37
- package/dist/models/entity-ref-class.js +0 -22
- package/dist/models/get-email-subscription-response-class.d.ts +0 -25
- package/dist/models/get-email-subscription-response-class.js +0 -15
- package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
- package/dist/models/grpc-send-email-request-dto.js +0 -22
- package/dist/models/inline-attachment-dto.d.ts +0 -36
- package/dist/models/inline-attachment-dto.js +0 -15
- package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
- package/dist/models/list-email-mailboxes-response-class.js +0 -15
- package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
- package/dist/models/list-email-subscriptions-response-class.js +0 -15
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
- package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
- package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
- package/dist/models/renew-email-subscription-response-class.js +0 -15
- package/dist/models/send-email-request-dto.d.ts +0 -131
- package/dist/models/send-email-request-dto.js +0 -22
- package/dist/models/send-email-response-class.d.ts +0 -24
- package/dist/models/send-email-response-class.js +0 -15
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
- package/models/assign-email-thread-entity-body-dto.ts +0 -52
- package/models/assign-email-thread-entity-response-class.ts +0 -31
- package/models/catch-up-email-subscription-response-class.ts +0 -30
- package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
- package/models/catch-up-email-subscriptions-response-class.ts +0 -36
- package/models/email-mailbox-class.ts +0 -56
- package/models/email-message-summary-class.ts +0 -109
- package/models/email-subscription-class.ts +0 -119
- package/models/entity-ref-class.ts +0 -46
- package/models/get-email-subscription-response-class.ts +0 -31
- package/models/grpc-send-email-request-dto.ts +0 -144
- package/models/inline-attachment-dto.ts +0 -42
- package/models/list-email-mailboxes-response-class.ts +0 -49
- package/models/list-email-subscriptions-response-class.ts +0 -49
- package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
- package/models/reconcile-email-subscriptions-response-class.ts +0 -54
- package/models/renew-email-subscription-response-class.ts +0 -31
- package/models/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
- 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
|
-
*
|
|
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.
|
|
@@ -67,10 +66,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
67
66
|
// http bearer authentication required
|
|
68
67
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (authorizationValue) {
|
|
73
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
69
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
70
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
|
|
@@ -88,8 +85,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
88
85
|
};
|
|
89
86
|
},
|
|
90
87
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @summary Delete the notification template
|
|
88
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
93
89
|
* @param {number} id
|
|
94
90
|
* @param {string} [authorization] Bearer Token
|
|
95
91
|
* @param {*} [options] Override http request option.
|
|
@@ -117,10 +113,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
117
113
|
// http bearer authentication required
|
|
118
114
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
115
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (authorizationValue) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
116
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
117
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
118
|
}
|
|
125
119
|
|
|
126
120
|
|
|
@@ -135,8 +129,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
135
129
|
};
|
|
136
130
|
},
|
|
137
131
|
/**
|
|
138
|
-
*
|
|
139
|
-
* @summary Retrieve the notification template
|
|
132
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
140
133
|
* @param {number} id
|
|
141
134
|
* @param {number} id2
|
|
142
135
|
* @param {string} [authorization] Bearer Token
|
|
@@ -176,10 +169,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
176
169
|
localVarQueryParameter['expand'] = expand;
|
|
177
170
|
}
|
|
178
171
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
if (authorizationValue) {
|
|
182
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
173
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
174
|
}
|
|
184
175
|
|
|
185
176
|
|
|
@@ -194,16 +185,15 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
194
185
|
};
|
|
195
186
|
},
|
|
196
187
|
/**
|
|
197
|
-
*
|
|
198
|
-
* @summary List notification templates
|
|
188
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
199
189
|
* @param {string} [authorization] Bearer Token
|
|
200
190
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
201
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.
|
|
202
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
192
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
203
193
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
204
|
-
* @param {string} [order]
|
|
205
|
-
* @param {string} [expand]
|
|
206
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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.
|
|
207
197
|
* @param {*} [options] Override http request option.
|
|
208
198
|
* @throws {RequiredError}
|
|
209
199
|
*/
|
|
@@ -254,10 +244,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
254
244
|
localVarQueryParameter['filters'] = filters;
|
|
255
245
|
}
|
|
256
246
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (authorizationValue) {
|
|
260
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
248
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
261
249
|
}
|
|
262
250
|
|
|
263
251
|
|
|
@@ -272,8 +260,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
272
260
|
};
|
|
273
261
|
},
|
|
274
262
|
/**
|
|
275
|
-
*
|
|
276
|
-
* @summary Update the notification template
|
|
263
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
277
264
|
* @param {number} id
|
|
278
265
|
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
279
266
|
* @param {string} [authorization] Bearer Token
|
|
@@ -304,10 +291,8 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
304
291
|
// http bearer authentication required
|
|
305
292
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
306
293
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
if (authorizationValue) {
|
|
310
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
311
296
|
}
|
|
312
297
|
|
|
313
298
|
|
|
@@ -335,8 +320,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
335
320
|
const localVarAxiosParamCreator = NotificationTemplatesApiAxiosParamCreator(configuration)
|
|
336
321
|
return {
|
|
337
322
|
/**
|
|
338
|
-
*
|
|
339
|
-
* @summary Create the notification template
|
|
323
|
+
* undefined **Required Permissions** \"notification-management.email-templates.create\"
|
|
340
324
|
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
341
325
|
* @param {string} [authorization] Bearer Token
|
|
342
326
|
* @param {*} [options] Override http request option.
|
|
@@ -347,8 +331,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
347
331
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
348
332
|
},
|
|
349
333
|
/**
|
|
350
|
-
*
|
|
351
|
-
* @summary Delete the notification template
|
|
334
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
352
335
|
* @param {number} id
|
|
353
336
|
* @param {string} [authorization] Bearer Token
|
|
354
337
|
* @param {*} [options] Override http request option.
|
|
@@ -359,8 +342,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
359
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
360
343
|
},
|
|
361
344
|
/**
|
|
362
|
-
*
|
|
363
|
-
* @summary Retrieve the notification template
|
|
345
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
364
346
|
* @param {number} id
|
|
365
347
|
* @param {number} id2
|
|
366
348
|
* @param {string} [authorization] Bearer Token
|
|
@@ -373,16 +355,15 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
373
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
374
356
|
},
|
|
375
357
|
/**
|
|
376
|
-
*
|
|
377
|
-
* @summary List notification templates
|
|
358
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
378
359
|
* @param {string} [authorization] Bearer Token
|
|
379
360
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
380
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.
|
|
381
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
362
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
382
363
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
383
|
-
* @param {string} [order]
|
|
384
|
-
* @param {string} [expand]
|
|
385
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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.
|
|
386
367
|
* @param {*} [options] Override http request option.
|
|
387
368
|
* @throws {RequiredError}
|
|
388
369
|
*/
|
|
@@ -391,8 +372,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
391
372
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
373
|
},
|
|
393
374
|
/**
|
|
394
|
-
*
|
|
395
|
-
* @summary Update the notification template
|
|
375
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
396
376
|
* @param {number} id
|
|
397
377
|
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
398
378
|
* @param {string} [authorization] Bearer Token
|
|
@@ -414,8 +394,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
414
394
|
const localVarFp = NotificationTemplatesApiFp(configuration)
|
|
415
395
|
return {
|
|
416
396
|
/**
|
|
417
|
-
*
|
|
418
|
-
* @summary Create the notification template
|
|
397
|
+
* undefined **Required Permissions** \"notification-management.email-templates.create\"
|
|
419
398
|
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
420
399
|
* @param {string} [authorization] Bearer Token
|
|
421
400
|
* @param {*} [options] Override http request option.
|
|
@@ -425,8 +404,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
425
404
|
return localVarFp.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
426
405
|
},
|
|
427
406
|
/**
|
|
428
|
-
*
|
|
429
|
-
* @summary Delete the notification template
|
|
407
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
430
408
|
* @param {number} id
|
|
431
409
|
* @param {string} [authorization] Bearer Token
|
|
432
410
|
* @param {*} [options] Override http request option.
|
|
@@ -436,8 +414,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
436
414
|
return localVarFp.deleteNotificationTemplate(id, authorization, options).then((request) => request(axios, basePath));
|
|
437
415
|
},
|
|
438
416
|
/**
|
|
439
|
-
*
|
|
440
|
-
* @summary Retrieve the notification template
|
|
417
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
441
418
|
* @param {number} id
|
|
442
419
|
* @param {number} id2
|
|
443
420
|
* @param {string} [authorization] Bearer Token
|
|
@@ -449,16 +426,15 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
449
426
|
return localVarFp.getNotificationTemplate(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
450
427
|
},
|
|
451
428
|
/**
|
|
452
|
-
*
|
|
453
|
-
* @summary List notification templates
|
|
429
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
454
430
|
* @param {string} [authorization] Bearer Token
|
|
455
431
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
456
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.
|
|
457
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
433
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
458
434
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
459
|
-
* @param {string} [order]
|
|
460
|
-
* @param {string} [expand]
|
|
461
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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.
|
|
462
438
|
* @param {*} [options] Override http request option.
|
|
463
439
|
* @throws {RequiredError}
|
|
464
440
|
*/
|
|
@@ -466,8 +442,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
466
442
|
return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
467
443
|
},
|
|
468
444
|
/**
|
|
469
|
-
*
|
|
470
|
-
* @summary Update the notification template
|
|
445
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
471
446
|
* @param {number} id
|
|
472
447
|
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
473
448
|
* @param {string} [authorization] Bearer Token
|
|
@@ -585,7 +560,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
|
|
|
585
560
|
readonly pageToken?: string
|
|
586
561
|
|
|
587
562
|
/**
|
|
588
|
-
* Filter the response by one or multiple fields.
|
|
563
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
589
564
|
* @type {string}
|
|
590
565
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
591
566
|
*/
|
|
@@ -599,21 +574,21 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
|
|
|
599
574
|
readonly search?: string
|
|
600
575
|
|
|
601
576
|
/**
|
|
602
|
-
*
|
|
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.
|
|
603
578
|
* @type {string}
|
|
604
579
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
605
580
|
*/
|
|
606
581
|
readonly order?: string
|
|
607
582
|
|
|
608
583
|
/**
|
|
609
|
-
*
|
|
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.
|
|
610
585
|
* @type {string}
|
|
611
586
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
612
587
|
*/
|
|
613
588
|
readonly expand?: string
|
|
614
589
|
|
|
615
590
|
/**
|
|
616
|
-
* Filters the response by one or multiple fields.
|
|
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.
|
|
617
592
|
* @type {string}
|
|
618
593
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
619
594
|
*/
|
|
@@ -656,8 +631,7 @@ export interface NotificationTemplatesApiUpdateNotificationTemplateRequest {
|
|
|
656
631
|
*/
|
|
657
632
|
export class NotificationTemplatesApi extends BaseAPI {
|
|
658
633
|
/**
|
|
659
|
-
*
|
|
660
|
-
* @summary Create the notification template
|
|
634
|
+
* undefined **Required Permissions** \"notification-management.email-templates.create\"
|
|
661
635
|
* @param {NotificationTemplatesApiCreateNotificationTemplateRequest} requestParameters Request parameters.
|
|
662
636
|
* @param {*} [options] Override http request option.
|
|
663
637
|
* @throws {RequiredError}
|
|
@@ -668,8 +642,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
668
642
|
}
|
|
669
643
|
|
|
670
644
|
/**
|
|
671
|
-
*
|
|
672
|
-
* @summary Delete the notification template
|
|
645
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
673
646
|
* @param {NotificationTemplatesApiDeleteNotificationTemplateRequest} requestParameters Request parameters.
|
|
674
647
|
* @param {*} [options] Override http request option.
|
|
675
648
|
* @throws {RequiredError}
|
|
@@ -680,8 +653,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
680
653
|
}
|
|
681
654
|
|
|
682
655
|
/**
|
|
683
|
-
*
|
|
684
|
-
* @summary Retrieve the notification template
|
|
656
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
685
657
|
* @param {NotificationTemplatesApiGetNotificationTemplateRequest} requestParameters Request parameters.
|
|
686
658
|
* @param {*} [options] Override http request option.
|
|
687
659
|
* @throws {RequiredError}
|
|
@@ -692,8 +664,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
692
664
|
}
|
|
693
665
|
|
|
694
666
|
/**
|
|
695
|
-
*
|
|
696
|
-
* @summary List notification templates
|
|
667
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
697
668
|
* @param {NotificationTemplatesApiListNotificationTemplatesRequest} requestParameters Request parameters.
|
|
698
669
|
* @param {*} [options] Override http request option.
|
|
699
670
|
* @throws {RequiredError}
|
|
@@ -704,8 +675,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
704
675
|
}
|
|
705
676
|
|
|
706
677
|
/**
|
|
707
|
-
*
|
|
708
|
-
* @summary Update the notification template
|
|
678
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
709
679
|
* @param {NotificationTemplatesApiUpdateNotificationTemplateRequest} requestParameters Request parameters.
|
|
710
680
|
* @param {*} [options] Override http request option.
|
|
711
681
|
* @throws {RequiredError}
|
package/api/notifications-api.ts
CHANGED
|
@@ -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,57 +31,7 @@ import { SendNotificationResponseClass } from '../models';
|
|
|
35
31
|
export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
32
|
return {
|
|
37
33
|
/**
|
|
38
|
-
*
|
|
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; an empty value is never sent.
|
|
67
|
-
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
68
|
-
if (authorizationValue) {
|
|
69
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
-
|
|
76
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendEmailRequestDto, localVarRequestOptions, configuration)
|
|
80
|
-
|
|
81
|
-
return {
|
|
82
|
-
url: toPathString(localVarUrlObj),
|
|
83
|
-
options: localVarRequestOptions,
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
/**
|
|
87
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
88
|
-
* @summary Send a notification
|
|
34
|
+
* undefined **Required Permissions** none
|
|
89
35
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
90
36
|
* @param {string} [authorization] Bearer Token
|
|
91
37
|
* @param {*} [options] Override http request option.
|
|
@@ -112,10 +58,8 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
112
58
|
// http bearer authentication required
|
|
113
59
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
114
60
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (authorizationValue) {
|
|
118
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
61
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
62
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
63
|
}
|
|
120
64
|
|
|
121
65
|
|
|
@@ -143,20 +87,7 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
|
143
87
|
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
|
|
144
88
|
return {
|
|
145
89
|
/**
|
|
146
|
-
*
|
|
147
|
-
* @summary Send an email without a template
|
|
148
|
-
* @param {SendEmailRequestDto} sendEmailRequestDto
|
|
149
|
-
* @param {string} [authorization] Bearer Token
|
|
150
|
-
* @param {*} [options] Override http request option.
|
|
151
|
-
* @throws {RequiredError}
|
|
152
|
-
*/
|
|
153
|
-
async sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendEmailResponseClass>> {
|
|
154
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendEmail(sendEmailRequestDto, authorization, options);
|
|
155
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
156
|
-
},
|
|
157
|
-
/**
|
|
158
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
159
|
-
* @summary Send a notification
|
|
90
|
+
* undefined **Required Permissions** none
|
|
160
91
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
161
92
|
* @param {string} [authorization] Bearer Token
|
|
162
93
|
* @param {*} [options] Override http request option.
|
|
@@ -177,19 +108,7 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
|
177
108
|
const localVarFp = NotificationsApiFp(configuration)
|
|
178
109
|
return {
|
|
179
110
|
/**
|
|
180
|
-
*
|
|
181
|
-
* @summary Send an email without a template
|
|
182
|
-
* @param {SendEmailRequestDto} sendEmailRequestDto
|
|
183
|
-
* @param {string} [authorization] Bearer Token
|
|
184
|
-
* @param {*} [options] Override http request option.
|
|
185
|
-
* @throws {RequiredError}
|
|
186
|
-
*/
|
|
187
|
-
sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: any): AxiosPromise<SendEmailResponseClass> {
|
|
188
|
-
return localVarFp.sendEmail(sendEmailRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
189
|
-
},
|
|
190
|
-
/**
|
|
191
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
192
|
-
* @summary Send a notification
|
|
111
|
+
* undefined **Required Permissions** none
|
|
193
112
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
194
113
|
* @param {string} [authorization] Bearer Token
|
|
195
114
|
* @param {*} [options] Override http request option.
|
|
@@ -201,27 +120,6 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
|
201
120
|
};
|
|
202
121
|
};
|
|
203
122
|
|
|
204
|
-
/**
|
|
205
|
-
* Request parameters for sendEmail operation in NotificationsApi.
|
|
206
|
-
* @export
|
|
207
|
-
* @interface NotificationsApiSendEmailRequest
|
|
208
|
-
*/
|
|
209
|
-
export interface NotificationsApiSendEmailRequest {
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
* @type {SendEmailRequestDto}
|
|
213
|
-
* @memberof NotificationsApiSendEmail
|
|
214
|
-
*/
|
|
215
|
-
readonly sendEmailRequestDto: SendEmailRequestDto
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Bearer Token
|
|
219
|
-
* @type {string}
|
|
220
|
-
* @memberof NotificationsApiSendEmail
|
|
221
|
-
*/
|
|
222
|
-
readonly authorization?: string
|
|
223
|
-
}
|
|
224
|
-
|
|
225
123
|
/**
|
|
226
124
|
* Request parameters for sendNotification operation in NotificationsApi.
|
|
227
125
|
* @export
|
|
@@ -251,20 +149,7 @@ export interface NotificationsApiSendNotificationRequest {
|
|
|
251
149
|
*/
|
|
252
150
|
export class NotificationsApi extends BaseAPI {
|
|
253
151
|
/**
|
|
254
|
-
*
|
|
255
|
-
* @summary Send an email without a template
|
|
256
|
-
* @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
|
|
257
|
-
* @param {*} [options] Override http request option.
|
|
258
|
-
* @throws {RequiredError}
|
|
259
|
-
* @memberof NotificationsApi
|
|
260
|
-
*/
|
|
261
|
-
public sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig) {
|
|
262
|
-
return NotificationsApiFp(this.configuration).sendEmail(requestParameters.sendEmailRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
267
|
-
* @summary Send a notification
|
|
152
|
+
* undefined **Required Permissions** none
|
|
268
153
|
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
269
154
|
* @param {*} [options] Override http request option.
|
|
270
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
|
|