@emilgroup/notification-sdk 0.8.1-beta.59 → 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.
Files changed (110) hide show
  1. package/.openapi-generator/FILES +0 -23
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +36 -56
  4. package/api/email-tracking-api.ts +48 -291
  5. package/api/email-verifications-api.ts +12 -24
  6. package/api/layouts-api.ts +46 -76
  7. package/api/notification-templates-api.ts +46 -76
  8. package/api/notifications-api.ts +6 -121
  9. package/api.ts +0 -6
  10. package/base.ts +41 -174
  11. package/configuration.ts +0 -20
  12. package/dist/api/email-messages-api.d.ts +28 -40
  13. package/dist/api/email-messages-api.js +40 -62
  14. package/dist/api/email-tracking-api.d.ts +40 -170
  15. package/dist/api/email-tracking-api.js +48 -261
  16. package/dist/api/email-verifications-api.d.ts +8 -16
  17. package/dist/api/email-verifications-api.js +16 -30
  18. package/dist/api/layouts-api.d.ts +36 -56
  19. package/dist/api/layouts-api.js +50 -81
  20. package/dist/api/notification-templates-api.d.ts +36 -56
  21. package/dist/api/notification-templates-api.js +50 -81
  22. package/dist/api/notifications-api.d.ts +4 -65
  23. package/dist/api/notifications-api.js +8 -111
  24. package/dist/api.d.ts +0 -3
  25. package/dist/api.js +0 -3
  26. package/dist/base.d.ts +0 -24
  27. package/dist/base.js +59 -178
  28. package/dist/configuration.d.ts +0 -17
  29. package/dist/configuration.js +0 -2
  30. package/dist/models/email-message-class.d.ts +7 -73
  31. package/dist/models/email-message-class.js +3 -22
  32. package/dist/models/email-thread-class.d.ts +5 -37
  33. package/dist/models/index.d.ts +0 -20
  34. package/dist/models/index.js +0 -20
  35. package/dist/models/send-notification-request-dto.d.ts +1 -10
  36. package/dist/models/send-notification-request-dto.js +1 -2
  37. package/models/email-message-class.ts +8 -78
  38. package/models/email-thread-class.ts +5 -37
  39. package/models/index.ts +0 -20
  40. package/models/send-notification-request-dto.ts +2 -9
  41. package/package.json +1 -1
  42. package/api/email-mailboxes-api.ts +0 -150
  43. package/api/email-subscriptions-api.ts +0 -781
  44. package/api/msgraph-webhooks-api.ts +0 -278
  45. package/dist/api/email-mailboxes-api.d.ts +0 -87
  46. package/dist/api/email-mailboxes-api.js +0 -221
  47. package/dist/api/email-subscriptions-api.d.ts +0 -432
  48. package/dist/api/email-subscriptions-api.js +0 -738
  49. package/dist/api/msgraph-webhooks-api.d.ts +0 -168
  50. package/dist/api/msgraph-webhooks-api.js +0 -305
  51. package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
  52. package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
  53. package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
  54. package/dist/models/assign-email-thread-entity-response-class.js +0 -15
  55. package/dist/models/catch-up-email-subscription-response-class.d.ts +0 -24
  56. package/dist/models/catch-up-email-subscription-response-class.js +0 -15
  57. package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
  58. package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
  59. package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
  60. package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
  61. package/dist/models/email-mailbox-class.d.ts +0 -47
  62. package/dist/models/email-mailbox-class.js +0 -20
  63. package/dist/models/email-message-summary-class.d.ts +0 -98
  64. package/dist/models/email-message-summary-class.js +0 -33
  65. package/dist/models/email-subscription-class.d.ts +0 -110
  66. package/dist/models/email-subscription-class.js +0 -23
  67. package/dist/models/entity-ref-class.d.ts +0 -37
  68. package/dist/models/entity-ref-class.js +0 -22
  69. package/dist/models/get-email-subscription-response-class.d.ts +0 -25
  70. package/dist/models/get-email-subscription-response-class.js +0 -15
  71. package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
  72. package/dist/models/grpc-send-email-request-dto.js +0 -22
  73. package/dist/models/inline-attachment-dto.d.ts +0 -36
  74. package/dist/models/inline-attachment-dto.js +0 -15
  75. package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
  76. package/dist/models/list-email-mailboxes-response-class.js +0 -15
  77. package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
  78. package/dist/models/list-email-subscriptions-response-class.js +0 -15
  79. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
  80. package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
  81. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
  82. package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
  83. package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
  84. package/dist/models/renew-email-subscription-response-class.js +0 -15
  85. package/dist/models/send-email-request-dto.d.ts +0 -131
  86. package/dist/models/send-email-request-dto.js +0 -22
  87. package/dist/models/send-email-response-class.d.ts +0 -24
  88. package/dist/models/send-email-response-class.js +0 -15
  89. package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
  90. package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
  91. package/models/assign-email-thread-entity-body-dto.ts +0 -52
  92. package/models/assign-email-thread-entity-response-class.ts +0 -31
  93. package/models/catch-up-email-subscription-response-class.ts +0 -30
  94. package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
  95. package/models/catch-up-email-subscriptions-response-class.ts +0 -36
  96. package/models/email-mailbox-class.ts +0 -56
  97. package/models/email-message-summary-class.ts +0 -109
  98. package/models/email-subscription-class.ts +0 -119
  99. package/models/entity-ref-class.ts +0 -46
  100. package/models/get-email-subscription-response-class.ts +0 -31
  101. package/models/grpc-send-email-request-dto.ts +0 -144
  102. package/models/inline-attachment-dto.ts +0 -42
  103. package/models/list-email-mailboxes-response-class.ts +0 -49
  104. package/models/list-email-subscriptions-response-class.ts +0 -49
  105. package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
  106. package/models/reconcile-email-subscriptions-response-class.ts +0 -54
  107. package/models/renew-email-subscription-response-class.ts +0 -31
  108. package/models/send-email-request-dto.ts +0 -138
  109. package/models/send-email-response-class.ts +0 -30
  110. package/models/unassign-email-thread-entity-response-class.ts +0 -31
