@emilgroup/discount-sdk 1.1.1-beta.2 → 1.2.0
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/dist/api/campaigns-api.js +35 -88
- package/dist/api/default-api.js +5 -18
- package/dist/api/policy-vouchers-api.d.ts +3 -3
- package/dist/api/policy-vouchers-api.js +26 -67
- package/dist/api/vouchers-api.d.ts +3 -3
- package/dist/api/vouchers-api.js +17 -46
- package/dist/base.js +5 -5
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/package.json +3 -3
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@1.
|
|
20
|
+
npm install @emilgroup/discount-sdk@1.2.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/discount-sdk@1.
|
|
24
|
+
yarn add @emilgroup/discount-sdk@1.2.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CampaignApi`.
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -109,14 +100,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
109
100
|
* @param {*} [options] Override http request option.
|
|
110
101
|
* @throws {RequiredError}
|
|
111
102
|
*/
|
|
112
|
-
createCampaign: function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
args_1[_i - 2] = arguments[_i];
|
|
116
|
-
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([createCampaignRequestDto_1, authorization_1], args_1, true), void 0, function (createCampaignRequestDto, authorization, options) {
|
|
103
|
+
createCampaign: function (createCampaignRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
118
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
-
if (options === void 0) { options = {}; }
|
|
120
107
|
return __generator(this, function (_a) {
|
|
121
108
|
switch (_a.label) {
|
|
122
109
|
case 0:
|
|
@@ -163,14 +150,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
163
150
|
* @param {*} [options] Override http request option.
|
|
164
151
|
* @throws {RequiredError}
|
|
165
152
|
*/
|
|
166
|
-
createEligibleAccount: function (
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
args_1[_i - 3] = arguments[_i];
|
|
170
|
-
}
|
|
171
|
-
return __awaiter(_this, __spreadArray([code_1, createEligibleAccountRequestDto_1, authorization_1], args_1, true), void 0, function (code, createEligibleAccountRequestDto, authorization, options) {
|
|
153
|
+
createEligibleAccount: function (code, createEligibleAccountRequestDto, authorization, options) {
|
|
154
|
+
if (options === void 0) { options = {}; }
|
|
155
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
172
156
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
173
|
-
if (options === void 0) { options = {}; }
|
|
174
157
|
return __generator(this, function (_a) {
|
|
175
158
|
switch (_a.label) {
|
|
176
159
|
case 0:
|
|
@@ -219,14 +202,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
219
202
|
* @param {*} [options] Override http request option.
|
|
220
203
|
* @throws {RequiredError}
|
|
221
204
|
*/
|
|
222
|
-
deleteCampaign: function (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
args_1[_i - 2] = arguments[_i];
|
|
226
|
-
}
|
|
227
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
205
|
+
deleteCampaign: function (code, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
229
|
-
if (options === void 0) { options = {}; }
|
|
230
209
|
return __generator(this, function (_a) {
|
|
231
210
|
switch (_a.label) {
|
|
232
211
|
case 0:
|
|
@@ -272,14 +251,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
272
251
|
* @param {*} [options] Override http request option.
|
|
273
252
|
* @throws {RequiredError}
|
|
274
253
|
*/
|
|
275
|
-
deleteEligibleAccount: function (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
args_1[_i - 3] = arguments[_i];
|
|
279
|
-
}
|
|
280
|
-
return __awaiter(_this, __spreadArray([code_1, accountCode_1, authorization_1], args_1, true), void 0, function (code, accountCode, authorization, options) {
|
|
254
|
+
deleteEligibleAccount: function (code, accountCode, authorization, options) {
|
|
255
|
+
if (options === void 0) { options = {}; }
|
|
256
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
257
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
-
if (options === void 0) { options = {}; }
|
|
283
258
|
return __generator(this, function (_a) {
|
|
284
259
|
switch (_a.label) {
|
|
285
260
|
case 0:
|
|
@@ -327,14 +302,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
327
302
|
* @param {*} [options] Override http request option.
|
|
328
303
|
* @throws {RequiredError}
|
|
329
304
|
*/
|
|
330
|
-
deleteEligibleAccounts: function (
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
args_1[_i - 2] = arguments[_i];
|
|
334
|
-
}
|
|
335
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
305
|
+
deleteEligibleAccounts: function (code, authorization, options) {
|
|
306
|
+
if (options === void 0) { options = {}; }
|
|
307
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
336
308
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
337
|
-
if (options === void 0) { options = {}; }
|
|
338
309
|
return __generator(this, function (_a) {
|
|
339
310
|
switch (_a.label) {
|
|
340
311
|
case 0:
|
|
@@ -380,14 +351,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
380
351
|
* @param {*} [options] Override http request option.
|
|
381
352
|
* @throws {RequiredError}
|
|
382
353
|
*/
|
|
383
|
-
getCampaign: function (
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
args_1[_i - 3] = arguments[_i];
|
|
387
|
-
}
|
|
388
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
354
|
+
getCampaign: function (code, authorization, expand, options) {
|
|
355
|
+
if (options === void 0) { options = {}; }
|
|
356
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
389
357
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
390
|
-
if (options === void 0) { options = {}; }
|
|
391
358
|
return __generator(this, function (_a) {
|
|
392
359
|
switch (_a.label) {
|
|
393
360
|
case 0:
|
|
@@ -441,14 +408,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
441
408
|
* @param {*} [options] Override http request option.
|
|
442
409
|
* @throws {RequiredError}
|
|
443
410
|
*/
|
|
444
|
-
listCampaigns: function (
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
args_1[_i - 8] = arguments[_i];
|
|
448
|
-
}
|
|
449
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
411
|
+
listCampaigns: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
412
|
+
if (options === void 0) { options = {}; }
|
|
413
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
450
414
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
451
|
-
if (options === void 0) { options = {}; }
|
|
452
415
|
return __generator(this, function (_a) {
|
|
453
416
|
switch (_a.label) {
|
|
454
417
|
case 0:
|
|
@@ -517,14 +480,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
517
480
|
* @param {*} [options] Override http request option.
|
|
518
481
|
* @throws {RequiredError}
|
|
519
482
|
*/
|
|
520
|
-
listEligibleAccounts: function (
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
args_1[_i - 8] = arguments[_i];
|
|
524
|
-
}
|
|
525
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
483
|
+
listEligibleAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
484
|
+
if (options === void 0) { options = {}; }
|
|
485
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
526
486
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
527
|
-
if (options === void 0) { options = {}; }
|
|
528
487
|
return __generator(this, function (_a) {
|
|
529
488
|
switch (_a.label) {
|
|
530
489
|
case 0:
|
|
@@ -588,14 +547,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
588
547
|
* @param {*} [options] Override http request option.
|
|
589
548
|
* @throws {RequiredError}
|
|
590
549
|
*/
|
|
591
|
-
updateCampaign: function (
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
args_1[_i - 3] = arguments[_i];
|
|
595
|
-
}
|
|
596
|
-
return __awaiter(_this, __spreadArray([code_1, updateCampaignRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCampaignRequestDto, authorization, options) {
|
|
550
|
+
updateCampaign: function (code, updateCampaignRequestDto, authorization, options) {
|
|
551
|
+
if (options === void 0) { options = {}; }
|
|
552
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
597
553
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
598
|
-
if (options === void 0) { options = {}; }
|
|
599
554
|
return __generator(this, function (_a) {
|
|
600
555
|
switch (_a.label) {
|
|
601
556
|
case 0:
|
|
@@ -645,14 +600,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
645
600
|
* @param {*} [options] Override http request option.
|
|
646
601
|
* @throws {RequiredError}
|
|
647
602
|
*/
|
|
648
|
-
updateCampaignStatus: function (
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
args_1[_i - 3] = arguments[_i];
|
|
652
|
-
}
|
|
653
|
-
return __awaiter(_this, __spreadArray([code_1, updateCampaignStatusRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCampaignStatusRequestDto, authorization, options) {
|
|
603
|
+
updateCampaignStatus: function (code, updateCampaignStatusRequestDto, authorization, options) {
|
|
604
|
+
if (options === void 0) { options = {}; }
|
|
605
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
654
606
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
655
|
-
if (options === void 0) { options = {}; }
|
|
656
607
|
return __generator(this, function (_a) {
|
|
657
608
|
switch (_a.label) {
|
|
658
609
|
case 0:
|
|
@@ -701,14 +652,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
701
652
|
* @param {*} [options] Override http request option.
|
|
702
653
|
* @throws {RequiredError}
|
|
703
654
|
*/
|
|
704
|
-
uploadEligibleAccounts: function (
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
args_1[_i - 2] = arguments[_i];
|
|
708
|
-
}
|
|
709
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
655
|
+
uploadEligibleAccounts: function (code, authorization, options) {
|
|
656
|
+
if (options === void 0) { options = {}; }
|
|
657
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
710
658
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
711
|
-
if (options === void 0) { options = {}; }
|
|
712
659
|
return __generator(this, function (_a) {
|
|
713
660
|
switch (_a.label) {
|
|
714
661
|
case 0:
|
package/dist/api/default-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -107,14 +98,10 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
107
98
|
* @param {*} [options] Override http request option.
|
|
108
99
|
* @throws {RequiredError}
|
|
109
100
|
*/
|
|
110
|
-
check: function () {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
args_1[_i] = arguments[_i];
|
|
114
|
-
}
|
|
115
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
101
|
+
check: function (options) {
|
|
102
|
+
if (options === void 0) { options = {}; }
|
|
103
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
116
104
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
-
if (options === void 0) { options = {}; }
|
|
118
105
|
return __generator(this, function (_a) {
|
|
119
106
|
localVarPath = "/discountservice/health";
|
|
120
107
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -75,7 +75,7 @@ export declare const PolicyVouchersApiAxiosParamCreator: (configuration?: Config
|
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
getPolicyVoucher: (code: string, authorization?: string, expand?:
|
|
78
|
+
getPolicyVoucher: (code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
79
|
/**
|
|
80
80
|
* Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
81
81
|
* @summary List policy vouchers
|
|
@@ -163,7 +163,7 @@ export declare const PolicyVouchersApiFp: (configuration?: Configuration) => {
|
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
getPolicyVoucher(code: string, authorization?: string, expand?:
|
|
166
|
+
getPolicyVoucher(code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyVoucherResponseClass>>;
|
|
167
167
|
/**
|
|
168
168
|
* Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
169
169
|
* @summary List policy vouchers
|
|
@@ -251,7 +251,7 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
|
|
|
251
251
|
* @param {*} [options] Override http request option.
|
|
252
252
|
* @throws {RequiredError}
|
|
253
253
|
*/
|
|
254
|
-
getPolicyVoucher(code: string, authorization?: string, expand?:
|
|
254
|
+
getPolicyVoucher(code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: any): AxiosPromise<GetPolicyVoucherResponseClass>;
|
|
255
255
|
/**
|
|
256
256
|
* Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
257
257
|
* @summary List policy vouchers
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -110,14 +101,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
110
101
|
* @param {*} [options] Override http request option.
|
|
111
102
|
* @throws {RequiredError}
|
|
112
103
|
*/
|
|
113
|
-
chargePolicyVoucher: function (
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
args_1[_i - 3] = arguments[_i];
|
|
117
|
-
}
|
|
118
|
-
return __awaiter(_this, __spreadArray([code_1, chargePolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, chargePolicyVoucherRequestDto, authorization, options) {
|
|
104
|
+
chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
|
|
105
|
+
if (options === void 0) { options = {}; }
|
|
106
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
119
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
120
|
-
if (options === void 0) { options = {}; }
|
|
121
108
|
return __generator(this, function (_a) {
|
|
122
109
|
switch (_a.label) {
|
|
123
110
|
case 0:
|
|
@@ -166,14 +153,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
166
153
|
* @param {*} [options] Override http request option.
|
|
167
154
|
* @throws {RequiredError}
|
|
168
155
|
*/
|
|
169
|
-
checkAccountEligibility: function (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
args_1[_i - 2] = arguments[_i];
|
|
173
|
-
}
|
|
174
|
-
return __awaiter(_this, __spreadArray([checkAccountEligibilityRequestDto_1, authorization_1], args_1, true), void 0, function (checkAccountEligibilityRequestDto, authorization, options) {
|
|
156
|
+
checkAccountEligibility: function (checkAccountEligibilityRequestDto, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
-
if (options === void 0) { options = {}; }
|
|
177
160
|
return __generator(this, function (_a) {
|
|
178
161
|
switch (_a.label) {
|
|
179
162
|
case 0:
|
|
@@ -219,14 +202,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
219
202
|
* @param {*} [options] Override http request option.
|
|
220
203
|
* @throws {RequiredError}
|
|
221
204
|
*/
|
|
222
|
-
createPolicyVoucher: function (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
args_1[_i - 2] = arguments[_i];
|
|
226
|
-
}
|
|
227
|
-
return __awaiter(_this, __spreadArray([createPolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (createPolicyVoucherRequestDto, authorization, options) {
|
|
205
|
+
createPolicyVoucher: function (createPolicyVoucherRequestDto, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
229
|
-
if (options === void 0) { options = {}; }
|
|
230
209
|
return __generator(this, function (_a) {
|
|
231
210
|
switch (_a.label) {
|
|
232
211
|
case 0:
|
|
@@ -272,14 +251,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
272
251
|
* @param {*} [options] Override http request option.
|
|
273
252
|
* @throws {RequiredError}
|
|
274
253
|
*/
|
|
275
|
-
deletePolicyVoucher: function (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
args_1[_i - 2] = arguments[_i];
|
|
279
|
-
}
|
|
280
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
254
|
+
deletePolicyVoucher: function (code, authorization, options) {
|
|
255
|
+
if (options === void 0) { options = {}; }
|
|
256
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
257
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
-
if (options === void 0) { options = {}; }
|
|
283
258
|
return __generator(this, function (_a) {
|
|
284
259
|
switch (_a.label) {
|
|
285
260
|
case 0:
|
|
@@ -325,14 +300,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
325
300
|
* @param {*} [options] Override http request option.
|
|
326
301
|
* @throws {RequiredError}
|
|
327
302
|
*/
|
|
328
|
-
getPolicyVoucher: function (
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
args_1[_i - 3] = arguments[_i];
|
|
332
|
-
}
|
|
333
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
303
|
+
getPolicyVoucher: function (code, authorization, expand, options) {
|
|
304
|
+
if (options === void 0) { options = {}; }
|
|
305
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
334
306
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
|
-
if (options === void 0) { options = {}; }
|
|
336
307
|
return __generator(this, function (_a) {
|
|
337
308
|
switch (_a.label) {
|
|
338
309
|
case 0:
|
|
@@ -386,14 +357,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
386
357
|
* @param {*} [options] Override http request option.
|
|
387
358
|
* @throws {RequiredError}
|
|
388
359
|
*/
|
|
389
|
-
listPolicyVouchers: function (
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
args_1[_i - 8] = arguments[_i];
|
|
393
|
-
}
|
|
394
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
360
|
+
listPolicyVouchers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
361
|
+
if (options === void 0) { options = {}; }
|
|
362
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
395
363
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
396
|
-
if (options === void 0) { options = {}; }
|
|
397
364
|
return __generator(this, function (_a) {
|
|
398
365
|
switch (_a.label) {
|
|
399
366
|
case 0:
|
|
@@ -457,14 +424,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
457
424
|
* @param {*} [options] Override http request option.
|
|
458
425
|
* @throws {RequiredError}
|
|
459
426
|
*/
|
|
460
|
-
redeemPolicyVoucher: function (
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
args_1[_i - 3] = arguments[_i];
|
|
464
|
-
}
|
|
465
|
-
return __awaiter(_this, __spreadArray([code_1, redeemPolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, redeemPolicyVoucherRequestDto, authorization, options) {
|
|
427
|
+
redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
|
|
428
|
+
if (options === void 0) { options = {}; }
|
|
429
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
466
430
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
467
|
-
if (options === void 0) { options = {}; }
|
|
468
431
|
return __generator(this, function (_a) {
|
|
469
432
|
switch (_a.label) {
|
|
470
433
|
case 0:
|
|
@@ -514,14 +477,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
514
477
|
* @param {*} [options] Override http request option.
|
|
515
478
|
* @throws {RequiredError}
|
|
516
479
|
*/
|
|
517
|
-
withdrawPolicyVoucher: function (
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
args_1[_i - 3] = arguments[_i];
|
|
521
|
-
}
|
|
522
|
-
return __awaiter(_this, __spreadArray([code_1, withdrawPolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
480
|
+
withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
481
|
+
if (options === void 0) { options = {}; }
|
|
482
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
523
483
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
524
|
-
if (options === void 0) { options = {}; }
|
|
525
484
|
return __generator(this, function (_a) {
|
|
526
485
|
switch (_a.label) {
|
|
527
486
|
case 0:
|
|
@@ -50,7 +50,7 @@ export declare const VouchersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getVoucher: (code: string, authorization?: string, expand?:
|
|
53
|
+
getVoucher: (code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
55
|
* Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
56
56
|
* @summary List Vouchers
|
|
@@ -109,7 +109,7 @@ export declare const VouchersApiFp: (configuration?: Configuration) => {
|
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
getVoucher(code: string, authorization?: string, expand?:
|
|
112
|
+
getVoucher(code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVoucherResponseClass>>;
|
|
113
113
|
/**
|
|
114
114
|
* Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
115
115
|
* @summary List Vouchers
|
|
@@ -168,7 +168,7 @@ export declare const VouchersApiFactory: (configuration?: Configuration, basePat
|
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
169
169
|
* @throws {RequiredError}
|
|
170
170
|
*/
|
|
171
|
-
getVoucher(code: string, authorization?: string, expand?:
|
|
171
|
+
getVoucher(code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: any): AxiosPromise<GetVoucherResponseClass>;
|
|
172
172
|
/**
|
|
173
173
|
* Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
174
174
|
* @summary List Vouchers
|
package/dist/api/vouchers-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -109,14 +100,10 @@ var VouchersApiAxiosParamCreator = function (configuration) {
|
|
|
109
100
|
* @param {*} [options] Override http request option.
|
|
110
101
|
* @throws {RequiredError}
|
|
111
102
|
*/
|
|
112
|
-
createVoucher: function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
args_1[_i - 2] = arguments[_i];
|
|
116
|
-
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([createVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (createVoucherRequestDto, authorization, options) {
|
|
103
|
+
createVoucher: function (createVoucherRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
118
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
-
if (options === void 0) { options = {}; }
|
|
120
107
|
return __generator(this, function (_a) {
|
|
121
108
|
switch (_a.label) {
|
|
122
109
|
case 0:
|
|
@@ -162,14 +149,10 @@ var VouchersApiAxiosParamCreator = function (configuration) {
|
|
|
162
149
|
* @param {*} [options] Override http request option.
|
|
163
150
|
* @throws {RequiredError}
|
|
164
151
|
*/
|
|
165
|
-
deleteVoucher: function (
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
args_1[_i - 2] = arguments[_i];
|
|
169
|
-
}
|
|
170
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
152
|
+
deleteVoucher: function (code, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
171
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
-
if (options === void 0) { options = {}; }
|
|
173
156
|
return __generator(this, function (_a) {
|
|
174
157
|
switch (_a.label) {
|
|
175
158
|
case 0:
|
|
@@ -215,14 +198,10 @@ var VouchersApiAxiosParamCreator = function (configuration) {
|
|
|
215
198
|
* @param {*} [options] Override http request option.
|
|
216
199
|
* @throws {RequiredError}
|
|
217
200
|
*/
|
|
218
|
-
getVoucher: function (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
args_1[_i - 3] = arguments[_i];
|
|
222
|
-
}
|
|
223
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
201
|
+
getVoucher: function (code, authorization, expand, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
224
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
|
-
if (options === void 0) { options = {}; }
|
|
226
205
|
return __generator(this, function (_a) {
|
|
227
206
|
switch (_a.label) {
|
|
228
207
|
case 0:
|
|
@@ -276,14 +255,10 @@ var VouchersApiAxiosParamCreator = function (configuration) {
|
|
|
276
255
|
* @param {*} [options] Override http request option.
|
|
277
256
|
* @throws {RequiredError}
|
|
278
257
|
*/
|
|
279
|
-
listVouchers: function (
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
args_1[_i - 8] = arguments[_i];
|
|
283
|
-
}
|
|
284
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
|
+
listVouchers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
|
+
if (options === void 0) { options = {}; }
|
|
260
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
285
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
286
|
-
if (options === void 0) { options = {}; }
|
|
287
262
|
return __generator(this, function (_a) {
|
|
288
263
|
switch (_a.label) {
|
|
289
264
|
case 0:
|
|
@@ -347,14 +322,10 @@ var VouchersApiAxiosParamCreator = function (configuration) {
|
|
|
347
322
|
* @param {*} [options] Override http request option.
|
|
348
323
|
* @throws {RequiredError}
|
|
349
324
|
*/
|
|
350
|
-
updateVoucher: function (
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
args_1[_i - 3] = arguments[_i];
|
|
354
|
-
}
|
|
355
|
-
return __awaiter(_this, __spreadArray([code_1, updateVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateVoucherRequestDto, authorization, options) {
|
|
325
|
+
updateVoucher: function (code, updateVoucherRequestDto, authorization, options) {
|
|
326
|
+
if (options === void 0) { options = {}; }
|
|
327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
356
328
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
357
|
-
if (options === void 0) { options = {}; }
|
|
358
329
|
return __generator(this, function (_a) {
|
|
359
330
|
switch (_a.label) {
|
|
360
331
|
case 0:
|
package/dist/base.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -78,8 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
82
|
-
exports.resetRetry = resetRetry;
|
|
81
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
83
82
|
var configuration_1 = require("./configuration");
|
|
84
83
|
var common_1 = require("./common");
|
|
85
84
|
// Some imports not used depending on template conditions
|
|
@@ -103,12 +102,13 @@ var Environment;
|
|
|
103
102
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
104
103
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
105
104
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
106
|
-
})(Environment
|
|
105
|
+
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
107
106
|
var _retry_count = 0;
|
|
108
107
|
var _retry = null;
|
|
109
108
|
function resetRetry() {
|
|
110
109
|
_retry_count = 0;
|
|
111
110
|
}
|
|
111
|
+
exports.resetRetry = resetRetry;
|
|
112
112
|
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
113
113
|
var TOKEN_DATA = 'APP_TOKEN';
|
|
114
114
|
/**
|
package/dist/common.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
66
|
/**
|
|
67
67
|
* EMIL DiscountService
|
|
68
68
|
* The EMIL DiscountService API description
|
package/dist/common.js
CHANGED
|
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
37
|
-
return g
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/discount-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/discount-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^
|
|
21
|
+
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"typescript": "^
|
|
24
|
+
"typescript": "^4.0"
|
|
25
25
|
}
|
|
26
26
|
}
|