@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
|
@@ -110,10 +110,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
110
110
|
deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
|
|
111
111
|
if (options === void 0) { options = {}; }
|
|
112
112
|
return __awaiter(_this, void 0, void 0, function () {
|
|
113
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
switch (_b.label) {
|
|
113
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
114
|
+
return __generator(this, function (_a) {
|
|
115
|
+
switch (_a.label) {
|
|
117
116
|
case 0:
|
|
118
117
|
// verify required parameter 'productCode' is not null or undefined
|
|
119
118
|
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'productCode', productCode);
|
|
@@ -138,19 +137,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
138
137
|
localVarQueryParameter = {};
|
|
139
138
|
// authentication bearer required
|
|
140
139
|
// http bearer authentication required
|
|
141
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
142
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
143
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
144
|
-
];
|
|
140
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
145
141
|
case 1:
|
|
146
142
|
// authentication bearer required
|
|
147
143
|
// http bearer authentication required
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
152
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
153
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
144
|
+
_a.sent();
|
|
145
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
146
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
154
147
|
}
|
|
155
148
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
156
149
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -175,10 +168,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
175
168
|
deleteProductCategoryAccount: function (productCode, category, authorization, options) {
|
|
176
169
|
if (options === void 0) { options = {}; }
|
|
177
170
|
return __awaiter(_this, void 0, void 0, function () {
|
|
178
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
switch (_b.label) {
|
|
171
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
switch (_a.label) {
|
|
182
174
|
case 0:
|
|
183
175
|
// verify required parameter 'productCode' is not null or undefined
|
|
184
176
|
(0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
|
|
@@ -197,19 +189,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
197
189
|
localVarQueryParameter = {};
|
|
198
190
|
// authentication bearer required
|
|
199
191
|
// http bearer authentication required
|
|
200
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
201
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
202
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
203
|
-
];
|
|
192
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
204
193
|
case 1:
|
|
205
194
|
// authentication bearer required
|
|
206
195
|
// http bearer authentication required
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
211
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
212
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
196
|
+
_a.sent();
|
|
197
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
198
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
213
199
|
}
|
|
214
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
215
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -233,10 +219,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
233
219
|
deleteProductRiskCarrier: function (productCode, authorization, options) {
|
|
234
220
|
if (options === void 0) { options = {}; }
|
|
235
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
236
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
switch (_b.label) {
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
223
|
+
return __generator(this, function (_a) {
|
|
224
|
+
switch (_a.label) {
|
|
240
225
|
case 0:
|
|
241
226
|
// verify required parameter 'productCode' is not null or undefined
|
|
242
227
|
(0, common_1.assertParamExists)('deleteProductRiskCarrier', 'productCode', productCode);
|
|
@@ -252,19 +237,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
252
237
|
localVarQueryParameter = {};
|
|
253
238
|
// authentication bearer required
|
|
254
239
|
// http bearer authentication required
|
|
255
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
256
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
257
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
258
|
-
];
|
|
240
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
259
241
|
case 1:
|
|
260
242
|
// authentication bearer required
|
|
261
243
|
// http bearer authentication required
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
266
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
244
|
+
_a.sent();
|
|
245
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
246
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
247
|
}
|
|
269
248
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
270
249
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -290,10 +269,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
290
269
|
deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
|
|
291
270
|
if (options === void 0) { options = {}; }
|
|
292
271
|
return __awaiter(_this, void 0, void 0, function () {
|
|
293
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
switch (_b.label) {
|
|
272
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
297
275
|
case 0:
|
|
298
276
|
// verify required parameter 'productCode' is not null or undefined
|
|
299
277
|
(0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
|
|
@@ -315,19 +293,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
315
293
|
localVarQueryParameter = {};
|
|
316
294
|
// authentication bearer required
|
|
317
295
|
// http bearer authentication required
|
|
318
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
319
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
320
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
321
|
-
];
|
|
296
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
322
297
|
case 1:
|
|
323
298
|
// authentication bearer required
|
|
324
299
|
// http bearer authentication required
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
329
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
330
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
300
|
+
_a.sent();
|
|
301
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
302
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
331
303
|
}
|
|
332
304
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
333
305
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -351,10 +323,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
351
323
|
getProductAccountMapping: function (productCode, authorization, options) {
|
|
352
324
|
if (options === void 0) { options = {}; }
|
|
353
325
|
return __awaiter(_this, void 0, void 0, function () {
|
|
354
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
switch (_b.label) {
|
|
326
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
358
329
|
case 0:
|
|
359
330
|
// verify required parameter 'productCode' is not null or undefined
|
|
360
331
|
(0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
|
|
@@ -370,19 +341,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
370
341
|
localVarQueryParameter = {};
|
|
371
342
|
// authentication bearer required
|
|
372
343
|
// http bearer authentication required
|
|
373
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
374
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
375
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
376
|
-
];
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
377
345
|
case 1:
|
|
378
346
|
// authentication bearer required
|
|
379
347
|
// http bearer authentication required
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
384
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
385
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
348
|
+
_a.sent();
|
|
349
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
386
351
|
}
|
|
387
352
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
388
353
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -407,10 +372,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
407
372
|
getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
|
|
408
373
|
if (options === void 0) { options = {}; }
|
|
409
374
|
return __awaiter(_this, void 0, void 0, function () {
|
|
410
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
switch (_b.label) {
|
|
375
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
switch (_a.label) {
|
|
414
378
|
case 0:
|
|
415
379
|
// verify required parameter 'productCode' is not null or undefined
|
|
416
380
|
(0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
|
|
@@ -429,19 +393,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
429
393
|
localVarQueryParameter = {};
|
|
430
394
|
// authentication bearer required
|
|
431
395
|
// http bearer authentication required
|
|
432
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
433
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
434
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
435
|
-
];
|
|
396
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
436
397
|
case 1:
|
|
437
398
|
// authentication bearer required
|
|
438
399
|
// http bearer authentication required
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
443
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
444
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
400
|
+
_a.sent();
|
|
401
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
402
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
445
403
|
}
|
|
446
404
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
447
405
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -471,10 +429,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
471
429
|
listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
472
430
|
if (options === void 0) { options = {}; }
|
|
473
431
|
return __awaiter(_this, void 0, void 0, function () {
|
|
474
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
switch (_b.label) {
|
|
432
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
433
|
+
return __generator(this, function (_a) {
|
|
434
|
+
switch (_a.label) {
|
|
478
435
|
case 0:
|
|
479
436
|
localVarPath = "/accountingservice/v1/product-account-mappings";
|
|
480
437
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -491,7 +448,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
491
448
|
case 1:
|
|
492
449
|
// authentication bearer required
|
|
493
450
|
// http bearer authentication required
|
|
494
|
-
|
|
451
|
+
_a.sent();
|
|
495
452
|
if (pageSize !== undefined) {
|
|
496
453
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
497
454
|
}
|
|
@@ -513,11 +470,8 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
513
470
|
if (filters !== undefined) {
|
|
514
471
|
localVarQueryParameter['filters'] = filters;
|
|
515
472
|
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
519
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
520
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
473
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
474
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
521
475
|
}
|
|
522
476
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
523
477
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -547,10 +501,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
547
501
|
listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
548
502
|
if (options === void 0) { options = {}; }
|
|
549
503
|
return __awaiter(_this, void 0, void 0, function () {
|
|
550
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
switch (_b.label) {
|
|
504
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
505
|
+
return __generator(this, function (_a) {
|
|
506
|
+
switch (_a.label) {
|
|
554
507
|
case 0:
|
|
555
508
|
localVarPath = "/accountingservice/v1/product-account-mappings/products";
|
|
556
509
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -567,7 +520,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
567
520
|
case 1:
|
|
568
521
|
// authentication bearer required
|
|
569
522
|
// http bearer authentication required
|
|
570
|
-
|
|
523
|
+
_a.sent();
|
|
571
524
|
if (pageSize !== undefined) {
|
|
572
525
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
573
526
|
}
|
|
@@ -589,11 +542,8 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
589
542
|
if (filters !== undefined) {
|
|
590
543
|
localVarQueryParameter['filters'] = filters;
|
|
591
544
|
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
595
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
596
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
545
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
546
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
597
547
|
}
|
|
598
548
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
599
549
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -621,10 +571,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
621
571
|
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
622
572
|
if (options === void 0) { options = {}; }
|
|
623
573
|
return __awaiter(_this, void 0, void 0, function () {
|
|
624
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
switch (_b.label) {
|
|
574
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
575
|
+
return __generator(this, function (_a) {
|
|
576
|
+
switch (_a.label) {
|
|
628
577
|
case 0:
|
|
629
578
|
// verify required parameter 'productCode' is not null or undefined
|
|
630
579
|
(0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
|
|
@@ -651,19 +600,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
651
600
|
localVarQueryParameter = {};
|
|
652
601
|
// authentication bearer required
|
|
653
602
|
// http bearer authentication required
|
|
654
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
655
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
656
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
657
|
-
];
|
|
603
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
658
604
|
case 1:
|
|
659
605
|
// authentication bearer required
|
|
660
606
|
// http bearer authentication required
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
665
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
666
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
607
|
+
_a.sent();
|
|
608
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
609
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
667
610
|
}
|
|
668
611
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
669
612
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -691,10 +634,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
691
634
|
putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
|
|
692
635
|
if (options === void 0) { options = {}; }
|
|
693
636
|
return __awaiter(_this, void 0, void 0, function () {
|
|
694
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
switch (_b.label) {
|
|
637
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
638
|
+
return __generator(this, function (_a) {
|
|
639
|
+
switch (_a.label) {
|
|
698
640
|
case 0:
|
|
699
641
|
// verify required parameter 'productCode' is not null or undefined
|
|
700
642
|
(0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
|
|
@@ -715,19 +657,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
715
657
|
localVarQueryParameter = {};
|
|
716
658
|
// authentication bearer required
|
|
717
659
|
// http bearer authentication required
|
|
718
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
719
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
720
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
721
|
-
];
|
|
660
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
722
661
|
case 1:
|
|
723
662
|
// authentication bearer required
|
|
724
663
|
// http bearer authentication required
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
729
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
730
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
664
|
+
_a.sent();
|
|
665
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
666
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
731
667
|
}
|
|
732
668
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
733
669
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -754,10 +690,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
754
690
|
putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
|
|
755
691
|
if (options === void 0) { options = {}; }
|
|
756
692
|
return __awaiter(_this, void 0, void 0, function () {
|
|
757
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
switch (_b.label) {
|
|
693
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
694
|
+
return __generator(this, function (_a) {
|
|
695
|
+
switch (_a.label) {
|
|
761
696
|
case 0:
|
|
762
697
|
// verify required parameter 'productCode' is not null or undefined
|
|
763
698
|
(0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
|
|
@@ -775,19 +710,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
775
710
|
localVarQueryParameter = {};
|
|
776
711
|
// authentication bearer required
|
|
777
712
|
// http bearer authentication required
|
|
778
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
779
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
780
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
781
|
-
];
|
|
713
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
782
714
|
case 1:
|
|
783
715
|
// authentication bearer required
|
|
784
716
|
// http bearer authentication required
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
789
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
790
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
717
|
+
_a.sent();
|
|
718
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
719
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
791
720
|
}
|
|
792
721
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
793
722
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -816,10 +745,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
816
745
|
putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
|
|
817
746
|
if (options === void 0) { options = {}; }
|
|
818
747
|
return __awaiter(_this, void 0, void 0, function () {
|
|
819
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
switch (_b.label) {
|
|
748
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
749
|
+
return __generator(this, function (_a) {
|
|
750
|
+
switch (_a.label) {
|
|
823
751
|
case 0:
|
|
824
752
|
// verify required parameter 'productCode' is not null or undefined
|
|
825
753
|
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
|
|
@@ -843,19 +771,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
843
771
|
localVarQueryParameter = {};
|
|
844
772
|
// authentication bearer required
|
|
845
773
|
// http bearer authentication required
|
|
846
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
847
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
848
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
849
|
-
];
|
|
774
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
850
775
|
case 1:
|
|
851
776
|
// authentication bearer required
|
|
852
777
|
// http bearer authentication required
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
857
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
858
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
778
|
+
_a.sent();
|
|
779
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
780
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
859
781
|
}
|
|
860
782
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
861
783
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1356,7 +1278,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1356
1278
|
*/
|
|
1357
1279
|
ProductAccountMappingsApi.prototype.deletePremiumItemAccount = function (requestParameters, options) {
|
|
1358
1280
|
var _this = this;
|
|
1359
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization,
|
|
1281
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1360
1282
|
};
|
|
1361
1283
|
/**
|
|
1362
1284
|
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -1368,7 +1290,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1368
1290
|
*/
|
|
1369
1291
|
ProductAccountMappingsApi.prototype.deleteProductCategoryAccount = function (requestParameters, options) {
|
|
1370
1292
|
var _this = this;
|
|
1371
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization,
|
|
1293
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1372
1294
|
};
|
|
1373
1295
|
/**
|
|
1374
1296
|
* Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -1380,7 +1302,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1380
1302
|
*/
|
|
1381
1303
|
ProductAccountMappingsApi.prototype.deleteProductRiskCarrier = function (requestParameters, options) {
|
|
1382
1304
|
var _this = this;
|
|
1383
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization,
|
|
1305
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1384
1306
|
};
|
|
1385
1307
|
/**
|
|
1386
1308
|
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -1392,7 +1314,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1392
1314
|
*/
|
|
1393
1315
|
ProductAccountMappingsApi.prototype.deleteProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1394
1316
|
var _this = this;
|
|
1395
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization,
|
|
1317
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1396
1318
|
};
|
|
1397
1319
|
/**
|
|
1398
1320
|
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -1404,7 +1326,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1404
1326
|
*/
|
|
1405
1327
|
ProductAccountMappingsApi.prototype.getProductAccountMapping = function (requestParameters, options) {
|
|
1406
1328
|
var _this = this;
|
|
1407
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization,
|
|
1329
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1408
1330
|
};
|
|
1409
1331
|
/**
|
|
1410
1332
|
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -1416,7 +1338,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1416
1338
|
*/
|
|
1417
1339
|
ProductAccountMappingsApi.prototype.getProductVersionAccountMapping = function (requestParameters, options) {
|
|
1418
1340
|
var _this = this;
|
|
1419
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization,
|
|
1341
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1420
1342
|
};
|
|
1421
1343
|
/**
|
|
1422
1344
|
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -1429,7 +1351,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1429
1351
|
ProductAccountMappingsApi.prototype.listProductAccountMappings = function (requestParameters, options) {
|
|
1430
1352
|
var _this = this;
|
|
1431
1353
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1432
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1354
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(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); });
|
|
1433
1355
|
};
|
|
1434
1356
|
/**
|
|
1435
1357
|
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -1442,7 +1364,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1442
1364
|
ProductAccountMappingsApi.prototype.listProductsWithAccountMappings = function (requestParameters, options) {
|
|
1443
1365
|
var _this = this;
|
|
1444
1366
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1445
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1367
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(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); });
|
|
1446
1368
|
};
|
|
1447
1369
|
/**
|
|
1448
1370
|
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -1454,7 +1376,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1454
1376
|
*/
|
|
1455
1377
|
ProductAccountMappingsApi.prototype.putPremiumItemAccount = function (requestParameters, options) {
|
|
1456
1378
|
var _this = this;
|
|
1457
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization,
|
|
1379
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1458
1380
|
};
|
|
1459
1381
|
/**
|
|
1460
1382
|
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -1466,7 +1388,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1466
1388
|
*/
|
|
1467
1389
|
ProductAccountMappingsApi.prototype.putProductCategoryAccount = function (requestParameters, options) {
|
|
1468
1390
|
var _this = this;
|
|
1469
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization,
|
|
1391
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1470
1392
|
};
|
|
1471
1393
|
/**
|
|
1472
1394
|
* Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -1478,7 +1400,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1478
1400
|
*/
|
|
1479
1401
|
ProductAccountMappingsApi.prototype.putProductRiskCarrier = function (requestParameters, options) {
|
|
1480
1402
|
var _this = this;
|
|
1481
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization,
|
|
1403
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1482
1404
|
};
|
|
1483
1405
|
/**
|
|
1484
1406
|
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -1490,7 +1412,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1490
1412
|
*/
|
|
1491
1413
|
ProductAccountMappingsApi.prototype.putProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1492
1414
|
var _this = this;
|
|
1493
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization,
|
|
1415
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1494
1416
|
};
|
|
1495
1417
|
return ProductAccountMappingsApi;
|
|
1496
1418
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -63,7 +63,6 @@ export declare class BaseAPI {
|
|
|
63
63
|
protected configuration: Configuration;
|
|
64
64
|
private username?;
|
|
65
65
|
private password?;
|
|
66
|
-
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
|
|
67
66
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
68
67
|
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
69
68
|
private loadCredentials;
|
package/dist/base.js
CHANGED
|
@@ -163,9 +163,6 @@ var BaseAPI = /** @class */ (function () {
|
|
|
163
163
|
}
|
|
164
164
|
this.attachInterceptor(axios);
|
|
165
165
|
}
|
|
166
|
-
BaseAPI.prototype.withOwner = function (options) {
|
|
167
|
-
return __assign({}, options);
|
|
168
|
-
};
|
|
169
166
|
BaseAPI.prototype.initialize = function (env, targetWorkspace) {
|
|
170
167
|
if (env === void 0) { env = Environment.Production; }
|
|
171
168
|
return __awaiter(this, void 0, void 0, function () {
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL AccountingService
|
|
69
69
|
* The EMIL AccountingService API description
|