@emilgroup/notification-sdk 0.8.1-beta.49 → 0.8.1-beta.5

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 (101) hide show
  1. package/.openapi-generator/FILES +0 -20
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +28 -40
  4. package/api/email-tracking-api.ts +40 -271
  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 -6
  10. package/base.ts +15 -36
  11. package/configuration.ts +0 -11
  12. package/dist/api/email-messages-api.d.ts +28 -40
  13. package/dist/api/email-messages-api.js +25 -37
  14. package/dist/api/email-tracking-api.d.ts +40 -170
  15. package/dist/api/email-tracking-api.js +34 -233
  16. package/dist/api/email-verifications-api.d.ts +8 -16
  17. package/dist/api/email-verifications-api.js +8 -16
  18. package/dist/api/layouts-api.d.ts +36 -56
  19. package/dist/api/layouts-api.js +32 -52
  20. package/dist/api/notification-templates-api.d.ts +36 -56
  21. package/dist/api/notification-templates-api.js +32 -52
  22. package/dist/api/notifications-api.d.ts +4 -65
  23. package/dist/api/notifications-api.js +4 -101
  24. package/dist/api.d.ts +0 -3
  25. package/dist/api.js +0 -3
  26. package/dist/base.d.ts +0 -1
  27. package/dist/base.js +16 -36
  28. package/dist/configuration.d.ts +0 -9
  29. package/dist/configuration.js +0 -1
  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 -17
  34. package/dist/models/index.js +0 -17
  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 -17
  40. package/models/send-notification-request-dto.ts +2 -9
  41. package/package.json +1 -1
  42. package/api/email-mailboxes-api.ts +0 -148
  43. package/api/email-subscriptions-api.ts +0 -559
  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 -218
  47. package/dist/api/email-subscriptions-api.d.ts +0 -319
  48. package/dist/api/email-subscriptions-api.js +0 -537
  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/email-mailbox-class.d.ts +0 -47
  56. package/dist/models/email-mailbox-class.js +0 -20
  57. package/dist/models/email-message-summary-class.d.ts +0 -98
  58. package/dist/models/email-message-summary-class.js +0 -33
  59. package/dist/models/email-subscription-class.d.ts +0 -104
  60. package/dist/models/email-subscription-class.js +0 -23
  61. package/dist/models/entity-ref-class.d.ts +0 -37
  62. package/dist/models/entity-ref-class.js +0 -22
  63. package/dist/models/get-email-subscription-response-class.d.ts +0 -25
  64. package/dist/models/get-email-subscription-response-class.js +0 -15
  65. package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
  66. package/dist/models/grpc-send-email-request-dto.js +0 -22
  67. package/dist/models/inline-attachment-dto.d.ts +0 -36
  68. package/dist/models/inline-attachment-dto.js +0 -15
  69. package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
  70. package/dist/models/list-email-mailboxes-response-class.js +0 -15
  71. package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
  72. package/dist/models/list-email-subscriptions-response-class.js +0 -15
  73. package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
  74. package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
  75. package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
  76. package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
  77. package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
  78. package/dist/models/renew-email-subscription-response-class.js +0 -15
  79. package/dist/models/send-email-request-dto.d.ts +0 -131
  80. package/dist/models/send-email-request-dto.js +0 -22
  81. package/dist/models/send-email-response-class.d.ts +0 -24
  82. package/dist/models/send-email-response-class.js +0 -15
  83. package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
  84. package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
  85. package/models/assign-email-thread-entity-body-dto.ts +0 -52
  86. package/models/assign-email-thread-entity-response-class.ts +0 -31
  87. package/models/email-mailbox-class.ts +0 -56
  88. package/models/email-message-summary-class.ts +0 -109
  89. package/models/email-subscription-class.ts +0 -113
  90. package/models/entity-ref-class.ts +0 -46
  91. package/models/get-email-subscription-response-class.ts +0 -31
  92. package/models/grpc-send-email-request-dto.ts +0 -144
  93. package/models/inline-attachment-dto.ts +0 -42
  94. package/models/list-email-mailboxes-response-class.ts +0 -49
  95. package/models/list-email-subscriptions-response-class.ts +0 -49
  96. package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
  97. package/models/reconcile-email-subscriptions-response-class.ts +0 -54
  98. package/models/renew-email-subscription-response-class.ts +0 -31
  99. package/models/send-email-request-dto.ts +0 -138
  100. package/models/send-email-response-class.ts +0 -30
  101. package/models/unassign-email-thread-entity-response-class.ts +0 -31
