@emilgroup/accounting-sdk-node 1.32.1-beta.76 → 1.32.1-beta.77
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 +2 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +32 -16
- package/api/booking-entries-api.ts +24 -14
- package/api/commission-account-mappings-api.ts +32 -16
- package/api/financial-accounts-api.ts +20 -10
- package/api/financial-transactions-api.ts +8 -4
- package/api/number-ranges-api.ts +16 -8
- package/api/personal-accounts-api.ts +16 -8
- package/api/product-account-mappings-api.ts +265 -20
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +56 -32
- package/dist/api/booking-entries-api.d.ts +9 -9
- package/dist/api/booking-entries-api.js +33 -22
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +47 -29
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +29 -18
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +22 -14
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +22 -14
- package/dist/api/product-account-mappings-api.d.ts +131 -10
- package/dist/api/product-account-mappings-api.js +261 -38
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +16 -2
- package/dist/models/booking-entry-class.js +3 -1
- package/dist/models/create-booking-entry-request-dto.d.ts +3 -2
- package/dist/models/create-booking-entry-request-dto.js +3 -2
- package/dist/models/create-financial-account-request-dto.d.ts +2 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +6 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/post-financial-event-request-dto.d.ts +3 -2
- package/dist/models/post-financial-event-request-dto.js +1 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +6 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-class.js +15 -0
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/models/account-mapping-class.ts +3 -1
- package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
- package/models/booking-entry-class.ts +17 -3
- package/models/create-booking-entry-request-dto.ts +4 -3
- package/models/create-financial-account-request-dto.ts +3 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +6 -0
- package/models/index.ts +2 -0
- package/models/post-financial-event-request-dto.ts +3 -2
- package/models/product-account-mapping-detail-class.ts +6 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/package.json +2 -2
|
@@ -108,7 +108,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -129,13 +129,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarQueryParameter = {};
|
|
130
130
|
// authentication bearer required
|
|
131
131
|
// http bearer authentication required
|
|
132
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
132
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
133
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
134
|
+
];
|
|
133
135
|
case 1:
|
|
134
136
|
// authentication bearer required
|
|
135
137
|
// http bearer authentication required
|
|
136
138
|
_a.sent();
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
140
|
+
if (authorizationValue) {
|
|
141
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
142
|
}
|
|
140
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
144
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -159,7 +162,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
159
162
|
deleteCommissionTypeAccount: function (commissionType, authorization, options) {
|
|
160
163
|
if (options === void 0) { options = {}; }
|
|
161
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
166
|
return __generator(this, function (_a) {
|
|
164
167
|
switch (_a.label) {
|
|
165
168
|
case 0:
|
|
@@ -177,13 +180,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
177
180
|
localVarQueryParameter = {};
|
|
178
181
|
// authentication bearer required
|
|
179
182
|
// http bearer authentication required
|
|
180
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
183
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
185
|
+
];
|
|
181
186
|
case 1:
|
|
182
187
|
// authentication bearer required
|
|
183
188
|
// http bearer authentication required
|
|
184
189
|
_a.sent();
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
if (authorizationValue) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
187
193
|
}
|
|
188
194
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
189
195
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -207,7 +213,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
207
213
|
getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
|
|
208
214
|
if (options === void 0) { options = {}; }
|
|
209
215
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
216
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
211
217
|
return __generator(this, function (_a) {
|
|
212
218
|
switch (_a.label) {
|
|
213
219
|
case 0:
|
|
@@ -225,13 +231,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
225
231
|
localVarQueryParameter = {};
|
|
226
232
|
// authentication bearer required
|
|
227
233
|
// http bearer authentication required
|
|
228
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
234
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
235
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
236
|
+
];
|
|
229
237
|
case 1:
|
|
230
238
|
// authentication bearer required
|
|
231
239
|
// http bearer authentication required
|
|
232
240
|
_a.sent();
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
242
|
+
if (authorizationValue) {
|
|
243
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
235
244
|
}
|
|
236
245
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
237
246
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -261,7 +270,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
261
270
|
listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
262
271
|
if (options === void 0) { options = {}; }
|
|
263
272
|
return __awaiter(_this, void 0, void 0, function () {
|
|
264
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
273
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
265
274
|
return __generator(this, function (_a) {
|
|
266
275
|
switch (_a.label) {
|
|
267
276
|
case 0:
|
|
@@ -302,8 +311,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
302
311
|
if (filters !== undefined) {
|
|
303
312
|
localVarQueryParameter['filters'] = filters;
|
|
304
313
|
}
|
|
305
|
-
|
|
306
|
-
|
|
314
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
315
|
+
if (authorizationValue) {
|
|
316
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
307
317
|
}
|
|
308
318
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
309
319
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -333,7 +343,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
333
343
|
listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
334
344
|
if (options === void 0) { options = {}; }
|
|
335
345
|
return __awaiter(_this, void 0, void 0, function () {
|
|
336
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
346
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
337
347
|
return __generator(this, function (_a) {
|
|
338
348
|
switch (_a.label) {
|
|
339
349
|
case 0:
|
|
@@ -374,8 +384,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
374
384
|
if (filters !== undefined) {
|
|
375
385
|
localVarQueryParameter['filters'] = filters;
|
|
376
386
|
}
|
|
377
|
-
|
|
378
|
-
|
|
387
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
388
|
+
if (authorizationValue) {
|
|
389
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
379
390
|
}
|
|
380
391
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
381
392
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -405,7 +416,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
405
416
|
listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
406
417
|
if (options === void 0) { options = {}; }
|
|
407
418
|
return __awaiter(_this, void 0, void 0, function () {
|
|
408
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
419
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
409
420
|
return __generator(this, function (_a) {
|
|
410
421
|
switch (_a.label) {
|
|
411
422
|
case 0:
|
|
@@ -446,8 +457,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
446
457
|
if (filters !== undefined) {
|
|
447
458
|
localVarQueryParameter['filters'] = filters;
|
|
448
459
|
}
|
|
449
|
-
|
|
450
|
-
|
|
460
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
461
|
+
if (authorizationValue) {
|
|
462
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
451
463
|
}
|
|
452
464
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
453
465
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -473,7 +485,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
473
485
|
updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
|
|
474
486
|
if (options === void 0) { options = {}; }
|
|
475
487
|
return __awaiter(_this, void 0, void 0, function () {
|
|
476
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
488
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
477
489
|
return __generator(this, function (_a) {
|
|
478
490
|
switch (_a.label) {
|
|
479
491
|
case 0:
|
|
@@ -496,13 +508,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
496
508
|
localVarQueryParameter = {};
|
|
497
509
|
// authentication bearer required
|
|
498
510
|
// http bearer authentication required
|
|
499
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
511
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
512
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
513
|
+
];
|
|
500
514
|
case 1:
|
|
501
515
|
// authentication bearer required
|
|
502
516
|
// http bearer authentication required
|
|
503
517
|
_a.sent();
|
|
504
|
-
|
|
505
|
-
|
|
518
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
519
|
+
if (authorizationValue) {
|
|
520
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
506
521
|
}
|
|
507
522
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
508
523
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -529,7 +544,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
529
544
|
updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
|
|
530
545
|
if (options === void 0) { options = {}; }
|
|
531
546
|
return __awaiter(_this, void 0, void 0, function () {
|
|
532
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
547
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
533
548
|
return __generator(this, function (_a) {
|
|
534
549
|
switch (_a.label) {
|
|
535
550
|
case 0:
|
|
@@ -549,13 +564,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
549
564
|
localVarQueryParameter = {};
|
|
550
565
|
// authentication bearer required
|
|
551
566
|
// http bearer authentication required
|
|
552
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
567
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
568
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
569
|
+
];
|
|
553
570
|
case 1:
|
|
554
571
|
// authentication bearer required
|
|
555
572
|
// http bearer authentication required
|
|
556
573
|
_a.sent();
|
|
557
|
-
|
|
558
|
-
|
|
574
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
575
|
+
if (authorizationValue) {
|
|
576
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
559
577
|
}
|
|
560
578
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
561
579
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -353,7 +353,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof FinancialAccountsApi
|
|
355
355
|
*/
|
|
356
|
-
createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}>>;
|
|
356
|
+
createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}, any>>;
|
|
357
357
|
/**
|
|
358
358
|
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
359
359
|
* @summary Delete the Financial Account
|
|
@@ -362,7 +362,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof FinancialAccountsApi
|
|
364
364
|
*/
|
|
365
|
-
deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
365
|
+
deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
366
366
|
/**
|
|
367
367
|
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
368
368
|
* @summary Retrieve the Financial Account
|
|
@@ -371,7 +371,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof FinancialAccountsApi
|
|
373
373
|
*/
|
|
374
|
-
getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}>>;
|
|
374
|
+
getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}, any>>;
|
|
375
375
|
/**
|
|
376
376
|
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
377
377
|
* @summary List Financial Accounts
|
|
@@ -380,7 +380,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof FinancialAccountsApi
|
|
382
382
|
*/
|
|
383
|
-
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
|
|
383
|
+
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}, any>>;
|
|
384
384
|
/**
|
|
385
385
|
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
386
386
|
* @summary Update the Financial Account
|
|
@@ -389,5 +389,5 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
* @memberof FinancialAccountsApi
|
|
391
391
|
*/
|
|
392
|
-
updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}>>;
|
|
392
|
+
updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}, any>>;
|
|
393
393
|
}
|
|
@@ -107,7 +107,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
deleteFinancialAccount: function (code, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,13 +177,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarQueryParameter = {};
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -205,7 +211,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
205
211
|
getFinancialAccount: function (code, expand, authorization, options) {
|
|
206
212
|
if (options === void 0) { options = {}; }
|
|
207
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
209
215
|
return __generator(this, function (_a) {
|
|
210
216
|
switch (_a.label) {
|
|
211
217
|
case 0:
|
|
@@ -233,8 +239,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
233
239
|
if (expand !== undefined) {
|
|
234
240
|
localVarQueryParameter['expand'] = expand;
|
|
235
241
|
}
|
|
236
|
-
|
|
237
|
-
|
|
242
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
243
|
+
if (authorizationValue) {
|
|
244
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
238
245
|
}
|
|
239
246
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
240
247
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -264,7 +271,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
264
271
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
265
272
|
if (options === void 0) { options = {}; }
|
|
266
273
|
return __awaiter(_this, void 0, void 0, function () {
|
|
267
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
274
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
268
275
|
return __generator(this, function (_a) {
|
|
269
276
|
switch (_a.label) {
|
|
270
277
|
case 0:
|
|
@@ -305,8 +312,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
305
312
|
if (filters !== undefined) {
|
|
306
313
|
localVarQueryParameter['filters'] = filters;
|
|
307
314
|
}
|
|
308
|
-
|
|
309
|
-
|
|
315
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
316
|
+
if (authorizationValue) {
|
|
317
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
310
318
|
}
|
|
311
319
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
320
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -331,7 +339,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
331
339
|
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
332
340
|
if (options === void 0) { options = {}; }
|
|
333
341
|
return __awaiter(_this, void 0, void 0, function () {
|
|
334
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
342
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
335
343
|
return __generator(this, function (_a) {
|
|
336
344
|
switch (_a.label) {
|
|
337
345
|
case 0:
|
|
@@ -351,13 +359,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
351
359
|
localVarQueryParameter = {};
|
|
352
360
|
// authentication bearer required
|
|
353
361
|
// http bearer authentication required
|
|
354
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
362
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
363
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
364
|
+
];
|
|
355
365
|
case 1:
|
|
356
366
|
// authentication bearer required
|
|
357
367
|
// http bearer authentication required
|
|
358
368
|
_a.sent();
|
|
359
|
-
|
|
360
|
-
|
|
369
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
370
|
+
if (authorizationValue) {
|
|
371
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
361
372
|
}
|
|
362
373
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
363
374
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -202,7 +202,7 @@ export declare class FinancialTransactionsApi extends BaseAPI {
|
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
* @memberof FinancialTransactionsApi
|
|
204
204
|
*/
|
|
205
|
-
getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}>>;
|
|
205
|
+
getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}, any>>;
|
|
206
206
|
/**
|
|
207
207
|
* This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
|
|
208
208
|
* @summary List financial transactions
|
|
@@ -211,5 +211,5 @@ export declare class FinancialTransactionsApi extends BaseAPI {
|
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
* @memberof FinancialTransactionsApi
|
|
213
213
|
*/
|
|
214
|
-
listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}>>;
|
|
214
|
+
listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}, any>>;
|
|
215
215
|
}
|
|
@@ -108,7 +108,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
getFinancialTransaction: function (code, expand, authorization, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -136,8 +136,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
if (expand !== undefined) {
|
|
137
137
|
localVarQueryParameter['expand'] = expand;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
140
|
+
if (authorizationValue) {
|
|
141
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
141
142
|
}
|
|
142
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
143
144
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -167,7 +168,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
167
168
|
listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
168
169
|
if (options === void 0) { options = {}; }
|
|
169
170
|
return __awaiter(_this, void 0, void 0, function () {
|
|
170
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
171
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
171
172
|
return __generator(this, function (_a) {
|
|
172
173
|
switch (_a.label) {
|
|
173
174
|
case 0:
|
|
@@ -208,8 +209,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
208
209
|
if (filters !== undefined) {
|
|
209
210
|
localVarQueryParameter['filters'] = filters;
|
|
210
211
|
}
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
213
|
+
if (authorizationValue) {
|
|
214
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
213
215
|
}
|
|
214
216
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
215
217
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/dist/api/health-api.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
|
|
70
70
|
}
|
|
@@ -296,7 +296,7 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
296
296
|
* @throws {RequiredError}
|
|
297
297
|
* @memberof NumberRangesApi
|
|
298
298
|
*/
|
|
299
|
-
createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}>>;
|
|
299
|
+
createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}, any>>;
|
|
300
300
|
/**
|
|
301
301
|
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.transactions.delete\"
|
|
302
302
|
* @summary Delete the Personal Account
|
|
@@ -305,7 +305,7 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
305
305
|
* @throws {RequiredError}
|
|
306
306
|
* @memberof NumberRangesApi
|
|
307
307
|
*/
|
|
308
|
-
deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
308
|
+
deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
309
309
|
/**
|
|
310
310
|
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.transactions.view\"
|
|
311
311
|
* @summary Retrieve the Financial Account
|
|
@@ -314,7 +314,7 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
314
314
|
* @throws {RequiredError}
|
|
315
315
|
* @memberof NumberRangesApi
|
|
316
316
|
*/
|
|
317
|
-
getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}>>;
|
|
317
|
+
getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}, any>>;
|
|
318
318
|
/**
|
|
319
319
|
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.transactions.view\"
|
|
320
320
|
* @summary List Financial Accounts
|
|
@@ -323,5 +323,5 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
* @memberof NumberRangesApi
|
|
325
325
|
*/
|
|
326
|
-
listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}>>;
|
|
326
|
+
listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}, any>>;
|
|
327
327
|
}
|
|
@@ -107,7 +107,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
deleteNumberRange: function (code, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,13 +177,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarQueryParameter = {};
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -205,7 +211,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
205
211
|
getNumberRange: function (code, expand, authorization, options) {
|
|
206
212
|
if (options === void 0) { options = {}; }
|
|
207
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
209
215
|
return __generator(this, function (_a) {
|
|
210
216
|
switch (_a.label) {
|
|
211
217
|
case 0:
|
|
@@ -233,8 +239,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
233
239
|
if (expand !== undefined) {
|
|
234
240
|
localVarQueryParameter['expand'] = expand;
|
|
235
241
|
}
|
|
236
|
-
|
|
237
|
-
|
|
242
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
243
|
+
if (authorizationValue) {
|
|
244
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
238
245
|
}
|
|
239
246
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
240
247
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -264,7 +271,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
264
271
|
listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
265
272
|
if (options === void 0) { options = {}; }
|
|
266
273
|
return __awaiter(_this, void 0, void 0, function () {
|
|
267
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
274
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
268
275
|
return __generator(this, function (_a) {
|
|
269
276
|
switch (_a.label) {
|
|
270
277
|
case 0:
|
|
@@ -305,8 +312,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
305
312
|
if (filters !== undefined) {
|
|
306
313
|
localVarQueryParameter['filters'] = filters;
|
|
307
314
|
}
|
|
308
|
-
|
|
309
|
-
|
|
315
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
316
|
+
if (authorizationValue) {
|
|
317
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
310
318
|
}
|
|
311
319
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
320
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|