@emilgroup/discount-sdk-node 1.12.1-beta.19 → 1.12.1-beta.20
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/campaigns-api.ts +88 -33
- package/api/health-api.ts +1 -1
- package/api/policy-vouchers-api.ts +257 -24
- package/api/vouchers-api.ts +40 -15
- package/base.ts +74 -6
- package/common.ts +3 -2
- package/dist/api/campaigns-api.d.ts +11 -11
- package/dist/api/campaigns-api.js +153 -85
- 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 +118 -8
- package/dist/api/policy-vouchers-api.js +245 -62
- package/dist/api/vouchers-api.d.ts +5 -5
- package/dist/api/vouchers-api.js +67 -38
- package/dist/base.d.ts +8 -0
- package/dist/base.js +62 -4
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/list-policy-voucher-transactions-response-class.d.ts +43 -0
- package/dist/models/list-policy-voucher-transactions-response-class.js +15 -0
- package/models/index.ts +1 -0
- package/models/list-policy-voucher-transactions-response-class.ts +49 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -35,6 +35,7 @@ models/inline-response200.ts
|
|
|
35
35
|
models/inline-response503.ts
|
|
36
36
|
models/list-campaigns-response-class.ts
|
|
37
37
|
models/list-eligible-accounts-response-class.ts
|
|
38
|
+
models/list-policy-voucher-transactions-response-class.ts
|
|
38
39
|
models/list-policy-vouchers-response-class.ts
|
|
39
40
|
models/list-vouchers-response-class.ts
|
|
40
41
|
models/policy-voucher-class.ts
|
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.20 --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.20
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CampaignApi`.
|
package/api/campaigns-api.ts
CHANGED
|
@@ -79,8 +79,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
79
79
|
// http bearer authentication required
|
|
80
80
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
83
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
|
|
@@ -130,8 +135,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
130
135
|
// http bearer authentication required
|
|
131
136
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
132
137
|
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
139
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
135
145
|
}
|
|
136
146
|
|
|
137
147
|
|
|
@@ -178,8 +188,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
178
188
|
// http bearer authentication required
|
|
179
189
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
180
190
|
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
192
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
183
198
|
}
|
|
184
199
|
|
|
185
200
|
|
|
@@ -227,8 +242,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
227
242
|
// http bearer authentication required
|
|
228
243
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
229
244
|
|
|
230
|
-
|
|
231
|
-
|
|
245
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
246
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
232
252
|
}
|
|
233
253
|
|
|
234
254
|
|
|
@@ -272,8 +292,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
272
292
|
// http bearer authentication required
|
|
273
293
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
274
294
|
|
|
275
|
-
|
|
276
|
-
|
|
295
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
296
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
277
302
|
}
|
|
278
303
|
|
|
279
304
|
|
|
@@ -322,8 +347,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
322
347
|
localVarQueryParameter['expand'] = expand;
|
|
323
348
|
}
|
|
324
349
|
|
|
325
|
-
|
|
326
|
-
|
|
350
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
351
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
327
357
|
}
|
|
328
358
|
|
|
329
359
|
|
|
@@ -398,8 +428,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
398
428
|
localVarQueryParameter['filters'] = filters;
|
|
399
429
|
}
|
|
400
430
|
|
|
401
|
-
|
|
402
|
-
|
|
431
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
432
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
403
438
|
}
|
|
404
439
|
|
|
405
440
|
|
|
@@ -474,8 +509,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
474
509
|
localVarQueryParameter['filters'] = filters;
|
|
475
510
|
}
|
|
476
511
|
|
|
477
|
-
|
|
478
|
-
|
|
512
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
513
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
479
519
|
}
|
|
480
520
|
|
|
481
521
|
|
|
@@ -522,8 +562,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
522
562
|
// http bearer authentication required
|
|
523
563
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
524
564
|
|
|
525
|
-
|
|
526
|
-
|
|
565
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
566
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
527
572
|
}
|
|
528
573
|
|
|
529
574
|
|
|
@@ -573,8 +618,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
573
618
|
// http bearer authentication required
|
|
574
619
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
575
620
|
|
|
576
|
-
|
|
577
|
-
|
|
621
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
622
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
578
628
|
}
|
|
579
629
|
|
|
580
630
|
|
|
@@ -621,8 +671,13 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
621
671
|
// http bearer authentication required
|
|
622
672
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
623
673
|
|
|
624
|
-
|
|
625
|
-
|
|
674
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
675
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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);
|
|
626
681
|
}
|
|
627
682
|
|
|
628
683
|
|
|
@@ -1312,7 +1367,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1312
1367
|
* @memberof CampaignsApi
|
|
1313
1368
|
*/
|
|
1314
1369
|
public createCampaign(requestParameters: CampaignsApiCreateCampaignRequest, options?: AxiosRequestConfig) {
|
|
1315
|
-
return CampaignsApiFp(this.configuration).createCampaign(requestParameters.createCampaignRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1370
|
+
return CampaignsApiFp(this.configuration).createCampaign(requestParameters.createCampaignRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1316
1371
|
}
|
|
1317
1372
|
|
|
1318
1373
|
/**
|
|
@@ -1324,7 +1379,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1324
1379
|
* @memberof CampaignsApi
|
|
1325
1380
|
*/
|
|
1326
1381
|
public createEligibleAccount(requestParameters: CampaignsApiCreateEligibleAccountRequest, options?: AxiosRequestConfig) {
|
|
1327
|
-
return CampaignsApiFp(this.configuration).createEligibleAccount(requestParameters.code, requestParameters.createEligibleAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1382
|
+
return CampaignsApiFp(this.configuration).createEligibleAccount(requestParameters.code, requestParameters.createEligibleAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1328
1383
|
}
|
|
1329
1384
|
|
|
1330
1385
|
/**
|
|
@@ -1336,7 +1391,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1336
1391
|
* @memberof CampaignsApi
|
|
1337
1392
|
*/
|
|
1338
1393
|
public deleteCampaign(requestParameters: CampaignsApiDeleteCampaignRequest, options?: AxiosRequestConfig) {
|
|
1339
|
-
return CampaignsApiFp(this.configuration).deleteCampaign(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1394
|
+
return CampaignsApiFp(this.configuration).deleteCampaign(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1340
1395
|
}
|
|
1341
1396
|
|
|
1342
1397
|
/**
|
|
@@ -1348,7 +1403,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1348
1403
|
* @memberof CampaignsApi
|
|
1349
1404
|
*/
|
|
1350
1405
|
public deleteEligibleAccount(requestParameters: CampaignsApiDeleteEligibleAccountRequest, options?: AxiosRequestConfig) {
|
|
1351
|
-
return CampaignsApiFp(this.configuration).deleteEligibleAccount(requestParameters.code, requestParameters.accountCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1406
|
+
return CampaignsApiFp(this.configuration).deleteEligibleAccount(requestParameters.code, requestParameters.accountCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1352
1407
|
}
|
|
1353
1408
|
|
|
1354
1409
|
/**
|
|
@@ -1360,7 +1415,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1360
1415
|
* @memberof CampaignsApi
|
|
1361
1416
|
*/
|
|
1362
1417
|
public deleteEligibleAccounts(requestParameters: CampaignsApiDeleteEligibleAccountsRequest, options?: AxiosRequestConfig) {
|
|
1363
|
-
return CampaignsApiFp(this.configuration).deleteEligibleAccounts(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1418
|
+
return CampaignsApiFp(this.configuration).deleteEligibleAccounts(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1364
1419
|
}
|
|
1365
1420
|
|
|
1366
1421
|
/**
|
|
@@ -1372,7 +1427,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1372
1427
|
* @memberof CampaignsApi
|
|
1373
1428
|
*/
|
|
1374
1429
|
public getCampaign(requestParameters: CampaignsApiGetCampaignRequest, options?: AxiosRequestConfig) {
|
|
1375
|
-
return CampaignsApiFp(this.configuration).getCampaign(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1430
|
+
return CampaignsApiFp(this.configuration).getCampaign(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1376
1431
|
}
|
|
1377
1432
|
|
|
1378
1433
|
/**
|
|
@@ -1384,7 +1439,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1384
1439
|
* @memberof CampaignsApi
|
|
1385
1440
|
*/
|
|
1386
1441
|
public listCampaigns(requestParameters: CampaignsApiListCampaignsRequest = {}, options?: AxiosRequestConfig) {
|
|
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));
|
|
1442
|
+
return CampaignsApiFp(this.configuration).listCampaigns(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1388
1443
|
}
|
|
1389
1444
|
|
|
1390
1445
|
/**
|
|
@@ -1396,7 +1451,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1396
1451
|
* @memberof CampaignsApi
|
|
1397
1452
|
*/
|
|
1398
1453
|
public listEligibleAccounts(requestParameters: CampaignsApiListEligibleAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
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));
|
|
1454
|
+
return CampaignsApiFp(this.configuration).listEligibleAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1400
1455
|
}
|
|
1401
1456
|
|
|
1402
1457
|
/**
|
|
@@ -1408,7 +1463,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1408
1463
|
* @memberof CampaignsApi
|
|
1409
1464
|
*/
|
|
1410
1465
|
public updateCampaign(requestParameters: CampaignsApiUpdateCampaignRequest, options?: AxiosRequestConfig) {
|
|
1411
|
-
return CampaignsApiFp(this.configuration).updateCampaign(requestParameters.code, requestParameters.updateCampaignRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1466
|
+
return CampaignsApiFp(this.configuration).updateCampaign(requestParameters.code, requestParameters.updateCampaignRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1412
1467
|
}
|
|
1413
1468
|
|
|
1414
1469
|
/**
|
|
@@ -1420,7 +1475,7 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1420
1475
|
* @memberof CampaignsApi
|
|
1421
1476
|
*/
|
|
1422
1477
|
public updateCampaignStatus(requestParameters: CampaignsApiUpdateCampaignStatusRequest, options?: AxiosRequestConfig) {
|
|
1423
|
-
return CampaignsApiFp(this.configuration).updateCampaignStatus(requestParameters.code, requestParameters.updateCampaignStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1478
|
+
return CampaignsApiFp(this.configuration).updateCampaignStatus(requestParameters.code, requestParameters.updateCampaignStatusRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1424
1479
|
}
|
|
1425
1480
|
|
|
1426
1481
|
/**
|
|
@@ -1432,6 +1487,6 @@ export class CampaignsApi extends BaseAPI {
|
|
|
1432
1487
|
* @memberof CampaignsApi
|
|
1433
1488
|
*/
|
|
1434
1489
|
public uploadEligibleAccounts(requestParameters: CampaignsApiUploadEligibleAccountsRequest, options?: AxiosRequestConfig) {
|
|
1435
|
-
return CampaignsApiFp(this.configuration).uploadEligibleAccounts(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1490
|
+
return CampaignsApiFp(this.configuration).uploadEligibleAccounts(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1436
1491
|
}
|
|
1437
1492
|
}
|
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(options).then((request) => request(this.axios, this.basePath));
|
|
126
|
+
return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
127
127
|
}
|
|
128
128
|
}
|