@emilgroup/public-api-sdk 1.40.1-beta.26 → 1.40.1-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/api/address-completions-validations-api.ts +6 -16
  3. package/api/booking-funnels-api.ts +3 -8
  4. package/api/documents-api.ts +21 -56
  5. package/api/health-api.ts +1 -1
  6. package/api/ibanvalidator-api.ts +3 -8
  7. package/api/leads-api.ts +24 -64
  8. package/api/named-ranges-api.ts +3 -8
  9. package/api/notifications-api.ts +9 -24
  10. package/api/partners-api.ts +3 -8
  11. package/api/payments-setup-api.ts +20 -60
  12. package/api/product-versions-api.ts +12 -32
  13. package/api/products-api.ts +27 -72
  14. package/base.ts +43 -239
  15. package/common.ts +2 -3
  16. package/configuration.ts +0 -20
  17. package/dist/api/address-completions-validations-api.d.ts +2 -2
  18. package/dist/api/address-completions-validations-api.js +14 -22
  19. package/dist/api/booking-funnels-api.d.ts +1 -1
  20. package/dist/api/booking-funnels-api.js +7 -11
  21. package/dist/api/documents-api.d.ts +7 -7
  22. package/dist/api/documents-api.js +53 -93
  23. package/dist/api/health-api.d.ts +1 -1
  24. package/dist/api/health-api.js +1 -1
  25. package/dist/api/ibanvalidator-api.d.ts +1 -1
  26. package/dist/api/ibanvalidator-api.js +8 -15
  27. package/dist/api/leads-api.d.ts +8 -8
  28. package/dist/api/leads-api.js +64 -120
  29. package/dist/api/named-ranges-api.d.ts +1 -1
  30. package/dist/api/named-ranges-api.js +7 -11
  31. package/dist/api/notifications-api.d.ts +3 -3
  32. package/dist/api/notifications-api.js +24 -45
  33. package/dist/api/partners-api.d.ts +1 -1
  34. package/dist/api/partners-api.js +8 -15
  35. package/dist/api/payments-setup-api.d.ts +4 -4
  36. package/dist/api/payments-setup-api.js +40 -80
  37. package/dist/api/product-versions-api.d.ts +4 -4
  38. package/dist/api/product-versions-api.js +31 -56
  39. package/dist/api/products-api.d.ts +9 -9
  40. package/dist/api/products-api.js +68 -119
  41. package/dist/base.d.ts +0 -26
  42. package/dist/base.js +60 -243
  43. package/dist/common.d.ts +1 -1
  44. package/dist/common.js +0 -1
  45. package/dist/configuration.d.ts +0 -17
  46. package/dist/configuration.js +0 -2
  47. package/package.json +2 -2
@@ -500,7 +500,7 @@ export declare class DocumentsApi extends BaseAPI {
500
500
  * @throws {RequiredError}
501
501
  * @memberof DocumentsApi
502
502
  */
503
- createTemporaryDocument(requestParameters: DocumentsApiCreateTemporaryDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
503
+ createTemporaryDocument(requestParameters: DocumentsApiCreateTemporaryDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
504
504
  /**
505
505
  * This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
506
506
  * @summary Delete a document
@@ -509,7 +509,7 @@ export declare class DocumentsApi extends BaseAPI {
509
509
  * @throws {RequiredError}
510
510
  * @memberof DocumentsApi
511
511
  */
512
- deleteDocuments(requestParameters: DocumentsApiDeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
512
+ deleteDocuments(requestParameters: DocumentsApiDeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
513
513
  /**
514
514
  * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
515
515
  * @summary Download a document
@@ -518,7 +518,7 @@ export declare class DocumentsApi extends BaseAPI {
518
518
  * @throws {RequiredError}
519
519
  * @memberof DocumentsApi
520
520
  */
521
- downloadDocument(requestParameters: DocumentsApiDownloadDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
521
+ downloadDocument(requestParameters: DocumentsApiDownloadDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
522
522
  /**
523
523
  *
524
524
  * @summary Get pre-signed url for downloading product document
@@ -527,7 +527,7 @@ export declare class DocumentsApi extends BaseAPI {
527
527
  * @throws {RequiredError}
528
528
  * @memberof DocumentsApi
529
529
  */
530
- downloadProductDocumentUrl(requestParameters: DocumentsApiDownloadProductDocumentUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}, any>>;
530
+ downloadProductDocumentUrl(requestParameters: DocumentsApiDownloadProductDocumentUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}>>;
531
531
  /**
532
532
  * 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.
533
533
  * @summary List documents
@@ -536,7 +536,7 @@ export declare class DocumentsApi extends BaseAPI {
536
536
  * @throws {RequiredError}
537
537
  * @memberof DocumentsApi
538
538
  */
539
- listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}, any>>;
539
+ listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}>>;
540
540
  /**
541
541
  * 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.
542
542
  * @summary List product documents
@@ -545,7 +545,7 @@ export declare class DocumentsApi extends BaseAPI {
545
545
  * @throws {RequiredError}
546
546
  * @memberof DocumentsApi
547
547
  */
548
- listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}, any>>;
548
+ listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
549
549
  /**
550
550
  * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
551
551
  * @summary Upload documents using pre-signed URL
@@ -554,5 +554,5 @@ export declare class DocumentsApi extends BaseAPI {
554
554
  * @throws {RequiredError}
555
555
  * @memberof DocumentsApi
556
556
  */
557
- preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
557
+ preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
558
558
  }
@@ -103,10 +103,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
103
103
  createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
109
- switch (_b.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
110
109
  case 0:
111
110
  // verify required parameter 'createDocumentRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('createTemporaryDocument', 'createDocumentRequestDto', createDocumentRequestDto);
@@ -121,19 +120,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
121
120
  localVarQueryParameter = {};
122
121
  // authentication bearer required
123
122
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
124
  case 1:
129
125
  // authentication bearer required
130
126
  // http bearer authentication required
131
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
- if (authorizationValue || authorizationKeepEmpty) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
130
  }
138
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -160,10 +153,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
160
153
  deleteDocuments: function (leadCode, code, authorization, options) {
161
154
  if (options === void 0) { options = {}; }
162
155
  return __awaiter(_this, void 0, void 0, function () {
163
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
164
- var _a;
165
- return __generator(this, function (_b) {
166
- switch (_b.label) {
156
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
167
159
  case 0:
168
160
  // verify required parameter 'leadCode' is not null or undefined
169
161
  (0, common_1.assertParamExists)('deleteDocuments', 'leadCode', leadCode);
@@ -182,19 +174,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
182
174
  localVarQueryParameter = {};
183
175
  // authentication bearer required
184
176
  // http bearer authentication required
185
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
186
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
187
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
188
- ];
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
189
178
  case 1:
190
179
  // authentication bearer required
191
180
  // http bearer authentication required
192
- _b.sent();
193
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
194
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
195
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
196
- if (authorizationValue || authorizationKeepEmpty) {
197
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
198
184
  }
199
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
200
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -218,10 +204,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
218
204
  downloadDocument: function (code, authorization, options) {
219
205
  if (options === void 0) { options = {}; }
220
206
  return __awaiter(_this, void 0, void 0, function () {
221
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
222
- var _a;
223
- return __generator(this, function (_b) {
224
- switch (_b.label) {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
225
210
  case 0:
226
211
  // verify required parameter 'code' is not null or undefined
227
212
  (0, common_1.assertParamExists)('downloadDocument', 'code', code);
@@ -237,19 +222,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
237
222
  localVarQueryParameter = {};
238
223
  // authentication bearer required
239
224
  // http bearer authentication required
240
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
241
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
242
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
243
- ];
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
244
226
  case 1:
245
227
  // authentication bearer required
246
228
  // http bearer authentication required
247
- _b.sent();
248
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
249
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
250
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
251
- if (authorizationValue || authorizationKeepEmpty) {
252
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
253
232
  }
254
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
255
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -275,10 +254,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
275
254
  downloadProductDocumentUrl: function (productCode, code, authorization, contentDisposition, options) {
276
255
  if (options === void 0) { options = {}; }
277
256
  return __awaiter(_this, void 0, void 0, function () {
278
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
279
- var _a;
280
- return __generator(this, function (_b) {
281
- switch (_b.label) {
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
+ return __generator(this, function (_a) {
259
+ switch (_a.label) {
282
260
  case 0:
283
261
  // verify required parameter 'productCode' is not null or undefined
284
262
  (0, common_1.assertParamExists)('downloadProductDocumentUrl', 'productCode', productCode);
@@ -301,15 +279,12 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
301
279
  case 1:
302
280
  // authentication bearer required
303
281
  // http bearer authentication required
304
- _b.sent();
282
+ _a.sent();
305
283
  if (contentDisposition !== undefined) {
306
284
  localVarQueryParameter['contentDisposition'] = contentDisposition;
307
285
  }
308
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
309
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
310
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
311
- if (authorizationValue || authorizationKeepEmpty) {
312
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
286
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
287
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
313
288
  }
314
289
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
315
290
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -337,10 +312,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
337
312
  listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
338
313
  if (options === void 0) { options = {}; }
339
314
  return __awaiter(_this, void 0, void 0, function () {
340
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
341
- var _a;
342
- return __generator(this, function (_b) {
343
- switch (_b.label) {
315
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
316
+ return __generator(this, function (_a) {
317
+ switch (_a.label) {
344
318
  case 0:
345
319
  // verify required parameter 'filter' is not null or undefined
346
320
  (0, common_1.assertParamExists)('listDocuments', 'filter', filter);
@@ -359,7 +333,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
359
333
  case 1:
360
334
  // authentication bearer required
361
335
  // http bearer authentication required
362
- _b.sent();
336
+ _a.sent();
363
337
  if (pageSize !== undefined) {
364
338
  localVarQueryParameter['pageSize'] = pageSize;
365
339
  }
@@ -375,11 +349,8 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
375
349
  if (expand !== undefined) {
376
350
  localVarQueryParameter['expand'] = expand;
377
351
  }
378
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
379
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
380
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
381
- if (authorizationValue || authorizationKeepEmpty) {
382
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
352
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
383
354
  }
384
355
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
385
356
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -410,10 +381,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
410
381
  listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
411
382
  if (options === void 0) { options = {}; }
412
383
  return __awaiter(_this, void 0, void 0, function () {
413
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
414
- var _a;
415
- return __generator(this, function (_b) {
416
- switch (_b.label) {
384
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
385
+ return __generator(this, function (_a) {
386
+ switch (_a.label) {
417
387
  case 0:
418
388
  // verify required parameter 'productCode' is not null or undefined
419
389
  (0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
@@ -433,7 +403,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
433
403
  case 1:
434
404
  // authentication bearer required
435
405
  // http bearer authentication required
436
- _b.sent();
406
+ _a.sent();
437
407
  if (pageSize !== undefined) {
438
408
  localVarQueryParameter['pageSize'] = pageSize;
439
409
  }
@@ -455,11 +425,8 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
455
425
  if (filters !== undefined) {
456
426
  localVarQueryParameter['filters'] = filters;
457
427
  }
458
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
459
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
460
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
461
- if (authorizationValue || authorizationKeepEmpty) {
462
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
428
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
429
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
463
430
  }
464
431
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
465
432
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -483,10 +450,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
483
450
  preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
484
451
  if (options === void 0) { options = {}; }
485
452
  return __awaiter(_this, void 0, void 0, function () {
486
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
487
- var _a;
488
- return __generator(this, function (_b) {
489
- switch (_b.label) {
453
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
454
+ return __generator(this, function (_a) {
455
+ switch (_a.label) {
490
456
  case 0:
491
457
  // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
492
458
  (0, common_1.assertParamExists)('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
@@ -501,19 +467,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
501
467
  localVarQueryParameter = {};
502
468
  // authentication bearer required
503
469
  // http bearer authentication required
504
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
505
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
506
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
507
- ];
470
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
508
471
  case 1:
509
472
  // authentication bearer required
510
473
  // http bearer authentication required
511
- _b.sent();
512
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
513
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
514
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
515
- if (authorizationValue || authorizationKeepEmpty) {
516
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
474
+ _a.sent();
475
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
476
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
517
477
  }
518
478
  localVarHeaderParameter['Content-Type'] = 'application/json';
519
479
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -824,7 +784,7 @@ var DocumentsApi = /** @class */ (function (_super) {
824
784
  */
825
785
  DocumentsApi.prototype.createTemporaryDocument = function (requestParameters, options) {
826
786
  var _this = this;
827
- return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
787
+ return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
828
788
  };
829
789
  /**
830
790
  * This will delete a document for a lead by lead code and document code.Documents which were created within last 24 hours can be deleted.
@@ -836,7 +796,7 @@ var DocumentsApi = /** @class */ (function (_super) {
836
796
  */
837
797
  DocumentsApi.prototype.deleteDocuments = function (requestParameters, options) {
838
798
  var _this = this;
839
- return (0, exports.DocumentsApiFp)(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
799
+ return (0, exports.DocumentsApiFp)(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
840
800
  };
841
801
  /**
842
802
  * Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
@@ -848,7 +808,7 @@ var DocumentsApi = /** @class */ (function (_super) {
848
808
  */
849
809
  DocumentsApi.prototype.downloadDocument = function (requestParameters, options) {
850
810
  var _this = this;
851
- return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
811
+ return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
852
812
  };
853
813
  /**
854
814
  *
@@ -860,7 +820,7 @@ var DocumentsApi = /** @class */ (function (_super) {
860
820
  */
861
821
  DocumentsApi.prototype.downloadProductDocumentUrl = function (requestParameters, options) {
862
822
  var _this = this;
863
- return (0, exports.DocumentsApiFp)(this.configuration).downloadProductDocumentUrl(requestParameters.productCode, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
823
+ return (0, exports.DocumentsApiFp)(this.configuration).downloadProductDocumentUrl(requestParameters.productCode, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then(function (request) { return request(_this.axios, _this.basePath); });
864
824
  };
865
825
  /**
866
826
  * 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.
@@ -872,7 +832,7 @@ var DocumentsApi = /** @class */ (function (_super) {
872
832
  */
873
833
  DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
874
834
  var _this = this;
875
- return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
835
+ return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
876
836
  };
877
837
  /**
878
838
  * 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.
@@ -884,7 +844,7 @@ var DocumentsApi = /** @class */ (function (_super) {
884
844
  */
885
845
  DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
886
846
  var _this = this;
887
- return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
847
+ return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
888
848
  };
889
849
  /**
890
850
  * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
@@ -896,7 +856,7 @@ var DocumentsApi = /** @class */ (function (_super) {
896
856
  */
897
857
  DocumentsApi.prototype.preSignedPost = function (requestParameters, options) {
898
858
  var _this = this;
899
- return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
859
+ return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
900
860
  };
901
861
  return DocumentsApi;
902
862
  }(base_1.BaseAPI));
@@ -62,5 +62,5 @@ export declare class HealthApi extends BaseAPI {
62
62
  * @throws {RequiredError}
63
63
  * @memberof HealthApi
64
64
  */
65
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
66
66
  }
@@ -189,7 +189,7 @@ var HealthApi = /** @class */ (function (_super) {
189
189
  */
190
190
  HealthApi.prototype.check = function (options) {
191
191
  var _this = this;
192
- return (0, exports.HealthApiFp)(this.configuration).check(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
192
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
193
  };
194
194
  return HealthApi;
195
195
  }(base_1.BaseAPI));
@@ -93,5 +93,5 @@ export declare class IBANValidatorApi extends BaseAPI {
93
93
  * @throws {RequiredError}
94
94
  * @memberof IBANValidatorApi
95
95
  */
96
- validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}, any>>;
96
+ validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}>>;
97
97
  }
@@ -103,10 +103,9 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
103
103
  validateIban: function (validateIbanRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
109
- switch (_b.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
110
109
  case 0:
111
110
  // verify required parameter 'validateIbanRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('validateIban', 'validateIbanRequestDto', validateIbanRequestDto);
@@ -121,19 +120,13 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
121
120
  localVarQueryParameter = {};
122
121
  // authentication bearer required
123
122
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
124
  case 1:
129
125
  // authentication bearer required
130
126
  // http bearer authentication required
131
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
- if (authorizationValue || authorizationKeepEmpty) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
130
  }
138
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -224,7 +217,7 @@ var IBANValidatorApi = /** @class */ (function (_super) {
224
217
  */
225
218
  IBANValidatorApi.prototype.validateIban = function (requestParameters, options) {
226
219
  var _this = this;
227
- return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
220
+ return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
228
221
  };
229
222
  return IBANValidatorApi;
230
223
  }(base_1.BaseAPI));
@@ -429,7 +429,7 @@ export declare class LeadsApi extends BaseAPI {
429
429
  * @throws {RequiredError}
430
430
  * @memberof LeadsApi
431
431
  */
432
- createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, any>>;
432
+ createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}>>;
433
433
  /**
434
434
  * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
435
435
  * @summary Create the lead asynchronously
@@ -438,7 +438,7 @@ export declare class LeadsApi extends BaseAPI {
438
438
  * @throws {RequiredError}
439
439
  * @memberof LeadsApi
440
440
  */
441
- createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any, {}, any>>;
441
+ createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any, {}>>;
442
442
  /**
443
443
  * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
444
444
  * @summary Create the lead synchronously
@@ -447,7 +447,7 @@ export declare class LeadsApi extends BaseAPI {
447
447
  * @throws {RequiredError}
448
448
  * @memberof LeadsApi
449
449
  */
450
- createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, any>>;
450
+ createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}>>;
451
451
  /**
452
452
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
453
453
  * @summary Retrieve the lead
@@ -456,7 +456,7 @@ export declare class LeadsApi extends BaseAPI {
456
456
  * @throws {RequiredError}
457
457
  * @memberof LeadsApi
458
458
  */
459
- getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any, {}, any>>;
459
+ getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any, {}>>;
460
460
  /**
461
461
  * This will initiate a lead code.
462
462
  * @summary Initiate a lead code
@@ -465,7 +465,7 @@ export declare class LeadsApi extends BaseAPI {
465
465
  * @throws {RequiredError}
466
466
  * @memberof LeadsApi
467
467
  */
468
- initiateLead(requestParameters?: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}, any>>;
468
+ initiateLead(requestParameters?: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}>>;
469
469
  /**
470
470
  * This will initiate a lead code for the specified product.
471
471
  * @summary Initiate a lead code for a product
@@ -474,7 +474,7 @@ export declare class LeadsApi extends BaseAPI {
474
474
  * @throws {RequiredError}
475
475
  * @memberof LeadsApi
476
476
  */
477
- initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}, any>>;
477
+ initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}>>;
478
478
  /**
479
479
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
480
480
  * @summary Update the lead
@@ -483,7 +483,7 @@ export declare class LeadsApi extends BaseAPI {
483
483
  * @throws {RequiredError}
484
484
  * @memberof LeadsApi
485
485
  */
486
- updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}, any>>;
486
+ updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}>>;
487
487
  /**
488
488
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
489
489
  * @summary Update the lead
@@ -492,5 +492,5 @@ export declare class LeadsApi extends BaseAPI {
492
492
  * @throws {RequiredError}
493
493
  * @memberof LeadsApi
494
494
  */
495
- updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}, any>>;
495
+ updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}>>;
496
496
  }