@emilgroup/accounting-sdk-node 1.32.1-beta.75 → 1.32.1-beta.76
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 +0 -2
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +16 -32
- package/api/booking-entries-api.ts +14 -24
- package/api/commission-account-mappings-api.ts +16 -32
- package/api/financial-accounts-api.ts +10 -20
- package/api/financial-transactions-api.ts +4 -8
- package/api/number-ranges-api.ts +8 -16
- package/api/personal-accounts-api.ts +8 -16
- package/api/product-account-mappings-api.ts +20 -265
- package/common.ts +2 -3
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +32 -56
- package/dist/api/booking-entries-api.d.ts +9 -9
- package/dist/api/booking-entries-api.js +22 -33
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +29 -47
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +18 -29
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +6 -8
- 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 +14 -22
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +14 -22
- package/dist/api/product-account-mappings-api.d.ts +10 -131
- package/dist/api/product-account-mappings-api.js +38 -261
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/models/account-mapping-class.d.ts +0 -2
- package/dist/models/account-mapping-class.js +1 -3
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -2
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +1 -3
- package/dist/models/booking-entry-class.d.ts +2 -16
- package/dist/models/booking-entry-class.js +1 -3
- package/dist/models/create-booking-entry-request-dto.d.ts +2 -3
- package/dist/models/create-booking-entry-request-dto.js +2 -3
- package/dist/models/create-financial-account-request-dto.d.ts +0 -2
- package/dist/models/create-financial-account-request-dto.js +1 -3
- package/dist/models/financial-transaction-class.d.ts +0 -6
- package/dist/models/financial-transaction-data-dto.d.ts +0 -6
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/dist/models/post-financial-event-request-dto.d.ts +2 -3
- package/dist/models/post-financial-event-request-dto.js +0 -1
- package/dist/models/product-account-mapping-detail-class.d.ts +0 -6
- package/models/account-mapping-class.ts +1 -3
- package/models/accounting-config-data-dto-default-account-mappings.ts +1 -3
- package/models/booking-entry-class.ts +3 -17
- package/models/create-booking-entry-request-dto.ts +3 -4
- package/models/create-financial-account-request-dto.ts +1 -3
- package/models/financial-transaction-class.ts +0 -6
- package/models/financial-transaction-data-dto.ts +0 -6
- package/models/index.ts +0 -2
- package/models/post-financial-event-request-dto.ts +2 -3
- package/models/product-account-mapping-detail-class.ts +0 -6
- package/package.json +2 -2
- package/dist/models/product-risk-carrier-class.d.ts +0 -42
- package/dist/models/product-risk-carrier-class.js +0 -15
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
- package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
- package/models/product-risk-carrier-class.ts +0 -48
- package/models/put-product-risk-carrier-body-dto.ts +0 -30
|
@@ -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,
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -129,16 +129,13 @@ 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)
|
|
133
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
134
|
-
];
|
|
132
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
135
133
|
case 1:
|
|
136
134
|
// authentication bearer required
|
|
137
135
|
// http bearer authentication required
|
|
138
136
|
_a.sent();
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
138
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
142
139
|
}
|
|
143
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
141
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -162,7 +159,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
162
159
|
deleteCommissionTypeAccount: function (commissionType, authorization, options) {
|
|
163
160
|
if (options === void 0) { options = {}; }
|
|
164
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
165
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
163
|
return __generator(this, function (_a) {
|
|
167
164
|
switch (_a.label) {
|
|
168
165
|
case 0:
|
|
@@ -180,16 +177,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
180
177
|
localVarQueryParameter = {};
|
|
181
178
|
// authentication bearer required
|
|
182
179
|
// http bearer authentication required
|
|
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
|
-
];
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
186
181
|
case 1:
|
|
187
182
|
// authentication bearer required
|
|
188
183
|
// http bearer authentication required
|
|
189
184
|
_a.sent();
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
185
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
193
187
|
}
|
|
194
188
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
195
189
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -213,7 +207,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
213
207
|
getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
|
|
214
208
|
if (options === void 0) { options = {}; }
|
|
215
209
|
return __awaiter(_this, void 0, void 0, function () {
|
|
216
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
210
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
211
|
return __generator(this, function (_a) {
|
|
218
212
|
switch (_a.label) {
|
|
219
213
|
case 0:
|
|
@@ -231,16 +225,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
231
225
|
localVarQueryParameter = {};
|
|
232
226
|
// authentication bearer required
|
|
233
227
|
// http bearer authentication required
|
|
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
|
-
];
|
|
228
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
237
229
|
case 1:
|
|
238
230
|
// authentication bearer required
|
|
239
231
|
// http bearer authentication required
|
|
240
232
|
_a.sent();
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
233
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
234
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
244
235
|
}
|
|
245
236
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
246
237
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -270,7 +261,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
270
261
|
listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
271
262
|
if (options === void 0) { options = {}; }
|
|
272
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
273
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
264
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
274
265
|
return __generator(this, function (_a) {
|
|
275
266
|
switch (_a.label) {
|
|
276
267
|
case 0:
|
|
@@ -311,9 +302,8 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
311
302
|
if (filters !== undefined) {
|
|
312
303
|
localVarQueryParameter['filters'] = filters;
|
|
313
304
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
305
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
306
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
317
307
|
}
|
|
318
308
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
319
309
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -343,7 +333,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
343
333
|
listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
344
334
|
if (options === void 0) { options = {}; }
|
|
345
335
|
return __awaiter(_this, void 0, void 0, function () {
|
|
346
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
336
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
347
337
|
return __generator(this, function (_a) {
|
|
348
338
|
switch (_a.label) {
|
|
349
339
|
case 0:
|
|
@@ -384,9 +374,8 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
384
374
|
if (filters !== undefined) {
|
|
385
375
|
localVarQueryParameter['filters'] = filters;
|
|
386
376
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
377
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
378
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
390
379
|
}
|
|
391
380
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
392
381
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -416,7 +405,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
416
405
|
listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
417
406
|
if (options === void 0) { options = {}; }
|
|
418
407
|
return __awaiter(_this, void 0, void 0, function () {
|
|
419
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
408
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
420
409
|
return __generator(this, function (_a) {
|
|
421
410
|
switch (_a.label) {
|
|
422
411
|
case 0:
|
|
@@ -457,9 +446,8 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
457
446
|
if (filters !== undefined) {
|
|
458
447
|
localVarQueryParameter['filters'] = filters;
|
|
459
448
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
449
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
450
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
463
451
|
}
|
|
464
452
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
465
453
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -485,7 +473,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
485
473
|
updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
|
|
486
474
|
if (options === void 0) { options = {}; }
|
|
487
475
|
return __awaiter(_this, void 0, void 0, function () {
|
|
488
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
476
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
489
477
|
return __generator(this, function (_a) {
|
|
490
478
|
switch (_a.label) {
|
|
491
479
|
case 0:
|
|
@@ -508,16 +496,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
508
496
|
localVarQueryParameter = {};
|
|
509
497
|
// authentication bearer required
|
|
510
498
|
// http bearer authentication required
|
|
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
|
-
];
|
|
499
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
514
500
|
case 1:
|
|
515
501
|
// authentication bearer required
|
|
516
502
|
// http bearer authentication required
|
|
517
503
|
_a.sent();
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
504
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
505
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
521
506
|
}
|
|
522
507
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
523
508
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -544,7 +529,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
544
529
|
updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
|
|
545
530
|
if (options === void 0) { options = {}; }
|
|
546
531
|
return __awaiter(_this, void 0, void 0, function () {
|
|
547
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
532
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
548
533
|
return __generator(this, function (_a) {
|
|
549
534
|
switch (_a.label) {
|
|
550
535
|
case 0:
|
|
@@ -564,16 +549,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
564
549
|
localVarQueryParameter = {};
|
|
565
550
|
// authentication bearer required
|
|
566
551
|
// http bearer authentication required
|
|
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
|
-
];
|
|
552
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
570
553
|
case 1:
|
|
571
554
|
// authentication bearer required
|
|
572
555
|
// http bearer authentication required
|
|
573
556
|
_a.sent();
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
557
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
558
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
577
559
|
}
|
|
578
560
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
579
561
|
(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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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,
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,16 +124,13 @@ 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)
|
|
128
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
130
128
|
case 1:
|
|
131
129
|
// authentication bearer required
|
|
132
130
|
// http bearer authentication required
|
|
133
131
|
_a.sent();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
134
|
}
|
|
138
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,7 +156,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
159
156
|
deleteFinancialAccount: function (code, authorization, options) {
|
|
160
157
|
if (options === void 0) { options = {}; }
|
|
161
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
160
|
return __generator(this, function (_a) {
|
|
164
161
|
switch (_a.label) {
|
|
165
162
|
case 0:
|
|
@@ -177,16 +174,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
177
174
|
localVarQueryParameter = {};
|
|
178
175
|
// authentication bearer required
|
|
179
176
|
// http bearer authentication required
|
|
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
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
183
178
|
case 1:
|
|
184
179
|
// authentication bearer required
|
|
185
180
|
// http bearer authentication required
|
|
186
181
|
_a.sent();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
184
|
}
|
|
191
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -211,7 +205,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
211
205
|
getFinancialAccount: function (code, expand, authorization, options) {
|
|
212
206
|
if (options === void 0) { options = {}; }
|
|
213
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
215
209
|
return __generator(this, function (_a) {
|
|
216
210
|
switch (_a.label) {
|
|
217
211
|
case 0:
|
|
@@ -239,9 +233,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
239
233
|
if (expand !== undefined) {
|
|
240
234
|
localVarQueryParameter['expand'] = expand;
|
|
241
235
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
245
238
|
}
|
|
246
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -271,7 +264,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
271
264
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
265
|
if (options === void 0) { options = {}; }
|
|
273
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
275
268
|
return __generator(this, function (_a) {
|
|
276
269
|
switch (_a.label) {
|
|
277
270
|
case 0:
|
|
@@ -312,9 +305,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
312
305
|
if (filters !== undefined) {
|
|
313
306
|
localVarQueryParameter['filters'] = filters;
|
|
314
307
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
310
|
}
|
|
319
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -339,7 +331,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
339
331
|
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
340
332
|
if (options === void 0) { options = {}; }
|
|
341
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
342
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
334
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
343
335
|
return __generator(this, function (_a) {
|
|
344
336
|
switch (_a.label) {
|
|
345
337
|
case 0:
|
|
@@ -359,16 +351,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
359
351
|
localVarQueryParameter = {};
|
|
360
352
|
// authentication bearer required
|
|
361
353
|
// http bearer authentication required
|
|
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
|
-
];
|
|
354
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
365
355
|
case 1:
|
|
366
356
|
// authentication bearer required
|
|
367
357
|
// http bearer authentication required
|
|
368
358
|
_a.sent();
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
359
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
360
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
372
361
|
}
|
|
373
362
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
363
|
(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, {}>>;
|
|
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, {}>>;
|
|
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,
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -136,9 +136,8 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
if (expand !== undefined) {
|
|
137
137
|
localVarQueryParameter['expand'] = expand;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
142
141
|
}
|
|
143
142
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
143
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -168,7 +167,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
168
167
|
listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
169
168
|
if (options === void 0) { options = {}; }
|
|
170
169
|
return __awaiter(_this, void 0, void 0, function () {
|
|
171
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
170
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
171
|
return __generator(this, function (_a) {
|
|
173
172
|
switch (_a.label) {
|
|
174
173
|
case 0:
|
|
@@ -209,9 +208,8 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
209
208
|
if (filters !== undefined) {
|
|
210
209
|
localVarQueryParameter['filters'] = filters;
|
|
211
210
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
211
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
212
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
215
213
|
}
|
|
216
214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
215
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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,
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,16 +124,13 @@ 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)
|
|
128
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
130
128
|
case 1:
|
|
131
129
|
// authentication bearer required
|
|
132
130
|
// http bearer authentication required
|
|
133
131
|
_a.sent();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
134
|
}
|
|
138
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,7 +156,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
159
156
|
deleteNumberRange: function (code, authorization, options) {
|
|
160
157
|
if (options === void 0) { options = {}; }
|
|
161
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
160
|
return __generator(this, function (_a) {
|
|
164
161
|
switch (_a.label) {
|
|
165
162
|
case 0:
|
|
@@ -177,16 +174,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
177
174
|
localVarQueryParameter = {};
|
|
178
175
|
// authentication bearer required
|
|
179
176
|
// http bearer authentication required
|
|
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
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
183
178
|
case 1:
|
|
184
179
|
// authentication bearer required
|
|
185
180
|
// http bearer authentication required
|
|
186
181
|
_a.sent();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
184
|
}
|
|
191
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -211,7 +205,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
211
205
|
getNumberRange: function (code, expand, authorization, options) {
|
|
212
206
|
if (options === void 0) { options = {}; }
|
|
213
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
215
209
|
return __generator(this, function (_a) {
|
|
216
210
|
switch (_a.label) {
|
|
217
211
|
case 0:
|
|
@@ -239,9 +233,8 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
239
233
|
if (expand !== undefined) {
|
|
240
234
|
localVarQueryParameter['expand'] = expand;
|
|
241
235
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
245
238
|
}
|
|
246
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -271,7 +264,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
271
264
|
listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
265
|
if (options === void 0) { options = {}; }
|
|
273
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
275
268
|
return __generator(this, function (_a) {
|
|
276
269
|
switch (_a.label) {
|
|
277
270
|
case 0:
|
|
@@ -312,9 +305,8 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
312
305
|
if (filters !== undefined) {
|
|
313
306
|
localVarQueryParameter['filters'] = filters;
|
|
314
307
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
310
|
}
|
|
319
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|