@emilgroup/document-sdk-node 1.49.1-beta.22 → 1.49.1-beta.26

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 DocxTemplatesApiAxiosParamCreator = function (configuration) {
107
107
  deleteDocxTemplate: function (code, 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:
@@ -125,13 +125,16 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
+ // Only Authorization falls back to the configured token; an empty value is never sent.
130
+ ];
129
131
  case 1:
130
132
  // authentication bearer required
131
133
  // http bearer authentication required
132
134
  _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
138
  }
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
140
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -155,7 +158,7 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
155
158
  downloadDocxTemplate: function (code, authorization, options) {
156
159
  if (options === void 0) { options = {}; }
157
160
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
162
  return __generator(this, function (_a) {
160
163
  switch (_a.label) {
161
164
  case 0:
@@ -173,13 +176,16 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
191
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -203,7 +209,7 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
203
209
  getDocxTemplate: function (code, authorization, options) {
204
210
  if (options === void 0) { options = {}; }
205
211
  return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
207
213
  return __generator(this, function (_a) {
208
214
  switch (_a.label) {
209
215
  case 0:
@@ -221,13 +227,16 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
221
227
  localVarQueryParameter = {};
222
228
  // authentication bearer required
223
229
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token; an empty value is never sent.
232
+ ];
225
233
  case 1:
226
234
  // authentication bearer required
227
235
  // http bearer authentication required
228
236
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
+ if (authorizationValue) {
239
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
240
  }
232
241
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
242
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -257,7 +266,7 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
257
266
  listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
258
267
  if (options === void 0) { options = {}; }
259
268
  return __awaiter(_this, void 0, void 0, function () {
260
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
261
270
  return __generator(this, function (_a) {
262
271
  switch (_a.label) {
263
272
  case 0:
@@ -298,8 +307,9 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
298
307
  if (filters !== undefined) {
299
308
  localVarQueryParameter['filters'] = filters;
300
309
  }
301
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
302
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
311
+ if (authorizationValue) {
312
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
303
313
  }
304
314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
305
315
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -324,7 +334,7 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
324
334
  updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
325
335
  if (options === void 0) { options = {}; }
326
336
  return __awaiter(_this, void 0, void 0, function () {
327
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
328
338
  return __generator(this, function (_a) {
329
339
  switch (_a.label) {
330
340
  case 0:
@@ -344,13 +354,16 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
344
354
  localVarQueryParameter = {};
345
355
  // authentication bearer required
346
356
  // http bearer authentication required
347
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
357
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
358
+ // Only Authorization falls back to the configured token; an empty value is never sent.
359
+ ];
348
360
  case 1:
349
361
  // authentication bearer required
350
362
  // http bearer authentication required
351
363
  _a.sent();
352
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
364
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
365
+ if (authorizationValue) {
366
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
354
367
  }
355
368
  localVarHeaderParameter['Content-Type'] = 'application/json';
356
369
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -376,7 +389,7 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
376
389
  uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
377
390
  if (options === void 0) { options = {}; }
378
391
  return __awaiter(_this, void 0, void 0, function () {
379
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
392
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
380
393
  return __generator(this, function (_a) {
381
394
  switch (_a.label) {
382
395
  case 0:
@@ -393,13 +406,16 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
393
406
  localVarQueryParameter = {};
394
407
  // authentication bearer required
395
408
  // http bearer authentication required
396
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
409
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
410
+ // Only Authorization falls back to the configured token; an empty value is never sent.
411
+ ];
397
412
  case 1:
398
413
  // authentication bearer required
399
414
  // http bearer authentication required
400
415
  _a.sent();
401
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
402
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
416
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
417
+ if (authorizationValue) {
418
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
403
419
  }
404
420
  localVarHeaderParameter['Content-Type'] = 'application/json';
405
421
  (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, {}>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
70
70
  }
@@ -354,7 +354,7 @@ export declare class LayoutsApi extends BaseAPI {
354
354
  * @throws {RequiredError}
355
355
  * @memberof LayoutsApi
356
356
  */
357
- createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}>>;
357
+ createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}, any>>;
358
358
  /**
359
359
  * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it. **Required Permissions** \"document-management.layouts.delete\"
360
360
  * @summary Delete the layout
@@ -363,7 +363,7 @@ export declare class LayoutsApi extends BaseAPI {
363
363
  * @throws {RequiredError}
364
364
  * @memberof LayoutsApi
365
365
  */
366
- deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
366
+ deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
367
367
  /**
368
368
  * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information. **Required Permissions** \"document-management.layouts.view\"
369
369
  * @summary Retrieve the layout
@@ -372,7 +372,7 @@ export declare class LayoutsApi extends BaseAPI {
372
372
  * @throws {RequiredError}
373
373
  * @memberof LayoutsApi
374
374
  */
375
- getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}>>;
375
+ getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}, any>>;
376
376
  /**
377
377
  * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.layouts.view\"
378
378
  * @summary List layouts
@@ -381,7 +381,7 @@ export declare class LayoutsApi extends BaseAPI {
381
381
  * @throws {RequiredError}
382
382
  * @memberof LayoutsApi
383
383
  */
384
- listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}>>;
384
+ listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}, any>>;
385
385
  /**
386
386
  * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.layouts.update\"
387
387
  * @summary Update the layout
@@ -390,5 +390,5 @@ export declare class LayoutsApi extends BaseAPI {
390
390
  * @throws {RequiredError}
391
391
  * @memberof LayoutsApi
392
392
  */
393
- updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}>>;
393
+ updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}, any>>;
394
394
  }
@@ -107,7 +107,7 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
107
107
  createLayout: function (createLayoutRequestDto, 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 LayoutsApiAxiosParamCreator = 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 LayoutsApiAxiosParamCreator = function (configuration) {
156
159
  deleteLayout: function (id, 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 LayoutsApiAxiosParamCreator = 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 LayoutsApiAxiosParamCreator = function (configuration) {
205
211
  getLayout: function (id, id2, 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 LayoutsApiAxiosParamCreator = function (configuration) {
233
239
  if (id2 !== undefined) {
234
240
  localVarQueryParameter['id'] = id2;
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 : {};
@@ -264,7 +271,7 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
264
271
  listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
272
  if (options === void 0) { options = {}; }
266
273
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
268
275
  return __generator(this, function (_a) {
269
276
  switch (_a.label) {
270
277
  case 0:
@@ -305,8 +312,9 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
305
312
  if (filters !== undefined) {
306
313
  localVarQueryParameter['filters'] = filters;
307
314
  }
308
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
318
  }
311
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
320
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -331,7 +339,7 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
331
339
  updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
332
340
  if (options === void 0) { options = {}; }
333
341
  return __awaiter(_this, void 0, void 0, function () {
334
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
335
343
  return __generator(this, function (_a) {
336
344
  switch (_a.label) {
337
345
  case 0:
@@ -351,13 +359,16 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
351
359
  localVarQueryParameter = {};
352
360
  // authentication bearer required
353
361
  // http bearer authentication required
354
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
362
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
363
+ // Only Authorization falls back to the configured token; an empty value is never sent.
364
+ ];
355
365
  case 1:
356
366
  // authentication bearer required
357
367
  // http bearer authentication required
358
368
  _a.sent();
359
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
360
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
369
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
370
+ if (authorizationValue) {
371
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
361
372
  }
362
373
  localVarHeaderParameter['Content-Type'] = 'application/json';
363
374
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -489,7 +489,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
489
489
  * @throws {RequiredError}
490
490
  * @memberof ProductDocumentsApi
491
491
  */
492
- deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
492
+ deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
493
493
  /**
494
494
  * Get a pre-signed download url for the given product document. **Required Permissions** \"document-management.documents.view\"
495
495
  * @summary Get pre-signed url for downloading product document
@@ -498,7 +498,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
498
498
  * @throws {RequiredError}
499
499
  * @memberof ProductDocumentsApi
500
500
  */
501
- downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}>>;
501
+ downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}, any>>;
502
502
  /**
503
503
  * Get a product document. **Required Permissions** \"document-management.documents.view\"
504
504
  * @summary Retrieve the product document
@@ -507,7 +507,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
507
507
  * @throws {RequiredError}
508
508
  * @memberof ProductDocumentsApi
509
509
  */
510
- getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, any, {}>>;
510
+ getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, any, {}, any>>;
511
511
  /**
512
512
  * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
513
513
  * @summary List product documents
@@ -516,7 +516,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
516
516
  * @throws {RequiredError}
517
517
  * @memberof ProductDocumentsApi
518
518
  */
519
- listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
519
+ listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}, any>>;
520
520
  /**
521
521
  * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
522
522
  * @summary List product documents
@@ -525,7 +525,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
525
525
  * @throws {RequiredError}
526
526
  * @memberof ProductDocumentsApi
527
527
  */
528
- listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
528
+ listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}, any>>;
529
529
  /**
530
530
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
531
531
  * @summary Create the product document
@@ -534,5 +534,5 @@ export declare class ProductDocumentsApi extends BaseAPI {
534
534
  * @throws {RequiredError}
535
535
  * @memberof ProductDocumentsApi
536
536
  */
537
- uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
537
+ uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
538
538
  }
@@ -108,7 +108,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
108
108
  deleteProductDocument: function (code, productSlug, authorization, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -129,13 +129,16 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
129
129
  localVarQueryParameter = {};
130
130
  // authentication bearer required
131
131
  // http bearer authentication required
132
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
133
+ // Only Authorization falls back to the configured token; an empty value is never sent.
134
+ ];
133
135
  case 1:
134
136
  // authentication bearer required
135
137
  // http bearer authentication required
136
138
  _a.sent();
137
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
140
+ if (authorizationValue) {
141
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
139
142
  }
140
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
144
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -161,7 +164,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
161
164
  downloadProductDocument: function (productSlug, code, authorization, contentDisposition, options) {
162
165
  if (options === void 0) { options = {}; }
163
166
  return __awaiter(_this, void 0, void 0, function () {
164
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
167
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
165
168
  return __generator(this, function (_a) {
166
169
  switch (_a.label) {
167
170
  case 0:
@@ -190,8 +193,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
190
193
  if (contentDisposition !== undefined) {
191
194
  localVarQueryParameter['contentDisposition'] = contentDisposition;
192
195
  }
193
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
194
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
196
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
197
+ if (authorizationValue) {
198
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
195
199
  }
196
200
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
197
201
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -216,7 +220,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
216
220
  getProductDocument: function (productSlug, code, authorization, options) {
217
221
  if (options === void 0) { options = {}; }
218
222
  return __awaiter(_this, void 0, void 0, function () {
219
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
223
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
220
224
  return __generator(this, function (_a) {
221
225
  switch (_a.label) {
222
226
  case 0:
@@ -237,13 +241,16 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
237
241
  localVarQueryParameter = {};
238
242
  // authentication bearer required
239
243
  // http bearer authentication required
240
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
244
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
245
+ // Only Authorization falls back to the configured token; an empty value is never sent.
246
+ ];
241
247
  case 1:
242
248
  // authentication bearer required
243
249
  // http bearer authentication required
244
250
  _a.sent();
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
254
  }
248
255
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
249
256
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -273,7 +280,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
273
280
  listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
274
281
  if (options === void 0) { options = {}; }
275
282
  return __awaiter(_this, void 0, void 0, function () {
276
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
283
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
277
284
  return __generator(this, function (_a) {
278
285
  switch (_a.label) {
279
286
  case 0:
@@ -314,8 +321,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
314
321
  if (filters !== undefined) {
315
322
  localVarQueryParameter['filters'] = filters;
316
323
  }
317
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
324
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
325
+ if (authorizationValue) {
326
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
319
327
  }
320
328
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
329
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -346,7 +354,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
346
354
  listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
347
355
  if (options === void 0) { options = {}; }
348
356
  return __awaiter(_this, void 0, void 0, function () {
349
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
357
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
350
358
  return __generator(this, function (_a) {
351
359
  switch (_a.label) {
352
360
  case 0:
@@ -390,8 +398,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
390
398
  if (filters !== undefined) {
391
399
  localVarQueryParameter['filters'] = filters;
392
400
  }
393
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
394
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
401
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
402
+ if (authorizationValue) {
403
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
395
404
  }
396
405
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
397
406
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -416,7 +425,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
416
425
  uploadProductDocument: function (productSlug, uploadProductDocumentRequestDto, authorization, options) {
417
426
  if (options === void 0) { options = {}; }
418
427
  return __awaiter(_this, void 0, void 0, function () {
419
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
428
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
420
429
  return __generator(this, function (_a) {
421
430
  switch (_a.label) {
422
431
  case 0:
@@ -436,13 +445,16 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
436
445
  localVarQueryParameter = {};
437
446
  // authentication bearer required
438
447
  // http bearer authentication required
439
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
448
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
449
+ // Only Authorization falls back to the configured token; an empty value is never sent.
450
+ ];
440
451
  case 1:
441
452
  // authentication bearer required
442
453
  // http bearer authentication required
443
454
  _a.sent();
444
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
445
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
455
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
456
+ if (authorizationValue) {
457
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
446
458
  }
447
459
  localVarHeaderParameter['Content-Type'] = 'application/json';
448
460
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -92,5 +92,5 @@ export declare class SearchKeywordsApi extends BaseAPI {
92
92
  * @throws {RequiredError}
93
93
  * @memberof SearchKeywordsApi
94
94
  */
95
- listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any, {}>>;
95
+ listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any, {}, any>>;
96
96
  }
@@ -107,7 +107,7 @@ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
107
107
  listSearchKeywords: function (searchText, 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:
@@ -132,8 +132,9 @@ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
132
132
  if (searchText !== undefined) {
133
133
  localVarQueryParameter['searchText'] = searchText;
134
134
  }
135
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
137
138
  }
138
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
140
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -146,5 +146,5 @@ export declare class SearchableDocumentOwnersApi extends BaseAPI {
146
146
  * @throws {RequiredError}
147
147
  * @memberof SearchableDocumentOwnersApi
148
148
  */
149
- listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any, {}>>;
149
+ listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any, {}, any>>;
150
150
  }