@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
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/public-api-sdk@1.40.1-beta.26 --save
20
+ npm install @emilgroup/public-api-sdk@1.40.1-beta.28 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk@1.40.1-beta.26
24
+ yarn add @emilgroup/public-api-sdk@1.40.1-beta.28
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -73,13 +73,8 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
73
73
  localVarQueryParameter['limit'] = limit;
74
74
  }
75
75
 
76
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
79
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
80
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
- if (authorizationValue || authorizationKeepEmpty) {
82
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
83
78
  }
84
79
 
85
80
 
@@ -164,13 +159,8 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
164
159
  localVarQueryParameter['limit'] = limit;
165
160
  }
166
161
 
167
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
168
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
169
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
170
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
171
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
172
- if (authorizationValue || authorizationKeepEmpty) {
173
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
162
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
163
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
164
  }
175
165
 
176
166
 
@@ -383,7 +373,7 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
383
373
  * @memberof AddressCompletionsValidationsApi
384
374
  */
385
375
  public listAddressCompletions(requestParameters: AddressCompletionsValidationsApiListAddressCompletionsRequest, options?: AxiosRequestConfig) {
386
- return AddressCompletionsValidationsApiFp(this.configuration).listAddressCompletions(requestParameters.partialAddress, requestParameters.authorization, requestParameters.country, requestParameters.limit, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
376
+ return AddressCompletionsValidationsApiFp(this.configuration).listAddressCompletions(requestParameters.partialAddress, requestParameters.authorization, requestParameters.country, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
387
377
  }
388
378
 
389
379
  /**
@@ -395,6 +385,6 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
395
385
  * @memberof AddressCompletionsValidationsApi
396
386
  */
397
387
  public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
398
- return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, requestParameters.limit, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
388
+ return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
399
389
  }
400
390
  }
@@ -63,13 +63,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
63
63
  localVarQueryParameter['language'] = language;
64
64
  }
65
65
 
66
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
67
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
68
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
69
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
70
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
71
- if (authorizationValue || authorizationKeepEmpty) {
72
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
68
  }
74
69
 
75
70
 
@@ -175,6 +170,6 @@ export class BookingFunnelsApi extends BaseAPI {
175
170
  * @memberof BookingFunnelsApi
176
171
  */
177
172
  public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
178
- return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
173
+ return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
179
174
  }
180
175
  }
@@ -69,13 +69,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
73
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
74
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
75
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
76
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
77
- if (authorizationValue || authorizationKeepEmpty) {
78
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
79
74
  }
80
75
 
81
76
 
@@ -126,13 +121,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
126
121
  // http bearer authentication required
127
122
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
123
 
129
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
132
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
133
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
134
- if (authorizationValue || authorizationKeepEmpty) {
135
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
126
  }
137
127
 
138
128
 
@@ -176,13 +166,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
176
166
  // http bearer authentication required
177
167
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
168
 
179
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
180
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
181
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
182
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
183
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
184
- if (authorizationValue || authorizationKeepEmpty) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
171
  }
187
172
 
188
173
 
@@ -235,13 +220,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
235
220
  localVarQueryParameter['contentDisposition'] = contentDisposition;
236
221
  }
237
222
 
238
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
239
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
240
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
241
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
242
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
243
- if (authorizationValue || authorizationKeepEmpty) {
244
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
223
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
225
  }
246
226
 
247
227
 
@@ -308,13 +288,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
308
288
  localVarQueryParameter['expand'] = expand;
309
289
  }
310
290
 
311
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
312
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
313
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
314
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
315
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
316
- if (authorizationValue || authorizationKeepEmpty) {
317
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
291
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
292
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
318
293
  }
319
294
 
320
295
 
@@ -393,13 +368,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
393
368
  localVarQueryParameter['filters'] = filters;
394
369
  }
395
370
 
396
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
397
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
398
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
399
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
400
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
401
- if (authorizationValue || authorizationKeepEmpty) {
402
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
371
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
372
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
403
373
  }
404
374
 
405
375
 
@@ -442,13 +412,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
442
412
  // http bearer authentication required
443
413
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
444
414
 
445
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
446
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
447
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
448
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
449
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
450
- if (authorizationValue || authorizationKeepEmpty) {
451
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
415
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
416
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
452
417
  }
453
418
 
454
419
 