@@ -1,559 +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 { GetEmailSubscriptionResponseClass } from '../models';
25
- // @ts-ignore
26
- import { ListEmailSubscriptionsResponseClass } from '../models';
27
- // @ts-ignore
28
- import { ReconcileEmailSubscriptionsRequestDto } from '../models';
29
- // @ts-ignore
30
- import { ReconcileEmailSubscriptionsResponseClass } from '../models';
31
- // @ts-ignore
32
- import { RenewEmailSubscriptionResponseClass } from '../models';
33
- /**
34
- * EmailSubscriptionsApi - axios parameter creator
35
- * @export
36
- */
37
- export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
38
- return {
39
- /**
40
- * Retrieves the email subscription with the given id. **Required Permissions** \"tenant-management.settings.view\"
41
- * @summary Retrieve the email subscription
42
- * @param {number} id
43
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- getEmailSubscription: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- // verify required parameter 'id' is not null or undefined
49
- assertParamExists('getEmailSubscription', 'id', id)
50
- const localVarPath = `/notificationservice/v1/email-subscriptions/{id}`
51
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
52
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54
- let baseOptions;
55
- let baseAccessToken;
56
- if (configuration) {
57
- baseOptions = configuration.baseOptions;
58
- baseAccessToken = configuration.accessToken;
59
- }
60
-
61
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62
- const localVarHeaderParameter = {} as any;
63
- const localVarQueryParameter = {} as any;
64
-
65
- // authentication bearer required
66
- // http bearer authentication required
67
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
-
69
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
70
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
71
- }
72
-
73
-
74
-
75
- setSearchParams(localVarUrlObj, localVarQueryParameter);
76
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
-
79
- return {
80
- url: toPathString(localVarUrlObj),
81
- options: localVarRequestOptions,
82
- };
83
- },
84
- /**
85
- * Returns the Microsoft Graph mail subscriptions of the tenant, one per mailbox and folder of the email channel, with their status, expiry and last error. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
86
- * @summary List email subscriptions
87
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
89
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
90
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
91
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
92
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, mailbox, folder, status, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
93
- * @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.&lt;br/&gt; &lt;br/&gt;
94
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- listEmailSubscriptions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
- const localVarPath = `/notificationservice/v1/email-subscriptions`;
100
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
- let baseOptions;
103
- let baseAccessToken;
104
- if (configuration) {
105
- baseOptions = configuration.baseOptions;
106
- baseAccessToken = configuration.accessToken;
107
- }
108
-
109
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
110
- const localVarHeaderParameter = {} as any;
111
- const localVarQueryParameter = {} as any;
112
-
113
- // authentication bearer required
114
- // http bearer authentication required
115
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
-
117
- if (pageSize !== undefined) {
118
- localVarQueryParameter['pageSize'] = pageSize;
119
- }
120
-
121
- if (pageToken !== undefined) {
122
- localVarQueryParameter['pageToken'] = pageToken;
123
- }
124
-
125
- if (filter !== undefined) {
126
- localVarQueryParameter['filter'] = filter;
127
- }
128
-
129
- if (search !== undefined) {
130
- localVarQueryParameter['search'] = search;
131
- }
132
-
133
- if (order !== undefined) {
134
- localVarQueryParameter['order'] = order;
135
- }
136
-
137
- if (expand !== undefined) {
138
- localVarQueryParameter['expand'] = expand;
139
- }
140
-
141
- if (filters !== undefined) {
142
- localVarQueryParameter['filters'] = filters;
143
- }
144
-
145
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
146
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
- }
148
-
149
-
150
-
151
- setSearchParams(localVarUrlObj, localVarQueryParameter);
152
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
154
-
155
- return {
156
- url: toPathString(localVarUrlObj),
157
- options: localVarRequestOptions,
158
- };
159
- },
160
- /**
161
- * Brings the subscriptions in line with the mailboxes and folders of the email channel: creates the missing ones, deletes the ones no longer configured and recreates expired or failed ones. Returns how many subscriptions each step touched. **Required Permissions** \"tenant-management.settings.update\"
162
- * @summary Reconcile the email subscriptions
163
- * @param {ReconcileEmailSubscriptionsRequestDto} reconcileEmailSubscriptionsRequestDto
164
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
165
- * @param {*} [options] Override http request option.
166
- * @throws {RequiredError}
167
- */
168
- reconcileEmailSubscriptions: async (reconcileEmailSubscriptionsRequestDto: ReconcileEmailSubscriptionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
169
- // verify required parameter 'reconcileEmailSubscriptionsRequestDto' is not null or undefined
170
- assertParamExists('reconcileEmailSubscriptions', 'reconcileEmailSubscriptionsRequestDto', reconcileEmailSubscriptionsRequestDto)
171
- const localVarPath = `/notificationservice/v1/email-subscriptions/reconcile`;
172
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
173
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
174
- let baseOptions;
175
- let baseAccessToken;
176
- if (configuration) {
177
- baseOptions = configuration.baseOptions;
178
- baseAccessToken = configuration.accessToken;
179
- }
180
-
181
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
182
- const localVarHeaderParameter = {} as any;
183
- const localVarQueryParameter = {} as any;
184
-
185
- // authentication bearer required
186
- // http bearer authentication required
187
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
188
-
189
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
- }
192
-
193
-
194
-
195
- localVarHeaderParameter['Content-Type'] = 'application/json';
196
-
197
- setSearchParams(localVarUrlObj, localVarQueryParameter);
198
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
200
- localVarRequestOptions.data = serializeDataIfNeeded(reconcileEmailSubscriptionsRequestDto, localVarRequestOptions, configuration)
201
-
202
- return {
203
- url: toPathString(localVarUrlObj),
204
- options: localVarRequestOptions,
205
- };
206
- },
207
- /**
208
- * Renews the subscription in Microsoft Graph right away and returns it with its new expiry. A pending or failed subscription, or one Graph no longer knows, is created again. Fails with 503 when Graph rejects the call; the error is kept on the subscription. **Required Permissions** \"tenant-management.settings.update\"
209
- * @summary Renew the email subscription
210
- * @param {number} id
211
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
212
- * @param {*} [options] Override http request option.
213
- * @throws {RequiredError}
214
- */
215
- renewEmailSubscription: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
216
- // verify required parameter 'id' is not null or undefined
217
- assertParamExists('renewEmailSubscription', 'id', id)
218
- const localVarPath = `/notificationservice/v1/email-subscriptions/{id}/renew`
219
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
220
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
221
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
222
- let baseOptions;
223
- let baseAccessToken;
224
- if (configuration) {
225
- baseOptions = configuration.baseOptions;
226
- baseAccessToken = configuration.accessToken;
227
- }
228
-
229
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
230
- const localVarHeaderParameter = {} as any;
231
- const localVarQueryParameter = {} as any;
232
-
233
- // authentication bearer required
234
- // http bearer authentication required
235
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
236
-
237
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
238
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
- }
240
-
241
-
242
-
243
- setSearchParams(localVarUrlObj, localVarQueryParameter);
244
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
245
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
246
-
247
- return {
248
- url: toPathString(localVarUrlObj),
249
- options: localVarRequestOptions,
250
- };
251
- },
252
- }
253
- };
254
-
255
- /**
256
- * EmailSubscriptionsApi - functional programming interface
257
- * @export
258
- */
259
- export const EmailSubscriptionsApiFp = function(configuration?: Configuration) {
260
- const localVarAxiosParamCreator = EmailSubscriptionsApiAxiosParamCreator(configuration)
261
- return {
262
- /**
263
- * Retrieves the email subscription with the given id. **Required Permissions** \"tenant-management.settings.view\"
264
- * @summary Retrieve the email subscription
265
- * @param {number} id
266
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
267
- * @param {*} [options] Override http request option.
268
- * @throws {RequiredError}
269
- */
270
- async getEmailSubscription(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmailSubscriptionResponseClass>> {
271
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEmailSubscription(id, authorization, options);
272
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
273
- },
274
- /**
275
- * Returns the Microsoft Graph mail subscriptions of the tenant, one per mailbox and folder of the email channel, with their status, expiry and last error. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
276
- * @summary List email subscriptions
277
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
279
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
280
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
281
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
282
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, mailbox, folder, status, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
283
- * @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.&lt;br/&gt; &lt;br/&gt;
284
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
285
- * @param {*} [options] Override http request option.
286
- * @throws {RequiredError}
287
- */
288
- async listEmailSubscriptions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailSubscriptionsResponseClass>> {
289
- const localVarAxiosArgs = await localVarAxiosParamCreator.listEmailSubscriptions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
290
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
291
- },
292
- /**
293
- * Brings the subscriptions in line with the mailboxes and folders of the email channel: creates the missing ones, deletes the ones no longer configured and recreates expired or failed ones. Returns how many subscriptions each step touched. **Required Permissions** \"tenant-management.settings.update\"
294
- * @summary Reconcile the email subscriptions
295
- * @param {ReconcileEmailSubscriptionsRequestDto} reconcileEmailSubscriptionsRequestDto
296
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- */
300
- async reconcileEmailSubscriptions(reconcileEmailSubscriptionsRequestDto: ReconcileEmailSubscriptionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReconcileEmailSubscriptionsResponseClass>> {
301
- const localVarAxiosArgs = await localVarAxiosParamCreator.reconcileEmailSubscriptions(reconcileEmailSubscriptionsRequestDto, authorization, options);
302
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
303
- },
304
- /**
305
- * Renews the subscription in Microsoft Graph right away and returns it with its new expiry. A pending or failed subscription, or one Graph no longer knows, is created again. Fails with 503 when Graph rejects the call; the error is kept on the subscription. **Required Permissions** \"tenant-management.settings.update\"
306
- * @summary Renew the email subscription
307
- * @param {number} id
308
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
309
- * @param {*} [options] Override http request option.
310
- * @throws {RequiredError}
311
- */
312
- async renewEmailSubscription(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RenewEmailSubscriptionResponseClass>> {
313
- const localVarAxiosArgs = await localVarAxiosParamCreator.renewEmailSubscription(id, authorization, options);
314
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
315
- },
316
- }
317
- };
318
-
319
- /**
320
- * EmailSubscriptionsApi - factory interface
321
- * @export
322
- */
323
- export const EmailSubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
324
- const localVarFp = EmailSubscriptionsApiFp(configuration)
325
- return {
326
- /**
327
- * Retrieves the email subscription with the given id. **Required Permissions** \"tenant-management.settings.view\"
328
- * @summary Retrieve the email subscription
329
- * @param {number} id
330
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
- * @param {*} [options] Override http request option.
332
- * @throws {RequiredError}
333
- */
334
- getEmailSubscription(id: number, authorization?: string, options?: any): AxiosPromise<GetEmailSubscriptionResponseClass> {
335
- return localVarFp.getEmailSubscription(id, authorization, options).then((request) => request(axios, basePath));
336
- },
337
- /**
338
- * Returns the Microsoft Graph mail subscriptions of the tenant, one per mailbox and folder of the email channel, with their status, expiry and last error. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
339
- * @summary List email subscriptions
340
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
341
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
342
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
343
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
344
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
345
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, mailbox, folder, status, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
346
- * @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.&lt;br/&gt; &lt;br/&gt;
347
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
348
- * @param {*} [options] Override http request option.
349
- * @throws {RequiredError}
350
- */
351
- listEmailSubscriptions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmailSubscriptionsResponseClass> {
352
- return localVarFp.listEmailSubscriptions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
353
- },
354
- /**
355
- * Brings the subscriptions in line with the mailboxes and folders of the email channel: creates the missing ones, deletes the ones no longer configured and recreates expired or failed ones. Returns how many subscriptions each step touched. **Required Permissions** \"tenant-management.settings.update\"
356
- * @summary Reconcile the email subscriptions
357
- * @param {ReconcileEmailSubscriptionsRequestDto} reconcileEmailSubscriptionsRequestDto
358
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
- * @param {*} [options] Override http request option.
360
- * @throws {RequiredError}
361
- */
362
- reconcileEmailSubscriptions(reconcileEmailSubscriptionsRequestDto: ReconcileEmailSubscriptionsRequestDto, authorization?: string, options?: any): AxiosPromise<ReconcileEmailSubscriptionsResponseClass> {
363
- return localVarFp.reconcileEmailSubscriptions(reconcileEmailSubscriptionsRequestDto, authorization, options).then((request) => request(axios, basePath));
364
- },
365
- /**
366
- * Renews the subscription in Microsoft Graph right away and returns it with its new expiry. A pending or failed subscription, or one Graph no longer knows, is created again. Fails with 503 when Graph rejects the call; the error is kept on the subscription. **Required Permissions** \"tenant-management.settings.update\"
367
- * @summary Renew the email subscription
368
- * @param {number} id
369
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
370
- * @param {*} [options] Override http request option.
371
- * @throws {RequiredError}
372
- */
373
- renewEmailSubscription(id: number, authorization?: string, options?: any): AxiosPromise<RenewEmailSubscriptionResponseClass> {
374
- return localVarFp.renewEmailSubscription(id, authorization, options).then((request) => request(axios, basePath));
375
- },
376
- };
377
- };
378
-
379
- /**
380
- * Request parameters for getEmailSubscription operation in EmailSubscriptionsApi.
381
- * @export
382
- * @interface EmailSubscriptionsApiGetEmailSubscriptionRequest
383
- */
384
- export interface EmailSubscriptionsApiGetEmailSubscriptionRequest {
385
- /**
386
- *
387
- * @type {number}
388
- * @memberof EmailSubscriptionsApiGetEmailSubscription
389
- */
390
- readonly id: number
391
-
392
- /**
393
- * Bearer Token: provided by the login endpoint under the name accessToken.
394
- * @type {string}
395
- * @memberof EmailSubscriptionsApiGetEmailSubscription
396
- */
397
- readonly authorization?: string
398
- }
399
-
400
- /**
401
- * Request parameters for listEmailSubscriptions operation in EmailSubscriptionsApi.
402
- * @export
403
- * @interface EmailSubscriptionsApiListEmailSubscriptionsRequest
404
- */
405
- export interface EmailSubscriptionsApiListEmailSubscriptionsRequest {
406
- /**
407
- * Bearer Token: provided by the login endpoint under the name accessToken.
408
- * @type {string}
409
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
410
- */
411
- readonly authorization?: string
412
-
413
- /**
414
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
415
- * @type {number}
416
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
417
- */
418
- readonly pageSize?: number
419
-
420
- /**
421
- * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
422
- * @type {string}
423
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
424
- */
425
- readonly pageToken?: string
426
-
427
- /**
428
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
429
- * @type {string}
430
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
431
- */
432
- readonly filter?: string
433
-
434
- /**
435
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
436
- * @type {string}
437
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
438
- */
439
- readonly search?: string
440
-
441
- /**
442
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, mailbox, folder, status, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
443
- * @type {string}
444
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
445
- */
446
- readonly order?: string
447
-
448
- /**
449
- * 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.&lt;br/&gt; &lt;br/&gt;
450
- * @type {string}
451
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
452
- */
453
- readonly expand?: string
454
-
455
- /**
456
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, productSlug, mailbox, folder, status, subscriptionId, expiresAt, lastRenewedAt, lastNotificationAt, createdAt, updatedAt&lt;/i&gt;
457
- * @type {string}
458
- * @memberof EmailSubscriptionsApiListEmailSubscriptions
459
- */
460
- readonly filters?: string
461
- }
462
-
463
- /**
464
- * Request parameters for reconcileEmailSubscriptions operation in EmailSubscriptionsApi.
465
- * @export
466
- * @interface EmailSubscriptionsApiReconcileEmailSubscriptionsRequest
467
- */
468
- export interface EmailSubscriptionsApiReconcileEmailSubscriptionsRequest {
469
- /**
470
- *
471
- * @type {ReconcileEmailSubscriptionsRequestDto}
472
- * @memberof EmailSubscriptionsApiReconcileEmailSubscriptions
473
- */
474
- readonly reconcileEmailSubscriptionsRequestDto: ReconcileEmailSubscriptionsRequestDto
475
-
476
- /**
477
- * Bearer Token: provided by the login endpoint under the name accessToken.
478
- * @type {string}
479
- * @memberof EmailSubscriptionsApiReconcileEmailSubscriptions
480
- */
481
- readonly authorization?: string
482
- }
483
-
484
- /**
485
- * Request parameters for renewEmailSubscription operation in EmailSubscriptionsApi.
486
- * @export
487
- * @interface EmailSubscriptionsApiRenewEmailSubscriptionRequest
488
- */
489
- export interface EmailSubscriptionsApiRenewEmailSubscriptionRequest {
490
- /**
491
- *
492
- * @type {number}
493
- * @memberof EmailSubscriptionsApiRenewEmailSubscription
494
- */
495
- readonly id: number
496
-
497
- /**
498
- * Bearer Token: provided by the login endpoint under the name accessToken.
499
- * @type {string}
500
- * @memberof EmailSubscriptionsApiRenewEmailSubscription
501
- */
502
- readonly authorization?: string
503
- }
504
-
505
- /**
506
- * EmailSubscriptionsApi - object-oriented interface
507
- * @export
508
- * @class EmailSubscriptionsApi
509
- * @extends {BaseAPI}
510
- */
511
- export class EmailSubscriptionsApi extends BaseAPI {
512
- /**
513
- * Retrieves the email subscription with the given id. **Required Permissions** \"tenant-management.settings.view\"
514
- * @summary Retrieve the email subscription
515
- * @param {EmailSubscriptionsApiGetEmailSubscriptionRequest} requestParameters Request parameters.
516
- * @param {*} [options] Override http request option.
517
- * @throws {RequiredError}
518
- * @memberof EmailSubscriptionsApi
519
- */
520
- public getEmailSubscription(requestParameters: EmailSubscriptionsApiGetEmailSubscriptionRequest, options?: AxiosRequestConfig) {
521
- return EmailSubscriptionsApiFp(this.configuration).getEmailSubscription(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
522
- }
523
-
524
- /**
525
- * Returns the Microsoft Graph mail subscriptions of the tenant, one per mailbox and folder of the email channel, with their status, expiry and last error. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
526
- * @summary List email subscriptions
527
- * @param {EmailSubscriptionsApiListEmailSubscriptionsRequest} requestParameters Request parameters.
528
- * @param {*} [options] Override http request option.
529
- * @throws {RequiredError}
530
- * @memberof EmailSubscriptionsApi
531
- */
532
- public listEmailSubscriptions(requestParameters: EmailSubscriptionsApiListEmailSubscriptionsRequest = {}, options?: AxiosRequestConfig) {
533
- return EmailSubscriptionsApiFp(this.configuration).listEmailSubscriptions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
534
- }
535
-
536
- /**
537
- * Brings the subscriptions in line with the mailboxes and folders of the email channel: creates the missing ones, deletes the ones no longer configured and recreates expired or failed ones. Returns how many subscriptions each step touched. **Required Permissions** \"tenant-management.settings.update\"
538
- * @summary Reconcile the email subscriptions
539
- * @param {EmailSubscriptionsApiReconcileEmailSubscriptionsRequest} requestParameters Request parameters.
540
- * @param {*} [options] Override http request option.
541
- * @throws {RequiredError}
542
- * @memberof EmailSubscriptionsApi
543
- */
544
- public reconcileEmailSubscriptions(requestParameters: EmailSubscriptionsApiReconcileEmailSubscriptionsRequest, options?: AxiosRequestConfig) {
545
- return EmailSubscriptionsApiFp(this.configuration).reconcileEmailSubscriptions(requestParameters.reconcileEmailSubscriptionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
546
- }
547
-
548
- /**
549
- * Renews the subscription in Microsoft Graph right away and returns it with its new expiry. A pending or failed subscription, or one Graph no longer knows, is created again. Fails with 503 when Graph rejects the call; the error is kept on the subscription. **Required Permissions** \"tenant-management.settings.update\"
550
- * @summary Renew the email subscription
551
- * @param {EmailSubscriptionsApiRenewEmailSubscriptionRequest} requestParameters Request parameters.
552
- * @param {*} [options] Override http request option.
553
- * @throws {RequiredError}
554
- * @memberof EmailSubscriptionsApi
555
- */
556
- public renewEmailSubscription(requestParameters: EmailSubscriptionsApiRenewEmailSubscriptionRequest, options?: AxiosRequestConfig) {
557
- return EmailSubscriptionsApiFp(this.configuration).renewEmailSubscription(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
558
- }
559
- }