@tradecafe/offer-service-sdk 0.0.18 → 0.0.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/api/automatedOffersApi.ts +141 -0
- package/api/offersApi.ts +61 -0
- package/dist/api/automatedOffersApi.d.ts +16 -0
- package/dist/api/automatedOffersApi.js +153 -18
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/offersApi.d.ts +8 -0
- package/dist/api/offersApi.js +107 -45
- package/dist/api/offersApi.js.map +1 -1
- package/package.json +1 -1
package/dist/api/offersApi.d.ts
CHANGED
|
@@ -52,6 +52,14 @@ export declare class OffersApi {
|
|
|
52
52
|
response: http.IncomingMessage;
|
|
53
53
|
body?: any;
|
|
54
54
|
}>;
|
|
55
|
+
offersControllerCountsbystatus(account: string, options?: {
|
|
56
|
+
headers: {
|
|
57
|
+
[name: string]: string;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<{
|
|
60
|
+
response: http.IncomingMessage;
|
|
61
|
+
body?: any;
|
|
62
|
+
}>;
|
|
55
63
|
offersControllerCreate(account: string, body: object, options?: {
|
|
56
64
|
headers: {
|
|
57
65
|
[name: string]: string;
|
package/dist/api/offersApi.js
CHANGED
|
@@ -379,11 +379,73 @@ var OffersApi = (function () {
|
|
|
379
379
|
});
|
|
380
380
|
});
|
|
381
381
|
};
|
|
382
|
-
OffersApi.prototype.
|
|
382
|
+
OffersApi.prototype.offersControllerCountsbystatus = function (account, options) {
|
|
383
383
|
if (options === void 0) { options = { headers: {} }; }
|
|
384
384
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
385
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
386
386
|
var _this = this;
|
|
387
|
+
return __generator(this, function (_b) {
|
|
388
|
+
localVarPath = this.basePath + '/offers/{account}/counts-by-status'
|
|
389
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
390
|
+
localVarQueryParameters = {};
|
|
391
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
392
|
+
localVarFormParams = {};
|
|
393
|
+
if (account === null || account === undefined) {
|
|
394
|
+
throw new Error('Required parameter account was null or undefined when calling offersControllerCountsbystatus.');
|
|
395
|
+
}
|
|
396
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
397
|
+
localVarUseFormData = false;
|
|
398
|
+
localVarRequestOptions = {
|
|
399
|
+
method: 'GET',
|
|
400
|
+
qs: localVarQueryParameters,
|
|
401
|
+
headers: localVarHeaderParams,
|
|
402
|
+
uri: localVarPath,
|
|
403
|
+
useQuerystring: this._useQuerystring,
|
|
404
|
+
json: true,
|
|
405
|
+
};
|
|
406
|
+
authenticationPromise = Promise.resolve();
|
|
407
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
408
|
+
interceptorPromise = authenticationPromise;
|
|
409
|
+
_loop_5 = function (interceptor) {
|
|
410
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
411
|
+
};
|
|
412
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
413
|
+
interceptor = _a[_i];
|
|
414
|
+
_loop_5(interceptor);
|
|
415
|
+
}
|
|
416
|
+
return [2, interceptorPromise.then(function () {
|
|
417
|
+
if (Object.keys(localVarFormParams).length) {
|
|
418
|
+
if (localVarUseFormData) {
|
|
419
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return new Promise(function (resolve, reject) {
|
|
426
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
427
|
+
if (error) {
|
|
428
|
+
reject(error);
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
432
|
+
resolve({ response: response, body: body });
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
})];
|
|
441
|
+
});
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
OffersApi.prototype.offersControllerCreate = function (account, body, options) {
|
|
445
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
446
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
447
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
448
|
+
var _this = this;
|
|
387
449
|
return __generator(this, function (_b) {
|
|
388
450
|
localVarPath = this.basePath + '/offers/{account}'
|
|
389
451
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
@@ -410,12 +472,12 @@ var OffersApi = (function () {
|
|
|
410
472
|
authenticationPromise = Promise.resolve();
|
|
411
473
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
412
474
|
interceptorPromise = authenticationPromise;
|
|
413
|
-
|
|
475
|
+
_loop_6 = function (interceptor) {
|
|
414
476
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
415
477
|
};
|
|
416
478
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
417
479
|
interceptor = _a[_i];
|
|
418
|
-
|
|
480
|
+
_loop_6(interceptor);
|
|
419
481
|
}
|
|
420
482
|
return [2, interceptorPromise.then(function () {
|
|
421
483
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -448,7 +510,7 @@ var OffersApi = (function () {
|
|
|
448
510
|
OffersApi.prototype.offersControllerDeletebatch = function (account, body, options) {
|
|
449
511
|
if (options === void 0) { options = { headers: {} }; }
|
|
450
512
|
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
513
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
452
514
|
var _this = this;
|
|
453
515
|
return __generator(this, function (_b) {
|
|
454
516
|
localVarPath = this.basePath + '/offers/{account}'
|
|
@@ -476,12 +538,12 @@ var OffersApi = (function () {
|
|
|
476
538
|
authenticationPromise = Promise.resolve();
|
|
477
539
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
478
540
|
interceptorPromise = authenticationPromise;
|
|
479
|
-
|
|
541
|
+
_loop_7 = function (interceptor) {
|
|
480
542
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
481
543
|
};
|
|
482
544
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
483
545
|
interceptor = _a[_i];
|
|
484
|
-
|
|
546
|
+
_loop_7(interceptor);
|
|
485
547
|
}
|
|
486
548
|
return [2, interceptorPromise.then(function () {
|
|
487
549
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -514,7 +576,7 @@ var OffersApi = (function () {
|
|
|
514
576
|
OffersApi.prototype.offersControllerFilter = function (account, skip, limit, sort, body, options) {
|
|
515
577
|
if (options === void 0) { options = { headers: {} }; }
|
|
516
578
|
return __awaiter(this, void 0, void 0, function () {
|
|
517
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
579
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
518
580
|
var _this = this;
|
|
519
581
|
return __generator(this, function (_b) {
|
|
520
582
|
localVarPath = this.basePath + '/offers/{account}/search'
|
|
@@ -548,12 +610,12 @@ var OffersApi = (function () {
|
|
|
548
610
|
authenticationPromise = Promise.resolve();
|
|
549
611
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
550
612
|
interceptorPromise = authenticationPromise;
|
|
551
|
-
|
|
613
|
+
_loop_8 = function (interceptor) {
|
|
552
614
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
553
615
|
};
|
|
554
616
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
555
617
|
interceptor = _a[_i];
|
|
556
|
-
|
|
618
|
+
_loop_8(interceptor);
|
|
557
619
|
}
|
|
558
620
|
return [2, interceptorPromise.then(function () {
|
|
559
621
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -586,7 +648,7 @@ var OffersApi = (function () {
|
|
|
586
648
|
OffersApi.prototype.offersControllerFindall = function (account, body, skip, limit, sort, options) {
|
|
587
649
|
if (options === void 0) { options = { headers: {} }; }
|
|
588
650
|
return __awaiter(this, void 0, void 0, function () {
|
|
589
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
651
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
590
652
|
var _this = this;
|
|
591
653
|
return __generator(this, function (_b) {
|
|
592
654
|
localVarPath = this.basePath + '/offers/{account}'
|
|
@@ -623,12 +685,12 @@ var OffersApi = (function () {
|
|
|
623
685
|
authenticationPromise = Promise.resolve();
|
|
624
686
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
625
687
|
interceptorPromise = authenticationPromise;
|
|
626
|
-
|
|
688
|
+
_loop_9 = function (interceptor) {
|
|
627
689
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
628
690
|
};
|
|
629
691
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
630
692
|
interceptor = _a[_i];
|
|
631
|
-
|
|
693
|
+
_loop_9(interceptor);
|
|
632
694
|
}
|
|
633
695
|
return [2, interceptorPromise.then(function () {
|
|
634
696
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -661,7 +723,7 @@ var OffersApi = (function () {
|
|
|
661
723
|
OffersApi.prototype.offersControllerFindcountries = function (account, options) {
|
|
662
724
|
if (options === void 0) { options = { headers: {} }; }
|
|
663
725
|
return __awaiter(this, void 0, void 0, function () {
|
|
664
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
726
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
665
727
|
var _this = this;
|
|
666
728
|
return __generator(this, function (_b) {
|
|
667
729
|
localVarPath = this.basePath + '/offers/{account}/countries'
|
|
@@ -685,12 +747,12 @@ var OffersApi = (function () {
|
|
|
685
747
|
authenticationPromise = Promise.resolve();
|
|
686
748
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
687
749
|
interceptorPromise = authenticationPromise;
|
|
688
|
-
|
|
750
|
+
_loop_10 = function (interceptor) {
|
|
689
751
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
690
752
|
};
|
|
691
753
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
692
754
|
interceptor = _a[_i];
|
|
693
|
-
|
|
755
|
+
_loop_10(interceptor);
|
|
694
756
|
}
|
|
695
757
|
return [2, interceptorPromise.then(function () {
|
|
696
758
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -723,7 +785,7 @@ var OffersApi = (function () {
|
|
|
723
785
|
OffersApi.prototype.offersControllerFindone = function (id, account, options) {
|
|
724
786
|
if (options === void 0) { options = { headers: {} }; }
|
|
725
787
|
return __awaiter(this, void 0, void 0, function () {
|
|
726
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
788
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
727
789
|
var _this = this;
|
|
728
790
|
return __generator(this, function (_b) {
|
|
729
791
|
localVarPath = this.basePath + '/offers/{account}/{id}'
|
|
@@ -751,12 +813,12 @@ var OffersApi = (function () {
|
|
|
751
813
|
authenticationPromise = Promise.resolve();
|
|
752
814
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
753
815
|
interceptorPromise = authenticationPromise;
|
|
754
|
-
|
|
816
|
+
_loop_11 = function (interceptor) {
|
|
755
817
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
756
818
|
};
|
|
757
819
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
758
820
|
interceptor = _a[_i];
|
|
759
|
-
|
|
821
|
+
_loop_11(interceptor);
|
|
760
822
|
}
|
|
761
823
|
return [2, interceptorPromise.then(function () {
|
|
762
824
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -789,7 +851,7 @@ var OffersApi = (function () {
|
|
|
789
851
|
OffersApi.prototype.offersControllerLock = function (id, account, options) {
|
|
790
852
|
if (options === void 0) { options = { headers: {} }; }
|
|
791
853
|
return __awaiter(this, void 0, void 0, function () {
|
|
792
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
854
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
793
855
|
var _this = this;
|
|
794
856
|
return __generator(this, function (_b) {
|
|
795
857
|
localVarPath = this.basePath + '/offers/{account}/{id}/lock'
|
|
@@ -817,12 +879,12 @@ var OffersApi = (function () {
|
|
|
817
879
|
authenticationPromise = Promise.resolve();
|
|
818
880
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
819
881
|
interceptorPromise = authenticationPromise;
|
|
820
|
-
|
|
882
|
+
_loop_12 = function (interceptor) {
|
|
821
883
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
822
884
|
};
|
|
823
885
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
824
886
|
interceptor = _a[_i];
|
|
825
|
-
|
|
887
|
+
_loop_12(interceptor);
|
|
826
888
|
}
|
|
827
889
|
return [2, interceptorPromise.then(function () {
|
|
828
890
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -855,7 +917,7 @@ var OffersApi = (function () {
|
|
|
855
917
|
OffersApi.prototype.offersControllerReload = function (id, account, options) {
|
|
856
918
|
if (options === void 0) { options = { headers: {} }; }
|
|
857
919
|
return __awaiter(this, void 0, void 0, function () {
|
|
858
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
920
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
859
921
|
var _this = this;
|
|
860
922
|
return __generator(this, function (_b) {
|
|
861
923
|
localVarPath = this.basePath + '/offers/{account}/{id}/reload'
|
|
@@ -883,12 +945,12 @@ var OffersApi = (function () {
|
|
|
883
945
|
authenticationPromise = Promise.resolve();
|
|
884
946
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
885
947
|
interceptorPromise = authenticationPromise;
|
|
886
|
-
|
|
948
|
+
_loop_13 = function (interceptor) {
|
|
887
949
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
888
950
|
};
|
|
889
951
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
890
952
|
interceptor = _a[_i];
|
|
891
|
-
|
|
953
|
+
_loop_13(interceptor);
|
|
892
954
|
}
|
|
893
955
|
return [2, interceptorPromise.then(function () {
|
|
894
956
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -921,7 +983,7 @@ var OffersApi = (function () {
|
|
|
921
983
|
OffersApi.prototype.offersControllerRemove = function (id, account, options) {
|
|
922
984
|
if (options === void 0) { options = { headers: {} }; }
|
|
923
985
|
return __awaiter(this, void 0, void 0, function () {
|
|
924
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
986
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
925
987
|
var _this = this;
|
|
926
988
|
return __generator(this, function (_b) {
|
|
927
989
|
localVarPath = this.basePath + '/offers/{account}/{id}'
|
|
@@ -949,12 +1011,12 @@ var OffersApi = (function () {
|
|
|
949
1011
|
authenticationPromise = Promise.resolve();
|
|
950
1012
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
951
1013
|
interceptorPromise = authenticationPromise;
|
|
952
|
-
|
|
1014
|
+
_loop_14 = function (interceptor) {
|
|
953
1015
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
954
1016
|
};
|
|
955
1017
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
956
1018
|
interceptor = _a[_i];
|
|
957
|
-
|
|
1019
|
+
_loop_14(interceptor);
|
|
958
1020
|
}
|
|
959
1021
|
return [2, interceptorPromise.then(function () {
|
|
960
1022
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -987,7 +1049,7 @@ var OffersApi = (function () {
|
|
|
987
1049
|
OffersApi.prototype.offersControllerSetdealid = function (id, account, body, options) {
|
|
988
1050
|
if (options === void 0) { options = { headers: {} }; }
|
|
989
1051
|
return __awaiter(this, void 0, void 0, function () {
|
|
990
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1052
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
991
1053
|
var _this = this;
|
|
992
1054
|
return __generator(this, function (_b) {
|
|
993
1055
|
localVarPath = this.basePath + '/offers/{account}/{id}/deal-id'
|
|
@@ -1019,12 +1081,12 @@ var OffersApi = (function () {
|
|
|
1019
1081
|
authenticationPromise = Promise.resolve();
|
|
1020
1082
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1021
1083
|
interceptorPromise = authenticationPromise;
|
|
1022
|
-
|
|
1084
|
+
_loop_15 = function (interceptor) {
|
|
1023
1085
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1024
1086
|
};
|
|
1025
1087
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1026
1088
|
interceptor = _a[_i];
|
|
1027
|
-
|
|
1089
|
+
_loop_15(interceptor);
|
|
1028
1090
|
}
|
|
1029
1091
|
return [2, interceptorPromise.then(function () {
|
|
1030
1092
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1057,7 +1119,7 @@ var OffersApi = (function () {
|
|
|
1057
1119
|
OffersApi.prototype.offersControllerSethscode = function (id, account, body, options) {
|
|
1058
1120
|
if (options === void 0) { options = { headers: {} }; }
|
|
1059
1121
|
return __awaiter(this, void 0, void 0, function () {
|
|
1060
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1122
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1061
1123
|
var _this = this;
|
|
1062
1124
|
return __generator(this, function (_b) {
|
|
1063
1125
|
localVarPath = this.basePath + '/offers/{account}/{id}/hs-code'
|
|
@@ -1089,12 +1151,12 @@ var OffersApi = (function () {
|
|
|
1089
1151
|
authenticationPromise = Promise.resolve();
|
|
1090
1152
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1091
1153
|
interceptorPromise = authenticationPromise;
|
|
1092
|
-
|
|
1154
|
+
_loop_16 = function (interceptor) {
|
|
1093
1155
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1094
1156
|
};
|
|
1095
1157
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1096
1158
|
interceptor = _a[_i];
|
|
1097
|
-
|
|
1159
|
+
_loop_16(interceptor);
|
|
1098
1160
|
}
|
|
1099
1161
|
return [2, interceptorPromise.then(function () {
|
|
1100
1162
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1127,7 +1189,7 @@ var OffersApi = (function () {
|
|
|
1127
1189
|
OffersApi.prototype.offersControllerUnlock = function (id, account, options) {
|
|
1128
1190
|
if (options === void 0) { options = { headers: {} }; }
|
|
1129
1191
|
return __awaiter(this, void 0, void 0, function () {
|
|
1130
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1192
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1131
1193
|
var _this = this;
|
|
1132
1194
|
return __generator(this, function (_b) {
|
|
1133
1195
|
localVarPath = this.basePath + '/offers/{account}/{id}/unlock'
|
|
@@ -1155,12 +1217,12 @@ var OffersApi = (function () {
|
|
|
1155
1217
|
authenticationPromise = Promise.resolve();
|
|
1156
1218
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1157
1219
|
interceptorPromise = authenticationPromise;
|
|
1158
|
-
|
|
1220
|
+
_loop_17 = function (interceptor) {
|
|
1159
1221
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1160
1222
|
};
|
|
1161
1223
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1162
1224
|
interceptor = _a[_i];
|
|
1163
|
-
|
|
1225
|
+
_loop_17(interceptor);
|
|
1164
1226
|
}
|
|
1165
1227
|
return [2, interceptorPromise.then(function () {
|
|
1166
1228
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1193,7 +1255,7 @@ var OffersApi = (function () {
|
|
|
1193
1255
|
OffersApi.prototype.offersControllerUpdate = function (id, account, body, options) {
|
|
1194
1256
|
if (options === void 0) { options = { headers: {} }; }
|
|
1195
1257
|
return __awaiter(this, void 0, void 0, function () {
|
|
1196
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1258
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1197
1259
|
var _this = this;
|
|
1198
1260
|
return __generator(this, function (_b) {
|
|
1199
1261
|
localVarPath = this.basePath + '/offers/{account}/{id}'
|
|
@@ -1225,12 +1287,12 @@ var OffersApi = (function () {
|
|
|
1225
1287
|
authenticationPromise = Promise.resolve();
|
|
1226
1288
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1227
1289
|
interceptorPromise = authenticationPromise;
|
|
1228
|
-
|
|
1290
|
+
_loop_18 = function (interceptor) {
|
|
1229
1291
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1230
1292
|
};
|
|
1231
1293
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1232
1294
|
interceptor = _a[_i];
|
|
1233
|
-
|
|
1295
|
+
_loop_18(interceptor);
|
|
1234
1296
|
}
|
|
1235
1297
|
return [2, interceptorPromise.then(function () {
|
|
1236
1298
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1263,7 +1325,7 @@ var OffersApi = (function () {
|
|
|
1263
1325
|
OffersApi.prototype.offersControllerUpdatestatus = function (account, body, options) {
|
|
1264
1326
|
if (options === void 0) { options = { headers: {} }; }
|
|
1265
1327
|
return __awaiter(this, void 0, void 0, function () {
|
|
1266
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1328
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1267
1329
|
var _this = this;
|
|
1268
1330
|
return __generator(this, function (_b) {
|
|
1269
1331
|
localVarPath = this.basePath + '/offers/{account}/status'
|
|
@@ -1291,12 +1353,12 @@ var OffersApi = (function () {
|
|
|
1291
1353
|
authenticationPromise = Promise.resolve();
|
|
1292
1354
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1293
1355
|
interceptorPromise = authenticationPromise;
|
|
1294
|
-
|
|
1356
|
+
_loop_19 = function (interceptor) {
|
|
1295
1357
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1296
1358
|
};
|
|
1297
1359
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1298
1360
|
interceptor = _a[_i];
|
|
1299
|
-
|
|
1361
|
+
_loop_19(interceptor);
|
|
1300
1362
|
}
|
|
1301
1363
|
return [2, interceptorPromise.then(function () {
|
|
1302
1364
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1329,7 +1391,7 @@ var OffersApi = (function () {
|
|
|
1329
1391
|
OffersApi.prototype.offersControllerValidatestatus = function (account, body, options) {
|
|
1330
1392
|
if (options === void 0) { options = { headers: {} }; }
|
|
1331
1393
|
return __awaiter(this, void 0, void 0, function () {
|
|
1332
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1394
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1333
1395
|
var _this = this;
|
|
1334
1396
|
return __generator(this, function (_b) {
|
|
1335
1397
|
localVarPath = this.basePath + '/offers/{account}/status/validate'
|
|
@@ -1357,12 +1419,12 @@ var OffersApi = (function () {
|
|
|
1357
1419
|
authenticationPromise = Promise.resolve();
|
|
1358
1420
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1359
1421
|
interceptorPromise = authenticationPromise;
|
|
1360
|
-
|
|
1422
|
+
_loop_20 = function (interceptor) {
|
|
1361
1423
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1362
1424
|
};
|
|
1363
1425
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1364
1426
|
interceptor = _a[_i];
|
|
1365
|
-
|
|
1427
|
+
_loop_20(interceptor);
|
|
1366
1428
|
}
|
|
1367
1429
|
return [2, interceptorPromise.then(function () {
|
|
1368
1430
|
if (Object.keys(localVarFormParams).length) {
|