@emilgroup/accounting-sdk 1.34.1-beta.113 → 1.34.1-beta.114
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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +64 -24
- package/api/booking-entries-api.ts +40 -15
- package/api/commission-account-mappings-api.ts +64 -24
- package/api/financial-accounts-api.ts +40 -15
- package/api/financial-transactions-api.ts +16 -6
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +32 -12
- package/api/personal-accounts-api.ts +32 -12
- package/api/product-account-mappings-api.ts +377 -36
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +120 -64
- package/dist/api/booking-entries-api.d.ts +5 -5
- package/dist/api/booking-entries-api.js +67 -38
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +108 -61
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +67 -38
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +22 -14
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +52 -30
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +52 -30
- package/dist/api/product-account-mappings-api.d.ts +168 -12
- package/dist/api/product-account-mappings-api.js +401 -94
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +3 -2
- package/dist/models/account-mapping-class.js +4 -3
- package/dist/models/accounting-category-class.d.ts +12 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +3 -2
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +4 -3
- package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
- package/dist/models/create-booking-entry-request-dto.js +0 -6
- package/dist/models/create-financial-account-request-dto.d.ts +3 -2
- package/dist/models/create-financial-account-request-dto.js +4 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +12 -0
- package/dist/models/put-premium-item-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-carrier-body-dto.js +15 -0
- package/models/account-mapping-class.ts +4 -3
- package/models/accounting-category-class.ts +12 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +4 -3
- package/models/create-booking-entry-request-dto.ts +1 -7
- package/models/create-financial-account-request-dto.ts +4 -3
- package/models/index.ts +1 -0
- package/models/premium-item-account-mapping-class.ts +12 -0
- package/models/put-premium-item-carrier-body-dto.ts +30 -0
- package/package.json +2 -2
|
@@ -67,8 +67,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
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);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -115,8 +120,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
115
120
|
// http bearer authentication required
|
|
116
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
124
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
125
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
126
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
128
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
|
|
@@ -167,8 +177,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
167
177
|
localVarQueryParameter['expand'] = expand;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
181
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
183
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
185
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
|
|
@@ -243,8 +258,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
243
258
|
localVarQueryParameter['filters'] = filters;
|
|
244
259
|
}
|
|
245
260
|
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
262
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
263
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
264
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
265
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
266
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
268
|
}
|
|
249
269
|
|
|
250
270
|
|
|
@@ -291,8 +311,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
291
311
|
// http bearer authentication required
|
|
292
312
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
313
|
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
315
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
316
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
296
321
|
}
|
|
297
322
|
|
|
298
323
|
|
|
@@ -640,7 +665,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
640
665
|
* @memberof FinancialAccountsApi
|
|
641
666
|
*/
|
|
642
667
|
public createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return FinancialAccountsApiFp(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
+
return FinancialAccountsApiFp(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
644
669
|
}
|
|
645
670
|
|
|
646
671
|
/**
|
|
@@ -652,7 +677,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
652
677
|
* @memberof FinancialAccountsApi
|
|
653
678
|
*/
|
|
654
679
|
public deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
655
|
-
return FinancialAccountsApiFp(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
680
|
+
return FinancialAccountsApiFp(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
656
681
|
}
|
|
657
682
|
|
|
658
683
|
/**
|
|
@@ -664,7 +689,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
664
689
|
* @memberof FinancialAccountsApi
|
|
665
690
|
*/
|
|
666
691
|
public getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return FinancialAccountsApiFp(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
692
|
+
return FinancialAccountsApiFp(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
668
693
|
}
|
|
669
694
|
|
|
670
695
|
/**
|
|
@@ -676,7 +701,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
676
701
|
* @memberof FinancialAccountsApi
|
|
677
702
|
*/
|
|
678
703
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
-
return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(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));
|
|
680
705
|
}
|
|
681
706
|
|
|
682
707
|
/**
|
|
@@ -688,6 +713,6 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
688
713
|
* @memberof FinancialAccountsApi
|
|
689
714
|
*/
|
|
690
715
|
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
691
|
-
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
716
|
+
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
692
717
|
}
|
|
693
718
|
}
|
|
@@ -67,8 +67,13 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
67
67
|
localVarQueryParameter['expand'] = expand;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
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);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -143,8 +148,13 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
143
148
|
localVarQueryParameter['filters'] = filters;
|
|
144
149
|
}
|
|
145
150
|
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
152
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
153
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
154
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
155
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
156
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
157
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
148
158
|
}
|
|
149
159
|
|
|
150
160
|
|
|
@@ -348,7 +358,7 @@ export class FinancialTransactionsApi extends BaseAPI {
|
|
|
348
358
|
* @memberof FinancialTransactionsApi
|
|
349
359
|
*/
|
|
350
360
|
public getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig) {
|
|
351
|
-
return FinancialTransactionsApiFp(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
361
|
+
return FinancialTransactionsApiFp(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
352
362
|
}
|
|
353
363
|
|
|
354
364
|
/**
|
|
@@ -360,6 +370,6 @@ export class FinancialTransactionsApi extends BaseAPI {
|
|
|
360
370
|
* @memberof FinancialTransactionsApi
|
|
361
371
|
*/
|
|
362
372
|
public listFinancialTransactions(requestParameters: FinancialTransactionsApiListFinancialTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
363
|
-
return FinancialTransactionsApiFp(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
373
|
+
return FinancialTransactionsApiFp(this.configuration).listFinancialTransactions(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));
|
|
364
374
|
}
|
|
365
375
|
}
|
package/api/health-api.ts
CHANGED
|
@@ -119,6 +119,6 @@ export class HealthApi extends BaseAPI {
|
|
|
119
119
|
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api/number-ranges-api.ts
CHANGED
|
@@ -63,8 +63,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
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);
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
|
|
@@ -111,8 +116,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
111
116
|
// http bearer authentication required
|
|
112
117
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
118
|
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
120
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
121
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
122
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
123
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
124
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
|
|
@@ -163,8 +173,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
163
173
|
localVarQueryParameter['expand'] = expand;
|
|
164
174
|
}
|
|
165
175
|
|
|
166
|
-
|
|
167
|
-
|
|
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);
|
|
168
183
|
}
|
|
169
184
|
|
|
170
185
|
|
|
@@ -239,8 +254,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
239
254
|
localVarQueryParameter['filters'] = filters;
|
|
240
255
|
}
|
|
241
256
|
|
|
242
|
-
|
|
243
|
-
|
|
257
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
258
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
259
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
260
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
261
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
262
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
263
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
244
264
|
}
|
|
245
265
|
|
|
246
266
|
|
|
@@ -532,7 +552,7 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
532
552
|
* @memberof NumberRangesApi
|
|
533
553
|
*/
|
|
534
554
|
public createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig) {
|
|
535
|
-
return NumberRangesApiFp(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
555
|
+
return NumberRangesApiFp(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
536
556
|
}
|
|
537
557
|
|
|
538
558
|
/**
|
|
@@ -544,7 +564,7 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
544
564
|
* @memberof NumberRangesApi
|
|
545
565
|
*/
|
|
546
566
|
public deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig) {
|
|
547
|
-
return NumberRangesApiFp(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
567
|
+
return NumberRangesApiFp(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
548
568
|
}
|
|
549
569
|
|
|
550
570
|
/**
|
|
@@ -556,7 +576,7 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
556
576
|
* @memberof NumberRangesApi
|
|
557
577
|
*/
|
|
558
578
|
public getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig) {
|
|
559
|
-
return NumberRangesApiFp(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
return NumberRangesApiFp(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
560
580
|
}
|
|
561
581
|
|
|
562
582
|
/**
|
|
@@ -568,6 +588,6 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
568
588
|
* @memberof NumberRangesApi
|
|
569
589
|
*/
|
|
570
590
|
public listNumberRanges(requestParameters: NumberRangesApiListNumberRangesRequest = {}, options?: AxiosRequestConfig) {
|
|
571
|
-
return NumberRangesApiFp(this.configuration).listNumberRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
591
|
+
return NumberRangesApiFp(this.configuration).listNumberRanges(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));
|
|
572
592
|
}
|
|
573
593
|
}
|
|
@@ -63,8 +63,13 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
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);
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
|
|
@@ -111,8 +116,13 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
111
116
|
// http bearer authentication required
|
|
112
117
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
118
|
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
120
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
121
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
122
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
123
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
124
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
|
|
@@ -163,8 +173,13 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
163
173
|
localVarQueryParameter['expand'] = expand;
|
|
164
174
|
}
|
|
165
175
|
|
|
166
|
-
|
|
167
|
-
|
|
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);
|
|
168
183
|
}
|
|
169
184
|
|
|
170
185
|
|
|
@@ -239,8 +254,13 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
239
254
|
localVarQueryParameter['filters'] = filters;
|
|
240
255
|
}
|
|
241
256
|
|
|
242
|
-
|
|
243
|
-
|
|
257
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
258
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
259
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
260
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
261
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
262
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
263
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
244
264
|
}
|
|
245
265
|
|
|
246
266
|
|
|
@@ -532,7 +552,7 @@ export class PersonalAccountsApi extends BaseAPI {
|
|
|
532
552
|
* @memberof PersonalAccountsApi
|
|
533
553
|
*/
|
|
534
554
|
public createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig) {
|
|
535
|
-
return PersonalAccountsApiFp(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
555
|
+
return PersonalAccountsApiFp(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
536
556
|
}
|
|
537
557
|
|
|
538
558
|
/**
|
|
@@ -544,7 +564,7 @@ export class PersonalAccountsApi extends BaseAPI {
|
|
|
544
564
|
* @memberof PersonalAccountsApi
|
|
545
565
|
*/
|
|
546
566
|
public deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig) {
|
|
547
|
-
return PersonalAccountsApiFp(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
567
|
+
return PersonalAccountsApiFp(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
548
568
|
}
|
|
549
569
|
|
|
550
570
|
/**
|
|
@@ -556,7 +576,7 @@ export class PersonalAccountsApi extends BaseAPI {
|
|
|
556
576
|
* @memberof PersonalAccountsApi
|
|
557
577
|
*/
|
|
558
578
|
public getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig) {
|
|
559
|
-
return PersonalAccountsApiFp(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
return PersonalAccountsApiFp(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
560
580
|
}
|
|
561
581
|
|
|
562
582
|
/**
|
|
@@ -568,6 +588,6 @@ export class PersonalAccountsApi extends BaseAPI {
|
|
|
568
588
|
* @memberof PersonalAccountsApi
|
|
569
589
|
*/
|
|
570
590
|
public listPersonalAccounts(requestParameters: PersonalAccountsApiListPersonalAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
571
|
-
return PersonalAccountsApiFp(this.configuration).listPersonalAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
591
|
+
return PersonalAccountsApiFp(this.configuration).listPersonalAccounts(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));
|
|
572
592
|
}
|
|
573
593
|
}
|