@emilgroup/accounting-sdk 1.34.1-beta.75 → 1.34.1-beta.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/.openapi-generator/FILES +0 -2
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +16 -32
  4. package/api/booking-entries-api.ts +14 -24
  5. package/api/commission-account-mappings-api.ts +16 -32
  6. package/api/financial-accounts-api.ts +10 -20
  7. package/api/financial-transactions-api.ts +4 -8
  8. package/api/number-ranges-api.ts +8 -16
  9. package/api/personal-accounts-api.ts +8 -16
  10. package/api/product-account-mappings-api.ts +20 -265
  11. package/base.ts +41 -174
  12. package/common.ts +2 -3
  13. package/configuration.ts +0 -20
  14. package/dist/api/accounting-configs-api.d.ts +8 -8
  15. package/dist/api/accounting-configs-api.js +32 -56
  16. package/dist/api/booking-entries-api.d.ts +9 -9
  17. package/dist/api/booking-entries-api.js +22 -33
  18. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  19. package/dist/api/commission-account-mappings-api.js +29 -47
  20. package/dist/api/financial-accounts-api.d.ts +5 -5
  21. package/dist/api/financial-accounts-api.js +18 -29
  22. package/dist/api/financial-transactions-api.d.ts +2 -2
  23. package/dist/api/financial-transactions-api.js +6 -8
  24. package/dist/api/health-api.d.ts +1 -1
  25. package/dist/api/number-ranges-api.d.ts +4 -4
  26. package/dist/api/number-ranges-api.js +14 -22
  27. package/dist/api/personal-accounts-api.d.ts +4 -4
  28. package/dist/api/personal-accounts-api.js +14 -22
  29. package/dist/api/product-account-mappings-api.d.ts +10 -131
  30. package/dist/api/product-account-mappings-api.js +38 -261
  31. package/dist/base.d.ts +0 -24
  32. package/dist/base.js +59 -178
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +0 -1
  35. package/dist/configuration.d.ts +0 -17
  36. package/dist/configuration.js +0 -2
  37. package/dist/models/account-mapping-class.d.ts +0 -2
  38. package/dist/models/account-mapping-class.js +1 -3
  39. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -2
  40. package/dist/models/accounting-config-data-dto-default-account-mappings.js +1 -3
  41. package/dist/models/booking-entry-class.d.ts +2 -16
  42. package/dist/models/booking-entry-class.js +1 -3
  43. package/dist/models/create-booking-entry-request-dto.d.ts +2 -3
  44. package/dist/models/create-booking-entry-request-dto.js +2 -3
  45. package/dist/models/create-financial-account-request-dto.d.ts +0 -2
  46. package/dist/models/create-financial-account-request-dto.js +1 -3
  47. package/dist/models/financial-transaction-class.d.ts +0 -6
  48. package/dist/models/financial-transaction-data-dto.d.ts +0 -6
  49. package/dist/models/index.d.ts +0 -2
  50. package/dist/models/index.js +0 -2
  51. package/dist/models/post-financial-event-request-dto.d.ts +2 -3
  52. package/dist/models/post-financial-event-request-dto.js +0 -1
  53. package/dist/models/product-account-mapping-detail-class.d.ts +0 -6
  54. package/models/account-mapping-class.ts +1 -3
  55. package/models/accounting-config-data-dto-default-account-mappings.ts +1 -3
  56. package/models/booking-entry-class.ts +3 -17
  57. package/models/create-booking-entry-request-dto.ts +3 -4
  58. package/models/create-financial-account-request-dto.ts +1 -3
  59. package/models/financial-transaction-class.ts +0 -6
  60. package/models/financial-transaction-data-dto.ts +0 -6
  61. package/models/index.ts +0 -2
  62. package/models/post-financial-event-request-dto.ts +2 -3
  63. package/models/product-account-mapping-detail-class.ts +0 -6
  64. package/package.json +2 -2
  65. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  66. package/dist/models/product-risk-carrier-class.js +0 -15
  67. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  68. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  69. package/models/product-risk-carrier-class.ts +0 -48
  70. package/models/put-product-risk-carrier-body-dto.ts +0 -30
@@ -106,7 +106,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
106
106
  deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
107
107
  if (options === void 0) { options = {}; }
108
108
  return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
