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

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 DocumentTemplatesApiAxiosParamCreator = function (configuration) {
107
107
  createDocTemplate: function (createDocTemplateRequestDto, 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, authorizationValue, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,16 +124,13 @@ var DocumentTemplatesApiAxiosParamCreator = 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 DocumentTemplatesApiAxiosParamCreator = function (configuration) {
159
156
  deleteDocTemplate: function (id, 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 DocumentTemplatesApiAxiosParamCreator = 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 : {};
@@ -211,7 +205,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
211
205
  getDocTemplate: function (id, authorization, expand, options) {
212
206
  if (options === void 0) { options = {}; }
213
207
  return __awaiter(_this, void 0, void 0, function () {
214
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
209
  return __generator(this, function (_a) {
216
210
  switch (_a.label) {
217
211
  case 0:
@@ -237,9 +231,8 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
237
231
  if (expand !== undefined) {
238
232
  localVarQueryParameter['expand'] = expand;
239
233
  }
240
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
241
- if (authorizationValue) {
242
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
234
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
236
  }
244
237
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
245
238
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -268,7 +261,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
268
261
  listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
269
262
  if (options === void 0) { options = {}; }
270
263
  return __awaiter(_this, void 0, void 0, function () {
271
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
264
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
272
265
  return __generator(this, function (_a) {
273
266
  switch (_a.label) {
274
267
  case 0:
@@ -306,9 +299,8 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
306
299
  if (expand !== undefined) {
307
300
  localVarQueryParameter['expand'] = expand;
308
301
  }
309
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
- if (authorizationValue) {
311
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
312
304
  }
313
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -333,7 +325,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
333
325
  updateDocTemplate: function (id, updateDocTemplateRequestDto, authorization, options) {
334
326
  if (options === void 0) { options = {}; }
335
327
  return __awaiter(_this, void 0, void 0, function () {
336
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
329
  return __generator(this, function (_a) {
338
330
  switch (_a.label) {
339
331
  case 0:
@@ -353,16 +345,13 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
353
345
  localVarQueryParameter = {};
354
346
  // authentication bearer required
355
347
  // http bearer authentication required
356
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
- // Only Authorization falls back to the configured token; an empty value is never sent.
358
- ];
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
359
349
  case 1:
360
350
  // authentication bearer required
361
351
  // http bearer authentication required
362
352
  _a.sent();
363
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
- if (authorizationValue) {
365
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
355
  }
367
356
  localVarHeaderParameter['Content-Type'] = 'application/json';
368
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -658,7 +658,7 @@ export declare class DocumentsApi extends BaseAPI {
658
658
  * @throws {RequiredError}
659
659
  * @memberof DocumentsApi
660
660
  */
661
- createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocumentSyncResponseClass, any, {}, any>>;
661
+ createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocumentSyncResponseClass, any, {}>>;
662
662
  /**
663
663
  * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days. **Required Permissions** \"document-management.documents.create\"
664
664
  * @summary Upload documents using pre-signed URL
@@ -667,7 +667,7 @@ export declare class DocumentsApi extends BaseAPI {
667
667
  * @throws {RequiredError}
668
668
  * @memberof DocumentsApi
669
669
  */
670
- createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
670
+ createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
671
671
  /**
672
672
  * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
673
673
  * @summary Create the QR bill document
@@ -676,7 +676,7 @@ export declare class DocumentsApi extends BaseAPI {
676
676
  * @throws {RequiredError}
677
677
  * @memberof DocumentsApi
678
678
  */
679
- createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}, any>>;
679
+ createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}>>;
680
680
  /**
681
681
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
682
682
  * @summary Delete the document
@@ -685,7 +685,7 @@ export declare class DocumentsApi extends BaseAPI {
685
685
  * @throws {RequiredError}
686
686
  * @memberof DocumentsApi
687
687
  */
688
- deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
688
+ deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
689
689
  /**
690
690
  * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
691
691
  * @summary Export internal document
@@ -694,7 +694,7 @@ export declare class DocumentsApi extends BaseAPI {
694
694
  * @throws {RequiredError}
695
695
  * @memberof DocumentsApi
696
696
  */
697
- exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportDocumentResponseClass, any, {}, any>>;
697
+ exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportDocumentResponseClass, any, {}>>;
698
698
  /**
699
699
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
700
700
  * @summary Fetches a document download URL
@@ -703,7 +703,7 @@ export declare class DocumentsApi extends BaseAPI {
703
703
  * @throws {RequiredError}
704
704
  * @memberof DocumentsApi
705
705
  */
706
- getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentDownloadUrlResponseClass, any, {}, any>>;
706
+ getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentDownloadUrlResponseClass, any, {}>>;
707
707
  /**
708
708
  * This will return a presigned URL for a random S3 key
709
709
  * @summary Fetches a presigned URL for a S3 key
@@ -712,7 +712,7 @@ export declare class DocumentsApi extends BaseAPI {
712
712
  * @throws {RequiredError}
713
713
  * @memberof DocumentsApi
714
714
  */
715
- getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSignedS3KeyUrlResponseClass, any, {}, any>>;
715
+ getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSignedS3KeyUrlResponseClass, any, {}>>;
716
716
  /**
717
717
  * Returns a list of documents you have previously created. The 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\"
718
718
  * @summary List documents
@@ -721,7 +721,7 @@ export declare class DocumentsApi extends BaseAPI {
721
721
  * @throws {RequiredError}
722
722
  * @memberof DocumentsApi
723
723
  */
724
- listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}, any>>;
724
+ listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}>>;
725
725
  /**
726
726
  * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
727
727
  * @summary Create the merged document
@@ -730,7 +730,7 @@ export declare class DocumentsApi extends BaseAPI {
730
730
  * @throws {RequiredError}
731
731
  * @memberof DocumentsApi
732
732
  */
733
- mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MergeDocumentsResponseClass, any, {}, any>>;
733
+ mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MergeDocumentsResponseClass, any, {}>>;
734
734
  /**
735
735
  * This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
736
736
  * @summary Save external document
@@ -739,7 +739,7 @@ export declare class DocumentsApi extends BaseAPI {
739
739
  * @throws {RequiredError}
740
740
  * @memberof DocumentsApi
741
741
  */
742
- saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
742
+ saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
743
743
  /**
744
744
  * Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
745
745
  * @summary Update the document
@@ -748,5 +748,5 @@ export declare class DocumentsApi extends BaseAPI {
748
748
  * @throws {RequiredError}
749
749
  * @memberof DocumentsApi
750
750
  */
751
- updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocumentResponseClass, any, {}, any>>;
751
+ updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocumentResponseClass, any, {}>>;
752
752
  }
@@ -107,7 +107,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
107
107
  createDocument: function (createDocumentRequestDto, 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, authorizationValue, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,16 +124,13 @@ var DocumentsApiAxiosParamCreator = 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 DocumentsApiAxiosParamCreator = function (configuration) {
159
156
  createPresignedPost: function (createPresignedPostRequestDto, 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:
@@ -176,16 +173,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
176
173
  localVarQueryParameter = {};
177
174
  // authentication bearer required
178
175
  // http bearer authentication required
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
- ];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
177
  case 1:
183
178
  // authentication bearer required
184
179
  // http bearer authentication required
185
180
  _a.sent();
186
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
- if (authorizationValue) {
188
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
183
  }
190
184
  localVarHeaderParameter['Content-Type'] = 'application/json';
191
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -211,7 +205,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
211
205
  createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
212
206
  if (options === void 0) { options = {}; }
213
207
  return __awaiter(_this, void 0, void 0, function () {
214
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
209
  return __generator(this, function (_a) {
216
210
  switch (_a.label) {
217
211
  case 0:
@@ -228,16 +222,13 @@ var DocumentsApiAxiosParamCreator = 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
  localVarHeaderParameter['Content-Type'] = 'application/json';
243
234
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -263,7 +254,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
263
254
  deleteDocument: function (code, authorization, 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:
@@ -281,16 +272,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
281
272
  localVarQueryParameter = {};
282
273
  // authentication bearer required
283
274
  // http bearer authentication required
284
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
285
- // Only Authorization falls back to the configured token; an empty value is never sent.
286
- ];
275
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
287
276
  case 1:
288
277
  // authentication bearer required
289
278
  // http bearer authentication required
290
279
  _a.sent();
291
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
292
- if (authorizationValue) {
293
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
282
  }
295
283
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
296
284
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -315,7 +303,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
315
303
  exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
316
304
  if (options === void 0) { options = {}; }
317
305
  return __awaiter(_this, void 0, void 0, function () {
318
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
306
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
319
307
  return __generator(this, function (_a) {
320
308
  switch (_a.label) {
321
309
  case 0:
@@ -335,16 +323,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
335
323
  localVarQueryParameter = {};
336
324
  // authentication bearer required
337
325
  // http bearer authentication required
338
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
339
- // Only Authorization falls back to the configured token; an empty value is never sent.
340
- ];
326
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
341
327
  case 1:
342
328
  // authentication bearer required
343
329
  // http bearer authentication required
344
330
  _a.sent();
345
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
346
- if (authorizationValue) {
347
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
331
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
348
333
  }
349
334
  localVarHeaderParameter['Content-Type'] = 'application/json';
350
335
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -371,7 +356,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
371
356
  getDocumentDownloadUrl: function (code, authorization, contentDisposition, options) {
372
357
  if (options === void 0) { options = {}; }
373
358
  return __awaiter(_this, void 0, void 0, function () {
374
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
359
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
375
360
  return __generator(this, function (_a) {
376
361
  switch (_a.label) {
377
362
  case 0:
@@ -397,9 +382,8 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
397
382
  if (contentDisposition !== undefined) {
398
383
  localVarQueryParameter['contentDisposition'] = contentDisposition;
399
384
  }
400
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
401
- if (authorizationValue) {
402
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
385
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
386
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
403
387
  }
404
388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
405
389
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -424,7 +408,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
424
408
  getSignedS3keyUrl: function (s3Key, authorization, contentDisposition, options) {
425
409
  if (options === void 0) { options = {}; }
426
410
  return __awaiter(_this, void 0, void 0, function () {
427
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
411
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
428
412
  return __generator(this, function (_a) {
429
413
  switch (_a.label) {
430
414
  case 0:
@@ -452,9 +436,8 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
452
436
  if (contentDisposition !== undefined) {
453
437
  localVarQueryParameter['contentDisposition'] = contentDisposition;
454
438
  }
455
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
456
- if (authorizationValue) {
457
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
439
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
440
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
458
441
  }
459
442
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
460
443
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -484,7 +467,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
484
467
  listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
485
468
  if (options === void 0) { options = {}; }
486
469
  return __awaiter(_this, void 0, void 0, function () {
487
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
470
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
488
471
  return __generator(this, function (_a) {
489
472
  switch (_a.label) {
490
473
  case 0:
@@ -525,9 +508,8 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
525
508
  if (filters !== undefined) {
526
509
  localVarQueryParameter['filters'] = filters;
527
510
  }
528
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
529
- if (authorizationValue) {
530
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
511
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
512
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
531
513
  }
532
514
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
533
515
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -551,7 +533,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
551
533
  mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
552
534
  if (options === void 0) { options = {}; }
553
535
  return __awaiter(_this, void 0, void 0, function () {
554
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
536
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
555
537
  return __generator(this, function (_a) {
556
538
  switch (_a.label) {
557
539
  case 0:
@@ -568,16 +550,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
568
550
  localVarQueryParameter = {};
569
551
  // authentication bearer required
570
552
  // http bearer authentication required
571
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
572
- // Only Authorization falls back to the configured token; an empty value is never sent.
573
- ];
553
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
574
554
  case 1:
575
555
  // authentication bearer required
576
556
  // http bearer authentication required
577
557
  _a.sent();
578
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
579
- if (authorizationValue) {
580
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
558
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
559
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
581
560
  }
582
561
  localVarHeaderParameter['Content-Type'] = 'application/json';
583
562
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -603,7 +582,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
603
582
  saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
604
583
  if (options === void 0) { options = {}; }
605
584
  return __awaiter(_this, void 0, void 0, function () {
606
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
585
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
607
586
  return __generator(this, function (_a) {
608
587
  switch (_a.label) {
609
588
  case 0:
@@ -620,16 +599,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
620
599
  localVarQueryParameter = {};
621
600
  // authentication bearer required
622
601
  // http bearer authentication required
623
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
624
- // Only Authorization falls back to the configured token; an empty value is never sent.
625
- ];
602
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
626
603
  case 1:
627
604
  // authentication bearer required
628
605
  // http bearer authentication required
629
606
  _a.sent();
630
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
631
- if (authorizationValue) {
632
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
607
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
608
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
633
609
  }
634
610
  localVarHeaderParameter['Content-Type'] = 'application/json';
635
611
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -656,7 +632,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
656
632
  updateDocument: function (code, updateDocumentRequestDto, authorization, options) {
657
633
  if (options === void 0) { options = {}; }
658
634
  return __awaiter(_this, void 0, void 0, function () {
659
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
635
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
660
636
  return __generator(this, function (_a) {
661
637
  switch (_a.label) {
662
638
  case 0:
@@ -676,16 +652,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
676
652
  localVarQueryParameter = {};
677
653
  // authentication bearer required
678
654
  // http bearer authentication required
679
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
680
- // Only Authorization falls back to the configured token; an empty value is never sent.
681
- ];
655
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
682
656
  case 1:
683
657
  // authentication bearer required
684
658
  // http bearer authentication required
685
659
  _a.sent();
686
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
687
- if (authorizationValue) {
688
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
660
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
661
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
689
662
  }
690
663
  localVarHeaderParameter['Content-Type'] = 'application/json';
691
664
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -392,7 +392,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
392
392
  * @throws {RequiredError}
393
393
  * @memberof DocxTemplatesApi
394
394
  */
395
- deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
395
+ deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
396
396
  /**
397
397
  * Get a pre-signed download url for the given docx template. **Required Permissions** \"document-management.docx-templates.view\"
398
398
  * @summary Get pre-signed url for downloading docx template
@@ -401,7 +401,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
401
401
  * @throws {RequiredError}
402
402
  * @memberof DocxTemplatesApi
403
403
  */
404
- downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateDownloadUrlResponseClass, any, {}, any>>;
404
+ downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateDownloadUrlResponseClass, any, {}>>;
405
405
  /**
406
406
  * Get a docx template. **Required Permissions** \"document-management.docx-templates.view\"
407
407
  * @summary Retrieve the docx template
@@ -410,7 +410,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
410
410
  * @throws {RequiredError}
411
411
  * @memberof DocxTemplatesApi
412
412
  */
413
- getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateResponseClass, any, {}, any>>;
413
+ getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateResponseClass, any, {}>>;
414
414
  /**
415
415
  * Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.docx-templates.view\"
416
416
  * @summary List docx templates
@@ -419,7 +419,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
419
419
  * @throws {RequiredError}
420
420
  * @memberof DocxTemplatesApi
421
421
  */
422
- listDocxTemplates(requestParameters?: DocxTemplatesApiListDocxTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocxTemplatesResponseClass, any, {}, any>>;
422
+ listDocxTemplates(requestParameters?: DocxTemplatesApiListDocxTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocxTemplatesResponseClass, any, {}>>;
423
423
  /**
424
424
  * Updates a docx template metadata. **Required Permissions** \"document-management.docx-templates.update\"
425
425
  * @summary Update the docx template
@@ -428,7 +428,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
428
428
  * @throws {RequiredError}
429
429
  * @memberof DocxTemplatesApi
430
430
  */
431
- updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocxTemplateResponseClass, any, {}, any>>;
431
+ updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocxTemplateResponseClass, any, {}>>;
432
432
  /**
433
433
  * Upload a docx template via a presigned Url. **Required Permissions** \"document-management.docx-templates.create\"
434
434
  * @summary Upload a docx template.
@@ -437,5 +437,5 @@ export declare class DocxTemplatesApi extends BaseAPI {
437
437
  * @throws {RequiredError}
438
438
  * @memberof DocxTemplatesApi
439
439
  */
440
- uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
440
+ uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
441
441
  }