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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/api/email-mailboxes-api.ts +2 -4
  3. package/api/email-messages-api.ts +8 -16
  4. package/api/email-subscriptions-api.ts +12 -24
  5. package/api/email-tracking-api.ts +12 -24
  6. package/api/email-verifications-api.ts +4 -8
  7. package/api/layouts-api.ts +10 -20
  8. package/api/notification-templates-api.ts +10 -20
  9. package/api/notifications-api.ts +4 -8
  10. package/base.ts +41 -174
  11. package/common.ts +2 -3
  12. package/configuration.ts +0 -20
  13. package/dist/api/email-mailboxes-api.d.ts +1 -1
  14. package/dist/api/email-mailboxes-api.js +4 -7
  15. package/dist/api/email-messages-api.d.ts +4 -4
  16. package/dist/api/email-messages-api.js +15 -25
  17. package/dist/api/email-subscriptions-api.d.ts +6 -6
  18. package/dist/api/email-subscriptions-api.js +23 -39
  19. package/dist/api/email-tracking-api.d.ts +6 -6
  20. package/dist/api/email-tracking-api.js +22 -36
  21. package/dist/api/email-verifications-api.d.ts +2 -2
  22. package/dist/api/email-verifications-api.js +8 -14
  23. package/dist/api/health-api.d.ts +1 -1
  24. package/dist/api/layouts-api.d.ts +5 -5
  25. package/dist/api/layouts-api.js +18 -29
  26. package/dist/api/msgraph-webhooks-api.d.ts +2 -2
  27. package/dist/api/notification-templates-api.d.ts +5 -5
  28. package/dist/api/notification-templates-api.js +18 -29
  29. package/dist/api/notifications-api.d.ts +2 -2
  30. package/dist/api/notifications-api.js +8 -14
  31. package/dist/base.d.ts +0 -24
  32. package/dist/base.js +59 -178
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +0 -1
  35. package/dist/configuration.d.ts +0 -17
  36. package/dist/configuration.js +0 -2
  37. package/package.json +2 -2
@@ -103,7 +103,7 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
103
103
  catchUpEmailSubscription: function (id, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -121,16 +121,13 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
121
121
  localVarQueryParameter = {};
122
122
  // authentication bearer required
123
123
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
- // Only Authorization falls back to the configured token; an empty value is never sent.
126
- ];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
125
  case 1:
128
126
  // authentication bearer required
129
127
  // http bearer authentication required
130
128
  _a.sent();
131
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
132
- if (authorizationValue) {
133
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
131
  }
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -154,7 +151,7 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
154
151
  catchUpEmailSubscriptions: function (catchUpEmailSubscriptionsRequestDto, authorization, options) {
155
152
  if (options === void 0) { options = {}; }
156
153
  return __awaiter(_this, void 0, void 0, function () {
157
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
154
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
155
  return __generator(this, function (_a) {
159
156
  switch (_a.label) {
160
157
  case 0:
@@ -171,16 +168,13 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
171
168
  localVarQueryParameter = {};
172
169
  // authentication bearer required
173
170
  // http bearer authentication required
174
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
175
- // Only Authorization falls back to the configured token; an empty value is never sent.
176
- ];
171
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
172
  case 1:
178
173
  // authentication bearer required
179
174
  // http bearer authentication required
180
175
  _a.sent();
181
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
- if (authorizationValue) {
183
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
178
  }
185
179
  localVarHeaderParameter['Content-Type'] = 'application/json';
186
180
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -206,7 +200,7 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
206
200
  getEmailSubscription: function (id, authorization, options) {
207
201
  if (options === void 0) { options = {}; }
208
202
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
204
  return __generator(this, function (_a) {
211
205
  switch (_a.label) {
212
206
  case 0:
@@ -224,16 +218,13 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
224
218
  localVarQueryParameter = {};
225
219
  // authentication bearer required
226
220
  // http bearer authentication required
227
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
228
- // Only Authorization falls back to the configured token; an empty value is never sent.
229
- ];
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
222
  case 1:
231
223
  // authentication bearer required
232
224
  // http bearer authentication required
233
225
  _a.sent();
234
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
235
- if (authorizationValue) {
236
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
228
  }
238
229
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
230
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -263,7 +254,7 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
263
254
  listEmailSubscriptions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
264
255
  if (options === void 0) { options = {}; }
265
256
  return __awaiter(_this, void 0, void 0, function () {
266
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
258
  return __generator(this, function (_a) {
268
259
  switch (_a.label) {
269
260
  case 0:
@@ -304,9 +295,8 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
304
295
  if (filters !== undefined) {
305
296
  localVarQueryParameter['filters'] = filters;
306
297
  }
307
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
- if (authorizationValue) {
309
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
300
  }
311
301
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
302
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -330,7 +320,7 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
330
320
  reconcileEmailSubscriptions: function (reconcileEmailSubscriptionsRequestDto, authorization, options) {
331
321
  if (options === void 0) { options = {}; }
332
322
  return __awaiter(_this, void 0, void 0, function () {
333
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
323
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
324
  return __generator(this, function (_a) {
335
325
  switch (_a.label) {
336
326
  case 0:
@@ -347,16 +337,13 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
347
337
  localVarQueryParameter = {};
348
338
  // authentication bearer required
349
339
  // http bearer authentication required
350
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
351
- // Only Authorization falls back to the configured token; an empty value is never sent.
352
- ];
340
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
353
341
  case 1:
354
342
  // authentication bearer required
355
343
  // http bearer authentication required
356
344
  _a.sent();
357
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
358
- if (authorizationValue) {
359
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
345
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
360
347
  }
361
348
  localVarHeaderParameter['Content-Type'] = 'application/json';
362
349
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -382,7 +369,7 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
382
369
  renewEmailSubscription: function (id, authorization, options) {
383
370
  if (options === void 0) { options = {}; }
384
371
  return __awaiter(_this, void 0, void 0, function () {
385
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
372
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
386
373
  return __generator(this, function (_a) {
387
374
  switch (_a.label) {
388
375
  case 0:
@@ -400,16 +387,13 @@ var EmailSubscriptionsApiAxiosParamCreator = function (configuration) {
400
387
  localVarQueryParameter = {};
401
388
  // authentication bearer required
402
389
  // http bearer authentication required
403
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
404
- // Only Authorization falls back to the configured token; an empty value is never sent.
405
- ];
390
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
406
391
  case 1:
407
392
  // authentication bearer required
408
393
  // http bearer authentication required
409
394
  _a.sent();
410
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
411
- if (authorizationValue) {
412
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
395
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
396
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
413
397
  }
414
398
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
415
399
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -426,7 +426,7 @@ export declare class EmailTrackingApi extends BaseAPI {
426
426
  * @throws {RequiredError}
427
427
  * @memberof EmailTrackingApi
428
428
  */
429
- assignEntity(requestParameters: EmailTrackingApiAssignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignEmailThreadEntityResponseClass, any, {}, any>>;
429
+ assignEntity(requestParameters: EmailTrackingApiAssignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AssignEmailThreadEntityResponseClass, any, {}>>;
430
430
  /**
431
431
  * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
432
432
  * @summary Close the email thread
@@ -435,7 +435,7 @@ export declare class EmailTrackingApi extends BaseAPI {
435
435
  * @throws {RequiredError}
436
436
  * @memberof EmailTrackingApi
437
437
  */
438
- closeThread(requestParameters: EmailTrackingApiCloseThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}, any>>;
438
+ closeThread(requestParameters: EmailTrackingApiCloseThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}>>;
439
439
  /**
440
440
  * Retrieves the details of the email thread with the given code. **Required Permissions** \"notification-management.email-messages.view\"
441
441
  * @summary Retrieve the email thread
@@ -444,7 +444,7 @@ export declare class EmailTrackingApi extends BaseAPI {
444
444
  * @throws {RequiredError}
445
445
  * @memberof EmailTrackingApi
446
446
  */
447
- getThread(requestParameters: EmailTrackingApiGetThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}, any>>;
447
+ getThread(requestParameters: EmailTrackingApiGetThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}>>;
448
448
  /**
449
449
  * Returns the email messages of the email thread with the given code. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
450
450
  * @summary List email messages
@@ -453,7 +453,7 @@ export declare class EmailTrackingApi extends BaseAPI {
453
453
  * @throws {RequiredError}
454
454
  * @memberof EmailTrackingApi
455
455
  */
456
- listMessages(requestParameters: EmailTrackingApiListMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}, any>>;
456
+ listMessages(requestParameters: EmailTrackingApiListMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}>>;
457
457
  /**
458
458
  * Returns a list of email threads, newest first. A thread groups an email with its replies; each item carries the newest message of the thread in latestMessage and the number of messages in messageCount. Threads without a message yet are not listed. Filter on the newest message with latestDirection (inbox tabs), latestDeliveryStatus or latestWorkflowStatus (use latestWorkflowStatus==$null for threads whose newest message has no workflow). Add expand=messages to get every message of each thread, without bodies. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-messages.view\"
459
459
  * @summary List email threads
@@ -462,7 +462,7 @@ export declare class EmailTrackingApi extends BaseAPI {
462
462
  * @throws {RequiredError}
463
463
  * @memberof EmailTrackingApi
464
464
  */
465
- listThreads(requestParameters?: EmailTrackingApiListThreadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailThreadsResponseClass, any, {}, any>>;
465
+ listThreads(requestParameters?: EmailTrackingApiListThreadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailThreadsResponseClass, any, {}>>;
466
466
  /**
467
467
  * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
468
468
  * @summary Unassign an email thread from its entity
@@ -471,5 +471,5 @@ export declare class EmailTrackingApi extends BaseAPI {
471
471
  * @throws {RequiredError}
472
472
  * @memberof EmailTrackingApi
473
473
  */
474
- unassignEntity(requestParameters: EmailTrackingApiUnassignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnassignEmailThreadEntityResponseClass, any, {}, any>>;
474
+ unassignEntity(requestParameters: EmailTrackingApiUnassignEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnassignEmailThreadEntityResponseClass, any, {}>>;
475
475
  }
@@ -104,7 +104,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
104
104
  assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -124,16 +124,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- ];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
128
  case 1:
131
129
  // authentication bearer required
132
130
  // http bearer authentication required
133
131
  _a.sent();
134
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
134
  }
138
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,7 +156,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
159
156
  closeThread: function (code, authorization, options) {
160
157
  if (options === void 0) { options = {}; }
161
158
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
160
  return __generator(this, function (_a) {
164
161
  switch (_a.label) {
165
162
  case 0:
@@ -177,16 +174,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
177
174
  localVarQueryParameter = {};
178
175
  // authentication bearer required
179
176
  // http bearer authentication required
180
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
- // Only Authorization falls back to the configured token; an empty value is never sent.
182
- ];
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
183
178
  case 1:
184
179
  // authentication bearer required
185
180
  // http bearer authentication required
186
181
  _a.sent();
187
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
- if (authorizationValue) {
189
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
184
  }
191
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
192
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -210,7 +204,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
210
204
  getThread: function (code, authorization, options) {
211
205
  if (options === void 0) { options = {}; }
212
206
  return __awaiter(_this, void 0, void 0, function () {
213
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
208
  return __generator(this, function (_a) {
215
209
  switch (_a.label) {
216
210
  case 0:
@@ -228,16 +222,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
228
222
  localVarQueryParameter = {};
229
223
  // authentication bearer required
230
224
  // http bearer authentication required
231
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
- // Only Authorization falls back to the configured token; an empty value is never sent.
233
- ];
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
226
  case 1:
235
227
  // authentication bearer required
236
228
  // http bearer authentication required
237
229
  _a.sent();
238
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
- if (authorizationValue) {
240
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
232
  }
242
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -265,7 +256,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
265
256
  listMessages: function (code, authorization, filter, filters, order, expand, options) {
266
257
  if (options === void 0) { options = {}; }
267
258
  return __awaiter(_this, void 0, void 0, function () {
268
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
259
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
260
  return __generator(this, function (_a) {
270
261
  switch (_a.label) {
271
262
  case 0:
@@ -300,9 +291,8 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
300
291
  if (expand !== undefined) {
301
292
  localVarQueryParameter['expand'] = expand;
302
293
  }
303
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
304
- if (authorizationValue) {
305
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
296
  }
307
297
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
298
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -332,7 +322,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
332
322
  listThreads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
333
323
  if (options === void 0) { options = {}; }
334
324
  return __awaiter(_this, void 0, void 0, function () {
335
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
325
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
326
  return __generator(this, function (_a) {
337
327
  switch (_a.label) {
338
328
  case 0:
@@ -373,9 +363,8 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
373
363
  if (filters !== undefined) {
374
364
  localVarQueryParameter['filters'] = filters;
375
365
  }
376
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
377
- if (authorizationValue) {
378
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
366
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
367
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
379
368
  }
380
369
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
381
370
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -399,7 +388,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
399
388
  unassignEntity: function (code, authorization, options) {
400
389
  if (options === void 0) { options = {}; }
401
390
  return __awaiter(_this, void 0, void 0, function () {
402
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
391
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
403
392
  return __generator(this, function (_a) {
404
393
  switch (_a.label) {
405
394
  case 0:
@@ -417,16 +406,13 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
417
406
  localVarQueryParameter = {};
418
407
  // authentication bearer required
419
408
  // http bearer authentication required
420
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
421
- // Only Authorization falls back to the configured token; an empty value is never sent.
422
- ];
409
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
423
410
  case 1:
424
411
  // authentication bearer required
425
412
  // http bearer authentication required
426
413
  _a.sent();
427
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
428
- if (authorizationValue) {
429
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
414
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
415
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
430
416
  }
431
417
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
432
418
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -141,7 +141,7 @@ export declare class EmailVerificationsApi extends BaseAPI {
141
141
  * @throws {RequiredError}
142
142
  * @memberof EmailVerificationsApi
143
143
  */
144
- completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any, {}, any>>;
144
+ completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any, {}>>;
145
145
  /**
146
146
  * Sends a verification token to the given email address. Use the complete endpoint to verify the token. **Required Permissions** none
147
147
  * @summary Initiate an email verification
@@ -150,5 +150,5 @@ export declare class EmailVerificationsApi extends BaseAPI {
150
150
  * @throws {RequiredError}
151
151
  * @memberof EmailVerificationsApi
152
152
  */
153
- initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any, {}, any>>;
153
+ initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any, {}>>;
154
154
  }
@@ -103,7 +103,7 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
103
103
  completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,16 +120,13 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
124
  case 1:
127
125
  // authentication bearer required
128
126
  // http bearer authentication required
129
127
  _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
130
  }
134
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -155,7 +152,7 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
155
152
  initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
156
153
  if (options === void 0) { options = {}; }
157
154
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
156
  return __generator(this, function (_a) {
160
157
  switch (_a.label) {
161
158
  case 0:
@@ -172,16 +169,13 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
172
169
  localVarQueryParameter = {};
173
170
  // authentication bearer required
174
171
  // http bearer authentication required
175
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
176
- // Only Authorization falls back to the configured token; an empty value is never sent.
177
- ];
172
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
173
  case 1:
179
174
  // authentication bearer required
180
175
  // http bearer authentication required
181
176
  _a.sent();
182
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
183
- if (authorizationValue) {
184
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
177
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
185
179
  }
186
180
  localVarHeaderParameter['Content-Type'] = 'application/json';
187
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
70
70
  }
@@ -353,7 +353,7 @@ export declare class LayoutsApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof LayoutsApi
355
355
  */
356
- createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}, any>>;
356
+ createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}>>;
357
357
  /**
358
358
  * Permanently deletes the layout with the given id. **Required Permissions** \"notification-management.email-templates.delete\"
359
359
  * @summary Delete the layout
@@ -362,7 +362,7 @@ export declare class LayoutsApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof LayoutsApi
364
364
  */
365
- deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
365
+ deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
366
366
  /**
367
367
  * Retrieves the details of the layout with the given id. **Required Permissions** \"notification-management.email-templates.view\"
368
368
  * @summary Retrieve the layout
@@ -371,7 +371,7 @@ export declare class LayoutsApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof LayoutsApi
373
373
  */
374
- getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}, any>>;
374
+ getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}>>;
375
375
  /**
376
376
  * Returns a list of layouts. For more information about pagination, read the Pagination documentation. **Required Permissions** \"notification-management.email-templates.view\"
377
377
  * @summary List layouts
@@ -380,7 +380,7 @@ export declare class LayoutsApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof LayoutsApi
382
382
  */
383
- listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}, any>>;
383
+ listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}>>;
384
384
  /**
385
385
  * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"notification-management.email-templates.update\"
386
386
  * @summary Update the layout
@@ -389,5 +389,5 @@ export declare class LayoutsApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof LayoutsApi
391
391
  */
392
- updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}, any>>;
392
+ updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}>>;
393
393
  }