@emilgroup/discount-sdk-node 1.12.1-beta.18 → 1.12.1-beta.19
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/campaigns-api.ts +33 -88
- package/api/health-api.ts +1 -1
- package/api/policy-vouchers-api.ts +24 -64
- package/api/vouchers-api.ts +15 -40
- package/base.ts +0 -4
- package/common.ts +2 -3
- package/dist/api/campaigns-api.d.ts +11 -11
- package/dist/api/campaigns-api.js +85 -153
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/policy-vouchers-api.d.ts +8 -8
- package/dist/api/policy-vouchers-api.js +62 -112
- package/dist/api/vouchers-api.d.ts +5 -5
- package/dist/api/vouchers-api.js +38 -67
- package/dist/base.d.ts +0 -1
- package/dist/base.js +0 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/discount-sdk-node@1.12.1-beta.
|
|
20
|
+
npm install @emilgroup/discount-sdk-node@1.12.1-beta.19 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/discount-sdk-node@1.12.1-beta.
|
|
24
|
+
yarn add @emilgroup/discount-sdk-node@1.12.1-beta.19
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CampaignApi`.
|
package/api/campaigns-api.ts
CHANGED
|
@@ -79,13 +79,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
79
79
|
// http bearer authentication required
|
|
80
80
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
85
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
86
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
87
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
88
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
82
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
83
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
89
84
|
}
|
|
90
85
|
|
|
91
86
|
|
|
@@ -135,13 +130,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
135
130
|
// http bearer authentication required
|
|
136
131
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
137
132
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
141
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
142
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
143
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
144
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
145
135
|
}
|
|
146
136
|
|
|
147
137
|
|
|
@@ -188,13 +178,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
188
178
|
// http bearer authentication required
|
|
189
179
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
190
180
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
196
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
197
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
198
183
|
}
|
|
199
184
|
|
|
200
185
|
|
|
@@ -242,13 +227,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
242
227
|
// http bearer authentication required
|
|
243
228
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
244
229
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
248
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
249
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
250
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
251
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
230
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
232
|
}
|
|
253
233
|
|
|
254
234
|
|
|
@@ -292,13 +272,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
292
272
|
// http bearer authentication required
|
|
293
273
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
294
274
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
298
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
299
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
300
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
301
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
275
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
276
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
302
277
|
}
|
|
303
278
|
|
|
304
279
|
|
|
@@ -347,13 +322,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
347
322
|
localVarQueryParameter['expand'] = expand;
|
|
348
323
|
}
|
|
349
324
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
353
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
354
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
355
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
356
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
325
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
326
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
357
327
|
}
|
|
358
328
|
|
|
359
329
|
|
|
@@ -428,13 +398,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
428
398
|
localVarQueryParameter['filters'] = filters;
|
|
429
399
|
}
|
|
430
400
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
434
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
435
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
436
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
437
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
401
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
402
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
438
403
|
}
|
|
439
404
|
|
|
440
405
|
|
|
@@ -509,13 +474,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
509
474
|
localVarQueryParameter['filters'] = filters;
|
|
510
475
|
}
|
|
511
476
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
515
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
516
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
517
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
518
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
477
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
478
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
519
479
|
}
|
|
520
480
|
|
|
521
481
|
|
|
@@ -562,13 +522,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
562
522
|
// http bearer authentication required
|
|
563
523
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
564
524
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
568
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
569
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
570
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
571
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
525
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
526
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
572
527
|
}
|
|
573
528
|
|
|
574
529
|
|
|
@@ -618,13 +573,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
618
573
|
// http bearer authentication required
|
|
619
574
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
620
575
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
624
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
625
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
626
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
627
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
576
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
577
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
628
578
|
}
|
|
629
579
|
|
|
630
580
|
|
|
@@ -671,13 +621,8 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
671
621
|
// http bearer authentication required
|
|
672
622
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
673
623
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
677
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
678
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
679
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
680
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
624
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
625
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
681
626
|
}
|
|
682
627
|
|
|
683
628
|
|
|
@@ -1367,7 +1312,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1367
1312
|
* @memberof CampaignsApi
|
|
1368
1313
|
*/
|
|
1369
1314
|
public createCampaign(requestParameters: CampaignsApiCreateCampaignRequest, options?: AxiosRequestConfig) {
|
|
1370
|
-
return CampaignsApiFp(this.configuration).createCampaign(requestParameters.createCampaignRequestDto, requestParameters.authorization,
|
|
1315
|
+
return CampaignsApiFp(this.configuration).createCampaign(requestParameters.createCampaignRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1371
1316
|
}
|
|
1372
1317
|
|
|
1373
1318
|
/**
|
|
@@ -1379,7 +1324,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1379
1324
|
* @memberof CampaignsApi
|
|
1380
1325
|
*/
|
|
1381
1326
|
public createEligibleAccount(requestParameters: CampaignsApiCreateEligibleAccountRequest, options?: AxiosRequestConfig) {
|
|
1382
|
-
return CampaignsApiFp(this.configuration).createEligibleAccount(requestParameters.code, requestParameters.createEligibleAccountRequestDto, requestParameters.authorization,
|
|
1327
|
+
return CampaignsApiFp(this.configuration).createEligibleAccount(requestParameters.code, requestParameters.createEligibleAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1383
1328
|
}
|
|
1384
1329
|
|
|
1385
1330
|
/**
|
|
@@ -1391,7 +1336,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1391
1336
|
* @memberof CampaignsApi
|
|
1392
1337
|
*/
|
|
1393
1338
|
public deleteCampaign(requestParameters: CampaignsApiDeleteCampaignRequest, options?: AxiosRequestConfig) {
|
|
1394
|
-
return CampaignsApiFp(this.configuration).deleteCampaign(requestParameters.code, requestParameters.authorization,
|
|
1339
|
+
return CampaignsApiFp(this.configuration).deleteCampaign(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1395
1340
|
}
|
|
1396
1341
|
|
|
1397
1342
|
/**
|
|
@@ -1403,7 +1348,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1403
1348
|
* @memberof CampaignsApi
|
|
1404
1349
|
*/
|
|
1405
1350
|
public deleteEligibleAccount(requestParameters: CampaignsApiDeleteEligibleAccountRequest, options?: AxiosRequestConfig) {
|
|
1406
|
-
return CampaignsApiFp(this.configuration).deleteEligibleAccount(requestParameters.code, requestParameters.accountCode, requestParameters.authorization,
|
|
1351
|
+
return CampaignsApiFp(this.configuration).deleteEligibleAccount(requestParameters.code, requestParameters.accountCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1407
1352
|
}
|
|
1408
1353
|
|
|
1409
1354
|
/**
|
|
@@ -1415,7 +1360,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1415
1360
|
* @memberof CampaignsApi
|
|
1416
1361
|
*/
|
|
1417
1362
|
public deleteEligibleAccounts(requestParameters: CampaignsApiDeleteEligibleAccountsRequest, options?: AxiosRequestConfig) {
|
|
1418
|
-
return CampaignsApiFp(this.configuration).deleteEligibleAccounts(requestParameters.code, requestParameters.authorization,
|
|
1363
|
+
return CampaignsApiFp(this.configuration).deleteEligibleAccounts(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1419
1364
|
}
|
|
1420
1365
|
|
|
1421
1366
|
/**
|
|
@@ -1427,7 +1372,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1427
1372
|
* @memberof CampaignsApi
|
|
1428
1373
|
*/
|
|
1429
1374
|
public getCampaign(requestParameters: CampaignsApiGetCampaignRequest, options?: AxiosRequestConfig) {
|
|
1430
|
-
return CampaignsApiFp(this.configuration).getCampaign(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
1375
|
+
return CampaignsApiFp(this.configuration).getCampaign(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1431
1376
|
}
|
|
1432
1377
|
|
|
1433
1378
|
/**
|
|
@@ -1439,7 +1384,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1439
1384
|
* @memberof CampaignsApi
|
|
1440
1385
|
*/
|
|
1441
1386
|
public listCampaigns(requestParameters: CampaignsApiListCampaignsRequest = {}, options?: AxiosRequestConfig) {
|
|
1442
|
-
return CampaignsApiFp(this.configuration).listCampaigns(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1387
|
+
return CampaignsApiFp(this.configuration).listCampaigns(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1443
1388
|
}
|
|
1444
1389
|
|
|
1445
1390
|
/**
|
|
@@ -1451,7 +1396,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1451
1396
|
* @memberof CampaignsApi
|
|
1452
1397
|
*/
|
|
1453
1398
|
public listEligibleAccounts(requestParameters: CampaignsApiListEligibleAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
1454
|
-
return CampaignsApiFp(this.configuration).listEligibleAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1399
|
+
return CampaignsApiFp(this.configuration).listEligibleAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1455
1400
|
}
|
|
1456
1401
|
|
|
1457
1402
|
/**
|
|
@@ -1463,7 +1408,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1463
1408
|
* @memberof CampaignsApi
|
|
1464
1409
|
*/
|
|
1465
1410
|
public updateCampaign(requestParameters: CampaignsApiUpdateCampaignRequest, options?: AxiosRequestConfig) {
|
|
1466
|
-
return CampaignsApiFp(this.configuration).updateCampaign(requestParameters.code, requestParameters.updateCampaignRequestDto, requestParameters.authorization,
|
|
1411
|
+
return CampaignsApiFp(this.configuration).updateCampaign(requestParameters.code, requestParameters.updateCampaignRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1467
1412
|
}
|
|
1468
1413
|
|
|
1469
1414
|
/**
|
|
@@ -1475,7 +1420,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1475
1420
|
* @memberof CampaignsApi
|
|
1476
1421
|
*/
|
|
1477
1422
|
public updateCampaignStatus(requestParameters: CampaignsApiUpdateCampaignStatusRequest, options?: AxiosRequestConfig) {
|
|
1478
|
-
return CampaignsApiFp(this.configuration).updateCampaignStatus(requestParameters.code, requestParameters.updateCampaignStatusRequestDto, requestParameters.authorization,
|
|
1423
|
+
return CampaignsApiFp(this.configuration).updateCampaignStatus(requestParameters.code, requestParameters.updateCampaignStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1479
1424
|
}
|
|
1480
1425
|
|
|
1481
1426
|
/**
|
|
@@ -1487,6 +1432,6 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1487
1432
|
* @memberof CampaignsApi
|
|
1488
1433
|
*/
|
|
1489
1434
|
public uploadEligibleAccounts(requestParameters: CampaignsApiUploadEligibleAccountsRequest, options?: AxiosRequestConfig) {
|
|
1490
|
-
return CampaignsApiFp(this.configuration).uploadEligibleAccounts(requestParameters.code, requestParameters.authorization,
|
|
1435
|
+
return CampaignsApiFp(this.configuration).uploadEligibleAccounts(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1491
1436
|
}
|
|
1492
1437
|
}
|
package/api/health-api.ts
CHANGED
|
@@ -123,6 +123,6 @@ export class HealthApi extends BaseAPI {
|
|
|
123
123
|
* @memberof HealthApi
|
|
124
124
|
*/
|
|
125
125
|
public check(options?: AxiosRequestConfig) {
|
|
126
|
-
return HealthApiFp(this.configuration).check(
|
|
126
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -83,13 +83,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
83
83
|
// http bearer authentication required
|
|
84
84
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
89
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
90
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
91
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
92
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
86
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
87
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
93
88
|
}
|
|
94
89
|
|
|
95
90
|
|
|
@@ -135,13 +130,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
135
130
|
// http bearer authentication required
|
|
136
131
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
137
132
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
141
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
142
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
143
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
144
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
145
135
|
}
|
|
146
136
|
|
|
147
137
|
|
|
@@ -187,13 +177,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
187
177
|
// http bearer authentication required
|
|
188
178
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
189
179
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
195
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
196
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
197
182
|
}
|
|
198
183
|
|
|
199
184
|
|
|
@@ -240,13 +225,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
240
225
|
// http bearer authentication required
|
|
241
226
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
242
227
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
246
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
247
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
248
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
249
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
229
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
250
230
|
}
|
|
251
231
|
|
|
252
232
|
|
|
@@ -295,13 +275,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
295
275
|
localVarQueryParameter['expand'] = expand;
|
|
296
276
|
}
|
|
297
277
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
301
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
302
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
303
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
304
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
278
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
280
|
}
|
|
306
281
|
|
|
307
282
|
|
|
@@ -376,13 +351,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
376
351
|
localVarQueryParameter['filters'] = filters;
|
|
377
352
|
}
|
|
378
353
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
382
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
383
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
384
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
385
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
354
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
355
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
386
356
|
}
|
|
387
357
|
|
|
388
358
|
|
|
@@ -425,13 +395,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
425
395
|
// http bearer authentication required
|
|
426
396
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
427
397
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
431
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
432
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
433
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
434
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
398
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
399
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
435
400
|
}
|
|
436
401
|
|
|
437
402
|
|
|
@@ -477,13 +442,8 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
|
|
|
477
442
|
// http bearer authentication required
|
|
478
443
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
479
444
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
483
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
484
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
485
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
486
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
445
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
446
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
487
447
|
}
|
|
488
448
|
|
|
489
449
|
|
|
@@ -954,7 +914,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
954
914
|
* @memberof PolicyVouchersApi
|
|
955
915
|
*/
|
|
956
916
|
public chargePolicyVoucher(requestParameters: PolicyVouchersApiChargePolicyVoucherRequest, options?: AxiosRequestConfig) {
|
|
957
|
-
return PolicyVouchersApiFp(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization,
|
|
917
|
+
return PolicyVouchersApiFp(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
958
918
|
}
|
|
959
919
|
|
|
960
920
|
/**
|
|
@@ -966,7 +926,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
966
926
|
* @memberof PolicyVouchersApi
|
|
967
927
|
*/
|
|
968
928
|
public checkAccountEligibility(requestParameters: PolicyVouchersApiCheckAccountEligibilityRequest, options?: AxiosRequestConfig) {
|
|
969
|
-
return PolicyVouchersApiFp(this.configuration).checkAccountEligibility(requestParameters.checkAccountEligibilityRequestDto, requestParameters.authorization,
|
|
929
|
+
return PolicyVouchersApiFp(this.configuration).checkAccountEligibility(requestParameters.checkAccountEligibilityRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
970
930
|
}
|
|
971
931
|
|
|
972
932
|
/**
|
|
@@ -978,7 +938,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
978
938
|
* @memberof PolicyVouchersApi
|
|
979
939
|
*/
|
|
980
940
|
public createPolicyVoucher(requestParameters: PolicyVouchersApiCreatePolicyVoucherRequest, options?: AxiosRequestConfig) {
|
|
981
|
-
return PolicyVouchersApiFp(this.configuration).createPolicyVoucher(requestParameters.createPolicyVoucherRequestDto, requestParameters.authorization,
|
|
941
|
+
return PolicyVouchersApiFp(this.configuration).createPolicyVoucher(requestParameters.createPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
982
942
|
}
|
|
983
943
|
|
|
984
944
|
/**
|
|
@@ -990,7 +950,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
990
950
|
* @memberof PolicyVouchersApi
|
|
991
951
|
*/
|
|
992
952
|
public deletePolicyVoucher(requestParameters: PolicyVouchersApiDeletePolicyVoucherRequest, options?: AxiosRequestConfig) {
|
|
993
|
-
return PolicyVouchersApiFp(this.configuration).deletePolicyVoucher(requestParameters.code, requestParameters.authorization,
|
|
953
|
+
return PolicyVouchersApiFp(this.configuration).deletePolicyVoucher(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
994
954
|
}
|
|
995
955
|
|
|
996
956
|
/**
|
|
@@ -1002,7 +962,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
1002
962
|
* @memberof PolicyVouchersApi
|
|
1003
963
|
*/
|
|
1004
964
|
public getPolicyVoucher(requestParameters: PolicyVouchersApiGetPolicyVoucherRequest, options?: AxiosRequestConfig) {
|
|
1005
|
-
return PolicyVouchersApiFp(this.configuration).getPolicyVoucher(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
965
|
+
return PolicyVouchersApiFp(this.configuration).getPolicyVoucher(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1006
966
|
}
|
|
1007
967
|
|
|
1008
968
|
/**
|
|
@@ -1014,7 +974,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
1014
974
|
* @memberof PolicyVouchersApi
|
|
1015
975
|
*/
|
|
1016
976
|
public listPolicyVouchers(requestParameters: PolicyVouchersApiListPolicyVouchersRequest = {}, options?: AxiosRequestConfig) {
|
|
1017
|
-
return PolicyVouchersApiFp(this.configuration).listPolicyVouchers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
977
|
+
return PolicyVouchersApiFp(this.configuration).listPolicyVouchers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1018
978
|
}
|
|
1019
979
|
|
|
1020
980
|
/**
|
|
@@ -1026,7 +986,7 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
1026
986
|
* @memberof PolicyVouchersApi
|
|
1027
987
|
*/
|
|
1028
988
|
public redeemPolicyVoucher(requestParameters: PolicyVouchersApiRedeemPolicyVoucherRequest, options?: AxiosRequestConfig) {
|
|
1029
|
-
return PolicyVouchersApiFp(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization,
|
|
989
|
+
return PolicyVouchersApiFp(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1030
990
|
}
|
|
1031
991
|
|
|
1032
992
|
/**
|
|
@@ -1038,6 +998,6 @@ export class PolicyVouchersApi extends BaseAPI {
|
|
|
1038
998
|
* @memberof PolicyVouchersApi
|
|
1039
999
|
*/
|
|
1040
1000
|
public withdrawPolicyVoucher(requestParameters: PolicyVouchersApiWithdrawPolicyVoucherRequest, options?: AxiosRequestConfig) {
|
|
1041
|
-
return PolicyVouchersApiFp(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization,
|
|
1001
|
+
return PolicyVouchersApiFp(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1042
1002
|
}
|
|
1043
1003
|
}
|