@@ -938,7 +903,7 @@ export class DocumentsApi extends BaseAPI {
938
903
  * @memberof DocumentsApi
939
904
  */
940
905
  public createTemporaryDocument(requestParameters: DocumentsApiCreateTemporaryDocumentRequest, options?: AxiosRequestConfig) {
941
- return DocumentsApiFp(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
906
+ return DocumentsApiFp(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
942
907
  }
943
908
 
944
909
  /**
@@ -950,7 +915,7 @@ export class DocumentsApi extends BaseAPI {
950
915
  * @memberof DocumentsApi
951
916
  */
952
917
  public deleteDocuments(requestParameters: DocumentsApiDeleteDocumentsRequest, options?: AxiosRequestConfig) {
953
- return DocumentsApiFp(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
918
+ return DocumentsApiFp(this.configuration).deleteDocuments(requestParameters.leadCode, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
954
919
  }
955
920
 
956
921
  /**
@@ -962,7 +927,7 @@ export class DocumentsApi extends BaseAPI {
962
927
  * @memberof DocumentsApi
963
928
  */
964
929
  public downloadDocument(requestParameters: DocumentsApiDownloadDocumentRequest, options?: AxiosRequestConfig) {
965
- return DocumentsApiFp(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
930
+ return DocumentsApiFp(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
966
931
  }
967
932
 
968
933
  /**
@@ -974,7 +939,7 @@ export class DocumentsApi extends BaseAPI {
974
939
  * @memberof DocumentsApi
975
940
  */
976
941
  public downloadProductDocumentUrl(requestParameters: DocumentsApiDownloadProductDocumentUrlRequest, options?: AxiosRequestConfig) {
977
- return DocumentsApiFp(this.configuration).downloadProductDocumentUrl(requestParameters.productCode, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
942
+ return DocumentsApiFp(this.configuration).downloadProductDocumentUrl(requestParameters.productCode, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then((request) => request(this.axios, this.basePath));
978
943
  }
979
944
 
980
945
  /**
@@ -986,7 +951,7 @@ export class DocumentsApi extends BaseAPI {
986
951
  * @memberof DocumentsApi
987
952
  */
988
953
  public listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig) {
989
- return DocumentsApiFp(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
954
+ return DocumentsApiFp(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
990
955
  }
991
956
 
992
957
  /**
@@ -998,7 +963,7 @@ export class DocumentsApi extends BaseAPI {
998
963
  * @memberof DocumentsApi
999
964
  */
1000
965
  public listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
1001
- return 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((request) => request(this.axios, this.basePath));
966
+ return DocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1002
967
  }
1003
968
 
1004
969
  /**
@@ -1010,6 +975,6 @@ export class DocumentsApi extends BaseAPI {
1010
975
  * @memberof DocumentsApi
1011
976
  */
1012
977
  public preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig) {
1013
- return DocumentsApiFp(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
978
+ return DocumentsApiFp(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1014
979
  }
1015
980
  }
package/api/health-api.ts CHANGED
@@ -115,6 +115,6 @@ export class HealthApi extends BaseAPI {
115
115
  * @memberof HealthApi
116
116
  */
117
117
  public check(options?: AxiosRequestConfig) {
118
- return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
118
+ return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
119
  }
120
120
  }
@@ -59,13 +59,8 @@ export const IBANValidatorApiAxiosParamCreator = function (configuration?: Confi
59
59
  // http bearer authentication required
60
60
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
61
 
62
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
63
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
64
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
65
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
66
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
67
- if (authorizationValue || authorizationKeepEmpty) {
68
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
62
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
64
  }
70
65
 
71
66
 
@@ -165,6 +160,6 @@ export class IBANValidatorApi extends BaseAPI {
165
160
  * @memberof IBANValidatorApi
166
161
  */
167
162
  public validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig) {
168
- return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
163
+ return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
169
164
  }
170
165
  }
package/api/leads-api.ts CHANGED
@@ -69,13 +69,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
73
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
74
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
75
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
76
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
77
- if (authorizationValue || authorizationKeepEmpty) {
78
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
79
74
  }
80
75
 
81
76
 
@@ -121,13 +116,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
121
116
  // http bearer authentication required
122
117
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
118
 
124
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
125
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
126
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
127
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
128
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
129
- if (authorizationValue || authorizationKeepEmpty) {
130
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
119
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
120
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
121
  }
132
122
 
133
123
 
@@ -173,13 +163,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
173
163
  // http bearer authentication required
174
164
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
175
165
 
176
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
177
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
178
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
179
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
180
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
181
- if (authorizationValue || authorizationKeepEmpty) {
182
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
168
  }
184
169
 
185
170
 
@@ -226,13 +211,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
226
211
  // http bearer authentication required
227
212
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
228
213
 
229
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
230
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
231
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
232
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
233
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
234
- if (authorizationValue || authorizationKeepEmpty) {
235
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
214
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
216
  }
237
217
 
238
218
 
@@ -272,13 +252,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
272
252
  // http bearer authentication required
273
253
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
274
254
 
275
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
276
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
277
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
278
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
279
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
280
- if (authorizationValue || authorizationKeepEmpty) {
281
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
255
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
256
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
282
257
  }
283
258
 
284
259
 
@@ -322,13 +297,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
322
297
  // http bearer authentication required
323
298
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
324
299
 
325
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
326
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
327
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
328
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
329
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
330
- if (authorizationValue || authorizationKeepEmpty) {
331
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
332
302
  }
333
303
 
334
304
 
@@ -375,13 +345,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
375
345
  // http bearer authentication required
376
346
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
377
347
 
378
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
379
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
380
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
381
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
382
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
383
- if (authorizationValue || authorizationKeepEmpty) {
384
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
348
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
349
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
385
350
  }
386
351
 
387
352
 
@@ -431,13 +396,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
431
396
  // http bearer authentication required
432
397
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
433
398
 
434
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
435
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
436
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
437
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
438
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
439
- if (authorizationValue || authorizationKeepEmpty) {
440
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
399
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
400
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
441
401
  }
442
402
 
443
403
 
@@ -854,7 +814,7 @@ export class LeadsApi extends BaseAPI {
854
814
  * @memberof LeadsApi
855
815
  */
856
816
  public createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig) {
857
- return LeadsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
817
+ return LeadsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
858
818
  }
859
819
 
860
820
  /**
@@ -866,7 +826,7 @@ export class LeadsApi extends BaseAPI {
866
826
  * @memberof LeadsApi
867
827
  */
868
828
  public createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig) {
869
- return LeadsApiFp(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
829
+ return LeadsApiFp(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
870
830
  }
871
831
 
872
832
  /**
@@ -878,7 +838,7 @@ export class LeadsApi extends BaseAPI {
878
838
  * @memberof LeadsApi
879
839
  */
880
840
  public createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig) {
881
- return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
841
+ return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
882
842
  }
883
843
 
884
844
  /**
@@ -890,7 +850,7 @@ export class LeadsApi extends BaseAPI {
890
850
  * @memberof LeadsApi
891
851
  */
892
852
  public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
893
- return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
853
+ return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
894
854
  }
895
855
 
896
856
  /**
@@ -902,7 +862,7 @@ export class LeadsApi extends BaseAPI {
902
862
  * @memberof LeadsApi
903
863
  */
904
864
  public initiateLead(requestParameters: LeadsApiInitiateLeadRequest = {}, options?: AxiosRequestConfig) {
905
- return LeadsApiFp(this.configuration).initiateLead(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
865
+ return LeadsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
906
866
  }
907
867
 
908
868
  /**
@@ -914,7 +874,7 @@ export class LeadsApi extends BaseAPI {
914
874
  * @memberof LeadsApi
915
875
  */
916
876
  public initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig) {
917
- return LeadsApiFp(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
877
+ return LeadsApiFp(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
918
878
  }
919
879
 
920
880
  /**
@@ -926,7 +886,7 @@ export class LeadsApi extends BaseAPI {
926
886
  * @memberof LeadsApi
927
887
  */
928
888
  public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
929
- return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
889
+ return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
930
890
  }
931
891
 
932
892
  /**
@@ -938,6 +898,6 @@ export class LeadsApi extends BaseAPI {
938
898
  * @memberof LeadsApi
939
899
  */
940
900
  public updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig) {
941
- return LeadsApiFp(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
901
+ return LeadsApiFp(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
942
902
  }
943
903
  }
@@ -98,13 +98,8 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
98
98
  localVarQueryParameter['order'] = order;
99
99
  }
100
100
 
101
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
102
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
103
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
104
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
105
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
106
- if (authorizationValue || authorizationKeepEmpty) {
107
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
101
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
102
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
108
103
  }
109
104
 
110
105
 
@@ -264,6 +259,6 @@ export class NamedRangesApi extends BaseAPI {
264
259
  * @memberof NamedRangesApi
265
260
  */
266
261
  public filterNamedRange(requestParameters: NamedRangesApiFilterNamedRangeRequest, options?: AxiosRequestConfig) {
267
- return NamedRangesApiFp(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
262
+ return NamedRangesApiFp(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then((request) => request(this.axios, this.basePath));
268
263
  }
269
264
  }
@@ -67,13 +67,8 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
- if (authorizationValue || authorizationKeepEmpty) {
76
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
72
  }
78
73
 
79
74
 
@@ -119,13 +114,8 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
119
114
  // http bearer authentication required
120
115
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
116
 
122
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
123
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
124
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
125
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
126
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
127
- if (authorizationValue || authorizationKeepEmpty) {
128
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
117
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
119
  }
130
120
 
131
121
 
@@ -171,13 +161,8 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
171
161
  // http bearer authentication required
172
162
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
173
163
 
174
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
175
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
176
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
177
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
178
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
179
- if (authorizationValue || authorizationKeepEmpty) {
180
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
164
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
165
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
166
  }
182
167
 
183
168
 
@@ -365,7 +350,7 @@ export class NotificationsApi extends BaseAPI {
365
350
  * @memberof NotificationsApi
366
351
  */
367
352
  public completeEmailVerification(requestParameters: NotificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig) {
368
- return NotificationsApiFp(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
353
+ return NotificationsApiFp(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
369
354
  }
370
355
 
371
356
  /**
@@ -377,7 +362,7 @@ export class NotificationsApi extends BaseAPI {
377
362
  * @memberof NotificationsApi
378
363
  */
379
364
  public initiateEmailVerification(requestParameters: NotificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig) {
380
- return NotificationsApiFp(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
365
+ return NotificationsApiFp(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
381
366
  }
382
367
 
383
368
  /**
@@ -389,6 +374,6 @@ export class NotificationsApi extends BaseAPI {
389
374
  * @memberof NotificationsApi
390
375
  */
391
376
  public sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig) {
392
- return NotificationsApiFp(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
377
+ return NotificationsApiFp(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
393
378
  }
394
379
  }