@@ -1,278 +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
- /**
24
- * MSGraphWebhooksApi - axios parameter creator
25
- * @export
26
- */
27
- export const MSGraphWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
28
- return {
29
- /**
30
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
31
- * @summary Receive Microsoft Graph subscription lifecycle notifications
32
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
33
- * @param {string} [validationToken] Echoed back as text/plain when present.
34
- * @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- receiveLifecycle: async (tenantSlug: string, validationToken?: string, body?: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
- // verify required parameter 'tenantSlug' is not null or undefined
40
- assertParamExists('receiveLifecycle', 'tenantSlug', tenantSlug)
41
- const localVarPath = `/notificationservice/v1/webhooks/msgraph/{tenantSlug}/lifecycle`
42
- .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
43
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45
- let baseOptions;
46
- let baseAccessToken;
47
- if (configuration) {
48
- baseOptions = configuration.baseOptions;
49
- baseAccessToken = configuration.accessToken;
50
- }
51
-
52
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
53
- const localVarHeaderParameter = {} as any;
54
- const localVarQueryParameter = {} as any;
55
-
56
- if (validationToken !== undefined) {
57
- localVarQueryParameter['validationToken'] = validationToken;
58
- }
59
-
60
-
61
-
62
- localVarHeaderParameter['Content-Type'] = 'application/json';
63
-
64
- setSearchParams(localVarUrlObj, localVarQueryParameter);
65
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
67
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
68
-
69
- return {
70
- url: toPathString(localVarUrlObj),
71
- options: localVarRequestOptions,
72
- };
73
- },
74
- /**
75
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
76
- * @summary Receive Microsoft Graph change notifications
77
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
78
- * @param {string} [validationToken] Echoed back as text/plain when present.
79
- * @param {object} [body] Graph change-notification collection: &#x60;{ \&quot;value\&quot;: [ ... ] }&#x60;.
80
- * @param {*} [options] Override http request option.
81
- * @throws {RequiredError}
82
- */
83
- receiveNotifications: async (tenantSlug: string, validationToken?: string, body?: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
84
- // verify required parameter 'tenantSlug' is not null or undefined
85
- assertParamExists('receiveNotifications', 'tenantSlug', tenantSlug)
86
- const localVarPath = `/notificationservice/v1/webhooks/msgraph/{tenantSlug}/notifications`
87
- .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
88
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
- let baseOptions;
91
- let baseAccessToken;
92
- if (configuration) {
93
- baseOptions = configuration.baseOptions;
94
- baseAccessToken = configuration.accessToken;
95
- }
96
-
97
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
98
- const localVarHeaderParameter = {} as any;
99
- const localVarQueryParameter = {} as any;
100
-
101
- if (validationToken !== undefined) {
102
- localVarQueryParameter['validationToken'] = validationToken;
103
- }
104
-
105
-
106
-
107
- localVarHeaderParameter['Content-Type'] = 'application/json';
108
-
109
- setSearchParams(localVarUrlObj, localVarQueryParameter);
110
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
111
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
112
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
113
-
114
- return {
115
- url: toPathString(localVarUrlObj),
116
- options: localVarRequestOptions,
117
- };
118
- },
119
- }
120
- };
121
-
122
- /**
123
- * MSGraphWebhooksApi - functional programming interface
124
- * @export
125
- */
126
- export const MSGraphWebhooksApiFp = function(configuration?: Configuration) {
127
- const localVarAxiosParamCreator = MSGraphWebhooksApiAxiosParamCreator(configuration)
128
- return {
129
- /**
130
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
131
- * @summary Receive Microsoft Graph subscription lifecycle notifications
132
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
133
- * @param {string} [validationToken] Echoed back as text/plain when present.
134
- * @param {object} [body] Graph lifecycle collection &#x60;{ \&quot;value\&quot;: [...] }&#x60;.
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- async receiveLifecycle(tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
139
- const localVarAxiosArgs = await localVarAxiosParamCreator.receiveLifecycle(tenantSlug, validationToken, body, options);
140
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
141
- },
142
- /**
143
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
144
- * @summary Receive Microsoft Graph change notifications
145
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
146
- * @param {string} [validationToken] Echoed back as text/plain when present.
147
- * @param {object} [body] Graph change-notification collection: &#x60;{ \&quot;value\&quot;: [ ... ] }&#x60;.
148
- * @param {*} [options] Override http request option.
149
- * @throws {RequiredError}
150
- */
151
- async receiveNotifications(tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
152
- const localVarAxiosArgs = await localVarAxiosParamCreator.receiveNotifications(tenantSlug, validationToken, body, options);
153
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
154
- },
155
- }
156
- };
157
-
158
- /**
159
- * MSGraphWebhooksApi - factory interface
160
- * @export
161
- */
162
- export const MSGraphWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
163
- const localVarFp = MSGraphWebhooksApiFp(configuration)
164
- return {
165
- /**
166
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
167
- * @summary Receive Microsoft Graph subscription lifecycle notifications
168
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
169
- * @param {string} [validationToken] Echoed back as text/plain when present.
170
- * @param {object} [body] Graph lifecycle collection &#x60;{ \&quot;value\&quot;: [...] }&#x60;.
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- */
174
- receiveLifecycle(tenantSlug: string, validationToken?: string, body?: object, options?: any): AxiosPromise<void> {
175
- return localVarFp.receiveLifecycle(tenantSlug, validationToken, body, options).then((request) => request(axios, basePath));
176
- },
177
- /**
178
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
179
- * @summary Receive Microsoft Graph change notifications
180
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
181
- * @param {string} [validationToken] Echoed back as text/plain when present.
182
- * @param {object} [body] Graph change-notification collection: &#x60;{ \&quot;value\&quot;: [ ... ] }&#x60;.
183
- * @param {*} [options] Override http request option.
184
- * @throws {RequiredError}
185
- */
186
- receiveNotifications(tenantSlug: string, validationToken?: string, body?: object, options?: any): AxiosPromise<void> {
187
- return localVarFp.receiveNotifications(tenantSlug, validationToken, body, options).then((request) => request(axios, basePath));
188
- },
189
- };
190
- };
191
-
192
- /**
193
- * Request parameters for receiveLifecycle operation in MSGraphWebhooksApi.
194
- * @export
195
- * @interface MSGraphWebhooksApiReceiveLifecycleRequest
196
- */
197
- export interface MSGraphWebhooksApiReceiveLifecycleRequest {
198
- /**
199
- * Unique slug identifier representing a tenant.
200
- * @type {string}
201
- * @memberof MSGraphWebhooksApiReceiveLifecycle
202
- */
203
- readonly tenantSlug: string
204
-
205
- /**
206
- * Echoed back as text/plain when present.
207
- * @type {string}
208
- * @memberof MSGraphWebhooksApiReceiveLifecycle
209
- */
210
- readonly validationToken?: string
211
-
212
- /**
213
- * Graph lifecycle collection &#x60;{ \&quot;value\&quot;: [...] }&#x60;.
214
- * @type {object}
215
- * @memberof MSGraphWebhooksApiReceiveLifecycle
216
- */
217
- readonly body?: object
218
- }
219
-
220
- /**
221
- * Request parameters for receiveNotifications operation in MSGraphWebhooksApi.
222
- * @export
223
- * @interface MSGraphWebhooksApiReceiveNotificationsRequest
224
- */
225
- export interface MSGraphWebhooksApiReceiveNotificationsRequest {
226
- /**
227
- * Unique slug identifier representing a tenant.
228
- * @type {string}
229
- * @memberof MSGraphWebhooksApiReceiveNotifications
230
- */
231
- readonly tenantSlug: string
232
-
233
- /**
234
- * Echoed back as text/plain when present.
235
- * @type {string}
236
- * @memberof MSGraphWebhooksApiReceiveNotifications
237
- */
238
- readonly validationToken?: string
239
-
240
- /**
241
- * Graph change-notification collection: &#x60;{ \&quot;value\&quot;: [ ... ] }&#x60;.
242
- * @type {object}
243
- * @memberof MSGraphWebhooksApiReceiveNotifications
244
- */
245
- readonly body?: object
246
- }
247
-
248
- /**
249
- * MSGraphWebhooksApi - object-oriented interface
250
- * @export
251
- * @class MSGraphWebhooksApi
252
- * @extends {BaseAPI}
253
- */
254
- export class MSGraphWebhooksApi extends BaseAPI {
255
- /**
256
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
257
- * @summary Receive Microsoft Graph subscription lifecycle notifications
258
- * @param {MSGraphWebhooksApiReceiveLifecycleRequest} requestParameters Request parameters.
259
- * @param {*} [options] Override http request option.
260
- * @throws {RequiredError}
261
- * @memberof MSGraphWebhooksApi
262
- */
263
- public receiveLifecycle(requestParameters: MSGraphWebhooksApiReceiveLifecycleRequest, options?: AxiosRequestConfig) {
264
- return MSGraphWebhooksApiFp(this.configuration).receiveLifecycle(requestParameters.tenantSlug, requestParameters.validationToken, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
265
- }
266
-
267
- /**
268
- * Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
269
- * @summary Receive Microsoft Graph change notifications
270
- * @param {MSGraphWebhooksApiReceiveNotificationsRequest} requestParameters Request parameters.
271
- * @param {*} [options] Override http request option.
272
- * @throws {RequiredError}
273
- * @memberof MSGraphWebhooksApi
274
- */
275
- public receiveNotifications(requestParameters: MSGraphWebhooksApiReceiveNotificationsRequest, options?: AxiosRequestConfig) {
276
- return MSGraphWebhooksApiFp(this.configuration).receiveNotifications(requestParameters.tenantSlug, requestParameters.validationToken, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
277
- }
278
- }
@@ -1,87 +0,0 @@
1
- /**
2
- * EMIL NotificationService
3
- * The EMIL NotificationService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { ListEmailMailboxesResponseClass } from '../models';
16
- /**
17
- * EmailMailboxesApi - axios parameter creator
18
- * @export
19
- */
20
- export declare const EmailMailboxesApiAxiosParamCreator: (configuration?: Configuration) => {
21
- /**
22
- * 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\"
23
- * @summary List the email mailboxes
24
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
25
- * @param {*} [options] Override http request option.
26
- * @throws {RequiredError}
27
- */
28
- listEmailMailboxes: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
- };
30
- /**
31
- * EmailMailboxesApi - functional programming interface
32
- * @export
33
- */
34
- export declare const EmailMailboxesApiFp: (configuration?: Configuration) => {
35
- /**
36
- * 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\"
37
- * @summary List the email mailboxes
38
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
- * @param {*} [options] Override http request option.
40
- * @throws {RequiredError}
41
- */
42
- listEmailMailboxes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMailboxesResponseClass>>;
43
- };
44
- /**
45
- * EmailMailboxesApi - factory interface
46
- * @export
47
- */
48
- export declare const EmailMailboxesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
49
- /**
50
- * 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\"
51
- * @summary List the email mailboxes
52
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
- * @param {*} [options] Override http request option.
54
- * @throws {RequiredError}
55
- */
56
- listEmailMailboxes(authorization?: string, options?: any): AxiosPromise<ListEmailMailboxesResponseClass>;
57
- };
58
- /**
59
- * Request parameters for listEmailMailboxes operation in EmailMailboxesApi.
60
- * @export
61
- * @interface EmailMailboxesApiListEmailMailboxesRequest
62
- */
63
- export interface EmailMailboxesApiListEmailMailboxesRequest {
64
- /**
65
- * Bearer Token: provided by the login endpoint under the name accessToken.
66
- * @type {string}
67
- * @memberof EmailMailboxesApiListEmailMailboxes
68
- */
69
- readonly authorization?: string;
70
- }
71
- /**
72
- * EmailMailboxesApi - object-oriented interface
73
- * @export
74
- * @class EmailMailboxesApi
75
- * @extends {BaseAPI}
76
- */
77
- export declare class EmailMailboxesApi extends BaseAPI {
78
- /**
79
- * 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\"
80
- * @summary List the email mailboxes
81
- * @param {EmailMailboxesApiListEmailMailboxesRequest} requestParameters Request parameters.
82
- * @param {*} [options] Override http request option.
83
- * @throws {RequiredError}
84
- * @memberof EmailMailboxesApi
85
- */
86
- listEmailMailboxes(requestParameters?: EmailMailboxesApiListEmailMailboxesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMailboxesResponseClass, any, {}>>;
87
- }
@@ -1,221 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL NotificationService
6
- * The EMIL NotificationService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.EmailMailboxesApi = exports.EmailMailboxesApiFactory = exports.EmailMailboxesApiFp = exports.EmailMailboxesApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- /**
89
- * EmailMailboxesApi - axios parameter creator
90
- * @export
91
- */
92
- var EmailMailboxesApiAxiosParamCreator = function (configuration) {
93
- var _this = this;
94
- return {
95
- /**
96
- * 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\"
97
- * @summary List the email mailboxes
98
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- listEmailMailboxes: function (authorization, options) {
103
- if (options === void 0) { options = {}; }
104
- return __awaiter(_this, void 0, void 0, function () {
105
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0:
109
- localVarPath = "/notificationservice/v1/email-mailboxes";
110
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
- if (configuration) {
112
- baseOptions = configuration.baseOptions;
113
- baseAccessToken = configuration.accessToken;
114
- }
115
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
116
- localVarHeaderParameter = {};
117
- localVarQueryParameter = {};
118
- // authentication bearer required
119
- // http bearer authentication required
120
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
121
- // Only Authorization falls back to the configured token; an empty value is never sent.
122
- ];
123
- case 1:
124
- // authentication bearer required
125
- // http bearer authentication required
126
- _a.sent();
127
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
- if (authorizationValue) {
129
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
- }
131
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
- return [2 /*return*/, {
135
- url: (0, common_1.toPathString)(localVarUrlObj),
136
- options: localVarRequestOptions,
137
- }];
138
- }
139
- });
140
- });
141
- },
142
- };
143
- };
144
- exports.EmailMailboxesApiAxiosParamCreator = EmailMailboxesApiAxiosParamCreator;
145
- /**
146
- * EmailMailboxesApi - functional programming interface
147
- * @export
148
- */
149
- var EmailMailboxesApiFp = function (configuration) {
150
- var localVarAxiosParamCreator = (0, exports.EmailMailboxesApiAxiosParamCreator)(configuration);
151
- return {
152
- /**
153
- * 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\"
154
- * @summary List the email mailboxes
155
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
- * @param {*} [options] Override http request option.
157
- * @throws {RequiredError}
158
- */
159
- listEmailMailboxes: function (authorization, options) {
160
- return __awaiter(this, void 0, void 0, function () {
161
- var localVarAxiosArgs;
162
- return __generator(this, function (_a) {
163
- switch (_a.label) {
164
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listEmailMailboxes(authorization, options)];
165
- case 1:
166
- localVarAxiosArgs = _a.sent();
167
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
168
- }
169
- });
170
- });
171
- },
172
- };
173
- };
174
- exports.EmailMailboxesApiFp = EmailMailboxesApiFp;
175
- /**
176
- * EmailMailboxesApi - factory interface
177
- * @export
178
- */
179
- var EmailMailboxesApiFactory = function (configuration, basePath, axios) {
180
- var localVarFp = (0, exports.EmailMailboxesApiFp)(configuration);
181
- return {
182
- /**
183
- * 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\"
184
- * @summary List the email mailboxes
185
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
186
- * @param {*} [options] Override http request option.
187
- * @throws {RequiredError}
188
- */
189
- listEmailMailboxes: function (authorization, options) {
190
- return localVarFp.listEmailMailboxes(authorization, options).then(function (request) { return request(axios, basePath); });
191
- },
192
- };
193
- };
194
- exports.EmailMailboxesApiFactory = EmailMailboxesApiFactory;
195
- /**
196
- * EmailMailboxesApi - object-oriented interface
197
- * @export
198
- * @class EmailMailboxesApi
199
- * @extends {BaseAPI}
200
- */
201
- var EmailMailboxesApi = /** @class */ (function (_super) {
202
- __extends(EmailMailboxesApi, _super);
203
- function EmailMailboxesApi() {
204
- return _super !== null && _super.apply(this, arguments) || this;
205
- }
206
- /**
207
- * 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\"
208
- * @summary List the email mailboxes
209
- * @param {EmailMailboxesApiListEmailMailboxesRequest} requestParameters Request parameters.
210
- * @param {*} [options] Override http request option.
211
- * @throws {RequiredError}
212
- * @memberof EmailMailboxesApi
213
- */
214
- EmailMailboxesApi.prototype.listEmailMailboxes = function (requestParameters, options) {
215
- var _this = this;
216
- if (requestParameters === void 0) { requestParameters = {}; }
217
- return (0, exports.EmailMailboxesApiFp)(this.configuration).listEmailMailboxes(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
218
- };
219
- return EmailMailboxesApi;
220
- }(base_1.BaseAPI));
221
- exports.EmailMailboxesApi = EmailMailboxesApi;