@emilgroup/notification-sdk 0.8.1-beta.38 → 0.8.1-beta.4

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 (57) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +24 -259
  4. package/api/email-tracking-api.ts +24 -32
  5. package/api/email-verifications-api.ts +8 -16
  6. package/api/layouts-api.ts +36 -56
  7. package/api/notification-templates-api.ts +36 -56
  8. package/api/notifications-api.ts +4 -115
  9. package/api.ts +0 -2
  10. package/dist/api/email-messages-api.d.ts +24 -158
  11. package/dist/api/email-messages-api.js +22 -225
  12. package/dist/api/email-tracking-api.d.ts +24 -32
  13. package/dist/api/email-tracking-api.js +22 -30
  14. package/dist/api/email-verifications-api.d.ts +8 -16
  15. package/dist/api/email-verifications-api.js +8 -16
  16. package/dist/api/layouts-api.d.ts +36 -56
  17. package/dist/api/layouts-api.js +32 -52
  18. package/dist/api/notification-templates-api.d.ts +36 -56
  19. package/dist/api/notification-templates-api.js +32 -52
  20. package/dist/api/notifications-api.d.ts +4 -65
  21. package/dist/api/notifications-api.js +4 -101
  22. package/dist/api.d.ts +0 -1
  23. package/dist/api.js +0 -1
  24. package/dist/models/email-message-class.d.ts +2 -49
  25. package/dist/models/email-message-class.js +2 -16
  26. package/dist/models/index.d.ts +0 -7
  27. package/dist/models/index.js +0 -7
  28. package/dist/models/send-notification-request-dto.d.ts +0 -9
  29. package/dist/models/send-notification-request-dto.js +1 -2
  30. package/models/email-message-class.ts +3 -53
  31. package/models/index.ts +0 -7
  32. package/models/send-notification-request-dto.ts +1 -8
  33. package/package.json +1 -1
  34. package/api/msgraph-webhooks-api.ts +0 -278
  35. package/dist/api/msgraph-webhooks-api.d.ts +0 -168
  36. package/dist/api/msgraph-webhooks-api.js +0 -305
  37. package/dist/models/assign-email-message-entity-body-dto.d.ts +0 -43
  38. package/dist/models/assign-email-message-entity-body-dto.js +0 -22
  39. package/dist/models/assign-email-message-entity-response-class.d.ts +0 -25
  40. package/dist/models/assign-email-message-entity-response-class.js +0 -15
  41. package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
  42. package/dist/models/grpc-send-email-request-dto.js +0 -22
  43. package/dist/models/inline-attachment-dto.d.ts +0 -36
  44. package/dist/models/inline-attachment-dto.js +0 -15
  45. package/dist/models/send-email-request-dto.d.ts +0 -131
  46. package/dist/models/send-email-request-dto.js +0 -22
  47. package/dist/models/send-email-response-class.d.ts +0 -24
  48. package/dist/models/send-email-response-class.js +0 -15
  49. package/dist/models/unassign-email-message-entity-response-class.d.ts +0 -25
  50. package/dist/models/unassign-email-message-entity-response-class.js +0 -15
  51. package/models/assign-email-message-entity-body-dto.ts +0 -52
  52. package/models/assign-email-message-entity-response-class.ts +0 -31
  53. package/models/grpc-send-email-request-dto.ts +0 -144
  54. package/models/inline-attachment-dto.ts +0 -42
  55. package/models/send-email-request-dto.ts +0 -138
  56. package/models/send-email-response-class.ts +0 -30
  57. package/models/unassign-email-message-entity-response-class.ts +0 -31
@@ -93,8 +93,7 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * 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\"
97
- * @summary Create the notification template
96
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
98
97
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
99
98
  * @param {string} [authorization] Bearer Token
100
99
  * @param {*} [options] Override http request option.
@@ -142,8 +141,7 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
142
141
  });
143
142
  },
144
143
  /**
145
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
146
- * @summary Delete the notification template
144
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
147
145
  * @param {number} id
148
146
  * @param {string} [authorization] Bearer Token
149
147
  * @param {*} [options] Override http request option.
@@ -190,8 +188,7 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
190
188
  });
191
189
  },
192
190
  /**
193
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
194
- * @summary Retrieve the notification template
191
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
195
192
  * @param {number} id
196
193
  * @param {number} id2
197
194
  * @param {string} [authorization] Bearer Token
@@ -248,16 +245,15 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
248
245
  });
249
246
  },
250
247
  /**
251
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
252
- * @summary List notification templates
248
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
253
249
  * @param {string} [authorization] Bearer Token
254
250
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
251
  * @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.
256
- * @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>
252
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
257
253
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
258
- * @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>
259
- * @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>
260
- * @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>
254
+ * @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.
255
+ * @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.
256
+ * @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.
261
257
  * @param {*} [options] Override http request option.
262
258
  * @throws {RequiredError}
263
259
  */
@@ -320,8 +316,7 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
320
316
  });
321
317
  },
322
318
  /**
323
- * 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\"
324
- * @summary Update the notification template
319
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
325
320
  * @param {number} id
326
321
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
327
322
  * @param {string} [authorization] Bearer Token
@@ -383,8 +378,7 @@ var NotificationTemplatesApiFp = function (configuration) {
383
378
  var localVarAxiosParamCreator = (0, exports.NotificationTemplatesApiAxiosParamCreator)(configuration);
384
379
  return {
385
380
  /**
386
- * 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\"
387
- * @summary Create the notification template
381
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
388
382
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
389
383
  * @param {string} [authorization] Bearer Token
390
384
  * @param {*} [options] Override http request option.
@@ -404,8 +398,7 @@ var NotificationTemplatesApiFp = function (configuration) {
404
398
  });
405
399
  },
406
400
  /**
407
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
408
- * @summary Delete the notification template
401
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
409
402
  * @param {number} id
410
403
  * @param {string} [authorization] Bearer Token
411
404
  * @param {*} [options] Override http request option.
@@ -425,8 +418,7 @@ var NotificationTemplatesApiFp = function (configuration) {
425
418
  });
426
419
  },
427
420
  /**
428
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
429
- * @summary Retrieve the notification template
421
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
430
422
  * @param {number} id
431
423
  * @param {number} id2
432
424
  * @param {string} [authorization] Bearer Token
@@ -448,16 +440,15 @@ var NotificationTemplatesApiFp = function (configuration) {
448
440
  });
449
441
  },
450
442
  /**
451
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
452
- * @summary List notification templates
443
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
453
444
  * @param {string} [authorization] Bearer Token
454
445
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
455
446
  * @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.
456
- * @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>
447
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
457
448
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
458
- * @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>
459
- * @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>
460
- * @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>
449
+ * @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.
450
+ * @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.
451
+ * @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.
461
452
  * @param {*} [options] Override http request option.
462
453
  * @throws {RequiredError}
463
454
  */
@@ -475,8 +466,7 @@ var NotificationTemplatesApiFp = function (configuration) {
475
466
  });
476
467
  },
477
468
  /**
478
- * 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\"
479
- * @summary Update the notification template
469
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
480
470
  * @param {number} id
481
471
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
482
472
  * @param {string} [authorization] Bearer Token
@@ -507,8 +497,7 @@ var NotificationTemplatesApiFactory = function (configuration, basePath, axios)
507
497
  var localVarFp = (0, exports.NotificationTemplatesApiFp)(configuration);
508
498
  return {
509
499
  /**
510
- * 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\"
511
- * @summary Create the notification template
500
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
512
501
  * @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
513
502
  * @param {string} [authorization] Bearer Token
514
503
  * @param {*} [options] Override http request option.
@@ -518,8 +507,7 @@ var NotificationTemplatesApiFactory = function (configuration, basePath, axios)
518
507
  return localVarFp.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
519
508
  },
520
509
  /**
521
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
522
- * @summary Delete the notification template
510
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
523
511
  * @param {number} id
524
512
  * @param {string} [authorization] Bearer Token
525
513
  * @param {*} [options] Override http request option.
@@ -529,8 +517,7 @@ var NotificationTemplatesApiFactory = function (configuration, basePath, axios)
529
517
  return localVarFp.deleteNotificationTemplate(id, authorization, options).then(function (request) { return request(axios, basePath); });
530
518
  },
531
519
  /**
532
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
533
- * @summary Retrieve the notification template
520
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
534
521
  * @param {number} id
535
522
  * @param {number} id2
536
523
  * @param {string} [authorization] Bearer Token
@@ -542,16 +529,15 @@ var NotificationTemplatesApiFactory = function (configuration, basePath, axios)
542
529
  return localVarFp.getNotificationTemplate(id, id2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
543
530
  },
544
531
  /**
545
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
546
- * @summary List notification templates
532
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
547
533
  * @param {string} [authorization] Bearer Token
548
534
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
549
535
  * @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.
550
- * @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>
536
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
551
537
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
552
- * @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>
553
- * @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>
554
- * @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>
538
+ * @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.
539
+ * @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.
540
+ * @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.
555
541
  * @param {*} [options] Override http request option.
556
542
  * @throws {RequiredError}
557
543
  */
@@ -559,8 +545,7 @@ var NotificationTemplatesApiFactory = function (configuration, basePath, axios)
559
545
  return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
560
546
  },
561
547
  /**
562
- * 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\"
563
- * @summary Update the notification template
548
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
564
549
  * @param {number} id
565
550
  * @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
566
551
  * @param {string} [authorization] Bearer Token
@@ -585,8 +570,7 @@ var NotificationTemplatesApi = /** @class */ (function (_super) {
585
570
  return _super !== null && _super.apply(this, arguments) || this;
586
571
  }
587
572
  /**
588
- * 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\"
589
- * @summary Create the notification template
573
+ * undefined **Required Permissions** \"notification-management.email-templates.create\"
590
574
  * @param {NotificationTemplatesApiCreateNotificationTemplateRequest} requestParameters Request parameters.
591
575
  * @param {*} [options] Override http request option.
592
576
  * @throws {RequiredError}
@@ -597,8 +581,7 @@ var NotificationTemplatesApi = /** @class */ (function (_super) {
597
581
  return (0, exports.NotificationTemplatesApiFp)(this.configuration).createNotificationTemplate(requestParameters.createNotificationTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
598
582
  };
599
583
  /**
600
- * Permanently deletes the notification template with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
601
- * @summary Delete the notification template
584
+ * undefined **Required Permissions** \"notification-management.email-templates.delete\"
602
585
  * @param {NotificationTemplatesApiDeleteNotificationTemplateRequest} requestParameters Request parameters.
603
586
  * @param {*} [options] Override http request option.
604
587
  * @throws {RequiredError}
@@ -609,8 +592,7 @@ var NotificationTemplatesApi = /** @class */ (function (_super) {
609
592
  return (0, exports.NotificationTemplatesApiFp)(this.configuration).deleteNotificationTemplate(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
610
593
  };
611
594
  /**
612
- * Retrieves the details of the notification template with the given id. **Required Permissions** \"notification-management.email-templates.view\"
613
- * @summary Retrieve the notification template
595
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
614
596
  * @param {NotificationTemplatesApiGetNotificationTemplateRequest} requestParameters Request parameters.
615
597
  * @param {*} [options] Override http request option.
616
598
  * @throws {RequiredError}
@@ -621,8 +603,7 @@ var NotificationTemplatesApi = /** @class */ (function (_super) {
621
603
  return (0, exports.NotificationTemplatesApiFp)(this.configuration).getNotificationTemplate(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
622
604
  };
623
605
  /**
624
- * Returns a list of notification templates. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
625
- * @summary List notification templates
606
+ * undefined **Required Permissions** \"notification-management.email-templates.view\"
626
607
  * @param {NotificationTemplatesApiListNotificationTemplatesRequest} requestParameters Request parameters.
627
608
  * @param {*} [options] Override http request option.
628
609
  * @throws {RequiredError}
@@ -634,8 +615,7 @@ var NotificationTemplatesApi = /** @class */ (function (_super) {
634
615
  return (0, exports.NotificationTemplatesApiFp)(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
635
616
  };
636
617
  /**
637
- * 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\"
638
- * @summary Update the notification template
618
+ * undefined **Required Permissions** \"notification-management.email-templates.update\"
639
619
  * @param {NotificationTemplatesApiUpdateNotificationTemplateRequest} requestParameters Request parameters.
640
620
  * @param {*} [options] Override http request option.
641
621
  * @throws {RequiredError}
@@ -12,8 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { SendEmailRequestDto } from '../models';
16
- import { SendEmailResponseClass } from '../models';
17
15
  import { SendNotificationRequestDto } from '../models';
18
16
  import { SendNotificationResponseClass } from '../models';
19
17
  /**
@@ -22,17 +20,7 @@ import { SendNotificationResponseClass } from '../models';
22
20
  */
23
21
  export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
24
22
  /**
25
- * 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
26
- * @summary Send an email without a template
27
- * @param {SendEmailRequestDto} sendEmailRequestDto
28
- * @param {string} [authorization] Bearer Token
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- sendEmail: (sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
- /**
34
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
35
- * @summary Send a notification
23
+ * undefined **Required Permissions** none
36
24
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
37
25
  * @param {string} [authorization] Bearer Token
38
26
  * @param {*} [options] Override http request option.
@@ -46,17 +34,7 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
46
34
  */
47
35
  export declare const NotificationsApiFp: (configuration?: Configuration) => {
48
36
  /**
49
- * 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
50
- * @summary Send an email without a template
51
- * @param {SendEmailRequestDto} sendEmailRequestDto
52
- * @param {string} [authorization] Bearer Token
53
- * @param {*} [options] Override http request option.
54
- * @throws {RequiredError}
55
- */
56
- sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendEmailResponseClass>>;
57
- /**
58
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
59
- * @summary Send a notification
37
+ * undefined **Required Permissions** none
60
38
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
61
39
  * @param {string} [authorization] Bearer Token
62
40
  * @param {*} [options] Override http request option.
@@ -70,17 +48,7 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
70
48
  */
71
49
  export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
72
50
  /**
73
- * 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
74
- * @summary Send an email without a template
75
- * @param {SendEmailRequestDto} sendEmailRequestDto
76
- * @param {string} [authorization] Bearer Token
77
- * @param {*} [options] Override http request option.
78
- * @throws {RequiredError}
79
- */
80
- sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: any): AxiosPromise<SendEmailResponseClass>;
81
- /**
82
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
83
- * @summary Send a notification
51
+ * undefined **Required Permissions** none
84
52
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
85
53
  * @param {string} [authorization] Bearer Token
86
54
  * @param {*} [options] Override http request option.
@@ -88,25 +56,6 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
88
56
  */
89
57
  sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: any): AxiosPromise<SendNotificationResponseClass>;
90
58
  };
91
- /**
92
- * Request parameters for sendEmail operation in NotificationsApi.
93
- * @export
94
- * @interface NotificationsApiSendEmailRequest
95
- */
96
- export interface NotificationsApiSendEmailRequest {
97
- /**
98
- *
99
- * @type {SendEmailRequestDto}
100
- * @memberof NotificationsApiSendEmail
101
- */
102
- readonly sendEmailRequestDto: SendEmailRequestDto;
103
- /**
104
- * Bearer Token
105
- * @type {string}
106
- * @memberof NotificationsApiSendEmail
107
- */
108
- readonly authorization?: string;
109
- }
110
59
  /**
111
60
  * Request parameters for sendNotification operation in NotificationsApi.
112
61
  * @export
@@ -134,17 +83,7 @@ export interface NotificationsApiSendNotificationRequest {
134
83
  */
135
84
  export declare class NotificationsApi extends BaseAPI {
136
85
  /**
137
- * 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
138
- * @summary Send an email without a template
139
- * @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
140
- * @param {*} [options] Override http request option.
141
- * @throws {RequiredError}
142
- * @memberof NotificationsApi
143
- */
144
- sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendEmailResponseClass, any, {}>>;
145
- /**
146
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
147
- * @summary Send a notification
86
+ * undefined **Required Permissions** none
148
87
  * @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
149
88
  * @param {*} [options] Override http request option.
150
89
  * @throws {RequiredError}
@@ -93,57 +93,7 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * 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
97
- * @summary Send an email without a template
98
- * @param {SendEmailRequestDto} sendEmailRequestDto
99
- * @param {string} [authorization] Bearer Token
100
- * @param {*} [options] Override http request option.
101
- * @throws {RequiredError}
102
- */
103
- sendEmail: function (sendEmailRequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
109
- case 0:
110
- // verify required parameter 'sendEmailRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('sendEmail', 'sendEmailRequestDto', sendEmailRequestDto);
112
- localVarPath = "/notificationservice/v1/notifications/emails";
113
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
- if (configuration) {
115
- baseOptions = configuration.baseOptions;
116
- baseAccessToken = configuration.accessToken;
117
- }
118
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
- localVarHeaderParameter = {};
120
- localVarQueryParameter = {};
121
- // authentication bearer required
122
- // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
- case 1:
125
- // authentication bearer required
126
- // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
- }
131
- localVarHeaderParameter['Content-Type'] = 'application/json';
132
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendEmailRequestDto, localVarRequestOptions, configuration);
136
- return [2 /*return*/, {
137
- url: (0, common_1.toPathString)(localVarUrlObj),
138
- options: localVarRequestOptions,
139
- }];
140
- }
141
- });
142
- });
143
- },
144
- /**
145
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
146
- * @summary Send a notification
96
+ * undefined **Required Permissions** none
147
97
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
148
98
  * @param {string} [authorization] Bearer Token
149
99
  * @param {*} [options] Override http request option.
@@ -201,29 +151,7 @@ var NotificationsApiFp = function (configuration) {
201
151
  var localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
202
152
  return {
203
153
  /**
204
- * 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
205
- * @summary Send an email without a template
206
- * @param {SendEmailRequestDto} sendEmailRequestDto
207
- * @param {string} [authorization] Bearer Token
208
- * @param {*} [options] Override http request option.
209
- * @throws {RequiredError}
210
- */
211
- sendEmail: function (sendEmailRequestDto, authorization, options) {
212
- return __awaiter(this, void 0, void 0, function () {
213
- var localVarAxiosArgs;
214
- return __generator(this, function (_a) {
215
- switch (_a.label) {
216
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendEmail(sendEmailRequestDto, authorization, options)];
217
- case 1:
218
- localVarAxiosArgs = _a.sent();
219
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
220
- }
221
- });
222
- });
223
- },
224
- /**
225
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
226
- * @summary Send a notification
154
+ * undefined **Required Permissions** none
227
155
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
228
156
  * @param {string} [authorization] Bearer Token
229
157
  * @param {*} [options] Override http request option.
@@ -253,19 +181,7 @@ var NotificationsApiFactory = function (configuration, basePath, axios) {
253
181
  var localVarFp = (0, exports.NotificationsApiFp)(configuration);
254
182
  return {
255
183
  /**
256
- * 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
257
- * @summary Send an email without a template
258
- * @param {SendEmailRequestDto} sendEmailRequestDto
259
- * @param {string} [authorization] Bearer Token
260
- * @param {*} [options] Override http request option.
261
- * @throws {RequiredError}
262
- */
263
- sendEmail: function (sendEmailRequestDto, authorization, options) {
264
- return localVarFp.sendEmail(sendEmailRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
265
- },
266
- /**
267
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
268
- * @summary Send a notification
184
+ * undefined **Required Permissions** none
269
185
  * @param {SendNotificationRequestDto} sendNotificationRequestDto
270
186
  * @param {string} [authorization] Bearer Token
271
187
  * @param {*} [options] Override http request option.
@@ -289,20 +205,7 @@ var NotificationsApi = /** @class */ (function (_super) {
289
205
  return _super !== null && _super.apply(this, arguments) || this;
290
206
  }
291
207
  /**
292
- * 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
293
- * @summary Send an email without a template
294
- * @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
295
- * @param {*} [options] Override http request option.
296
- * @throws {RequiredError}
297
- * @memberof NotificationsApi
298
- */
299
- NotificationsApi.prototype.sendEmail = function (requestParameters, options) {
300
- var _this = this;
301
- return (0, exports.NotificationsApiFp)(this.configuration).sendEmail(requestParameters.sendEmailRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
302
- };
303
- /**
304
- * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
305
- * @summary Send a notification
208
+ * undefined **Required Permissions** none
306
209
  * @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
307
210
  * @param {*} [options] Override http request option.
308
211
  * @throws {RequiredError}
package/dist/api.d.ts CHANGED
@@ -14,6 +14,5 @@ export * from './api/email-tracking-api';
14
14
  export * from './api/email-verifications-api';
15
15
  export * from './api/health-api';
16
16
  export * from './api/layouts-api';
17
- export * from './api/msgraph-webhooks-api';
18
17
  export * from './api/notification-templates-api';
19
18
  export * from './api/notifications-api';
package/dist/api.js CHANGED
@@ -32,6 +32,5 @@ __exportStar(require("./api/email-tracking-api"), exports);
32
32
  __exportStar(require("./api/email-verifications-api"), exports);
33
33
  __exportStar(require("./api/health-api"), exports);
34
34
  __exportStar(require("./api/layouts-api"), exports);
35
- __exportStar(require("./api/msgraph-webhooks-api"), exports);
36
35
  __exportStar(require("./api/notification-templates-api"), exports);
37
36
  __exportStar(require("./api/notifications-api"), exports);
@@ -29,35 +29,11 @@ export interface EmailMessageClass {
29
29
  */
30
30
  'code': string;
31
31
  /**
32
- * Thread code this message belongs to. Empty only while an inbound message is still being correlated.
32
+ * Thread code this message belongs to
33
33
  * @type {string}
34
34
  * @memberof EmailMessageClass
35
35
  */
36
36
  'threadCode': string;
37
- /**
38
- * Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
39
- * @type {string}
40
- * @memberof EmailMessageClass
41
- */
42
- 'matchStatus': EmailMessageClassMatchStatusEnum;
43
- /**
44
- * What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
45
- * @type {string}
46
- * @memberof EmailMessageClass
47
- */
48
- 'kind': EmailMessageClassKindEnum;
49
- /**
50
- * Delivery report only: code of the outbound message the report is about
51
- * @type {string}
52
- * @memberof EmailMessageClass
53
- */
54
- 'reportedMessageCode'?: string;
55
- /**
56
- * Provider that received an inbound message
57
- * @type {string}
58
- * @memberof EmailMessageClass
59
- */
60
- 'provider'?: EmailMessageClassProviderEnum;
61
37
  /**
62
38
  * Direction of the email
63
39
  * @type {string}
@@ -101,7 +77,7 @@ export interface EmailMessageClass {
101
77
  */
102
78
  'bodyHtml'?: string;
103
79
  /**
104
- * Delivery status of the email. Outbound emails move through pending → sent → delivered (or bounced/failed); inbound emails are always received.
80
+ * Delivery status of the email
105
81
  * @type {string}
106
82
  * @memberof EmailMessageClass
107
83
  */
@@ -166,29 +142,7 @@ export interface EmailMessageClass {
166
142
  * @memberof EmailMessageClass
167
143
  */
168
144
  'entityCode': string;
169
- /**
170
- * Business number of the linked entity (policy, lead, claim or partner number)
171
- * @type {string}
172
- * @memberof EmailMessageClass
173
- */
174
- 'entityNumber'?: string;
175
145
  }
176
- export declare const EmailMessageClassMatchStatusEnum: {
177
- readonly Pending: "pending";
178
- readonly Matched: "matched";
179
- readonly Unassigned: "unassigned";
180
- };
181
- export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
182
- export declare const EmailMessageClassKindEnum: {
183
- readonly Message: "message";
184
- readonly DeliveryReport: "delivery_report";
185
- };
186
- export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
187
- export declare const EmailMessageClassProviderEnum: {
188
- readonly Ses: "ses";
189
- readonly Msgraph: "msgraph";
190
- };
191
- export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
192
146
  export declare const EmailMessageClassDirectionEnum: {
193
147
  readonly Outbound: "outbound";
194
148
  readonly Inbound: "inbound";
@@ -200,6 +154,5 @@ export declare const EmailMessageClassDeliveryStatusEnum: {
200
154
  readonly Delivered: "delivered";
201
155
  readonly Bounced: "bounced";
202
156
  readonly Failed: "failed";
203
- readonly Received: "received";
204
157
  };
205
158
  export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
@@ -13,20 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = exports.EmailMessageClassProviderEnum = exports.EmailMessageClassKindEnum = exports.EmailMessageClassMatchStatusEnum = void 0;
17
- exports.EmailMessageClassMatchStatusEnum = {
18
- Pending: 'pending',
19
- Matched: 'matched',
20
- Unassigned: 'unassigned'
21
- };
22
- exports.EmailMessageClassKindEnum = {
23
- Message: 'message',
24
- DeliveryReport: 'delivery_report'
25
- };
26
- exports.EmailMessageClassProviderEnum = {
27
- Ses: 'ses',
28
- Msgraph: 'msgraph'
29
- };
16
+ exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = void 0;
30
17
  exports.EmailMessageClassDirectionEnum = {
31
18
  Outbound: 'outbound',
32
19
  Inbound: 'inbound'
@@ -36,6 +23,5 @@ exports.EmailMessageClassDeliveryStatusEnum = {
36
23
  Sent: 'sent',
37
24
  Delivered: 'delivered',
38
25
  Bounced: 'bounced',
39
- Failed: 'failed',
40
- Received: 'received'
26
+ Failed: 'failed'
41
27
  };