@emilgroup/accounting-sdk-node 1.32.1-beta.81 → 1.32.1-beta.83

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.
@@ -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, authorizationValue, headersFromBaseOptions;
114
- return __generator(this, function (_a) {
115
- switch (_a.label) {
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);
@@ -138,14 +139,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
138
139
  // authentication bearer required
139
140
  // http bearer authentication required
140
141
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
141
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
142
144
  ];
143
145
  case 1:
144
146
  // authentication bearer required
145
147
  // http bearer authentication required
146
- _a.sent();
147
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
148
- if (authorizationValue) {
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) {
149
153
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
150
154
  }
151
155
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -171,9 +175,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
171
175
  deleteProductCategoryAccount: function (productCode, category, authorization, options) {
172
176
  if (options === void 0) { options = {}; }
173
177
  return __awaiter(_this, void 0, void 0, function () {
174
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
175
- return __generator(this, function (_a) {
176
- switch (_a.label) {
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) {
177
182
  case 0:
178
183
  // verify required parameter 'productCode' is not null or undefined
179
184
  (0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
@@ -193,14 +198,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
193
198
  // authentication bearer required
194
199
  // http bearer authentication required
195
200
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
196
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
197
203
  ];
198
204
  case 1:
199
205
  // authentication bearer required
200
206
  // http bearer authentication required
201
- _a.sent();
202
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
203
- if (authorizationValue) {
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) {
204
212
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
205
213
  }
206
214
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -225,9 +233,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
225
233
  deleteProductRiskCarrier: function (productCode, authorization, options) {
226
234
  if (options === void 0) { options = {}; }
227
235
  return __awaiter(_this, void 0, void 0, function () {
228
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
229
- return __generator(this, function (_a) {
230
- switch (_a.label) {
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) {
231
240
  case 0:
232
241
  // verify required parameter 'productCode' is not null or undefined
233
242
  (0, common_1.assertParamExists)('deleteProductRiskCarrier', 'productCode', productCode);
@@ -244,14 +253,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
244
253
  // authentication bearer required
245
254
  // http bearer authentication required
246
255
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
247
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
248
258
  ];
249
259
  case 1:
250
260
  // authentication bearer required
251
261
  // http bearer authentication required
252
- _a.sent();
253
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
254
- if (authorizationValue) {
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) {
255
267
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
256
268
  }
257
269
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -278,9 +290,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
278
290
  deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
279
291
  if (options === void 0) { options = {}; }
280
292
  return __awaiter(_this, void 0, void 0, function () {
281
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
282
- return __generator(this, function (_a) {
283
- switch (_a.label) {
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) {
284
297
  case 0:
285
298
  // verify required parameter 'productCode' is not null or undefined
286
299
  (0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
@@ -303,14 +316,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
303
316
  // authentication bearer required
304
317
  // http bearer authentication required
305
318
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
306
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
307
321
  ];
308
322
  case 1:
309
323
  // authentication bearer required
310
324
  // http bearer authentication required
311
- _a.sent();
312
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
313
- if (authorizationValue) {
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) {
314
330
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
315
331
  }
316
332
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -335,9 +351,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
335
351
  getProductAccountMapping: function (productCode, authorization, options) {
336
352
  if (options === void 0) { options = {}; }
337
353
  return __awaiter(_this, void 0, void 0, function () {
338
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
339
- return __generator(this, function (_a) {
340
- switch (_a.label) {
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) {
341
358
  case 0:
342
359
  // verify required parameter 'productCode' is not null or undefined
343
360
  (0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
@@ -354,14 +371,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
354
371
  // authentication bearer required
355
372
  // http bearer authentication required
356
373
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
358
376
  ];
359
377
  case 1:
360
378
  // authentication bearer required
361
379
  // http bearer authentication required
362
- _a.sent();
363
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
- if (authorizationValue) {
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) {
365
385
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
366
386
  }
367
387
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -387,9 +407,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
387
407
  getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
388
408
  if (options === void 0) { options = {}; }
389
409
  return __awaiter(_this, void 0, void 0, function () {
390
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
391
- return __generator(this, function (_a) {
392
- switch (_a.label) {
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) {
393
414
  case 0:
394
415
  // verify required parameter 'productCode' is not null or undefined
395
416
  (0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
@@ -409,14 +430,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
409
430
  // authentication bearer required
410
431
  // http bearer authentication required
411
432
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
412
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
413
435
  ];
414
436
  case 1:
415
437
  // authentication bearer required
416
438
  // http bearer authentication required
417
- _a.sent();
418
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
419
- if (authorizationValue) {
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) {
420
444
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
421
445
  }
422
446
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -447,9 +471,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
447
471
  listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
448
472
  if (options === void 0) { options = {}; }
449
473
  return __awaiter(_this, void 0, void 0, function () {
450
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
451
- return __generator(this, function (_a) {
452
- switch (_a.label) {
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) {
453
478
  case 0:
454
479
  localVarPath = "/accountingservice/v1/product-account-mappings";
455
480
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -466,7 +491,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
466
491
  case 1:
467
492
  // authentication bearer required
468
493
  // http bearer authentication required
469
- _a.sent();
494
+ _b.sent();
470
495
  if (pageSize !== undefined) {
471
496
  localVarQueryParameter['pageSize'] = pageSize;
472
497
  }
@@ -488,8 +513,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
488
513
  if (filters !== undefined) {
489
514
  localVarQueryParameter['filters'] = filters;
490
515
  }
491
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
492
- if (authorizationValue) {
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) {
493
520
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
494
521
  }
495
522
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -520,9 +547,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
520
547
  listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
521
548
  if (options === void 0) { options = {}; }
522
549
  return __awaiter(_this, void 0, void 0, function () {
523
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
524
- return __generator(this, function (_a) {
525
- switch (_a.label) {
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) {
526
554
  case 0:
527
555
  localVarPath = "/accountingservice/v1/product-account-mappings/products";
528
556
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -539,7 +567,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
539
567
  case 1:
540
568
  // authentication bearer required
541
569
  // http bearer authentication required
542
- _a.sent();
570
+ _b.sent();
543
571
  if (pageSize !== undefined) {
544
572
  localVarQueryParameter['pageSize'] = pageSize;
545
573
  }
@@ -561,8 +589,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
561
589
  if (filters !== undefined) {
562
590
  localVarQueryParameter['filters'] = filters;
563
591
  }
564
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
565
- if (authorizationValue) {
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) {
566
596
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
567
597
  }
568
598
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -591,9 +621,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
591
621
  putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
592
622
  if (options === void 0) { options = {}; }
593
623
  return __awaiter(_this, void 0, void 0, function () {
594
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
595
- return __generator(this, function (_a) {
596
- switch (_a.label) {
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) {
597
628
  case 0:
598
629
  // verify required parameter 'productCode' is not null or undefined
599
630
  (0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
@@ -621,14 +652,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
621
652
  // authentication bearer required
622
653
  // http bearer authentication required
623
654
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
624
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
625
657
  ];
626
658
  case 1:
627
659
  // authentication bearer required
628
660
  // http bearer authentication required
629
- _a.sent();
630
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
631
- if (authorizationValue) {
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) {
632
666
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
633
667
  }
634
668
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -657,9 +691,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
657
691
  putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
658
692
  if (options === void 0) { options = {}; }
659
693
  return __awaiter(_this, void 0, void 0, function () {
660
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
661
- return __generator(this, function (_a) {
662
- switch (_a.label) {
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) {
663
698
  case 0:
664
699
  // verify required parameter 'productCode' is not null or undefined
665
700
  (0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
@@ -681,14 +716,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
681
716
  // authentication bearer required
682
717
  // http bearer authentication required
683
718
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
684
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
685
721
  ];
686
722
  case 1:
687
723
  // authentication bearer required
688
724
  // http bearer authentication required
689
- _a.sent();
690
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
691
- if (authorizationValue) {
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) {
692
730
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
693
731
  }
694
732
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -716,9 +754,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
716
754
  putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
717
755
  if (options === void 0) { options = {}; }
718
756
  return __awaiter(_this, void 0, void 0, function () {
719
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
720
- return __generator(this, function (_a) {
721
- switch (_a.label) {
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) {
722
761
  case 0:
723
762
  // verify required parameter 'productCode' is not null or undefined
724
763
  (0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
@@ -737,14 +776,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
737
776
  // authentication bearer required
738
777
  // http bearer authentication required
739
778
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
740
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
741
781
  ];
742
782
  case 1:
743
783
  // authentication bearer required
744
784
  // http bearer authentication required
745
- _a.sent();
746
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
747
- if (authorizationValue) {
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) {
748
790
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
749
791
  }
750
792
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -774,9 +816,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
774
816
  putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
775
817
  if (options === void 0) { options = {}; }
776
818
  return __awaiter(_this, void 0, void 0, function () {
777
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
778
- return __generator(this, function (_a) {
779
- switch (_a.label) {
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) {
780
823
  case 0:
781
824
  // verify required parameter 'productCode' is not null or undefined
782
825
  (0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
@@ -801,14 +844,17 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
801
844
  // authentication bearer required
802
845
  // http bearer authentication required
803
846
  return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
804
- // Only Authorization falls back to the configured token; an empty value is never sent.
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.
805
849
  ];
806
850
  case 1:
807
851
  // authentication bearer required
808
852
  // http bearer authentication required
809
- _a.sent();
810
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
811
- if (authorizationValue) {
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) {
812
858
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
813
859
  }
814
860
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -35,4 +35,10 @@ export interface AccountingConfigDataClass {
35
35
  * @memberof AccountingConfigDataClass
36
36
  */
37
37
  'accountingConfiguration'?: AccountingConfigurationClass;
38
+ /**
39
+ *
40
+ * @type {Array<object>}
41
+ * @memberof AccountingConfigDataClass
42
+ */
43
+ 'personalAccountRanges': Array<object>;
38
44
  }
@@ -35,4 +35,10 @@ export interface AccountingConfigDataDto {
35
35
  * @memberof AccountingConfigDataDto
36
36
  */
37
37
  'accountingConfiguration'?: AccountingConfigDataDtoAccountingConfiguration;
38
+ /**
39
+ *
40
+ * @type {Array<object>}
41
+ * @memberof AccountingConfigDataDto
42
+ */
43
+ 'personalAccountRanges': Array<object>;
38
44
  }
@@ -40,5 +40,11 @@ export interface AccountingConfigDataClass {
40
40
  * @memberof AccountingConfigDataClass
41
41
  */
42
42
  'accountingConfiguration'?: AccountingConfigurationClass;
43
+ /**
44
+ *
45
+ * @type {Array<object>}
46
+ * @memberof AccountingConfigDataClass
47
+ */
48
+ 'personalAccountRanges': Array<object>;
43
49
  }
44
50
 
@@ -40,5 +40,11 @@ export interface AccountingConfigDataDto {
40
40
  * @memberof AccountingConfigDataDto
41
41
  */
42
42
  'accountingConfiguration'?: AccountingConfigDataDtoAccountingConfiguration;
43
+ /**
44
+ *
45
+ * @type {Array<object>}
46
+ * @memberof AccountingConfigDataDto
47
+ */
48
+ 'personalAccountRanges': Array<object>;
43
49
  }
44
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.32.1-beta.81",
3
+ "version": "1.32.1-beta.83",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [