@emilgroup/notification-sdk 0.8.1-beta.6 → 0.8.1-beta.61

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 (104) hide show
  1. package/.openapi-generator/FILES +23 -0
  2. package/README.md +2 -2
  3. package/api/email-mailboxes-api.ts +148 -0
  4. package/api/email-messages-api.ts +40 -28
  5. package/api/email-subscriptions-api.ts +769 -0
  6. package/api/email-tracking-api.ts +271 -40
  7. package/api/email-verifications-api.ts +16 -8
  8. package/api/layouts-api.ts +56 -36
  9. package/api/msgraph-webhooks-api.ts +278 -0
  10. package/api/notification-templates-api.ts +56 -36
  11. package/api/notifications-api.ts +115 -4
  12. package/api.ts +6 -0
  13. package/dist/api/email-mailboxes-api.d.ts +87 -0
  14. package/dist/api/email-mailboxes-api.js +218 -0
  15. package/dist/api/email-messages-api.d.ts +40 -28
  16. package/dist/api/email-messages-api.js +37 -25
  17. package/dist/api/email-subscriptions-api.d.ts +432 -0
  18. package/dist/api/email-subscriptions-api.js +722 -0
  19. package/dist/api/email-tracking-api.d.ts +170 -40
  20. package/dist/api/email-tracking-api.js +233 -34
  21. package/dist/api/email-verifications-api.d.ts +16 -8
  22. package/dist/api/email-verifications-api.js +16 -8
  23. package/dist/api/layouts-api.d.ts +56 -36
  24. package/dist/api/layouts-api.js +52 -32
  25. package/dist/api/msgraph-webhooks-api.d.ts +168 -0
  26. package/dist/api/msgraph-webhooks-api.js +305 -0
  27. package/dist/api/notification-templates-api.d.ts +56 -36
  28. package/dist/api/notification-templates-api.js +52 -32
  29. package/dist/api/notifications-api.d.ts +65 -4
  30. package/dist/api/notifications-api.js +101 -4
  31. package/dist/api.d.ts +3 -0
  32. package/dist/api.js +3 -0
  33. package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
  34. package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
  35. package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
  36. package/dist/models/assign-email-thread-entity-response-class.js +15 -0
  37. package/dist/models/catch-up-email-subscription-response-class.d.ts +24 -0
  38. package/dist/models/catch-up-email-subscription-response-class.js +15 -0
  39. package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +24 -0
  40. package/dist/models/catch-up-email-subscriptions-request-dto.js +15 -0
  41. package/dist/models/catch-up-email-subscriptions-response-class.d.ts +30 -0
  42. package/dist/models/catch-up-email-subscriptions-response-class.js +15 -0
  43. package/dist/models/email-mailbox-class.d.ts +47 -0
  44. package/dist/models/email-mailbox-class.js +20 -0
  45. package/dist/models/email-message-class.d.ts +73 -7
  46. package/dist/models/email-message-class.js +22 -3
  47. package/dist/models/email-message-summary-class.d.ts +98 -0
  48. package/dist/models/email-message-summary-class.js +33 -0
  49. package/dist/models/email-subscription-class.d.ts +110 -0
  50. package/dist/models/email-subscription-class.js +23 -0
  51. package/dist/models/email-thread-class.d.ts +37 -5
  52. package/dist/models/entity-ref-class.d.ts +37 -0
  53. package/dist/models/entity-ref-class.js +22 -0
  54. package/dist/models/get-email-subscription-response-class.d.ts +25 -0
  55. package/dist/models/get-email-subscription-response-class.js +15 -0
  56. package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
  57. package/dist/models/grpc-send-email-request-dto.js +22 -0
  58. package/dist/models/index.d.ts +20 -0
  59. package/dist/models/index.js +20 -0
  60. package/dist/models/inline-attachment-dto.d.ts +36 -0
  61. package/dist/models/inline-attachment-dto.js +15 -0
  62. package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
  63. package/dist/models/list-email-mailboxes-response-class.js +15 -0
  64. package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
  65. package/dist/models/list-email-subscriptions-response-class.js +15 -0
  66. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
  67. package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
  68. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
  69. package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
  70. package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
  71. package/dist/models/renew-email-subscription-response-class.js +15 -0
  72. package/dist/models/send-email-request-dto.d.ts +131 -0
  73. package/dist/models/send-email-request-dto.js +22 -0
  74. package/dist/models/send-email-response-class.d.ts +24 -0
  75. package/dist/models/send-email-response-class.js +15 -0
  76. package/dist/models/send-notification-request-dto.d.ts +10 -1
  77. package/dist/models/send-notification-request-dto.js +2 -1
  78. package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
  79. package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
  80. package/models/assign-email-thread-entity-body-dto.ts +52 -0
  81. package/models/assign-email-thread-entity-response-class.ts +31 -0
  82. package/models/catch-up-email-subscription-response-class.ts +30 -0
  83. package/models/catch-up-email-subscriptions-request-dto.ts +30 -0
  84. package/models/catch-up-email-subscriptions-response-class.ts +36 -0
  85. package/models/email-mailbox-class.ts +56 -0
  86. package/models/email-message-class.ts +78 -8
  87. package/models/email-message-summary-class.ts +109 -0
  88. package/models/email-subscription-class.ts +119 -0
  89. package/models/email-thread-class.ts +37 -5
  90. package/models/entity-ref-class.ts +46 -0
  91. package/models/get-email-subscription-response-class.ts +31 -0
  92. package/models/grpc-send-email-request-dto.ts +144 -0
  93. package/models/index.ts +20 -0
  94. package/models/inline-attachment-dto.ts +42 -0
  95. package/models/list-email-mailboxes-response-class.ts +49 -0
  96. package/models/list-email-subscriptions-response-class.ts +49 -0
  97. package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
  98. package/models/reconcile-email-subscriptions-response-class.ts +54 -0
  99. package/models/renew-email-subscription-response-class.ts +31 -0
  100. package/models/send-email-request-dto.ts +138 -0
  101. package/models/send-email-response-class.ts +30 -0
  102. package/models/send-notification-request-dto.ts +9 -2
  103. package/models/unassign-email-thread-entity-response-class.ts +31 -0
  104. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { EmailSubscriptionClass } from './email-subscription-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListEmailSubscriptionsResponseClass
22
+ */
23
+ export interface ListEmailSubscriptionsResponseClass {
24
+ /**
25
+ * List of email subscriptions
26
+ * @type {Array<EmailSubscriptionClass>}
27
+ * @memberof ListEmailSubscriptionsResponseClass
28
+ */
29
+ 'items': Array<EmailSubscriptionClass>;
30
+ /**
31
+ * Token for next page of results
32
+ * @type {string}
33
+ * @memberof ListEmailSubscriptionsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Total number of items
38
+ * @type {number}
39
+ * @memberof ListEmailSubscriptionsResponseClass
40
+ */
41
+ 'totalItems': number;
42
+ /**
43
+ * Number of items per page
44
+ * @type {number}
45
+ * @memberof ListEmailSubscriptionsResponseClass
46
+ */
47
+ 'itemsPerPage': number;
48
+ }
49
+
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ReconcileEmailSubscriptionsRequestDto
21
+ */
22
+ export interface ReconcileEmailSubscriptionsRequestDto {
23
+ /**
24
+ * Reconcile the email channel of this product. Omit it to reconcile the tenant-wide email channel.
25
+ * @type {string}
26
+ * @memberof ReconcileEmailSubscriptionsRequestDto
27
+ */
28
+ 'productSlug'?: string;
29
+ }
30
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ReconcileEmailSubscriptionsResponseClass
21
+ */
22
+ export interface ReconcileEmailSubscriptionsResponseClass {
23
+ /**
24
+ * Subscriptions created for mailboxes and folders that had none
25
+ * @type {number}
26
+ * @memberof ReconcileEmailSubscriptionsResponseClass
27
+ */
28
+ 'created': number;
29
+ /**
30
+ * Subscriptions deleted because their mailbox or folder left the email channel
31
+ * @type {number}
32
+ * @memberof ReconcileEmailSubscriptionsResponseClass
33
+ */
34
+ 'deleted': number;
35
+ /**
36
+ * Subscriptions created again because they expired or failed
37
+ * @type {number}
38
+ * @memberof ReconcileEmailSubscriptionsResponseClass
39
+ */
40
+ 'resubscribed': number;
41
+ /**
42
+ * Subscriptions that were already in place
43
+ * @type {number}
44
+ * @memberof ReconcileEmailSubscriptionsResponseClass
45
+ */
46
+ 'unchanged': number;
47
+ /**
48
+ * Subscriptions whose Graph call failed. The sweep retries them, and the email subscription list shows the error.
49
+ * @type {number}
50
+ * @memberof ReconcileEmailSubscriptionsResponseClass
51
+ */
52
+ 'failed': number;
53
+ }
54
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { EmailSubscriptionClass } from './email-subscription-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface RenewEmailSubscriptionResponseClass
22
+ */
23
+ export interface RenewEmailSubscriptionResponseClass {
24
+ /**
25
+ * The email subscription response.
26
+ * @type {EmailSubscriptionClass}
27
+ * @memberof RenewEmailSubscriptionResponseClass
28
+ */
29
+ 'emailSubscription': EmailSubscriptionClass;
30
+ }
31
+
@@ -0,0 +1,138 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { InlineAttachmentDto } from './inline-attachment-dto';
17
+ import { S3DocumentDto } from './s3-document-dto';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface SendEmailRequestDto
23
+ */
24
+ export interface SendEmailRequestDto {
25
+ /**
26
+ * Subject of the email
27
+ * @type {string}
28
+ * @memberof SendEmailRequestDto
29
+ */
30
+ 'emailSubject': string;
31
+ /**
32
+ * HTML body of the email, sent as given. Required unless textBody is set.
33
+ * @type {string}
34
+ * @memberof SendEmailRequestDto
35
+ */
36
+ 'htmlBody'?: string;
37
+ /**
38
+ * Plain-text body of the email. Sent as the text alternative when htmlBody is also set. Required unless htmlBody is set.
39
+ * @type {string}
40
+ * @memberof SendEmailRequestDto
41
+ */
42
+ 'textBody'?: string;
43
+ /**
44
+ * Email address of the sender. Defaults to the sender configured in the tenant settings.
45
+ * @type {string}
46
+ * @memberof SendEmailRequestDto
47
+ */
48
+ 'emailSender'?: string;
49
+ /**
50
+ * Email addresses of the receivers
51
+ * @type {Array<string>}
52
+ * @memberof SendEmailRequestDto
53
+ */
54
+ 'emailTo': Array<string>;
55
+ /**
56
+ * Email addresses that receive a copy of the email
57
+ * @type {Array<string>}
58
+ * @memberof SendEmailRequestDto
59
+ */
60
+ 'emailCc'?: Array<string>;
61
+ /**
62
+ * Email addresses that receive a copy of the email without the other recipients knowing
63
+ * @type {Array<string>}
64
+ * @memberof SendEmailRequestDto
65
+ */
66
+ 'emailBcc'?: Array<string>;
67
+ /**
68
+ * Attachments that have already been uploaded to S3
69
+ * @type {Array<S3DocumentDto>}
70
+ * @memberof SendEmailRequestDto
71
+ */
72
+ 'attachments'?: Array<S3DocumentDto>;
73
+ /**
74
+ * Attachments sent with the request as base64 content. They are stored in S3 before the email is sent. Their decoded size may not exceed 10 MB in total.
75
+ * @type {Array<InlineAttachmentDto>}
76
+ * @memberof SendEmailRequestDto
77
+ */
78
+ 'inlineAttachments'?: Array<InlineAttachmentDto>;
79
+ /**
80
+ * Product slug used to look up a product-specific sender in the tenant settings, stored under productSlug_sender-email
81
+ * @type {string}
82
+ * @memberof SendEmailRequestDto
83
+ */
84
+ 'productSlug'?: string;
85
+ /**
86
+ * Entity type for email reply tracking
87
+ * @type {string}
88
+ * @memberof SendEmailRequestDto
89
+ */
90
+ 'entityType'?: SendEmailRequestDtoEntityTypeEnum;
91
+ /**
92
+ * Entity code for email reply tracking
93
+ * @type {string}
94
+ * @memberof SendEmailRequestDto
95
+ */
96
+ 'entityCode'?: string;
97
+ /**
98
+ * Reply-To address. Auto-generated when reply tracking is enabled.
99
+ * @type {string}
100
+ * @memberof SendEmailRequestDto
101
+ */
102
+ 'replyTo'?: string;
103
+ /**
104
+ * Custom Message-ID header. Auto-generated if not provided.
105
+ * @type {string}
106
+ * @memberof SendEmailRequestDto
107
+ */
108
+ 'customMessageId'?: string;
109
+ /**
110
+ * Message-ID of the email this is replying to (for threading)
111
+ * @type {string}
112
+ * @memberof SendEmailRequestDto
113
+ */
114
+ 'inReplyTo'?: string;
115
+ /**
116
+ * Message-IDs for email thread chain
117
+ * @type {Array<string>}
118
+ * @memberof SendEmailRequestDto
119
+ */
120
+ 'references'?: Array<string>;
121
+ /**
122
+ * Custom headers to set on the outgoing email
123
+ * @type {{ [key: string]: string; }}
124
+ * @memberof SendEmailRequestDto
125
+ */
126
+ 'customHeaders'?: { [key: string]: string; };
127
+ }
128
+
129
+ export const SendEmailRequestDtoEntityTypeEnum = {
130
+ Claim: 'Claim',
131
+ Policy: 'Policy',
132
+ Lead: 'Lead',
133
+ Partner: 'Partner'
134
+ } as const;
135
+
136
+ export type SendEmailRequestDtoEntityTypeEnum = typeof SendEmailRequestDtoEntityTypeEnum[keyof typeof SendEmailRequestDtoEntityTypeEnum];
137
+
138
+
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface SendEmailResponseClass
21
+ */
22
+ export interface SendEmailResponseClass {
23
+ /**
24
+ * Notification request code
25
+ * @type {string}
26
+ * @memberof SendEmailResponseClass
27
+ */
28
+ 'code': string;
29
+ }
30
+
@@ -88,7 +88,7 @@ export interface SendNotificationRequestDto {
88
88
  */
89
89
  'entityCode'?: string;
90
90
  /**
91
- * Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
91
+ * Reply-To address for email reply tracking. Auto-generated when reply tracking is enabled.
92
92
  * @type {string}
93
93
  * @memberof SendNotificationRequestDto
94
94
  */
@@ -111,12 +111,19 @@ export interface SendNotificationRequestDto {
111
111
  * @memberof SendNotificationRequestDto
112
112
  */
113
113
  'references': Array<string>;
114
+ /**
115
+ * Custom headers to set on the outgoing email
116
+ * @type {{ [key: string]: string; }}
117
+ * @memberof SendNotificationRequestDto
118
+ */
119
+ 'customHeaders': { [key: string]: string; };
114
120
  }
115
121
 
116
122
  export const SendNotificationRequestDtoEntityTypeEnum = {
117
123
  Claim: 'Claim',
118
124
  Policy: 'Policy',
119
- Lead: 'Lead'
125
+ Lead: 'Lead',
126
+ Partner: 'Partner'
120
127
  } as const;
121
128
 
122
129
  export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { EmailThreadClass } from './email-thread-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UnassignEmailThreadEntityResponseClass
22
+ */
23
+ export interface UnassignEmailThreadEntityResponseClass {
24
+ /**
25
+ * The email thread response.
26
+ * @type {EmailThreadClass}
27
+ * @memberof UnassignEmailThreadEntityResponseClass
28
+ */
29
+ 'thread': EmailThreadClass;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/notification-sdk",
3
- "version": "0.8.1-beta.6",
3
+ "version": "0.8.1-beta.61",
4
4
  "description": "OpenAPI client for @emilgroup/notification-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [