@emilgroup/task-sdk-node 1.7.1-beta.37 → 1.7.1-beta.40

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.
@@ -107,7 +107,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
107
107
  createReminder: function (createReminderRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var RemindersApiAxiosParamCreator = 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)];
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
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
156
159
  deleteReminder: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var RemindersApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
205
211
  getReminder: function (code, expand, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -233,8 +239,9 @@ var RemindersApiAxiosParamCreator = function (configuration) {
233
239
  if (expand !== undefined) {
234
240
  localVarQueryParameter['expand'] = expand;
235
241
  }
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
245
  }
239
246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
247
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -258,7 +265,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
258
265
  getReminderCounts: function (authorization, filters, options) {
259
266
  if (options === void 0) { options = {}; }
260
267
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
269
  return __generator(this, function (_a) {
263
270
  switch (_a.label) {
264
271
  case 0:
@@ -281,8 +288,9 @@ var RemindersApiAxiosParamCreator = function (configuration) {
281
288
  if (filters !== undefined) {
282
289
  localVarQueryParameter['filters'] = filters;
283
290
  }
284
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
291
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
292
+ if (authorizationValue) {
293
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
286
294
  }
287
295
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
296
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -312,7 +320,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
312
320
  listReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
313
321
  if (options === void 0) { options = {}; }
314
322
  return __awaiter(_this, void 0, void 0, function () {
315
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
323
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
316
324
  return __generator(this, function (_a) {
317
325
  switch (_a.label) {
318
326
  case 0:
@@ -353,8 +361,9 @@ var RemindersApiAxiosParamCreator = function (configuration) {
353
361
  if (filters !== undefined) {
354
362
  localVarQueryParameter['filters'] = filters;
355
363
  }
356
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
357
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
364
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
365
+ if (authorizationValue) {
366
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
358
367
  }
359
368
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
369
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -378,7 +387,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
378
387
  markReminderDone: function (code, authorization, options) {
379
388
  if (options === void 0) { options = {}; }
380
389
  return __awaiter(_this, void 0, void 0, function () {
381
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
390
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
382
391
  return __generator(this, function (_a) {
383
392
  switch (_a.label) {
384
393
  case 0:
@@ -396,13 +405,16 @@ var RemindersApiAxiosParamCreator = function (configuration) {
396
405
  localVarQueryParameter = {};
397
406
  // authentication bearer required
398
407
  // http bearer authentication required
399
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
408
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
409
+ // Only Authorization falls back to the configured token; an empty value is never sent.
410
+ ];
400
411
  case 1:
401
412
  // authentication bearer required
402
413
  // http bearer authentication required
403
414
  _a.sent();
404
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
405
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
415
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
416
+ if (authorizationValue) {
417
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
418
  }
407
419
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
408
420
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -426,7 +438,7 @@ var RemindersApiAxiosParamCreator = function (configuration) {
426
438
  patchReminder: function (patchReminderRequestDto, authorization, options) {
427
439
  if (options === void 0) { options = {}; }
428
440
  return __awaiter(_this, void 0, void 0, function () {
429
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
441
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
430
442
  return __generator(this, function (_a) {
431
443
  switch (_a.label) {
432
444
  case 0:
@@ -443,13 +455,16 @@ var RemindersApiAxiosParamCreator = function (configuration) {
443
455
  localVarQueryParameter = {};
444
456
  // authentication bearer required
445
457
  // http bearer authentication required
446
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
458
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
459
+ // Only Authorization falls back to the configured token; an empty value is never sent.
460
+ ];
447
461
  case 1:
448
462
  // authentication bearer required
449
463
  // http bearer authentication required
450
464
  _a.sent();
451
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
452
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
465
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
466
+ if (authorizationValue) {
467
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
453
468
  }
454
469
  localVarHeaderParameter['Content-Type'] = 'application/json';
455
470
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -107,7 +107,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
107
107
  createStatus: function (createStatusRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var StatusesApiAxiosParamCreator = 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)];
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
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
156
159
  deleteStatus: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var StatusesApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
205
211
  getStatus: function (code, authorization, expand, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -231,8 +237,9 @@ var StatusesApiAxiosParamCreator = function (configuration) {
231
237
  if (expand !== undefined) {
232
238
  localVarQueryParameter['expand'] = expand;
233
239
  }
234
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
241
+ if (authorizationValue) {
242
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
236
243
  }
237
244
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
245
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -260,7 +267,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
260
267
  listStatuses: function (authorization, filter, filters, search, order, expand, options) {
261
268
  if (options === void 0) { options = {}; }
262
269
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
264
271
  return __generator(this, function (_a) {
265
272
  switch (_a.label) {
266
273
  case 0:
@@ -295,8 +302,9 @@ var StatusesApiAxiosParamCreator = function (configuration) {
295
302
  if (expand !== undefined) {
296
303
  localVarQueryParameter['expand'] = expand;
297
304
  }
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
305
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
306
+ if (authorizationValue) {
307
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
308
  }
301
309
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
310
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -321,7 +329,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
321
329
  patchStatus: function (code, patchStatusRequestDto, authorization, options) {
322
330
  if (options === void 0) { options = {}; }
323
331
  return __awaiter(_this, void 0, void 0, function () {
324
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
332
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
325
333
  return __generator(this, function (_a) {
326
334
  switch (_a.label) {
327
335
  case 0:
@@ -341,13 +349,16 @@ var StatusesApiAxiosParamCreator = function (configuration) {
341
349
  localVarQueryParameter = {};
342
350
  // authentication bearer required
343
351
  // http bearer authentication required
344
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
352
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
353
+ // Only Authorization falls back to the configured token; an empty value is never sent.
354
+ ];
345
355
  case 1:
346
356
  // authentication bearer required
347
357
  // http bearer authentication required
348
358
  _a.sent();
349
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
359
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
360
+ if (authorizationValue) {
361
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
351
362
  }
352
363
  localVarHeaderParameter['Content-Type'] = 'application/json';
353
364
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);