110
  return __generator(this, function (_a) {
111
111
  switch (_a.label) {
112
112
  case 0:
@@ -133,16 +133,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
133
133
  localVarQueryParameter = {};
134
134
  // authentication bearer required
135
135
  // http bearer authentication required
136
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
137
- // Only Authorization falls back to the configured token; an empty value is never sent.
138
- ];
136
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
139
137
  case 1:
140
138
  // authentication bearer required
141
139
  // http bearer authentication required
142
140
  _a.sent();
143
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
144
- if (authorizationValue) {
145
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
141
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
142
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
146
143
  }
147
144
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
148
145
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -167,7 +164,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
167
164
  deleteProductCategoryAccount: function (productCode, category, authorization, options) {
168
165
  if (options === void 0) { options = {}; }
169
166
  return __awaiter(_this, void 0, void 0, function () {
170
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
167
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
171
168
  return __generator(this, function (_a) {
172
169
  switch (_a.label) {
173
170
  case 0:
@@ -188,67 +185,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
188
185
  localVarQueryParameter = {};
189
186
  // authentication bearer required
190
187
  // http bearer authentication required
191
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
192
- // Only Authorization falls back to the configured token; an empty value is never sent.
193
- ];
194
- case 1:
195
- // authentication bearer required
196
- // http bearer authentication required
197
- _a.sent();
198
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
199
- if (authorizationValue) {
200
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
201
- }
202
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
203
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
205
- return [2 /*return*/, {
206
- url: (0, common_1.toPathString)(localVarUrlObj),
207
- options: localVarRequestOptions,
208
- }];
209
- }
210
- });
211
- });
212
- },
213
- /**
214
- * 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\"
215
- * @summary Delete the Product Risk Carrier
216
- * @param {string} productCode
217
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
218
- * @param {*} [options] Override http request option.
219
- * @throws {RequiredError}
220
- */
221
- deleteProductRiskCarrier: function (productCode, authorization, options) {
222
- if (options === void 0) { options = {}; }
223
- return __awaiter(_this, void 0, void 0, function () {
224
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
225
- return __generator(this, function (_a) {
226
- switch (_a.label) {
227
- case 0:
228
- // verify required parameter 'productCode' is not null or undefined
229
- (0, common_1.assertParamExists)('deleteProductRiskCarrier', 'productCode', productCode);
230
- localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier"
231
- .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
232
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
233
- if (configuration) {
234
- baseOptions = configuration.baseOptions;
235
- baseAccessToken = configuration.accessToken;
236
- }
237
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
238
- localVarHeaderParameter = {};
239
- localVarQueryParameter = {};
240
- // authentication bearer required
241
- // http bearer authentication required
242
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
243
- // Only Authorization falls back to the configured token; an empty value is never sent.
244
- ];
188
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
245
189
  case 1:
246
190
  // authentication bearer required
247
191
  // http bearer authentication required
248
192
  _a.sent();
249
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
250
- if (authorizationValue) {
251
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
193
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
194
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
195
  }
253
196
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
197
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -274,7 +217,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
274
217
  deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
275
218
  if (options === void 0) { options = {}; }
276
219
  return __awaiter(_this, void 0, void 0, function () {
277
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
220
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
278
221
  return __generator(this, function (_a) {
279
222
  switch (_a.label) {
280
223
  case 0:
@@ -298,16 +241,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
298
241
  localVarQueryParameter = {};
299
242
  // authentication bearer required
300
243
  // http bearer authentication required
301
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
302
- // Only Authorization falls back to the configured token; an empty value is never sent.
303
- ];
244
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
304
245
  case 1:
305
246
  // authentication bearer required
306
247
  // http bearer authentication required
307
248
  _a.sent();
308
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
309
- if (authorizationValue) {
310
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
249
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
250
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
251
  }
312
252
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
253
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -331,7 +271,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
331
271
  getProductAccountMapping: function (productCode, authorization, options) {
332
272
  if (options === void 0) { options = {}; }
333
273
  return __awaiter(_this, void 0, void 0, function () {
334
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
275
  return __generator(this, function (_a) {
336
276
  switch (_a.label) {
337
277
  case 0:
@@ -349,16 +289,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
349
289
  localVarQueryParameter = {};
350
290
  // authentication bearer required
351
291
  // http bearer authentication required
352
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
353
- // Only Authorization falls back to the configured token; an empty value is never sent.
354
- ];
292
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
355
293
  case 1:
356
294
  // authentication bearer required
357
295
  // http bearer authentication required
358
296
  _a.sent();
359
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
360
- if (authorizationValue) {
361
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
297
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
298
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
362
299
  }
363
300
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
364
301
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -383,7 +320,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
383
320
  getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
384
321
  if (options === void 0) { options = {}; }
385
322
  return __awaiter(_this, void 0, void 0, function () {
386
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
323
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
387
324
  return __generator(this, function (_a) {
388
325
  switch (_a.label) {
389
326
  case 0:
@@ -404,16 +341,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
404
341
  localVarQueryParameter = {};
405
342
  // authentication bearer required
406
343
  // http bearer authentication required
407
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
408
- // Only Authorization falls back to the configured token; an empty value is never sent.
409
- ];
344
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
410
345
  case 1:
411
346
  // authentication bearer required
412
347
  // http bearer authentication required
413
348
  _a.sent();
414
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
415
- if (authorizationValue) {
416
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
349
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
417
351
  }
418
352
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
419
353
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -443,7 +377,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
443
377
  listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
444
378
  if (options === void 0) { options = {}; }
445
379
  return __awaiter(_this, void 0, void 0, function () {
446
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
380
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
447
381
  return __generator(this, function (_a) {
448
382
  switch (_a.label) {
449
383
  case 0:
@@ -484,9 +418,8 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
484
418
  if (filters !== undefined) {
485
419
  localVarQueryParameter['filters'] = filters;
486
420
  }
487
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
488
- if (authorizationValue) {
489
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
421
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
422
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
490
423
  }
491
424
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
492
425
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -516,7 +449,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
516
449
  listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
517
450
  if (options === void 0) { options = {}; }
518
451
  return __awaiter(_this, void 0, void 0, function () {
519
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
452
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
520
453
  return __generator(this, function (_a) {
521
454
  switch (_a.label) {
522
455
  case 0:
@@ -557,9 +490,8 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
557
490
  if (filters !== undefined) {
558
491
  localVarQueryParameter['filters'] = filters;
559
492
  }
560
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
561
- if (authorizationValue) {
562
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
493
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
494
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
563
495
  }
564
496
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
565
497
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -587,7 +519,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
587
519
  putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
588
520
  if (options === void 0) { options = {}; }
589
521
  return __awaiter(_this, void 0, void 0, function () {
590
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
522
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
591
523
  return __generator(this, function (_a) {
592
524
  switch (_a.label) {
593
525
  case 0:
@@ -616,16 +548,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
616
548
  localVarQueryParameter = {};
617
549
  // authentication bearer required
618
550
  // http bearer authentication required
619
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
620
- // Only Authorization falls back to the configured token; an empty value is never sent.
621
- ];
551
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
622
552
  case 1:
623
553
  // authentication bearer required
624
554
  // http bearer authentication required
625
555
  _a.sent();
626
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
627
- if (authorizationValue) {
628
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
556
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
557
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
629
558
  }
630
559
  localVarHeaderParameter['Content-Type'] = 'application/json';
631
560
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -653,7 +582,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
653
582
  putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
654
583
  if (options === void 0) { options = {}; }
655
584
  return __awaiter(_this, void 0, void 0, function () {
656
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
585
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
657
586
  return __generator(this, function (_a) {
658
587
  switch (_a.label) {
659
588
  case 0:
@@ -676,16 +605,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
676
605
  localVarQueryParameter = {};
677
606
  // authentication bearer required
678
607
  // http bearer authentication required
679
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
680
- // Only Authorization falls back to the configured token; an empty value is never sent.
681
- ];
608
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
682
609
  case 1:
683
610
  // authentication bearer required
684
611
  // http bearer authentication required
685
612
  _a.sent();
686
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
687
- if (authorizationValue) {
688
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
613
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
614
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
689
615
  }
690
616
  localVarHeaderParameter['Content-Type'] = 'application/json';
691
617
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -700,62 +626,6 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
700
626
  });
701
627
  });
702
628
  },
703
- /**
704
- * 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\"
705
- * @summary Update the Product Risk Carrier
706
- * @param {string} productCode
707
- * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
708
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
- * @param {*} [options] Override http request option.
710
- * @throws {RequiredError}
711
- */
712
- putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
713
- if (options === void 0) { options = {}; }
714
- return __awaiter(_this, void 0, void 0, function () {
715
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
716
- return __generator(this, function (_a) {
717
- switch (_a.label) {
718
- case 0:
719
- // verify required parameter 'productCode' is not null or undefined
720
- (0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
721
- // verify required parameter 'putProductRiskCarrierBodyDto' is not null or undefined
722
- (0, common_1.assertParamExists)('putProductRiskCarrier', 'putProductRiskCarrierBodyDto', putProductRiskCarrierBodyDto);
723
- localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier"
724
- .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
725
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
726
- if (configuration) {
727
- baseOptions = configuration.baseOptions;
728
- baseAccessToken = configuration.accessToken;
729
- }
730
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
731
- localVarHeaderParameter = {};
732
- localVarQueryParameter = {};
733
- // authentication bearer required
734
- // http bearer authentication required
735
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
736
- // Only Authorization falls back to the configured token; an empty value is never sent.
737
- ];
738
- case 1:
739
- // authentication bearer required
740
- // http bearer authentication required
741
- _a.sent();
742
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
743
- if (authorizationValue) {
744
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
745
- }
746
- localVarHeaderParameter['Content-Type'] = 'application/json';
747
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
748
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
749
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
750
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putProductRiskCarrierBodyDto, localVarRequestOptions, configuration);
751
- return [2 /*return*/, {
752
- url: (0, common_1.toPathString)(localVarUrlObj),
753
- options: localVarRequestOptions,
754
- }];
755
- }
756
- });
757
- });
758
- },
759
629
  /**
760
630
  * 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\"
761
631
  * @summary Update the Product Version Category Account
@@ -770,7 +640,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
770
640
  putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
771
641
  if (options === void 0) { options = {}; }
772
642
  return __awaiter(_this, void 0, void 0, function () {
773
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
643
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
774
644
  return __generator(this, function (_a) {
775
645
  switch (_a.label) {
776
646
  case 0:
@@ -796,16 +666,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
796
666
  localVarQueryParameter = {};
797
667
  // authentication bearer required
798
668
  // http bearer authentication required
799
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
800
- // Only Authorization falls back to the configured token; an empty value is never sent.
801
- ];
669
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
802
670
  case 1:
803
671
  // authentication bearer required
804
672
  // http bearer authentication required
805
673
  _a.sent();
806
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
807
- if (authorizationValue) {
808
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
674
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
675
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
809
676
  }
810
677
  localVarHeaderParameter['Content-Type'] = 'application/json';
811
678
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -876,27 +743,6 @@ var ProductAccountMappingsApiFp = function (configuration) {
876
743
  });
877
744
  });
878
745
  },
879
- /**
880
- * 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\"
881
- * @summary Delete the Product Risk Carrier
882
- * @param {string} productCode
883
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
884
- * @param {*} [options] Override http request option.
885
- * @throws {RequiredError}
886
- */
887
- deleteProductRiskCarrier: function (productCode, authorization, options) {
888
- return __awaiter(this, void 0, void 0, function () {
889
- var localVarAxiosArgs;
890
- return __generator(this, function (_a) {
891
- switch (_a.label) {
892
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductRiskCarrier(productCode, authorization, options)];
893
- case 1:
894
- localVarAxiosArgs = _a.sent();
895
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
896
- }
897
- });
898
- });
899
- },
900
746
  /**
901
747
  * 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\"
902
748
  * @summary Delete the Product Version Category Account
@@ -1065,28 +911,6 @@ var ProductAccountMappingsApiFp = function (configuration) {
1065
911
  });
1066
912
  });
1067
913
  },
1068
- /**
1069
- * 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\"
1070
- * @summary Update the Product Risk Carrier
1071
- * @param {string} productCode
1072
- * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
1073
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1074
- * @param {*} [options] Override http request option.
1075
- * @throws {RequiredError}
1076
- */
1077
- putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
1078
- return __awaiter(this, void 0, void 0, function () {
1079
- var localVarAxiosArgs;
1080
- return __generator(this, function (_a) {
1081
- switch (_a.label) {
1082
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options)];
1083
- case 1:
1084
- localVarAxiosArgs = _a.sent();
1085
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1086
- }
1087
- });
1088
- });
1089
- },
1090
914
  /**
1091
915
  * 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\"
1092
916
  * @summary Update the Product Version Category Account
@@ -1147,17 +971,6 @@ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios)
1147
971
  deleteProductCategoryAccount: function (productCode, category, authorization, options) {
1148
972
  return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
1149
973
  },
1150
- /**
1151
- * 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\"
1152
- * @summary Delete the Product Risk Carrier
1153
- * @param {string} productCode
1154
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1155
- * @param {*} [options] Override http request option.
1156
- * @throws {RequiredError}
1157
- */
1158
- deleteProductRiskCarrier: function (productCode, authorization, options) {
1159
- return localVarFp.deleteProductRiskCarrier(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
1160
- },
1161
974
  /**
1162
975
  * 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\"
1163
976
  * @summary Delete the Product Version Category Account
@@ -1256,18 +1069,6 @@ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios)
1256
1069
  putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
1257
1070
  return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1258
1071
  },
1259
- /**
1260
- * 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\"
1261
- * @summary Update the Product Risk Carrier
1262
- * @param {string} productCode
1263
- * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
1264
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1265
- * @param {*} [options] Override http request option.
1266
- * @throws {RequiredError}
1267
- */
1268
- putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
1269
- return localVarFp.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1270
- },
1271
1072
  /**
1272
1073
  * 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\"
1273
1074
  * @summary Update the Product Version Category Account
@@ -1320,18 +1121,6 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1320
1121
  var _this = this;
1321
1122
  return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1322
1123
  };
1323
- /**
1324
- * 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\"
1325
- * @summary Delete the Product Risk Carrier
1326
- * @param {ProductAccountMappingsApiDeleteProductRiskCarrierRequest} requestParameters Request parameters.
1327
- * @param {*} [options] Override http request option.
1328
- * @throws {RequiredError}
1329
- * @memberof ProductAccountMappingsApi
1330
- */
1331
- ProductAccountMappingsApi.prototype.deleteProductRiskCarrier = function (requestParameters, options) {
1332
- var _this = this;
1333
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1334
- };
1335
1124
  /**
1336
1125
  * 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\"
1337
1126
  * @summary Delete the Product Version Category Account
@@ -1418,18 +1207,6 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1418
1207
  var _this = this;
1419
1208
  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); });
1420
1209
  };
1421
- /**
1422
- * 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\"
1423
- * @summary Update the Product Risk Carrier
1424
- * @param {ProductAccountMappingsApiPutProductRiskCarrierRequest} requestParameters Request parameters.
1425
- * @param {*} [options] Override http request option.
1426
- * @throws {RequiredError}
1427
- * @memberof ProductAccountMappingsApi
1428
- */
1429
- ProductAccountMappingsApi.prototype.putProductRiskCarrier = function (requestParameters, options) {
1430
- var _this = this;
1431
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1432
- };
1433
1210
  /**
1434
1211
  * 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\"
1435
1212
  * @summary Update the Product Version Category Account
package/dist/base.d.ts CHANGED
@@ -22,19 +22,9 @@ export declare const COLLECTION_FORMATS: {
22
22
  tsv: string;
23
23
  pipes: string;
24
24
  };
25
- export interface SessionClass {
26
- sub: string;
27
- username?: string;
28
- email?: string;
29
- tenantSlug?: string;
30
- permissions?: string;
31
- expiresAt?: number;
32
- }
33
25
  export interface LoginClass {
34
26
  accessToken: string;
35
27
  permissions: string;
36
- authMode?: string;
37
- session?: SessionClass;
38
28
  }
39
29
  export interface SwitchWorkspaceRequest {
40
30
  username: string;
@@ -43,8 +33,6 @@ export interface SwitchWorkspaceRequest {
43
33
  export interface SwitchWorkspaceResponseClass {
44
34
  accessToken: string;
45
35
  permissions: string;
46
- authMode?: string;
47
- session?: SessionClass;
48
36
  }
49
37
  export declare enum Environment {
50
38
  Production = "https://apiv2.emil.de",
@@ -75,18 +63,6 @@ export declare class BaseAPI {
75
63
  protected configuration: Configuration | undefined;
76
64
  private tokenData?;
77
65
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
78
- private sessionAccount;
79
- private authBasePath;
80
- private usesSession;
81
- private useSessionAuth;
82
- private useHeaderAuth;
83
- private applyTokenReply;
84
- private sessionHeaders;
85
- private withCurrentAuth;
86
- private canRetryWithToken;
87
- private canResend;
88
- private switchToToken;
89
- private retryWithToken;
90
66
  selectEnvironment(env: Environment): void;
91
67
  selectBasePath(path: string): void;
92
68
  getPermissions(): Array<string>;