@emilgroup/accounting-sdk-node 1.32.1-beta.100 → 1.32.1-beta.102
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/README.md +2 -2
- package/api/accounting-configs-api.ts +24 -64
- package/api/booking-entries-api.ts +15 -40
- package/api/commission-account-mappings-api.ts +24 -64
- package/api/financial-accounts-api.ts +15 -40
- package/api/financial-transactions-api.ts +6 -16
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +12 -32
- package/api/personal-accounts-api.ts +12 -32
- package/api/product-account-mappings-api.ts +36 -96
- package/base.ts +0 -4
- package/common.ts +2 -3
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +64 -120
- package/dist/api/booking-entries-api.d.ts +5 -5
- package/dist/api/booking-entries-api.js +38 -67
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +61 -108
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +38 -67
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +14 -22
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +30 -52
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +30 -52
- package/dist/api/product-account-mappings-api.d.ts +12 -12
- package/dist/api/product-account-mappings-api.js +94 -172
- package/dist/base.d.ts +0 -1
- package/dist/base.js +0 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/package.json +2 -2
|
@@ -107,10 +107,9 @@ 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,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
switch (_b.label) {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
114
113
|
case 0:
|
|
115
114
|
// verify required parameter 'createFinancialAccountRequestDto' is not null or undefined
|
|
116
115
|
(0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
|
|
@@ -125,19 +124,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
localVarQueryParameter = {};
|
|
126
125
|
// authentication bearer required
|
|
127
126
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
128
|
case 1:
|
|
133
129
|
// authentication bearer required
|
|
134
130
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
140
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
141
134
|
}
|
|
142
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -163,10 +156,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
163
156
|
deleteFinancialAccount: function (code, authorization, options) {
|
|
164
157
|
if (options === void 0) { options = {}; }
|
|
165
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
166
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
switch (_b.label) {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
170
162
|
case 0:
|
|
171
163
|
// verify required parameter 'code' is not null or undefined
|
|
172
164
|
(0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
|
|
@@ -182,19 +174,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
182
174
|
localVarQueryParameter = {};
|
|
183
175
|
// authentication bearer required
|
|
184
176
|
// http bearer authentication required
|
|
185
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
186
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
189
178
|
case 1:
|
|
190
179
|
// authentication bearer required
|
|
191
180
|
// http bearer authentication required
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
197
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
|
+
_a.sent();
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
198
184
|
}
|
|
199
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -219,10 +205,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
219
205
|
getFinancialAccount: function (code, expand, authorization, options) {
|
|
220
206
|
if (options === void 0) { options = {}; }
|
|
221
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
222
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
switch (_b.label) {
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
226
211
|
case 0:
|
|
227
212
|
// verify required parameter 'code' is not null or undefined
|
|
228
213
|
(0, common_1.assertParamExists)('getFinancialAccount', 'code', code);
|
|
@@ -244,15 +229,12 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
244
229
|
case 1:
|
|
245
230
|
// authentication bearer required
|
|
246
231
|
// http bearer authentication required
|
|
247
|
-
|
|
232
|
+
_a.sent();
|
|
248
233
|
if (expand !== undefined) {
|
|
249
234
|
localVarQueryParameter['expand'] = expand;
|
|
250
235
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
255
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
256
238
|
}
|
|
257
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
258
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -282,10 +264,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
282
264
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
283
265
|
if (options === void 0) { options = {}; }
|
|
284
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
285
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
switch (_b.label) {
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
|
+
return __generator(this, function (_a) {
|
|
269
|
+
switch (_a.label) {
|
|
289
270
|
case 0:
|
|
290
271
|
localVarPath = "/accountingservice/v1/financial-accounts";
|
|
291
272
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -302,7 +283,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
302
283
|
case 1:
|
|
303
284
|
// authentication bearer required
|
|
304
285
|
// http bearer authentication required
|
|
305
|
-
|
|
286
|
+
_a.sent();
|
|
306
287
|
if (pageSize !== undefined) {
|
|
307
288
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
308
289
|
}
|
|
@@ -324,11 +305,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
324
305
|
if (filters !== undefined) {
|
|
325
306
|
localVarQueryParameter['filters'] = filters;
|
|
326
307
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
331
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
332
310
|
}
|
|
333
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
334
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -353,10 +331,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
353
331
|
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
354
332
|
if (options === void 0) { options = {}; }
|
|
355
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
356
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
switch (_b.label) {
|
|
334
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
|
+
return __generator(this, function (_a) {
|
|
336
|
+
switch (_a.label) {
|
|
360
337
|
case 0:
|
|
361
338
|
// verify required parameter 'code' is not null or undefined
|
|
362
339
|
(0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
|
|
@@ -374,19 +351,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
374
351
|
localVarQueryParameter = {};
|
|
375
352
|
// authentication bearer required
|
|
376
353
|
// http bearer authentication required
|
|
377
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
378
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
379
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
380
|
-
];
|
|
354
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
381
355
|
case 1:
|
|
382
356
|
// authentication bearer required
|
|
383
357
|
// http bearer authentication required
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
388
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
389
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
358
|
+
_a.sent();
|
|
359
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
360
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
390
361
|
}
|
|
391
362
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
392
363
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -621,7 +592,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
621
592
|
*/
|
|
622
593
|
FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
|
|
623
594
|
var _this = this;
|
|
624
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization,
|
|
595
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
596
|
};
|
|
626
597
|
/**
|
|
627
598
|
* 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\"
|
|
@@ -633,7 +604,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
633
604
|
*/
|
|
634
605
|
FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
|
|
635
606
|
var _this = this;
|
|
636
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization,
|
|
607
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
608
|
};
|
|
638
609
|
/**
|
|
639
610
|
* 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\"
|
|
@@ -645,7 +616,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
645
616
|
*/
|
|
646
617
|
FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
|
|
647
618
|
var _this = this;
|
|
648
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization,
|
|
619
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
649
620
|
};
|
|
650
621
|
/**
|
|
651
622
|
* 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\"
|
|
@@ -658,7 +629,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
658
629
|
FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
|
|
659
630
|
var _this = this;
|
|
660
631
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
661
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
632
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
662
633
|
};
|
|
663
634
|
/**
|
|
664
635
|
* 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\"
|
|
@@ -670,7 +641,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
670
641
|
*/
|
|
671
642
|
FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
|
|
672
643
|
var _this = this;
|
|
673
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization,
|
|
644
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
674
645
|
};
|
|
675
646
|
return FinancialAccountsApi;
|
|
676
647
|
}(base_1.BaseAPI));
|
|
@@ -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,10 +108,9 @@ 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,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
switch (_b.label) {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
115
114
|
case 0:
|
|
116
115
|
// verify required parameter 'code' is not null or undefined
|
|
117
116
|
(0, common_1.assertParamExists)('getFinancialTransaction', 'code', code);
|
|
@@ -133,15 +132,12 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
133
132
|
case 1:
|
|
134
133
|
// authentication bearer required
|
|
135
134
|
// http bearer authentication required
|
|
136
|
-
|
|
135
|
+
_a.sent();
|
|
137
136
|
if (expand !== undefined) {
|
|
138
137
|
localVarQueryParameter['expand'] = expand;
|
|
139
138
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
143
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
144
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
145
141
|
}
|
|
146
142
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
147
143
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -171,10 +167,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
171
167
|
listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
172
168
|
if (options === void 0) { options = {}; }
|
|
173
169
|
return __awaiter(_this, void 0, void 0, function () {
|
|
174
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
switch (_b.label) {
|
|
170
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
178
173
|
case 0:
|
|
179
174
|
localVarPath = "/accountingservice/v1/financial-transactions";
|
|
180
175
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -191,7 +186,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
191
186
|
case 1:
|
|
192
187
|
// authentication bearer required
|
|
193
188
|
// http bearer authentication required
|
|
194
|
-
|
|
189
|
+
_a.sent();
|
|
195
190
|
if (pageSize !== undefined) {
|
|
196
191
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
197
192
|
}
|
|
@@ -213,11 +208,8 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
213
208
|
if (filters !== undefined) {
|
|
214
209
|
localVarQueryParameter['filters'] = filters;
|
|
215
210
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
219
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
220
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
211
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
212
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
221
213
|
}
|
|
222
214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
223
215
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -352,7 +344,7 @@ var FinancialTransactionsApi = /** @class */ (function (_super) {
|
|
|
352
344
|
*/
|
|
353
345
|
FinancialTransactionsApi.prototype.getFinancialTransaction = function (requestParameters, options) {
|
|
354
346
|
var _this = this;
|
|
355
|
-
return (0, exports.FinancialTransactionsApiFp)(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization,
|
|
347
|
+
return (0, exports.FinancialTransactionsApiFp)(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
356
348
|
};
|
|
357
349
|
/**
|
|
358
350
|
* This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
|
|
@@ -365,7 +357,7 @@ var FinancialTransactionsApi = /** @class */ (function (_super) {
|
|
|
365
357
|
FinancialTransactionsApi.prototype.listFinancialTransactions = function (requestParameters, options) {
|
|
366
358
|
var _this = this;
|
|
367
359
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
368
|
-
return (0, exports.FinancialTransactionsApiFp)(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
360
|
+
return (0, exports.FinancialTransactionsApiFp)(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
369
361
|
};
|
|
370
362
|
return FinancialTransactionsApi;
|
|
371
363
|
}(base_1.BaseAPI));
|
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
|
}
|
package/dist/api/health-api.js
CHANGED
|
@@ -197,7 +197,7 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
197
197
|
*/
|
|
198
198
|
HealthApi.prototype.check = function (options) {
|
|
199
199
|
var _this = this;
|
|
200
|
-
return (0, exports.HealthApiFp)(this.configuration).check(
|
|
200
|
+
return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
201
201
|
};
|
|
202
202
|
return HealthApi;
|
|
203
203
|
}(base_1.BaseAPI));
|
|
@@ -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,10 +107,9 @@ 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,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
switch (_b.label) {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
114
113
|
case 0:
|
|
115
114
|
// verify required parameter 'createNumberRangeRequestDto' is not null or undefined
|
|
116
115
|
(0, common_1.assertParamExists)('createNumberRange', 'createNumberRangeRequestDto', createNumberRangeRequestDto);
|
|
@@ -125,19 +124,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
localVarQueryParameter = {};
|
|
126
125
|
// authentication bearer required
|
|
127
126
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
128
|
case 1:
|
|
133
129
|
// authentication bearer required
|
|
134
130
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
140
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
141
134
|
}
|
|
142
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -163,10 +156,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
163
156
|
deleteNumberRange: function (code, authorization, options) {
|
|
164
157
|
if (options === void 0) { options = {}; }
|
|
165
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
166
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
switch (_b.label) {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
170
162
|
case 0:
|
|
171
163
|
// verify required parameter 'code' is not null or undefined
|
|
172
164
|
(0, common_1.assertParamExists)('deleteNumberRange', 'code', code);
|
|
@@ -182,19 +174,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
182
174
|
localVarQueryParameter = {};
|
|
183
175
|
// authentication bearer required
|
|
184
176
|
// http bearer authentication required
|
|
185
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
186
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
189
178
|
case 1:
|
|
190
179
|
// authentication bearer required
|
|
191
180
|
// http bearer authentication required
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
197
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
|
+
_a.sent();
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
198
184
|
}
|
|
199
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -219,10 +205,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
219
205
|
getNumberRange: function (code, expand, authorization, options) {
|
|
220
206
|
if (options === void 0) { options = {}; }
|
|
221
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
222
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
switch (_b.label) {
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
226
211
|
case 0:
|
|
227
212
|
// verify required parameter 'code' is not null or undefined
|
|
228
213
|
(0, common_1.assertParamExists)('getNumberRange', 'code', code);
|
|
@@ -244,15 +229,12 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
244
229
|
case 1:
|
|
245
230
|
// authentication bearer required
|
|
246
231
|
// http bearer authentication required
|
|
247
|
-
|
|
232
|
+
_a.sent();
|
|
248
233
|
if (expand !== undefined) {
|
|
249
234
|
localVarQueryParameter['expand'] = expand;
|
|
250
235
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
255
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
256
238
|
}
|
|
257
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
258
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -282,10 +264,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
282
264
|
listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
283
265
|
if (options === void 0) { options = {}; }
|
|
284
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
285
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
switch (_b.label) {
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
|
+
return __generator(this, function (_a) {
|
|
269
|
+
switch (_a.label) {
|
|
289
270
|
case 0:
|
|
290
271
|
localVarPath = "/accountingservice/v1/number-ranges";
|
|
291
272
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -302,7 +283,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
302
283
|
case 1:
|
|
303
284
|
// authentication bearer required
|
|
304
285
|
// http bearer authentication required
|
|
305
|
-
|
|
286
|
+
_a.sent();
|
|
306
287
|
if (pageSize !== undefined) {
|
|
307
288
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
308
289
|
}
|
|
@@ -324,11 +305,8 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
324
305
|
if (filters !== undefined) {
|
|
325
306
|
localVarQueryParameter['filters'] = filters;
|
|
326
307
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
331
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
332
310
|
}
|
|
333
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
334
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -527,7 +505,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
|
|
|
527
505
|
*/
|
|
528
506
|
NumberRangesApi.prototype.createNumberRange = function (requestParameters, options) {
|
|
529
507
|
var _this = this;
|
|
530
|
-
return (0, exports.NumberRangesApiFp)(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization,
|
|
508
|
+
return (0, exports.NumberRangesApiFp)(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
531
509
|
};
|
|
532
510
|
/**
|
|
533
511
|
* 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\"
|
|
@@ -539,7 +517,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
|
|
|
539
517
|
*/
|
|
540
518
|
NumberRangesApi.prototype.deleteNumberRange = function (requestParameters, options) {
|
|
541
519
|
var _this = this;
|
|
542
|
-
return (0, exports.NumberRangesApiFp)(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization,
|
|
520
|
+
return (0, exports.NumberRangesApiFp)(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
543
521
|
};
|
|
544
522
|
/**
|
|
545
523
|
* 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\"
|
|
@@ -551,7 +529,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
|
|
|
551
529
|
*/
|
|
552
530
|
NumberRangesApi.prototype.getNumberRange = function (requestParameters, options) {
|
|
553
531
|
var _this = this;
|
|
554
|
-
return (0, exports.NumberRangesApiFp)(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization,
|
|
532
|
+
return (0, exports.NumberRangesApiFp)(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
555
533
|
};
|
|
556
534
|
/**
|
|
557
535
|
* 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\"
|
|
@@ -564,7 +542,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
|
|
|
564
542
|
NumberRangesApi.prototype.listNumberRanges = function (requestParameters, options) {
|
|
565
543
|
var _this = this;
|
|
566
544
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
567
|
-
return (0, exports.NumberRangesApiFp)(this.configuration).listNumberRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
545
|
+
return (0, exports.NumberRangesApiFp)(this.configuration).listNumberRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
568
546
|
};
|
|
569
547
|
return NumberRangesApi;
|
|
570
548
|
}(base_1.BaseAPI));
|