@emilgroup/notification-sdk 0.8.1-beta.29 → 0.8.1-beta.3
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 -7
- package/README.md +2 -2
- package/api/email-messages-api.ts +24 -156
- package/api/email-tracking-api.ts +24 -32
- package/api/email-verifications-api.ts +8 -16
- package/api/layouts-api.ts +36 -56
- package/api/notification-templates-api.ts +36 -56
- package/api/notifications-api.ts +4 -115
- package/api.ts +0 -2
- package/dist/api/email-messages-api.d.ts +24 -102
- package/dist/api/email-messages-api.js +22 -133
- package/dist/api/email-tracking-api.d.ts +24 -32
- package/dist/api/email-tracking-api.js +22 -30
- package/dist/api/email-verifications-api.d.ts +8 -16
- package/dist/api/email-verifications-api.js +8 -16
- package/dist/api/layouts-api.d.ts +36 -56
- package/dist/api/layouts-api.js +32 -52
- package/dist/api/notification-templates-api.d.ts +36 -56
- package/dist/api/notification-templates-api.js +32 -52
- package/dist/api/notifications-api.d.ts +4 -65
- package/dist/api/notifications-api.js +4 -101
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/email-message-class.d.ts +2 -49
- package/dist/models/email-message-class.js +2 -16
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/send-notification-request-dto.d.ts +0 -9
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +3 -53
- package/models/index.ts +0 -6
- package/models/send-notification-request-dto.ts +1 -8
- package/package.json +1 -1
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-message-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-message-entity-body-dto.js +0 -22
- package/dist/models/assign-email-message-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-message-entity-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/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/models/assign-email-message-entity-body-dto.ts +0 -52
- package/models/assign-email-message-entity-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/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
|
@@ -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.
|
|
@@ -86,8 +85,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
86
85
|
};
|
|
87
86
|
},
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary Delete the notification template
|
|
88
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
91
89
|
* @param {number} id
|
|
92
90
|
* @param {string} [authorization] Bearer Token
|
|
93
91
|
* @param {*} [options] Override http request option.
|
|
@@ -131,8 +129,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
131
129
|
};
|
|
132
130
|
},
|
|
133
131
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @summary Retrieve the notification template
|
|
132
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
136
133
|
* @param {number} id
|
|
137
134
|
* @param {number} id2
|
|
138
135
|
* @param {string} [authorization] Bearer Token
|
|
@@ -188,16 +185,15 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
188
185
|
};
|
|
189
186
|
},
|
|
190
187
|
/**
|
|
191
|
-
*
|
|
192
|
-
* @summary List notification templates
|
|
188
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
193
189
|
* @param {string} [authorization] Bearer Token
|
|
194
190
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
195
191
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
196
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
192
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
197
193
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
198
|
-
* @param {string} [order]
|
|
199
|
-
* @param {string} [expand]
|
|
200
|
-
* @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.
|
|
201
197
|
* @param {*} [options] Override http request option.
|
|
202
198
|
* @throws {RequiredError}
|
|
203
199
|
*/
|
|
@@ -264,8 +260,7 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
|
|
|
264
260
|
};
|
|
265
261
|
},
|
|
266
262
|
/**
|
|
267
|
-
*
|
|
268
|
-
* @summary Update the notification template
|
|
263
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
269
264
|
* @param {number} id
|
|
270
265
|
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
271
266
|
* @param {string} [authorization] Bearer Token
|
|
@@ -325,8 +320,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
325
320
|
const localVarAxiosParamCreator = NotificationTemplatesApiAxiosParamCreator(configuration)
|
|
326
321
|
return {
|
|
327
322
|
/**
|
|
328
|
-
*
|
|
329
|
-
* @summary Create the notification template
|
|
323
|
+
* undefined **Required Permissions** \"notification-management.email-templates.create\"
|
|
330
324
|
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
331
325
|
* @param {string} [authorization] Bearer Token
|
|
332
326
|
* @param {*} [options] Override http request option.
|
|
@@ -337,8 +331,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
337
331
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
338
332
|
},
|
|
339
333
|
/**
|
|
340
|
-
*
|
|
341
|
-
* @summary Delete the notification template
|
|
334
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
342
335
|
* @param {number} id
|
|
343
336
|
* @param {string} [authorization] Bearer Token
|
|
344
337
|
* @param {*} [options] Override http request option.
|
|
@@ -349,8 +342,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
349
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
350
343
|
},
|
|
351
344
|
/**
|
|
352
|
-
*
|
|
353
|
-
* @summary Retrieve the notification template
|
|
345
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
354
346
|
* @param {number} id
|
|
355
347
|
* @param {number} id2
|
|
356
348
|
* @param {string} [authorization] Bearer Token
|
|
@@ -363,16 +355,15 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
363
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
356
|
},
|
|
365
357
|
/**
|
|
366
|
-
*
|
|
367
|
-
* @summary List notification templates
|
|
358
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
368
359
|
* @param {string} [authorization] Bearer Token
|
|
369
360
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
370
361
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
371
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
362
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
372
363
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
373
|
-
* @param {string} [order]
|
|
374
|
-
* @param {string} [expand]
|
|
375
|
-
* @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.
|
|
376
367
|
* @param {*} [options] Override http request option.
|
|
377
368
|
* @throws {RequiredError}
|
|
378
369
|
*/
|
|
@@ -381,8 +372,7 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
|
|
|
381
372
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
382
373
|
},
|
|
383
374
|
/**
|
|
384
|
-
*
|
|
385
|
-
* @summary Update the notification template
|
|
375
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
386
376
|
* @param {number} id
|
|
387
377
|
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
388
378
|
* @param {string} [authorization] Bearer Token
|
|
@@ -404,8 +394,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
404
394
|
const localVarFp = NotificationTemplatesApiFp(configuration)
|
|
405
395
|
return {
|
|
406
396
|
/**
|
|
407
|
-
*
|
|
408
|
-
* @summary Create the notification template
|
|
397
|
+
* undefined **Required Permissions** \"notification-management.email-templates.create\"
|
|
409
398
|
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
410
399
|
* @param {string} [authorization] Bearer Token
|
|
411
400
|
* @param {*} [options] Override http request option.
|
|
@@ -415,8 +404,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
415
404
|
return localVarFp.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
416
405
|
},
|
|
417
406
|
/**
|
|
418
|
-
*
|
|
419
|
-
* @summary Delete the notification template
|
|
407
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
420
408
|
* @param {number} id
|
|
421
409
|
* @param {string} [authorization] Bearer Token
|
|
422
410
|
* @param {*} [options] Override http request option.
|
|
@@ -426,8 +414,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
426
414
|
return localVarFp.deleteNotificationTemplate(id, authorization, options).then((request) => request(axios, basePath));
|
|
427
415
|
},
|
|
428
416
|
/**
|
|
429
|
-
*
|
|
430
|
-
* @summary Retrieve the notification template
|
|
417
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
431
418
|
* @param {number} id
|
|
432
419
|
* @param {number} id2
|
|
433
420
|
* @param {string} [authorization] Bearer Token
|
|
@@ -439,16 +426,15 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
439
426
|
return localVarFp.getNotificationTemplate(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
440
427
|
},
|
|
441
428
|
/**
|
|
442
|
-
*
|
|
443
|
-
* @summary List notification templates
|
|
429
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
444
430
|
* @param {string} [authorization] Bearer Token
|
|
445
431
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
446
432
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
447
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
433
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
448
434
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
449
|
-
* @param {string} [order]
|
|
450
|
-
* @param {string} [expand]
|
|
451
|
-
* @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.
|
|
452
438
|
* @param {*} [options] Override http request option.
|
|
453
439
|
* @throws {RequiredError}
|
|
454
440
|
*/
|
|
@@ -456,8 +442,7 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
|
|
|
456
442
|
return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
457
443
|
},
|
|
458
444
|
/**
|
|
459
|
-
*
|
|
460
|
-
* @summary Update the notification template
|
|
445
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
461
446
|
* @param {number} id
|
|
462
447
|
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
463
448
|
* @param {string} [authorization] Bearer Token
|
|
@@ -575,7 +560,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
|
|
|
575
560
|
readonly pageToken?: string
|
|
576
561
|
|
|
577
562
|
/**
|
|
578
|
-
* Filter the response by one or multiple fields.
|
|
563
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
579
564
|
* @type {string}
|
|
580
565
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
581
566
|
*/
|
|
@@ -589,21 +574,21 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
|
|
|
589
574
|
readonly search?: string
|
|
590
575
|
|
|
591
576
|
/**
|
|
592
|
-
*
|
|
577
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
593
578
|
* @type {string}
|
|
594
579
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
595
580
|
*/
|
|
596
581
|
readonly order?: string
|
|
597
582
|
|
|
598
583
|
/**
|
|
599
|
-
*
|
|
584
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
600
585
|
* @type {string}
|
|
601
586
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
602
587
|
*/
|
|
603
588
|
readonly expand?: string
|
|
604
589
|
|
|
605
590
|
/**
|
|
606
|
-
* Filters the response by one or multiple fields.
|
|
591
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
607
592
|
* @type {string}
|
|
608
593
|
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
609
594
|
*/
|
|
@@ -646,8 +631,7 @@ export interface NotificationTemplatesApiUpdateNotificationTemplateRequest {
|
|
|
646
631
|
*/
|
|
647
632
|
export class NotificationTemplatesApi extends BaseAPI {
|
|
648
633
|
/**
|
|
649
|
-
*
|
|
650
|
-
* @summary Create the notification template
|
|
634
|
+
* undefined **Required Permissions** \"notification-management.email-templates.create\"
|
|
651
635
|
* @param {NotificationTemplatesApiCreateNotificationTemplateRequest} requestParameters Request parameters.
|
|
652
636
|
* @param {*} [options] Override http request option.
|
|
653
637
|
* @throws {RequiredError}
|
|
@@ -658,8 +642,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
658
642
|
}
|
|
659
643
|
|
|
660
644
|
/**
|
|
661
|
-
*
|
|
662
|
-
* @summary Delete the notification template
|
|
645
|
+
* undefined **Required Permissions** \"notification-management.email-templates.delete\"
|
|
663
646
|
* @param {NotificationTemplatesApiDeleteNotificationTemplateRequest} requestParameters Request parameters.
|
|
664
647
|
* @param {*} [options] Override http request option.
|
|
665
648
|
* @throws {RequiredError}
|
|
@@ -670,8 +653,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
670
653
|
}
|
|
671
654
|
|
|
672
655
|
/**
|
|
673
|
-
*
|
|
674
|
-
* @summary Retrieve the notification template
|
|
656
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
675
657
|
* @param {NotificationTemplatesApiGetNotificationTemplateRequest} requestParameters Request parameters.
|
|
676
658
|
* @param {*} [options] Override http request option.
|
|
677
659
|
* @throws {RequiredError}
|
|
@@ -682,8 +664,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
682
664
|
}
|
|
683
665
|
|
|
684
666
|
/**
|
|
685
|
-
*
|
|
686
|
-
* @summary List notification templates
|
|
667
|
+
* undefined **Required Permissions** \"notification-management.email-templates.view\"
|
|
687
668
|
* @param {NotificationTemplatesApiListNotificationTemplatesRequest} requestParameters Request parameters.
|
|
688
669
|
* @param {*} [options] Override http request option.
|
|
689
670
|
* @throws {RequiredError}
|
|
@@ -694,8 +675,7 @@ export class NotificationTemplatesApi extends BaseAPI {
|
|
|
694
675
|
}
|
|
695
676
|
|
|
696
677
|
/**
|
|
697
|
-
*
|
|
698
|
-
* @summary Update the notification template
|
|
678
|
+
* undefined **Required Permissions** \"notification-management.email-templates.update\"
|
|
699
679
|
* @param {NotificationTemplatesApiUpdateNotificationTemplateRequest} requestParameters Request parameters.
|
|
700
680
|
* @param {*} [options] Override http request option.
|
|
701
681
|
* @throws {RequiredError}
|
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,55 +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
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
-
|
|
74
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendEmailRequestDto, localVarRequestOptions, configuration)
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
url: toPathString(localVarUrlObj),
|
|
81
|
-
options: localVarRequestOptions,
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
86
|
-
* @summary Send a notification
|
|
34
|
+
* undefined **Required Permissions** none
|
|
87
35
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
88
36
|
* @param {string} [authorization] Bearer Token
|
|
89
37
|
* @param {*} [options] Override http request option.
|
|
@@ -139,20 +87,7 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
|
139
87
|
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
|
|
140
88
|
return {
|
|
141
89
|
/**
|
|
142
|
-
*
|
|
143
|
-
* @summary Send an email without a template
|
|
144
|
-
* @param {SendEmailRequestDto} sendEmailRequestDto
|
|
145
|
-
* @param {string} [authorization] Bearer Token
|
|
146
|
-
* @param {*} [options] Override http request option.
|
|
147
|
-
* @throws {RequiredError}
|
|
148
|
-
*/
|
|
149
|
-
async sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendEmailResponseClass>> {
|
|
150
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendEmail(sendEmailRequestDto, authorization, options);
|
|
151
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
152
|
-
},
|
|
153
|
-
/**
|
|
154
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
155
|
-
* @summary Send a notification
|
|
90
|
+
* undefined **Required Permissions** none
|
|
156
91
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
157
92
|
* @param {string} [authorization] Bearer Token
|
|
158
93
|
* @param {*} [options] Override http request option.
|
|
@@ -173,19 +108,7 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
|
173
108
|
const localVarFp = NotificationsApiFp(configuration)
|
|
174
109
|
return {
|
|
175
110
|
/**
|
|
176
|
-
*
|
|
177
|
-
* @summary Send an email without a template
|
|
178
|
-
* @param {SendEmailRequestDto} sendEmailRequestDto
|
|
179
|
-
* @param {string} [authorization] Bearer Token
|
|
180
|
-
* @param {*} [options] Override http request option.
|
|
181
|
-
* @throws {RequiredError}
|
|
182
|
-
*/
|
|
183
|
-
sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: any): AxiosPromise<SendEmailResponseClass> {
|
|
184
|
-
return localVarFp.sendEmail(sendEmailRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
185
|
-
},
|
|
186
|
-
/**
|
|
187
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
188
|
-
* @summary Send a notification
|
|
111
|
+
* undefined **Required Permissions** none
|
|
189
112
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
190
113
|
* @param {string} [authorization] Bearer Token
|
|
191
114
|
* @param {*} [options] Override http request option.
|
|
@@ -197,27 +120,6 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
|
197
120
|
};
|
|
198
121
|
};
|
|
199
122
|
|
|
200
|
-
/**
|
|
201
|
-
* Request parameters for sendEmail operation in NotificationsApi.
|
|
202
|
-
* @export
|
|
203
|
-
* @interface NotificationsApiSendEmailRequest
|
|
204
|
-
*/
|
|
205
|
-
export interface NotificationsApiSendEmailRequest {
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {SendEmailRequestDto}
|
|
209
|
-
* @memberof NotificationsApiSendEmail
|
|
210
|
-
*/
|
|
211
|
-
readonly sendEmailRequestDto: SendEmailRequestDto
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Bearer Token
|
|
215
|
-
* @type {string}
|
|
216
|
-
* @memberof NotificationsApiSendEmail
|
|
217
|
-
*/
|
|
218
|
-
readonly authorization?: string
|
|
219
|
-
}
|
|
220
|
-
|
|
221
123
|
/**
|
|
222
124
|
* Request parameters for sendNotification operation in NotificationsApi.
|
|
223
125
|
* @export
|
|
@@ -247,20 +149,7 @@ export interface NotificationsApiSendNotificationRequest {
|
|
|
247
149
|
*/
|
|
248
150
|
export class NotificationsApi extends BaseAPI {
|
|
249
151
|
/**
|
|
250
|
-
*
|
|
251
|
-
* @summary Send an email without a template
|
|
252
|
-
* @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
|
|
253
|
-
* @param {*} [options] Override http request option.
|
|
254
|
-
* @throws {RequiredError}
|
|
255
|
-
* @memberof NotificationsApi
|
|
256
|
-
*/
|
|
257
|
-
public sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig) {
|
|
258
|
-
return NotificationsApiFp(this.configuration).sendEmail(requestParameters.sendEmailRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
|
|
263
|
-
* @summary Send a notification
|
|
152
|
+
* undefined **Required Permissions** none
|
|
264
153
|
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
265
154
|
* @param {*} [options] Override http request option.
|
|
266
155
|
* @throws {RequiredError}
|
package/api.ts
CHANGED
|
@@ -25,7 +25,6 @@ import { EmailTrackingApi } from './api';
|
|
|
25
25
|
import { EmailVerificationsApi } from './api';
|
|
26
26
|
import { HealthApi } from './api';
|
|
27
27
|
import { LayoutsApi } from './api';
|
|
28
|
-
import { MSGraphWebhooksApi } from './api';
|
|
29
28
|
import { NotificationTemplatesApi } from './api';
|
|
30
29
|
import { NotificationsApi } from './api';
|
|
31
30
|
|
|
@@ -35,7 +34,6 @@ export * from './api/email-tracking-api';
|
|
|
35
34
|
export * from './api/email-verifications-api';
|
|
36
35
|
export * from './api/health-api';
|
|
37
36
|
export * from './api/layouts-api';
|
|
38
|
-
export * from './api/msgraph-webhooks-api';
|
|
39
37
|
export * from './api/notification-templates-api';
|
|
40
38
|
export * from './api/notifications-api';
|
|
41
39
|
|