@emilgroup/accounting-sdk-node 1.32.1-beta.82 → 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.
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +48 -24
- package/api/booking-entries-api.ts +30 -15
- package/api/commission-account-mappings-api.ts +48 -24
- package/api/financial-accounts-api.ts +30 -15
- package/api/financial-transactions-api.ts +12 -6
- package/api/number-ranges-api.ts +24 -12
- package/api/personal-accounts-api.ts +24 -12
- package/api/product-account-mappings-api.ts +72 -36
- package/dist/api/accounting-configs-api.js +88 -56
- package/dist/api/booking-entries-api.js +51 -33
- package/dist/api/commission-account-mappings-api.js +82 -53
- package/dist/api/financial-accounts-api.js +51 -33
- package/dist/api/financial-transactions-api.js +18 -12
- package/dist/api/number-ranges-api.js +40 -26
- package/dist/api/personal-accounts-api.js +40 -26
- package/dist/api/product-account-mappings-api.js +128 -82
- package/dist/models/accounting-config-data-class.d.ts +6 -0
- package/dist/models/accounting-config-data-dto.d.ts +6 -0
- package/models/accounting-config-data-class.ts +6 -0
- package/models/accounting-config-data-dto.ts +6 -0
- package/package.json +1 -1
|
@@ -107,9 +107,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createFinancialAccountRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
|
|
@@ -125,14 +126,17 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
deleteFinancialAccount: function (code, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'code' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
|
|
@@ -178,14 +183,17 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -211,9 +219,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
211
219
|
getFinancialAccount: function (code, expand, authorization, options) {
|
|
212
220
|
if (options === void 0) { options = {}; }
|
|
213
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
217
226
|
case 0:
|
|
218
227
|
// verify required parameter 'code' is not null or undefined
|
|
219
228
|
(0, common_1.assertParamExists)('getFinancialAccount', 'code', code);
|
|
@@ -235,12 +244,14 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
235
244
|
case 1:
|
|
236
245
|
// authentication bearer required
|
|
237
246
|
// http bearer authentication required
|
|
238
|
-
|
|
247
|
+
_b.sent();
|
|
239
248
|
if (expand !== undefined) {
|
|
240
249
|
localVarQueryParameter['expand'] = expand;
|
|
241
250
|
}
|
|
242
|
-
|
|
243
|
-
|
|
251
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
252
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
244
255
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
256
|
}
|
|
246
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -271,9 +282,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
271
282
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
283
|
if (options === void 0) { options = {}; }
|
|
273
284
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
286
|
+
var _a;
|
|
287
|
+
return __generator(this, function (_b) {
|
|
288
|
+
switch (_b.label) {
|
|
277
289
|
case 0:
|
|
278
290
|
localVarPath = "/accountingservice/v1/financial-accounts";
|
|
279
291
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -290,7 +302,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
290
302
|
case 1:
|
|
291
303
|
// authentication bearer required
|
|
292
304
|
// http bearer authentication required
|
|
293
|
-
|
|
305
|
+
_b.sent();
|
|
294
306
|
if (pageSize !== undefined) {
|
|
295
307
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
296
308
|
}
|
|
@@ -312,8 +324,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
312
324
|
if (filters !== undefined) {
|
|
313
325
|
localVarQueryParameter['filters'] = filters;
|
|
314
326
|
}
|
|
315
|
-
|
|
316
|
-
|
|
327
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
328
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
329
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
317
331
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
318
332
|
}
|
|
319
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -339,9 +353,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
339
353
|
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
340
354
|
if (options === void 0) { options = {}; }
|
|
341
355
|
return __awaiter(_this, void 0, void 0, function () {
|
|
342
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
343
|
-
|
|
344
|
-
|
|
356
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
357
|
+
var _a;
|
|
358
|
+
return __generator(this, function (_b) {
|
|
359
|
+
switch (_b.label) {
|
|
345
360
|
case 0:
|
|
346
361
|
// verify required parameter 'code' is not null or undefined
|
|
347
362
|
(0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
|
|
@@ -360,14 +375,17 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
360
375
|
// authentication bearer required
|
|
361
376
|
// http bearer authentication required
|
|
362
377
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
363
|
-
// Only Authorization falls back to the configured token
|
|
378
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
379
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
364
380
|
];
|
|
365
381
|
case 1:
|
|
366
382
|
// authentication bearer required
|
|
367
383
|
// http bearer authentication required
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
384
|
+
_b.sent();
|
|
385
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
386
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
387
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
388
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
371
389
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
372
390
|
}
|
|
373
391
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -108,9 +108,10 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
getFinancialTransaction: function (code, expand, authorization, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
112
|
+
var _a;
|
|
113
|
+
return __generator(this, function (_b) {
|
|
114
|
+
switch (_b.label) {
|
|
114
115
|
case 0:
|
|
115
116
|
// verify required parameter 'code' is not null or undefined
|
|
116
117
|
(0, common_1.assertParamExists)('getFinancialTransaction', 'code', code);
|
|
@@ -132,12 +133,14 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
132
133
|
case 1:
|
|
133
134
|
// authentication bearer required
|
|
134
135
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
+
_b.sent();
|
|
136
137
|
if (expand !== undefined) {
|
|
137
138
|
localVarQueryParameter['expand'] = expand;
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
141
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
142
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
143
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
141
144
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
142
145
|
}
|
|
143
146
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -168,9 +171,10 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
168
171
|
listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
169
172
|
if (options === void 0) { options = {}; }
|
|
170
173
|
return __awaiter(_this, void 0, void 0, function () {
|
|
171
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
175
|
+
var _a;
|
|
176
|
+
return __generator(this, function (_b) {
|
|
177
|
+
switch (_b.label) {
|
|
174
178
|
case 0:
|
|
175
179
|
localVarPath = "/accountingservice/v1/financial-transactions";
|
|
176
180
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -187,7 +191,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
187
191
|
case 1:
|
|
188
192
|
// authentication bearer required
|
|
189
193
|
// http bearer authentication required
|
|
190
|
-
|
|
194
|
+
_b.sent();
|
|
191
195
|
if (pageSize !== undefined) {
|
|
192
196
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
193
197
|
}
|
|
@@ -209,8 +213,10 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
209
213
|
if (filters !== undefined) {
|
|
210
214
|
localVarQueryParameter['filters'] = filters;
|
|
211
215
|
}
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
217
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
218
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
219
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
214
220
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
215
221
|
}
|
|
216
222
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -107,9 +107,10 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createNumberRangeRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createNumberRange', 'createNumberRangeRequestDto', createNumberRangeRequestDto);
|
|
@@ -125,14 +126,17 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
deleteNumberRange: function (code, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'code' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('deleteNumberRange', 'code', code);
|
|
@@ -178,14 +183,17 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -211,9 +219,10 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
211
219
|
getNumberRange: function (code, expand, authorization, options) {
|
|
212
220
|
if (options === void 0) { options = {}; }
|
|
213
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
217
226
|
case 0:
|
|
218
227
|
// verify required parameter 'code' is not null or undefined
|
|
219
228
|
(0, common_1.assertParamExists)('getNumberRange', 'code', code);
|
|
@@ -235,12 +244,14 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
235
244
|
case 1:
|
|
236
245
|
// authentication bearer required
|
|
237
246
|
// http bearer authentication required
|
|
238
|
-
|
|
247
|
+
_b.sent();
|
|
239
248
|
if (expand !== undefined) {
|
|
240
249
|
localVarQueryParameter['expand'] = expand;
|
|
241
250
|
}
|
|
242
|
-
|
|
243
|
-
|
|
251
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
252
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
244
255
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
256
|
}
|
|
246
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -271,9 +282,10 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
271
282
|
listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
283
|
if (options === void 0) { options = {}; }
|
|
273
284
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
286
|
+
var _a;
|
|
287
|
+
return __generator(this, function (_b) {
|
|
288
|
+
switch (_b.label) {
|
|
277
289
|
case 0:
|
|
278
290
|
localVarPath = "/accountingservice/v1/number-ranges";
|
|
279
291
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -290,7 +302,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
290
302
|
case 1:
|
|
291
303
|
// authentication bearer required
|
|
292
304
|
// http bearer authentication required
|
|
293
|
-
|
|
305
|
+
_b.sent();
|
|
294
306
|
if (pageSize !== undefined) {
|
|
295
307
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
296
308
|
}
|
|
@@ -312,8 +324,10 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
312
324
|
if (filters !== undefined) {
|
|
313
325
|
localVarQueryParameter['filters'] = filters;
|
|
314
326
|
}
|
|
315
|
-
|
|
316
|
-
|
|
327
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
328
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
329
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
317
331
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
318
332
|
}
|
|
319
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -107,9 +107,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createPersonalAccountRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createPersonalAccount', 'createPersonalAccountRequestDto', createPersonalAccountRequestDto);
|
|
@@ -125,14 +126,17 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
deletePersonalAccount: function (code, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'code' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('deletePersonalAccount', 'code', code);
|
|
@@ -178,14 +183,17 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -211,9 +219,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
211
219
|
getPersonalAccount: function (code, expand, authorization, options) {
|
|
212
220
|
if (options === void 0) { options = {}; }
|
|
213
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
217
226
|
case 0:
|
|
218
227
|
// verify required parameter 'code' is not null or undefined
|
|
219
228
|
(0, common_1.assertParamExists)('getPersonalAccount', 'code', code);
|
|
@@ -235,12 +244,14 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
235
244
|
case 1:
|
|
236
245
|
// authentication bearer required
|
|
237
246
|
// http bearer authentication required
|
|
238
|
-
|
|
247
|
+
_b.sent();
|
|
239
248
|
if (expand !== undefined) {
|
|
240
249
|
localVarQueryParameter['expand'] = expand;
|
|
241
250
|
}
|
|
242
|
-
|
|
243
|
-
|
|
251
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
252
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
244
255
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
256
|
}
|
|
246
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -271,9 +282,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
271
282
|
listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
283
|
if (options === void 0) { options = {}; }
|
|
273
284
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
286
|
+
var _a;
|
|
287
|
+
return __generator(this, function (_b) {
|
|
288
|
+
switch (_b.label) {
|
|
277
289
|
case 0:
|
|
278
290
|
localVarPath = "/accountingservice/v1/personal-accounts";
|
|
279
291
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -290,7 +302,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
290
302
|
case 1:
|
|
291
303
|
// authentication bearer required
|
|
292
304
|
// http bearer authentication required
|
|
293
|
-
|
|
305
|
+
_b.sent();
|
|
294
306
|
if (pageSize !== undefined) {
|
|
295
307
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
296
308
|
}
|
|
@@ -312,8 +324,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
312
324
|
if (filters !== undefined) {
|
|
313
325
|
localVarQueryParameter['filters'] = filters;
|
|
314
326
|
}
|
|
315
|
-
|
|
316
|
-
|
|
327
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
328
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
329
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
317
331
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
318
332
|
}
|
|
319
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|