@emilgroup/accounting-sdk-node 1.32.1-beta.104 → 1.32.1-beta.106
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 +64 -24
- package/api/booking-entries-api.ts +40 -15
- package/api/commission-account-mappings-api.ts +64 -24
- package/api/financial-accounts-api.ts +40 -15
- package/api/financial-transactions-api.ts +16 -6
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +32 -12
- package/api/personal-accounts-api.ts +32 -12
- package/api/product-account-mappings-api.ts +96 -36
- package/base.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +120 -64
- package/dist/api/booking-entries-api.d.ts +5 -5
- package/dist/api/booking-entries-api.js +67 -38
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +108 -61
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +67 -38
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +22 -14
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +52 -30
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +52 -30
- package/dist/api/product-account-mappings-api.d.ts +12 -12
- package/dist/api/product-account-mappings-api.js +172 -94
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
- package/dist/models/create-booking-entry-request-dto.js +0 -6
- package/models/create-booking-entry-request-dto.ts +1 -7
- package/package.json +2 -2
|
@@ -110,9 +110,10 @@ 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, headersFromBaseOptions;
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
114
|
+
var _a;
|
|
115
|
+
return __generator(this, function (_b) {
|
|
116
|
+
switch (_b.label) {
|
|
116
117
|
case 0:
|
|
117
118
|
// verify required parameter 'productCode' is not null or undefined
|
|
118
119
|
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'productCode', productCode);
|
|
@@ -137,13 +138,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
137
138
|
localVarQueryParameter = {};
|
|
138
139
|
// authentication bearer required
|
|
139
140
|
// http bearer authentication required
|
|
140
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
141
145
|
case 1:
|
|
142
146
|
// authentication bearer required
|
|
143
147
|
// http bearer authentication required
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
_b.sent();
|
|
149
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
150
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
147
154
|
}
|
|
148
155
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
149
156
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -168,9 +175,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
168
175
|
deleteProductCategoryAccount: function (productCode, category, authorization, options) {
|
|
169
176
|
if (options === void 0) { options = {}; }
|
|
170
177
|
return __awaiter(_this, void 0, void 0, function () {
|
|
171
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
-
|
|
173
|
-
|
|
178
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
179
|
+
var _a;
|
|
180
|
+
return __generator(this, function (_b) {
|
|
181
|
+
switch (_b.label) {
|
|
174
182
|
case 0:
|
|
175
183
|
// verify required parameter 'productCode' is not null or undefined
|
|
176
184
|
(0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
|
|
@@ -189,13 +197,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
189
197
|
localVarQueryParameter = {};
|
|
190
198
|
// authentication bearer required
|
|
191
199
|
// http bearer authentication required
|
|
192
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
193
204
|
case 1:
|
|
194
205
|
// authentication bearer required
|
|
195
206
|
// http bearer authentication required
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
207
|
+
_b.sent();
|
|
208
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
209
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
199
213
|
}
|
|
200
214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
201
215
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -219,9 +233,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
219
233
|
deleteProductRiskCarrier: function (productCode, authorization, options) {
|
|
220
234
|
if (options === void 0) { options = {}; }
|
|
221
235
|
return __awaiter(_this, void 0, void 0, function () {
|
|
222
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
223
|
-
|
|
224
|
-
|
|
236
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
237
|
+
var _a;
|
|
238
|
+
return __generator(this, function (_b) {
|
|
239
|
+
switch (_b.label) {
|
|
225
240
|
case 0:
|
|
226
241
|
// verify required parameter 'productCode' is not null or undefined
|
|
227
242
|
(0, common_1.assertParamExists)('deleteProductRiskCarrier', 'productCode', productCode);
|
|
@@ -237,13 +252,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
237
252
|
localVarQueryParameter = {};
|
|
238
253
|
// authentication bearer required
|
|
239
254
|
// http bearer authentication required
|
|
240
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
241
259
|
case 1:
|
|
242
260
|
// authentication bearer required
|
|
243
261
|
// http bearer authentication required
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
262
|
+
_b.sent();
|
|
263
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
264
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
247
268
|
}
|
|
248
269
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
249
270
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -269,9 +290,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
269
290
|
deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
|
|
270
291
|
if (options === void 0) { options = {}; }
|
|
271
292
|
return __awaiter(_this, void 0, void 0, function () {
|
|
272
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
273
|
-
|
|
274
|
-
|
|
293
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
294
|
+
var _a;
|
|
295
|
+
return __generator(this, function (_b) {
|
|
296
|
+
switch (_b.label) {
|
|
275
297
|
case 0:
|
|
276
298
|
// verify required parameter 'productCode' is not null or undefined
|
|
277
299
|
(0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
|
|
@@ -293,13 +315,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
293
315
|
localVarQueryParameter = {};
|
|
294
316
|
// authentication bearer required
|
|
295
317
|
// http bearer authentication required
|
|
296
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
297
322
|
case 1:
|
|
298
323
|
// authentication bearer required
|
|
299
324
|
// http bearer authentication required
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
325
|
+
_b.sent();
|
|
326
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
327
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
303
331
|
}
|
|
304
332
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
333
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -323,9 +351,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
323
351
|
getProductAccountMapping: function (productCode, authorization, options) {
|
|
324
352
|
if (options === void 0) { options = {}; }
|
|
325
353
|
return __awaiter(_this, void 0, void 0, function () {
|
|
326
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
|
-
|
|
328
|
-
|
|
354
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
355
|
+
var _a;
|
|
356
|
+
return __generator(this, function (_b) {
|
|
357
|
+
switch (_b.label) {
|
|
329
358
|
case 0:
|
|
330
359
|
// verify required parameter 'productCode' is not null or undefined
|
|
331
360
|
(0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
|
|
@@ -341,13 +370,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
341
370
|
localVarQueryParameter = {};
|
|
342
371
|
// authentication bearer required
|
|
343
372
|
// http bearer authentication required
|
|
344
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
345
377
|
case 1:
|
|
346
378
|
// authentication bearer required
|
|
347
379
|
// http bearer authentication required
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
380
|
+
_b.sent();
|
|
381
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
382
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
351
386
|
}
|
|
352
387
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
353
388
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -372,9 +407,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
372
407
|
getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
|
|
373
408
|
if (options === void 0) { options = {}; }
|
|
374
409
|
return __awaiter(_this, void 0, void 0, function () {
|
|
375
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
376
|
-
|
|
377
|
-
|
|
410
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
411
|
+
var _a;
|
|
412
|
+
return __generator(this, function (_b) {
|
|
413
|
+
switch (_b.label) {
|
|
378
414
|
case 0:
|
|
379
415
|
// verify required parameter 'productCode' is not null or undefined
|
|
380
416
|
(0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
|
|
@@ -393,13 +429,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
393
429
|
localVarQueryParameter = {};
|
|
394
430
|
// authentication bearer required
|
|
395
431
|
// http bearer authentication required
|
|
396
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
397
436
|
case 1:
|
|
398
437
|
// authentication bearer required
|
|
399
438
|
// http bearer authentication required
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
439
|
+
_b.sent();
|
|
440
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
441
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
403
445
|
}
|
|
404
446
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
405
447
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -429,9 +471,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
429
471
|
listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
430
472
|
if (options === void 0) { options = {}; }
|
|
431
473
|
return __awaiter(_this, void 0, void 0, function () {
|
|
432
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
433
|
-
|
|
434
|
-
|
|
474
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
475
|
+
var _a;
|
|
476
|
+
return __generator(this, function (_b) {
|
|
477
|
+
switch (_b.label) {
|
|
435
478
|
case 0:
|
|
436
479
|
localVarPath = "/accountingservice/v1/product-account-mappings";
|
|
437
480
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -448,7 +491,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
448
491
|
case 1:
|
|
449
492
|
// authentication bearer required
|
|
450
493
|
// http bearer authentication required
|
|
451
|
-
|
|
494
|
+
_b.sent();
|
|
452
495
|
if (pageSize !== undefined) {
|
|
453
496
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
454
497
|
}
|
|
@@ -470,8 +513,11 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
470
513
|
if (filters !== undefined) {
|
|
471
514
|
localVarQueryParameter['filters'] = filters;
|
|
472
515
|
}
|
|
473
|
-
|
|
474
|
-
|
|
516
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
517
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
475
521
|
}
|
|
476
522
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
477
523
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -501,9 +547,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
501
547
|
listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
502
548
|
if (options === void 0) { options = {}; }
|
|
503
549
|
return __awaiter(_this, void 0, void 0, function () {
|
|
504
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
505
|
-
|
|
506
|
-
|
|
550
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
551
|
+
var _a;
|
|
552
|
+
return __generator(this, function (_b) {
|
|
553
|
+
switch (_b.label) {
|
|
507
554
|
case 0:
|
|
508
555
|
localVarPath = "/accountingservice/v1/product-account-mappings/products";
|
|
509
556
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -520,7 +567,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
520
567
|
case 1:
|
|
521
568
|
// authentication bearer required
|
|
522
569
|
// http bearer authentication required
|
|
523
|
-
|
|
570
|
+
_b.sent();
|
|
524
571
|
if (pageSize !== undefined) {
|
|
525
572
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
526
573
|
}
|
|
@@ -542,8 +589,11 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
542
589
|
if (filters !== undefined) {
|
|
543
590
|
localVarQueryParameter['filters'] = filters;
|
|
544
591
|
}
|
|
545
|
-
|
|
546
|
-
|
|
592
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
593
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
547
597
|
}
|
|
548
598
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
549
599
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -571,9 +621,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
571
621
|
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
572
622
|
if (options === void 0) { options = {}; }
|
|
573
623
|
return __awaiter(_this, void 0, void 0, function () {
|
|
574
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
575
|
-
|
|
576
|
-
|
|
624
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
625
|
+
var _a;
|
|
626
|
+
return __generator(this, function (_b) {
|
|
627
|
+
switch (_b.label) {
|
|
577
628
|
case 0:
|
|
578
629
|
// verify required parameter 'productCode' is not null or undefined
|
|
579
630
|
(0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
|
|
@@ -600,13 +651,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
600
651
|
localVarQueryParameter = {};
|
|
601
652
|
// authentication bearer required
|
|
602
653
|
// http bearer authentication required
|
|
603
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
604
658
|
case 1:
|
|
605
659
|
// authentication bearer required
|
|
606
660
|
// http bearer authentication required
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
661
|
+
_b.sent();
|
|
662
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
663
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
610
667
|
}
|
|
611
668
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
612
669
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -634,9 +691,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
634
691
|
putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
|
|
635
692
|
if (options === void 0) { options = {}; }
|
|
636
693
|
return __awaiter(_this, void 0, void 0, function () {
|
|
637
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
638
|
-
|
|
639
|
-
|
|
694
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
695
|
+
var _a;
|
|
696
|
+
return __generator(this, function (_b) {
|
|
697
|
+
switch (_b.label) {
|
|
640
698
|
case 0:
|
|
641
699
|
// verify required parameter 'productCode' is not null or undefined
|
|
642
700
|
(0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
|
|
@@ -657,13 +715,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
657
715
|
localVarQueryParameter = {};
|
|
658
716
|
// authentication bearer required
|
|
659
717
|
// http bearer authentication required
|
|
660
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
661
722
|
case 1:
|
|
662
723
|
// authentication bearer required
|
|
663
724
|
// http bearer authentication required
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
725
|
+
_b.sent();
|
|
726
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
727
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
667
731
|
}
|
|
668
732
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
669
733
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -690,9 +754,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
690
754
|
putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
|
|
691
755
|
if (options === void 0) { options = {}; }
|
|
692
756
|
return __awaiter(_this, void 0, void 0, function () {
|
|
693
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
694
|
-
|
|
695
|
-
|
|
757
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
758
|
+
var _a;
|
|
759
|
+
return __generator(this, function (_b) {
|
|
760
|
+
switch (_b.label) {
|
|
696
761
|
case 0:
|
|
697
762
|
// verify required parameter 'productCode' is not null or undefined
|
|
698
763
|
(0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
|
|
@@ -710,13 +775,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
710
775
|
localVarQueryParameter = {};
|
|
711
776
|
// authentication bearer required
|
|
712
777
|
// http bearer authentication required
|
|
713
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
714
782
|
case 1:
|
|
715
783
|
// authentication bearer required
|
|
716
784
|
// http bearer authentication required
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
785
|
+
_b.sent();
|
|
786
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
787
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
720
791
|
}
|
|
721
792
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
722
793
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -745,9 +816,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
745
816
|
putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
|
|
746
817
|
if (options === void 0) { options = {}; }
|
|
747
818
|
return __awaiter(_this, void 0, void 0, function () {
|
|
748
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
749
|
-
|
|
750
|
-
|
|
819
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
820
|
+
var _a;
|
|
821
|
+
return __generator(this, function (_b) {
|
|
822
|
+
switch (_b.label) {
|
|
751
823
|
case 0:
|
|
752
824
|
// verify required parameter 'productCode' is not null or undefined
|
|
753
825
|
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
|
|
@@ -771,13 +843,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
771
843
|
localVarQueryParameter = {};
|
|
772
844
|
// authentication bearer required
|
|
773
845
|
// http bearer authentication required
|
|
774
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
775
850
|
case 1:
|
|
776
851
|
// authentication bearer required
|
|
777
852
|
// http bearer authentication required
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
853
|
+
_b.sent();
|
|
854
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
855
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
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);
|
|
781
859
|
}
|
|
782
860
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
783
861
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1278,7 +1356,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1278
1356
|
*/
|
|
1279
1357
|
ProductAccountMappingsApi.prototype.deletePremiumItemAccount = function (requestParameters, options) {
|
|
1280
1358
|
var _this = this;
|
|
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); });
|
|
1359
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1282
1360
|
};
|
|
1283
1361
|
/**
|
|
1284
1362
|
* 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\"
|
|
@@ -1290,7 +1368,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1290
1368
|
*/
|
|
1291
1369
|
ProductAccountMappingsApi.prototype.deleteProductCategoryAccount = function (requestParameters, options) {
|
|
1292
1370
|
var _this = this;
|
|
1293
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1371
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1294
1372
|
};
|
|
1295
1373
|
/**
|
|
1296
1374
|
* 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\"
|
|
@@ -1302,7 +1380,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1302
1380
|
*/
|
|
1303
1381
|
ProductAccountMappingsApi.prototype.deleteProductRiskCarrier = function (requestParameters, options) {
|
|
1304
1382
|
var _this = this;
|
|
1305
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1383
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1306
1384
|
};
|
|
1307
1385
|
/**
|
|
1308
1386
|
* 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\"
|
|
@@ -1314,7 +1392,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1314
1392
|
*/
|
|
1315
1393
|
ProductAccountMappingsApi.prototype.deleteProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1316
1394
|
var _this = this;
|
|
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); });
|
|
1395
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1318
1396
|
};
|
|
1319
1397
|
/**
|
|
1320
1398
|
* 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\"
|
|
@@ -1326,7 +1404,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1326
1404
|
*/
|
|
1327
1405
|
ProductAccountMappingsApi.prototype.getProductAccountMapping = function (requestParameters, options) {
|
|
1328
1406
|
var _this = this;
|
|
1329
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1407
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1330
1408
|
};
|
|
1331
1409
|
/**
|
|
1332
1410
|
* 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\"
|
|
@@ -1338,7 +1416,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1338
1416
|
*/
|
|
1339
1417
|
ProductAccountMappingsApi.prototype.getProductVersionAccountMapping = function (requestParameters, options) {
|
|
1340
1418
|
var _this = this;
|
|
1341
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1419
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1342
1420
|
};
|
|
1343
1421
|
/**
|
|
1344
1422
|
* 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\"
|
|
@@ -1351,7 +1429,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1351
1429
|
ProductAccountMappingsApi.prototype.listProductAccountMappings = function (requestParameters, options) {
|
|
1352
1430
|
var _this = this;
|
|
1353
1431
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
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); });
|
|
1432
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1355
1433
|
};
|
|
1356
1434
|
/**
|
|
1357
1435
|
* 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\"
|
|
@@ -1364,7 +1442,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1364
1442
|
ProductAccountMappingsApi.prototype.listProductsWithAccountMappings = function (requestParameters, options) {
|
|
1365
1443
|
var _this = this;
|
|
1366
1444
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
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); });
|
|
1445
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1368
1446
|
};
|
|
1369
1447
|
/**
|
|
1370
1448
|
* 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\"
|
|
@@ -1376,7 +1454,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1376
1454
|
*/
|
|
1377
1455
|
ProductAccountMappingsApi.prototype.putPremiumItemAccount = function (requestParameters, options) {
|
|
1378
1456
|
var _this = this;
|
|
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); });
|
|
1457
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1380
1458
|
};
|
|
1381
1459
|
/**
|
|
1382
1460
|
* 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\"
|
|
@@ -1388,7 +1466,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1388
1466
|
*/
|
|
1389
1467
|
ProductAccountMappingsApi.prototype.putProductCategoryAccount = function (requestParameters, options) {
|
|
1390
1468
|
var _this = this;
|
|
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); });
|
|
1469
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1392
1470
|
};
|
|
1393
1471
|
/**
|
|
1394
1472
|
* 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\"
|
|
@@ -1400,7 +1478,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1400
1478
|
*/
|
|
1401
1479
|
ProductAccountMappingsApi.prototype.putProductRiskCarrier = function (requestParameters, options) {
|
|
1402
1480
|
var _this = this;
|
|
1403
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1481
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1404
1482
|
};
|
|
1405
1483
|
/**
|
|
1406
1484
|
* 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\"
|
|
@@ -1412,7 +1490,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1412
1490
|
*/
|
|
1413
1491
|
ProductAccountMappingsApi.prototype.putProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1414
1492
|
var _this = this;
|
|
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); });
|
|
1493
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1416
1494
|
};
|
|
1417
1495
|
return ProductAccountMappingsApi;
|
|
1418
1496
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare class BaseAPI {
|
|
|
63
63
|
protected configuration: Configuration;
|
|
64
64
|
private username?;
|
|
65
65
|
private password?;
|
|
66
|
+
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
|
|
66
67
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
67
68
|
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
68
69
|
private loadCredentials;
|
package/dist/base.js
CHANGED
|
@@ -163,6 +163,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
163
163
|
}
|
|
164
164
|
this.attachInterceptor(axios);
|
|
165
165
|
}
|
|
166
|
+
BaseAPI.prototype.withOwner = function (options) {
|
|
167
|
+
return __assign({}, options);
|
|
168
|
+
};
|
|
166
169
|
BaseAPI.prototype.initialize = function (env, targetWorkspace) {
|
|
167
170
|
if (env === void 0) { env = Environment.Production; }
|
|
168
171
|
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, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL AccountingService
|
|
69
69
|
* The EMIL AccountingService API description
|