@emilgroup/notification-sdk 0.8.1-beta.56 → 0.8.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -23
- package/README.md +2 -2
- package/api/email-messages-api.ts +28 -40
- package/api/email-tracking-api.ts +40 -271
- 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 -6
- package/dist/api/email-messages-api.d.ts +28 -40
- package/dist/api/email-messages-api.js +25 -37
- package/dist/api/email-tracking-api.d.ts +40 -170
- package/dist/api/email-tracking-api.js +34 -233
- 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 -3
- package/dist/api.js +0 -3
- package/dist/models/email-message-class.d.ts +7 -73
- package/dist/models/email-message-class.js +3 -22
- package/dist/models/email-thread-class.d.ts +5 -37
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -20
- package/dist/models/send-notification-request-dto.d.ts +1 -10
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +8 -78
- package/models/email-thread-class.ts +5 -37
- package/models/index.ts +0 -20
- package/models/send-notification-request-dto.ts +2 -9
- package/package.json +1 -1
- package/api/email-mailboxes-api.ts +0 -148
- package/api/email-subscriptions-api.ts +0 -769
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/email-mailboxes-api.d.ts +0 -87
- package/dist/api/email-mailboxes-api.js +0 -218
- package/dist/api/email-subscriptions-api.d.ts +0 -432
- package/dist/api/email-subscriptions-api.js +0 -722
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
- package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-thread-entity-response-class.js +0 -15
- package/dist/models/catch-up-email-subscription-response-class.d.ts +0 -24
- package/dist/models/catch-up-email-subscription-response-class.js +0 -15
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
- package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
- package/dist/models/email-mailbox-class.d.ts +0 -47
- package/dist/models/email-mailbox-class.js +0 -20
- package/dist/models/email-message-summary-class.d.ts +0 -98
- package/dist/models/email-message-summary-class.js +0 -33
- package/dist/models/email-subscription-class.d.ts +0 -110
- package/dist/models/email-subscription-class.js +0 -23
- package/dist/models/entity-ref-class.d.ts +0 -37
- package/dist/models/entity-ref-class.js +0 -22
- package/dist/models/get-email-subscription-response-class.d.ts +0 -25
- package/dist/models/get-email-subscription-response-class.js +0 -15
- package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
- package/dist/models/grpc-send-email-request-dto.js +0 -22
- package/dist/models/inline-attachment-dto.d.ts +0 -36
- package/dist/models/inline-attachment-dto.js +0 -15
- package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
- package/dist/models/list-email-mailboxes-response-class.js +0 -15
- package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
- package/dist/models/list-email-subscriptions-response-class.js +0 -15
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
- package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
- package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
- package/dist/models/renew-email-subscription-response-class.js +0 -15
- package/dist/models/send-email-request-dto.d.ts +0 -131
- package/dist/models/send-email-request-dto.js +0 -22
- package/dist/models/send-email-response-class.d.ts +0 -24
- package/dist/models/send-email-response-class.js +0 -15
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
- package/models/assign-email-thread-entity-body-dto.ts +0 -52
- package/models/assign-email-thread-entity-response-class.ts +0 -31
- package/models/catch-up-email-subscription-response-class.ts +0 -30
- package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
- package/models/catch-up-email-subscriptions-response-class.ts +0 -36
- package/models/email-mailbox-class.ts +0 -56
- package/models/email-message-summary-class.ts +0 -109
- package/models/email-subscription-class.ts +0 -119
- package/models/entity-ref-class.ts +0 -46
- package/models/get-email-subscription-response-class.ts +0 -31
- package/models/grpc-send-email-request-dto.ts +0 -144
- package/models/inline-attachment-dto.ts +0 -42
- package/models/list-email-mailboxes-response-class.ts +0 -49
- package/models/list-email-subscriptions-response-class.ts +0 -49
- package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
- package/models/reconcile-email-subscriptions-response-class.ts +0 -54
- package/models/renew-email-subscription-response-class.ts +0 -31
- package/models/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
- package/models/unassign-email-thread-entity-response-class.ts +0 -31
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { EmailAttachmentClass } from './email-attachment-class';
|
|
17
|
-
import { EntityRefClass } from './entity-ref-class';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
@@ -35,41 +34,11 @@ export interface EmailMessageClass {
|
|
|
35
34
|
*/
|
|
36
35
|
'code': string;
|
|
37
36
|
/**
|
|
38
|
-
* Thread code this message belongs to
|
|
37
|
+
* Thread code this message belongs to
|
|
39
38
|
* @type {string}
|
|
40
39
|
* @memberof EmailMessageClass
|
|
41
40
|
*/
|
|
42
41
|
'threadCode': string;
|
|
43
|
-
/**
|
|
44
|
-
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof EmailMessageClass
|
|
47
|
-
*/
|
|
48
|
-
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
49
|
-
/**
|
|
50
|
-
* What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof EmailMessageClass
|
|
53
|
-
*/
|
|
54
|
-
'kind': EmailMessageClassKindEnum;
|
|
55
|
-
/**
|
|
56
|
-
* Delivery report only: code of the outbound message the report is about
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof EmailMessageClass
|
|
59
|
-
*/
|
|
60
|
-
'reportedMessageCode'?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Provider the message was sent or received through
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof EmailMessageClass
|
|
65
|
-
*/
|
|
66
|
-
'provider'?: EmailMessageClassProviderEnum;
|
|
67
|
-
/**
|
|
68
|
-
* Mailbox the message belongs to: the Microsoft 365 mailbox it was sent from or arrived in, or the sender address for SES. Empty for an inbound email that matched nothing yet.
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof EmailMessageClass
|
|
71
|
-
*/
|
|
72
|
-
'mailbox'?: string;
|
|
73
42
|
/**
|
|
74
43
|
* Direction of the email
|
|
75
44
|
* @type {string}
|
|
@@ -113,7 +82,7 @@ export interface EmailMessageClass {
|
|
|
113
82
|
*/
|
|
114
83
|
'bodyHtml'?: string;
|
|
115
84
|
/**
|
|
116
|
-
* Delivery status of the email
|
|
85
|
+
* Delivery status of the email
|
|
117
86
|
* @type {string}
|
|
118
87
|
* @memberof EmailMessageClass
|
|
119
88
|
*/
|
|
@@ -167,50 +136,19 @@ export interface EmailMessageClass {
|
|
|
167
136
|
*/
|
|
168
137
|
'attachments': Array<EmailAttachmentClass>;
|
|
169
138
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @type {number}
|
|
172
|
-
* @memberof EmailMessageClass
|
|
173
|
-
*/
|
|
174
|
-
'attachmentCount'?: number;
|
|
175
|
-
/**
|
|
176
|
-
* The entity the message\'s thread is linked to. Not set while the message is unassigned.
|
|
177
|
-
* @type {EntityRefClass}
|
|
178
|
-
* @memberof EmailMessageClass
|
|
179
|
-
*/
|
|
180
|
-
'entityRef'?: EntityRefClass;
|
|
181
|
-
/**
|
|
182
|
-
* Business number of the linked entity (policy, lead, claim or partner number)
|
|
139
|
+
* Entity type this message is associated with
|
|
183
140
|
* @type {string}
|
|
184
141
|
* @memberof EmailMessageClass
|
|
185
142
|
*/
|
|
186
|
-
'
|
|
143
|
+
'entityType': string;
|
|
187
144
|
/**
|
|
188
|
-
*
|
|
145
|
+
* Entity code this message is associated with
|
|
189
146
|
* @type {string}
|
|
190
147
|
* @memberof EmailMessageClass
|
|
191
148
|
*/
|
|
192
|
-
'
|
|
149
|
+
'entityCode': string;
|
|
193
150
|
}
|
|
194
151
|
|
|
195
|
-
export const EmailMessageClassMatchStatusEnum = {
|
|
196
|
-
Pending: 'pending',
|
|
197
|
-
Matched: 'matched',
|
|
198
|
-
Unassigned: 'unassigned'
|
|
199
|
-
} as const;
|
|
200
|
-
|
|
201
|
-
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
202
|
-
export const EmailMessageClassKindEnum = {
|
|
203
|
-
Message: 'message',
|
|
204
|
-
DeliveryReport: 'delivery_report'
|
|
205
|
-
} as const;
|
|
206
|
-
|
|
207
|
-
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
208
|
-
export const EmailMessageClassProviderEnum = {
|
|
209
|
-
Ses: 'ses',
|
|
210
|
-
Msgraph: 'msgraph'
|
|
211
|
-
} as const;
|
|
212
|
-
|
|
213
|
-
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
214
152
|
export const EmailMessageClassDirectionEnum = {
|
|
215
153
|
Outbound: 'outbound',
|
|
216
154
|
Inbound: 'inbound'
|
|
@@ -220,19 +158,11 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
|
|
|
220
158
|
export const EmailMessageClassDeliveryStatusEnum = {
|
|
221
159
|
Pending: 'pending',
|
|
222
160
|
Sent: 'sent',
|
|
161
|
+
Delivered: 'delivered',
|
|
223
162
|
Bounced: 'bounced',
|
|
224
|
-
Failed: 'failed'
|
|
225
|
-
Received: 'received'
|
|
163
|
+
Failed: 'failed'
|
|
226
164
|
} as const;
|
|
227
165
|
|
|
228
166
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|
|
229
|
-
export const EmailMessageClassWorkflowStatusEnum = {
|
|
230
|
-
InProgress: 'in_progress',
|
|
231
|
-
Done: 'done',
|
|
232
|
-
Failed: 'failed',
|
|
233
|
-
Cancelled: 'cancelled'
|
|
234
|
-
} as const;
|
|
235
|
-
|
|
236
|
-
export type EmailMessageClassWorkflowStatusEnum = typeof EmailMessageClassWorkflowStatusEnum[keyof typeof EmailMessageClassWorkflowStatusEnum];
|
|
237
167
|
|
|
238
168
|
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { EmailMessageSummaryClass } from './email-message-summary-class';
|
|
17
|
-
import { EntityRefClass } from './entity-ref-class';
|
|
18
16
|
|
|
19
17
|
/**
|
|
20
18
|
*
|
|
@@ -35,17 +33,17 @@ export interface EmailThreadClass {
|
|
|
35
33
|
*/
|
|
36
34
|
'code': string;
|
|
37
35
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
36
|
+
* Entity type associated with this thread
|
|
37
|
+
* @type {string}
|
|
40
38
|
* @memberof EmailThreadClass
|
|
41
39
|
*/
|
|
42
|
-
'
|
|
40
|
+
'entityType': string;
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
42
|
+
* Entity code associated with this thread
|
|
45
43
|
* @type {string}
|
|
46
44
|
* @memberof EmailThreadClass
|
|
47
45
|
*/
|
|
48
|
-
'
|
|
46
|
+
'entityCode': string;
|
|
49
47
|
/**
|
|
50
48
|
* Email subject of the thread
|
|
51
49
|
* @type {string}
|
|
@@ -58,12 +56,6 @@ export interface EmailThreadClass {
|
|
|
58
56
|
* @memberof EmailThreadClass
|
|
59
57
|
*/
|
|
60
58
|
'status': EmailThreadClassStatusEnum;
|
|
61
|
-
/**
|
|
62
|
-
* Mailbox the thread belongs to: the Microsoft 365 mailbox the conversation lives in, or the sender address for SES. Empty for a thread opened by an inbound email that matched nothing.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof EmailThreadClass
|
|
65
|
-
*/
|
|
66
|
-
'mailbox'?: string;
|
|
67
59
|
/**
|
|
68
60
|
* User who created this thread
|
|
69
61
|
* @type {string}
|
|
@@ -88,30 +80,6 @@ export interface EmailThreadClass {
|
|
|
88
80
|
* @memberof EmailThreadClass
|
|
89
81
|
*/
|
|
90
82
|
'updatedAt': string;
|
|
91
|
-
/**
|
|
92
|
-
* Number of messages in the thread. Delivery reports (bounces) are not counted.
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof EmailThreadClass
|
|
95
|
-
*/
|
|
96
|
-
'messageCount': number;
|
|
97
|
-
/**
|
|
98
|
-
* When the newest message of the thread was received, or sent for an outbound message
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof EmailThreadClass
|
|
101
|
-
*/
|
|
102
|
-
'lastMessageAt'?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Newest message of the thread, the one a thread row in a list shows. Set when listing threads.
|
|
105
|
-
* @type {EmailMessageSummaryClass}
|
|
106
|
-
* @memberof EmailThreadClass
|
|
107
|
-
*/
|
|
108
|
-
'latestMessage'?: EmailMessageSummaryClass;
|
|
109
|
-
/**
|
|
110
|
-
* Every message of the thread, newest first. Only filled when listing with expand=messages; bodies are fetched per message.
|
|
111
|
-
* @type {Array<EmailMessageSummaryClass>}
|
|
112
|
-
* @memberof EmailThreadClass
|
|
113
|
-
*/
|
|
114
|
-
'messages': Array<EmailMessageSummaryClass>;
|
|
115
83
|
}
|
|
116
84
|
|
|
117
85
|
export const EmailThreadClassStatusEnum = {
|
package/models/index.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export * from './assign-email-thread-entity-body-dto';
|
|
2
|
-
export * from './assign-email-thread-entity-response-class';
|
|
3
|
-
export * from './catch-up-email-subscription-response-class';
|
|
4
|
-
export * from './catch-up-email-subscriptions-request-dto';
|
|
5
|
-
export * from './catch-up-email-subscriptions-response-class';
|
|
6
1
|
export * from './complete-email-verification-dto';
|
|
7
2
|
export * from './complete-email-verification-response-class';
|
|
8
3
|
export * from './create-layout-request-dto';
|
|
@@ -13,44 +8,29 @@ export * from './delete-layout-request-dto';
|
|
|
13
8
|
export * from './delete-notification-template-request-dto';
|
|
14
9
|
export * from './download-attachment-response-class';
|
|
15
10
|
export * from './email-attachment-class';
|
|
16
|
-
export * from './email-mailbox-class';
|
|
17
11
|
export * from './email-message-class';
|
|
18
|
-
export * from './email-message-summary-class';
|
|
19
|
-
export * from './email-subscription-class';
|
|
20
12
|
export * from './email-thread-class';
|
|
21
|
-
export * from './entity-ref-class';
|
|
22
13
|
export * from './get-email-message-response-class';
|
|
23
|
-
export * from './get-email-subscription-response-class';
|
|
24
14
|
export * from './get-email-thread-response-class';
|
|
25
15
|
export * from './get-layout-request-dto';
|
|
26
16
|
export * from './get-layout-response-class';
|
|
27
17
|
export * from './get-notification-template-request-dto';
|
|
28
18
|
export * from './get-notification-template-response-class';
|
|
29
|
-
export * from './grpc-send-email-request-dto';
|
|
30
19
|
export * from './html-template-class';
|
|
31
20
|
export * from './initiate-email-verification-dto';
|
|
32
21
|
export * from './initiate-email-verification-response-class';
|
|
33
|
-
export * from './inline-attachment-dto';
|
|
34
22
|
export * from './inline-response200';
|
|
35
23
|
export * from './inline-response503';
|
|
36
24
|
export * from './layout-class';
|
|
37
25
|
export * from './list-email-attachments-response-class';
|
|
38
|
-
export * from './list-email-mailboxes-response-class';
|
|
39
26
|
export * from './list-email-messages-response-class';
|
|
40
|
-
export * from './list-email-subscriptions-response-class';
|
|
41
27
|
export * from './list-email-threads-response-class';
|
|
42
28
|
export * from './list-layouts-response-class';
|
|
43
29
|
export * from './list-notification-templates-response-class';
|
|
44
30
|
export * from './notification-template-class';
|
|
45
|
-
export * from './reconcile-email-subscriptions-request-dto';
|
|
46
|
-
export * from './reconcile-email-subscriptions-response-class';
|
|
47
|
-
export * from './renew-email-subscription-response-class';
|
|
48
31
|
export * from './s3-document-dto';
|
|
49
|
-
export * from './send-email-request-dto';
|
|
50
|
-
export * from './send-email-response-class';
|
|
51
32
|
export * from './send-notification-request-dto';
|
|
52
33
|
export * from './send-notification-response-class';
|
|
53
|
-
export * from './unassign-email-thread-entity-response-class';
|
|
54
34
|
export * from './update-html-template-request-dto';
|
|
55
35
|
export * from './update-layout-request-dto';
|
|
56
36
|
export * from './update-layout-response-class';
|
|
@@ -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
|
|
91
|
+
* Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof SendNotificationRequestDto
|
|
94
94
|
*/
|
|
@@ -111,19 +111,12 @@ 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; };
|
|
120
114
|
}
|
|
121
115
|
|
|
122
116
|
export const SendNotificationRequestDtoEntityTypeEnum = {
|
|
123
117
|
Claim: 'Claim',
|
|
124
118
|
Policy: 'Policy',
|
|
125
|
-
Lead: 'Lead'
|
|
126
|
-
Partner: 'Partner'
|
|
119
|
+
Lead: 'Lead'
|
|
127
120
|
} as const;
|
|
128
121
|
|
|
129
122
|
export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
|
package/package.json
CHANGED
|
@@ -1,148 +0,0 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ListEmailMailboxesResponseClass } from '../models';
|
|
25
|
-
/**
|
|
26
|
-
* EmailMailboxesApi - axios parameter creator
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export const EmailMailboxesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
-
return {
|
|
31
|
-
/**
|
|
32
|
-
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
33
|
-
* @summary List the email mailboxes
|
|
34
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
35
|
-
* @param {*} [options] Override http request option.
|
|
36
|
-
* @throws {RequiredError}
|
|
37
|
-
*/
|
|
38
|
-
listEmailMailboxes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
-
const localVarPath = `/notificationservice/v1/email-mailboxes`;
|
|
40
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
|
-
let baseOptions;
|
|
43
|
-
let baseAccessToken;
|
|
44
|
-
if (configuration) {
|
|
45
|
-
baseOptions = configuration.baseOptions;
|
|
46
|
-
baseAccessToken = configuration.accessToken;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50
|
-
const localVarHeaderParameter = {} as any;
|
|
51
|
-
const localVarQueryParameter = {} as any;
|
|
52
|
-
|
|
53
|
-
// authentication bearer required
|
|
54
|
-
// http bearer authentication required
|
|
55
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56
|
-
|
|
57
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
58
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
url: toPathString(localVarUrlObj),
|
|
69
|
-
options: localVarRequestOptions,
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* EmailMailboxesApi - functional programming interface
|
|
77
|
-
* @export
|
|
78
|
-
*/
|
|
79
|
-
export const EmailMailboxesApiFp = function(configuration?: Configuration) {
|
|
80
|
-
const localVarAxiosParamCreator = EmailMailboxesApiAxiosParamCreator(configuration)
|
|
81
|
-
return {
|
|
82
|
-
/**
|
|
83
|
-
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
84
|
-
* @summary List the email mailboxes
|
|
85
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
86
|
-
* @param {*} [options] Override http request option.
|
|
87
|
-
* @throws {RequiredError}
|
|
88
|
-
*/
|
|
89
|
-
async listEmailMailboxes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMailboxesResponseClass>> {
|
|
90
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listEmailMailboxes(authorization, options);
|
|
91
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
92
|
-
},
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* EmailMailboxesApi - factory interface
|
|
98
|
-
* @export
|
|
99
|
-
*/
|
|
100
|
-
export const EmailMailboxesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
101
|
-
const localVarFp = EmailMailboxesApiFp(configuration)
|
|
102
|
-
return {
|
|
103
|
-
/**
|
|
104
|
-
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
105
|
-
* @summary List the email mailboxes
|
|
106
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
|
-
* @param {*} [options] Override http request option.
|
|
108
|
-
* @throws {RequiredError}
|
|
109
|
-
*/
|
|
110
|
-
listEmailMailboxes(authorization?: string, options?: any): AxiosPromise<ListEmailMailboxesResponseClass> {
|
|
111
|
-
return localVarFp.listEmailMailboxes(authorization, options).then((request) => request(axios, basePath));
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Request parameters for listEmailMailboxes operation in EmailMailboxesApi.
|
|
118
|
-
* @export
|
|
119
|
-
* @interface EmailMailboxesApiListEmailMailboxesRequest
|
|
120
|
-
*/
|
|
121
|
-
export interface EmailMailboxesApiListEmailMailboxesRequest {
|
|
122
|
-
/**
|
|
123
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof EmailMailboxesApiListEmailMailboxes
|
|
126
|
-
*/
|
|
127
|
-
readonly authorization?: string
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* EmailMailboxesApi - object-oriented interface
|
|
132
|
-
* @export
|
|
133
|
-
* @class EmailMailboxesApi
|
|
134
|
-
* @extends {BaseAPI}
|
|
135
|
-
*/
|
|
136
|
-
export class EmailMailboxesApi extends BaseAPI {
|
|
137
|
-
/**
|
|
138
|
-
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
139
|
-
* @summary List the email mailboxes
|
|
140
|
-
* @param {EmailMailboxesApiListEmailMailboxesRequest} requestParameters Request parameters.
|
|
141
|
-
* @param {*} [options] Override http request option.
|
|
142
|
-
* @throws {RequiredError}
|
|
143
|
-
* @memberof EmailMailboxesApi
|
|
144
|
-
*/
|
|
145
|
-
public listEmailMailboxes(requestParameters: EmailMailboxesApiListEmailMailboxesRequest = {}, options?: AxiosRequestConfig) {
|
|
146
|
-
return EmailMailboxesApiFp(this.configuration).listEmailMailboxes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
147
|
-
}
|
|
148
|
-
}
|