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

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 +16 -6
  3. package/api/booking-funnels-api.ts +8 -3
  4. package/api/documents-api.ts +56 -21
  5. package/api/health-api.ts +1 -1
  6. package/api/ibanvalidator-api.ts +8 -3
  7. package/api/leads-api.ts +64 -24
  8. package/api/named-ranges-api.ts +8 -3
  9. package/api/notifications-api.ts +24 -9
  10. package/api/partners-api.ts +8 -3
  11. package/api/payments-setup-api.ts +60 -20
  12. package/api/product-versions-api.ts +32 -12
  13. package/api/products-api.ts +72 -27
  14. package/base.ts +239 -43
  15. package/common.ts +3 -2
  16. package/configuration.ts +20 -0
  17. package/dist/api/address-completions-validations-api.d.ts +2 -2
  18. package/dist/api/address-completions-validations-api.js +22 -14
  19. package/dist/api/booking-funnels-api.d.ts +1 -1
  20. package/dist/api/booking-funnels-api.js +11 -7
  21. package/dist/api/documents-api.d.ts +7 -7
  22. package/dist/api/documents-api.js +93 -53
  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 +15 -8
  27. package/dist/api/leads-api.d.ts +8 -8
  28. package/dist/api/leads-api.js +120 -64
  29. package/dist/api/named-ranges-api.d.ts +1 -1
  30. package/dist/api/named-ranges-api.js +11 -7
  31. package/dist/api/notifications-api.d.ts +3 -3
  32. package/dist/api/notifications-api.js +45 -24
  33. package/dist/api/partners-api.d.ts +1 -1
  34. package/dist/api/partners-api.js +15 -8
  35. package/dist/api/payments-setup-api.d.ts +4 -4
  36. package/dist/api/payments-setup-api.js +80 -40
  37. package/dist/api/product-versions-api.d.ts +4 -4
  38. package/dist/api/product-versions-api.js +56 -31
  39. package/dist/api/products-api.d.ts +9 -9
  40. package/dist/api/products-api.js +119 -68
  41. package/dist/base.d.ts +26 -0
  42. package/dist/base.js +243 -60
  43. package/dist/common.d.ts +1 -1
  44. package/dist/common.js +1 -0
  45. package/dist/configuration.d.ts +17 -0
  46. package/dist/configuration.js +2 -0
  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, {}>>;
503
+ createTemporaryDocument(requestParameters: DocumentsApiCreateTemporaryDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, 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, {}>>;
512
+ deleteDocuments(requestParameters: DocumentsApiDeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, 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, {}>>;
521
+ downloadDocument(requestParameters: DocumentsApiDownloadDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, 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, {}>>;
530
+ downloadProductDocumentUrl(requestParameters: DocumentsApiDownloadProductDocumentUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}, 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, {}>>;
539
+ listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}, 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, {}>>;
548
+ listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}, 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, {}>>;
557
+ preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
558
558
  }
@@ -103,9 +103,10 @@ 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, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
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) {
109
110
  case 0:
110
111
  // verify required parameter 'createDocumentRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createTemporaryDocument', 'createDocumentRequestDto', createDocumentRequestDto);
@@ -120,13 +121,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -153,9 +160,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
153
160
  deleteDocuments: function (leadCode, code, authorization, options) {
154
161
  if (options === void 0) { options = {}; }
155
162
  return __awaiter(_this, void 0, void 0, function () {
156
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
- return __generator(this, function (_a) {
158
- switch (_a.label) {
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) {
159
167
  case 0:
160
168
  // verify required parameter 'leadCode' is not null or undefined
161
169
  (0, common_1.assertParamExists)('deleteDocuments', 'leadCode', leadCode);
@@ -174,13 +182,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
174
182
  localVarQueryParameter = {};
175
183
  // authentication bearer required
176
184
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
178
189
  case 1:
179
190
  // authentication bearer required
180
191
  // http bearer authentication required
181
- _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
184
198
  }
185
199
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
200
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -204,9 +218,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
204
218
  downloadDocument: function (code, authorization, options) {
205
219
  if (options === void 0) { options = {}; }
206
220
  return __awaiter(_this, void 0, void 0, function () {
207
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
- return __generator(this, function (_a) {
209
- switch (_a.label) {
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) {
210
225
  case 0:
211
226
  // verify required parameter 'code' is not null or undefined
212
227
  (0, common_1.assertParamExists)('downloadDocument', 'code', code);
@@ -222,13 +237,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
222
237
  localVarQueryParameter = {};
223
238
  // authentication bearer required
224
239
  // http bearer authentication required
225
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
226
244
  case 1:
227
245
  // authentication bearer required
228
246
  // http bearer authentication required
229
- _a.sent();
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
232
253
  }
233
254
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
255
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -254,9 +275,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
254
275
  downloadProductDocumentUrl: function (productCode, code, authorization, contentDisposition, options) {
255
276
  if (options === void 0) { options = {}; }
256
277
  return __awaiter(_this, void 0, void 0, function () {
257
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
- return __generator(this, function (_a) {
259
- switch (_a.label) {
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) {
260
282
  case 0:
261
283
  // verify required parameter 'productCode' is not null or undefined
262
284
  (0, common_1.assertParamExists)('downloadProductDocumentUrl', 'productCode', productCode);
@@ -279,12 +301,15 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
279
301
  case 1:
280
302
  // authentication bearer required
281
303
  // http bearer authentication required
282
- _a.sent();
304
+ _b.sent();
283
305
  if (contentDisposition !== undefined) {
284
306
  localVarQueryParameter['contentDisposition'] = contentDisposition;
285
307
  }
286
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
287
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
288
313
  }
289
314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
290
315
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -312,9 +337,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
312
337
  listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
313
338
  if (options === void 0) { options = {}; }
314
339
  return __awaiter(_this, void 0, void 0, function () {
315
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
316
- return __generator(this, function (_a) {
317
- switch (_a.label) {
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) {
318
344
  case 0:
319
345
  // verify required parameter 'filter' is not null or undefined
320
346
  (0, common_1.assertParamExists)('listDocuments', 'filter', filter);
@@ -333,7 +359,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
333
359
  case 1:
334
360
  // authentication bearer required
335
361
  // http bearer authentication required
336
- _a.sent();
362
+ _b.sent();
337
363
  if (pageSize !== undefined) {
338
364
  localVarQueryParameter['pageSize'] = pageSize;
339
365
  }
@@ -349,8 +375,11 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
349
375
  if (expand !== undefined) {
350
376
  localVarQueryParameter['expand'] = expand;
351
377
  }
352
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
354
383
  }
355
384
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
356
385
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -381,9 +410,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
381
410
  listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
382
411
  if (options === void 0) { options = {}; }
383
412
  return __awaiter(_this, void 0, void 0, function () {
384
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
385
- return __generator(this, function (_a) {
386
- switch (_a.label) {
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) {
387
417
  case 0:
388
418
  // verify required parameter 'productCode' is not null or undefined
389
419
  (0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
@@ -403,7 +433,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
403
433
  case 1:
404
434
  // authentication bearer required
405
435
  // http bearer authentication required
406
- _a.sent();
436
+ _b.sent();
407
437
  if (pageSize !== undefined) {
408
438
  localVarQueryParameter['pageSize'] = pageSize;
409
439
  }
@@ -425,8 +455,11 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
425
455
  if (filters !== undefined) {
426
456
  localVarQueryParameter['filters'] = filters;
427
457
  }
428
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
429
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
430
463
  }
431
464
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
432
465
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -450,9 +483,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
450
483
  preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
451
484
  if (options === void 0) { options = {}; }
452
485
  return __awaiter(_this, void 0, void 0, function () {
453
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
454
- return __generator(this, function (_a) {
455
- switch (_a.label) {
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) {
456
490
  case 0:
457
491
  // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
458
492
  (0, common_1.assertParamExists)('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
@@ -467,13 +501,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
467
501
  localVarQueryParameter = {};
468
502
  // authentication bearer required
469
503
  // http bearer authentication required
470
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
471
508
  case 1:
472
509
  // authentication bearer required
473
510
  // http bearer authentication required
474
- _a.sent();
475
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
476
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
477
517
  }
478
518
  localVarHeaderParameter['Content-Type'] = 'application/json';
479
519
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -784,7 +824,7 @@ var DocumentsApi = /** @class */ (function (_super) {
784
824
  */
785
825
  DocumentsApi.prototype.createTemporaryDocument = function (requestParameters, options) {
786
826
  var _this = this;
787
- return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
827
+ return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
788
828
  };
789
829
  /**
790
830
  * 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.
@@ -796,7 +836,7 @@ var DocumentsApi = /** @class */ (function (_super) {
796
836
  */
797
837
  DocumentsApi.prototype.deleteDocuments = function (requestParameters, options) {
798
838
  var _this = this;
799
- return (0, exports.DocumentsApiFp)(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
800
840
  };
801
841
  /**
802
842
  * 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.
@@ -808,7 +848,7 @@ var DocumentsApi = /** @class */ (function (_super) {
808
848
  */
809
849
  DocumentsApi.prototype.downloadDocument = function (requestParameters, options) {
810
850
  var _this = this;
811
- return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
851
+ return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
812
852
  };
813
853
  /**
814
854
  *
@@ -820,7 +860,7 @@ var DocumentsApi = /** @class */ (function (_super) {
820
860
  */
821
861
  DocumentsApi.prototype.downloadProductDocumentUrl = function (requestParameters, options) {
822
862
  var _this = this;
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); });
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); });
824
864
  };
825
865
  /**
826
866
  * 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.
@@ -832,7 +872,7 @@ var DocumentsApi = /** @class */ (function (_super) {
832
872
  */
833
873
  DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
834
874
  var _this = this;
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); });
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); });
836
876
  };
837
877
  /**
838
878
  * 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.
@@ -844,7 +884,7 @@ var DocumentsApi = /** @class */ (function (_super) {
844
884
  */
845
885
  DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
846
886
  var _this = this;
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); });
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); });
848
888
  };
849
889
  /**
850
890
  * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
@@ -856,7 +896,7 @@ var DocumentsApi = /** @class */ (function (_super) {
856
896
  */
857
897
  DocumentsApi.prototype.preSignedPost = function (requestParameters, options) {
858
898
  var _this = this;
859
- return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
899
+ return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
860
900
  };
861
901
  return DocumentsApi;
862
902
  }(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, {}>>;
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, 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(options).then(function (request) { return request(_this.axios, _this.basePath); });
192
+ return (0, exports.HealthApiFp)(this.configuration).check(this.withOwner(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, {}>>;
96
+ validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}, any>>;
97
97
  }
@@ -103,9 +103,10 @@ 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, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
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) {
109
110
  case 0:
110
111
  // verify required parameter 'validateIbanRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('validateIban', 'validateIbanRequestDto', validateIbanRequestDto);
@@ -120,13 +121,19 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -217,7 +224,7 @@ var IBANValidatorApi = /** @class */ (function (_super) {
217
224
  */
218
225
  IBANValidatorApi.prototype.validateIban = function (requestParameters, options) {
219
226
  var _this = this;
220
- return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
227
+ return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
221
228
  };
222
229
  return IBANValidatorApi;
223
230
  }(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, {}>>;
432
+ createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, 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, {}>>;
441
+ createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any, {}, 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, {}>>;
450
+ createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, 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, {}>>;
459
+ getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any, {}, 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, {}>>;
468
+ initiateLead(requestParameters?: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}, 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, {}>>;
477
+ initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}, 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, {}>>;
486
+ updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}, 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, {}>>;
495
+ updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}, any>>;
496
496
  }