@tradecafe/offer-service-sdk 0.0.43 → 0.0.44
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 +75 -0
- package/api/offersApi.ts +75 -0
- package/dist/api/automatedOffersApi.d.ts +8 -0
- package/dist/api/automatedOffersApi.js +106 -36
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/offersApi.d.ts +8 -0
- package/dist/api/offersApi.js +133 -63
- package/dist/api/offersApi.js.map +1 -1
- package/package.json +1 -1
package/dist/api/offersApi.js
CHANGED
|
@@ -103,11 +103,81 @@ var OffersApi = (function () {
|
|
|
103
103
|
OffersApi.prototype.addInterceptor = function (interceptor) {
|
|
104
104
|
this.interceptors.push(interceptor);
|
|
105
105
|
};
|
|
106
|
-
OffersApi.prototype.
|
|
106
|
+
OffersApi.prototype.offersControllerAddmatchedbuyertooffer = function (id, buyer, account, options) {
|
|
107
107
|
if (options === void 0) { options = { headers: {} }; }
|
|
108
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
109
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
110
110
|
var _this = this;
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
localVarPath = this.basePath + '/offers/{account}/{id}/matched-buyer/{buyer}/add'
|
|
113
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
114
|
+
.replace('{' + 'buyer' + '}', encodeURIComponent(String(buyer)))
|
|
115
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
116
|
+
localVarQueryParameters = {};
|
|
117
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
118
|
+
localVarFormParams = {};
|
|
119
|
+
if (id === null || id === undefined) {
|
|
120
|
+
throw new Error('Required parameter id was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
121
|
+
}
|
|
122
|
+
if (buyer === null || buyer === undefined) {
|
|
123
|
+
throw new Error('Required parameter buyer was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
124
|
+
}
|
|
125
|
+
if (account === null || account === undefined) {
|
|
126
|
+
throw new Error('Required parameter account was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
127
|
+
}
|
|
128
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
129
|
+
localVarUseFormData = false;
|
|
130
|
+
localVarRequestOptions = {
|
|
131
|
+
method: 'PUT',
|
|
132
|
+
qs: localVarQueryParameters,
|
|
133
|
+
headers: localVarHeaderParams,
|
|
134
|
+
uri: localVarPath,
|
|
135
|
+
useQuerystring: this._useQuerystring,
|
|
136
|
+
json: true,
|
|
137
|
+
};
|
|
138
|
+
authenticationPromise = Promise.resolve();
|
|
139
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
140
|
+
interceptorPromise = authenticationPromise;
|
|
141
|
+
_loop_1 = function (interceptor) {
|
|
142
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
143
|
+
};
|
|
144
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
145
|
+
interceptor = _a[_i];
|
|
146
|
+
_loop_1(interceptor);
|
|
147
|
+
}
|
|
148
|
+
return [2, interceptorPromise.then(function () {
|
|
149
|
+
if (Object.keys(localVarFormParams).length) {
|
|
150
|
+
if (localVarUseFormData) {
|
|
151
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return new Promise(function (resolve, reject) {
|
|
158
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
159
|
+
if (error) {
|
|
160
|
+
reject(error);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
164
|
+
resolve({ response: response, body: body });
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
})];
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
OffersApi.prototype.offersControllerAddnote = function (id, account, body, options) {
|
|
177
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
178
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
180
|
+
var _this = this;
|
|
111
181
|
return __generator(this, function (_b) {
|
|
112
182
|
localVarPath = this.basePath + '/offers/{account}/{id}/notes'
|
|
113
183
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
@@ -138,12 +208,12 @@ var OffersApi = (function () {
|
|
|
138
208
|
authenticationPromise = Promise.resolve();
|
|
139
209
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
140
210
|
interceptorPromise = authenticationPromise;
|
|
141
|
-
|
|
211
|
+
_loop_2 = function (interceptor) {
|
|
142
212
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
143
213
|
};
|
|
144
214
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
145
215
|
interceptor = _a[_i];
|
|
146
|
-
|
|
216
|
+
_loop_2(interceptor);
|
|
147
217
|
}
|
|
148
218
|
return [2, interceptorPromise.then(function () {
|
|
149
219
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -176,7 +246,7 @@ var OffersApi = (function () {
|
|
|
176
246
|
OffersApi.prototype.offersControllerAttachclones = function (id, account, body, options) {
|
|
177
247
|
if (options === void 0) { options = { headers: {} }; }
|
|
178
248
|
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
249
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
180
250
|
var _this = this;
|
|
181
251
|
return __generator(this, function (_b) {
|
|
182
252
|
localVarPath = this.basePath + '/offers/{account}/{id}/clones/add'
|
|
@@ -208,12 +278,12 @@ var OffersApi = (function () {
|
|
|
208
278
|
authenticationPromise = Promise.resolve();
|
|
209
279
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
210
280
|
interceptorPromise = authenticationPromise;
|
|
211
|
-
|
|
281
|
+
_loop_3 = function (interceptor) {
|
|
212
282
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
213
283
|
};
|
|
214
284
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
215
285
|
interceptor = _a[_i];
|
|
216
|
-
|
|
286
|
+
_loop_3(interceptor);
|
|
217
287
|
}
|
|
218
288
|
return [2, interceptorPromise.then(function () {
|
|
219
289
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -246,7 +316,7 @@ var OffersApi = (function () {
|
|
|
246
316
|
OffersApi.prototype.offersControllerAttachmatchedoffers = function (id, account, body, options) {
|
|
247
317
|
if (options === void 0) { options = { headers: {} }; }
|
|
248
318
|
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
319
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
250
320
|
var _this = this;
|
|
251
321
|
return __generator(this, function (_b) {
|
|
252
322
|
localVarPath = this.basePath + '/offers/{account}/{id}/matched-offers/add'
|
|
@@ -278,12 +348,12 @@ var OffersApi = (function () {
|
|
|
278
348
|
authenticationPromise = Promise.resolve();
|
|
279
349
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
280
350
|
interceptorPromise = authenticationPromise;
|
|
281
|
-
|
|
351
|
+
_loop_4 = function (interceptor) {
|
|
282
352
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
283
353
|
};
|
|
284
354
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
285
355
|
interceptor = _a[_i];
|
|
286
|
-
|
|
356
|
+
_loop_4(interceptor);
|
|
287
357
|
}
|
|
288
358
|
return [2, interceptorPromise.then(function () {
|
|
289
359
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -316,7 +386,7 @@ var OffersApi = (function () {
|
|
|
316
386
|
OffersApi.prototype.offersControllerCancel = function (account, body, options) {
|
|
317
387
|
if (options === void 0) { options = { headers: {} }; }
|
|
318
388
|
return __awaiter(this, void 0, void 0, function () {
|
|
319
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
389
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
320
390
|
var _this = this;
|
|
321
391
|
return __generator(this, function (_b) {
|
|
322
392
|
localVarPath = this.basePath + '/offers/{account}/cancel'
|
|
@@ -344,12 +414,12 @@ var OffersApi = (function () {
|
|
|
344
414
|
authenticationPromise = Promise.resolve();
|
|
345
415
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
346
416
|
interceptorPromise = authenticationPromise;
|
|
347
|
-
|
|
417
|
+
_loop_5 = function (interceptor) {
|
|
348
418
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
349
419
|
};
|
|
350
420
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
351
421
|
interceptor = _a[_i];
|
|
352
|
-
|
|
422
|
+
_loop_5(interceptor);
|
|
353
423
|
}
|
|
354
424
|
return [2, interceptorPromise.then(function () {
|
|
355
425
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -382,7 +452,7 @@ var OffersApi = (function () {
|
|
|
382
452
|
OffersApi.prototype.offersControllerCountsbystatus = function (account, options) {
|
|
383
453
|
if (options === void 0) { options = { headers: {} }; }
|
|
384
454
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
455
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
386
456
|
var _this = this;
|
|
387
457
|
return __generator(this, function (_b) {
|
|
388
458
|
localVarPath = this.basePath + '/offers/{account}/counts-by-status'
|
|
@@ -406,12 +476,12 @@ var OffersApi = (function () {
|
|
|
406
476
|
authenticationPromise = Promise.resolve();
|
|
407
477
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
408
478
|
interceptorPromise = authenticationPromise;
|
|
409
|
-
|
|
479
|
+
_loop_6 = function (interceptor) {
|
|
410
480
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
411
481
|
};
|
|
412
482
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
413
483
|
interceptor = _a[_i];
|
|
414
|
-
|
|
484
|
+
_loop_6(interceptor);
|
|
415
485
|
}
|
|
416
486
|
return [2, interceptorPromise.then(function () {
|
|
417
487
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -444,7 +514,7 @@ var OffersApi = (function () {
|
|
|
444
514
|
OffersApi.prototype.offersControllerCreate = function (account, createOfferDto, options) {
|
|
445
515
|
if (options === void 0) { options = { headers: {} }; }
|
|
446
516
|
return __awaiter(this, void 0, void 0, function () {
|
|
447
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
517
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
448
518
|
var _this = this;
|
|
449
519
|
return __generator(this, function (_b) {
|
|
450
520
|
localVarPath = this.basePath + '/offers/{account}'
|
|
@@ -472,12 +542,12 @@ var OffersApi = (function () {
|
|
|
472
542
|
authenticationPromise = Promise.resolve();
|
|
473
543
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
474
544
|
interceptorPromise = authenticationPromise;
|
|
475
|
-
|
|
545
|
+
_loop_7 = function (interceptor) {
|
|
476
546
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
477
547
|
};
|
|
478
548
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
479
549
|
interceptor = _a[_i];
|
|
480
|
-
|
|
550
|
+
_loop_7(interceptor);
|
|
481
551
|
}
|
|
482
552
|
return [2, interceptorPromise.then(function () {
|
|
483
553
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -510,7 +580,7 @@ var OffersApi = (function () {
|
|
|
510
580
|
OffersApi.prototype.offersControllerCreatebulk = function (account, createOfferDto, options) {
|
|
511
581
|
if (options === void 0) { options = { headers: {} }; }
|
|
512
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
513
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
583
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
514
584
|
var _this = this;
|
|
515
585
|
return __generator(this, function (_b) {
|
|
516
586
|
localVarPath = this.basePath + '/offers/{account}/bulk'
|
|
@@ -538,12 +608,12 @@ var OffersApi = (function () {
|
|
|
538
608
|
authenticationPromise = Promise.resolve();
|
|
539
609
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
540
610
|
interceptorPromise = authenticationPromise;
|
|
541
|
-
|
|
611
|
+
_loop_8 = function (interceptor) {
|
|
542
612
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
543
613
|
};
|
|
544
614
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
545
615
|
interceptor = _a[_i];
|
|
546
|
-
|
|
616
|
+
_loop_8(interceptor);
|
|
547
617
|
}
|
|
548
618
|
return [2, interceptorPromise.then(function () {
|
|
549
619
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -576,7 +646,7 @@ var OffersApi = (function () {
|
|
|
576
646
|
OffersApi.prototype.offersControllerDeletebatch = function (account, body, options) {
|
|
577
647
|
if (options === void 0) { options = { headers: {} }; }
|
|
578
648
|
return __awaiter(this, void 0, void 0, function () {
|
|
579
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
649
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
580
650
|
var _this = this;
|
|
581
651
|
return __generator(this, function (_b) {
|
|
582
652
|
localVarPath = this.basePath + '/offers/{account}'
|
|
@@ -604,12 +674,12 @@ var OffersApi = (function () {
|
|
|
604
674
|
authenticationPromise = Promise.resolve();
|
|
605
675
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
606
676
|
interceptorPromise = authenticationPromise;
|
|
607
|
-
|
|
677
|
+
_loop_9 = function (interceptor) {
|
|
608
678
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
609
679
|
};
|
|
610
680
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
611
681
|
interceptor = _a[_i];
|
|
612
|
-
|
|
682
|
+
_loop_9(interceptor);
|
|
613
683
|
}
|
|
614
684
|
return [2, interceptorPromise.then(function () {
|
|
615
685
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -642,7 +712,7 @@ var OffersApi = (function () {
|
|
|
642
712
|
OffersApi.prototype.offersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
643
713
|
if (options === void 0) { options = { headers: {} }; }
|
|
644
714
|
return __awaiter(this, void 0, void 0, function () {
|
|
645
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
715
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
646
716
|
var _this = this;
|
|
647
717
|
return __generator(this, function (_b) {
|
|
648
718
|
localVarPath = this.basePath + '/offers/{account}/search'
|
|
@@ -679,12 +749,12 @@ var OffersApi = (function () {
|
|
|
679
749
|
authenticationPromise = Promise.resolve();
|
|
680
750
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
681
751
|
interceptorPromise = authenticationPromise;
|
|
682
|
-
|
|
752
|
+
_loop_10 = function (interceptor) {
|
|
683
753
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
684
754
|
};
|
|
685
755
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
686
756
|
interceptor = _a[_i];
|
|
687
|
-
|
|
757
|
+
_loop_10(interceptor);
|
|
688
758
|
}
|
|
689
759
|
return [2, interceptorPromise.then(function () {
|
|
690
760
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -717,7 +787,7 @@ var OffersApi = (function () {
|
|
|
717
787
|
OffersApi.prototype.offersControllerFindall = function (account, createOfferDto, skip, limit, sort, fields, options) {
|
|
718
788
|
if (options === void 0) { options = { headers: {} }; }
|
|
719
789
|
return __awaiter(this, void 0, void 0, function () {
|
|
720
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
790
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
721
791
|
var _this = this;
|
|
722
792
|
return __generator(this, function (_b) {
|
|
723
793
|
localVarPath = this.basePath + '/offers/{account}'
|
|
@@ -757,12 +827,12 @@ var OffersApi = (function () {
|
|
|
757
827
|
authenticationPromise = Promise.resolve();
|
|
758
828
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
759
829
|
interceptorPromise = authenticationPromise;
|
|
760
|
-
|
|
830
|
+
_loop_11 = function (interceptor) {
|
|
761
831
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
762
832
|
};
|
|
763
833
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
764
834
|
interceptor = _a[_i];
|
|
765
|
-
|
|
835
|
+
_loop_11(interceptor);
|
|
766
836
|
}
|
|
767
837
|
return [2, interceptorPromise.then(function () {
|
|
768
838
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -795,7 +865,7 @@ var OffersApi = (function () {
|
|
|
795
865
|
OffersApi.prototype.offersControllerFindcountries = function (account, options) {
|
|
796
866
|
if (options === void 0) { options = { headers: {} }; }
|
|
797
867
|
return __awaiter(this, void 0, void 0, function () {
|
|
798
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
868
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
799
869
|
var _this = this;
|
|
800
870
|
return __generator(this, function (_b) {
|
|
801
871
|
localVarPath = this.basePath + '/offers/{account}/countries'
|
|
@@ -819,12 +889,12 @@ var OffersApi = (function () {
|
|
|
819
889
|
authenticationPromise = Promise.resolve();
|
|
820
890
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
821
891
|
interceptorPromise = authenticationPromise;
|
|
822
|
-
|
|
892
|
+
_loop_12 = function (interceptor) {
|
|
823
893
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
824
894
|
};
|
|
825
895
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
826
896
|
interceptor = _a[_i];
|
|
827
|
-
|
|
897
|
+
_loop_12(interceptor);
|
|
828
898
|
}
|
|
829
899
|
return [2, interceptorPromise.then(function () {
|
|
830
900
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -857,7 +927,7 @@ var OffersApi = (function () {
|
|
|
857
927
|
OffersApi.prototype.offersControllerFindone = function (id, account, fields, options) {
|
|
858
928
|
if (options === void 0) { options = { headers: {} }; }
|
|
859
929
|
return __awaiter(this, void 0, void 0, function () {
|
|
860
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
930
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
861
931
|
var _this = this;
|
|
862
932
|
return __generator(this, function (_b) {
|
|
863
933
|
localVarPath = this.basePath + '/offers/{account}/{id}'
|
|
@@ -888,12 +958,12 @@ var OffersApi = (function () {
|
|
|
888
958
|
authenticationPromise = Promise.resolve();
|
|
889
959
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
890
960
|
interceptorPromise = authenticationPromise;
|
|
891
|
-
|
|
961
|
+
_loop_13 = function (interceptor) {
|
|
892
962
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
893
963
|
};
|
|
894
964
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
895
965
|
interceptor = _a[_i];
|
|
896
|
-
|
|
966
|
+
_loop_13(interceptor);
|
|
897
967
|
}
|
|
898
968
|
return [2, interceptorPromise.then(function () {
|
|
899
969
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -926,7 +996,7 @@ var OffersApi = (function () {
|
|
|
926
996
|
OffersApi.prototype.offersControllerLock = function (id, account, body, options) {
|
|
927
997
|
if (options === void 0) { options = { headers: {} }; }
|
|
928
998
|
return __awaiter(this, void 0, void 0, function () {
|
|
929
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
999
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
930
1000
|
var _this = this;
|
|
931
1001
|
return __generator(this, function (_b) {
|
|
932
1002
|
localVarPath = this.basePath + '/offers/{account}/{id}/lock'
|
|
@@ -955,12 +1025,12 @@ var OffersApi = (function () {
|
|
|
955
1025
|
authenticationPromise = Promise.resolve();
|
|
956
1026
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
957
1027
|
interceptorPromise = authenticationPromise;
|
|
958
|
-
|
|
1028
|
+
_loop_14 = function (interceptor) {
|
|
959
1029
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
960
1030
|
};
|
|
961
1031
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
962
1032
|
interceptor = _a[_i];
|
|
963
|
-
|
|
1033
|
+
_loop_14(interceptor);
|
|
964
1034
|
}
|
|
965
1035
|
return [2, interceptorPromise.then(function () {
|
|
966
1036
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -993,7 +1063,7 @@ var OffersApi = (function () {
|
|
|
993
1063
|
OffersApi.prototype.offersControllerReload = function (id, account, options) {
|
|
994
1064
|
if (options === void 0) { options = { headers: {} }; }
|
|
995
1065
|
return __awaiter(this, void 0, void 0, function () {
|
|
996
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1066
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
997
1067
|
var _this = this;
|
|
998
1068
|
return __generator(this, function (_b) {
|
|
999
1069
|
localVarPath = this.basePath + '/offers/{account}/{id}/reload'
|
|
@@ -1021,12 +1091,12 @@ var OffersApi = (function () {
|
|
|
1021
1091
|
authenticationPromise = Promise.resolve();
|
|
1022
1092
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1023
1093
|
interceptorPromise = authenticationPromise;
|
|
1024
|
-
|
|
1094
|
+
_loop_15 = function (interceptor) {
|
|
1025
1095
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1026
1096
|
};
|
|
1027
1097
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1028
1098
|
interceptor = _a[_i];
|
|
1029
|
-
|
|
1099
|
+
_loop_15(interceptor);
|
|
1030
1100
|
}
|
|
1031
1101
|
return [2, interceptorPromise.then(function () {
|
|
1032
1102
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1059,7 +1129,7 @@ var OffersApi = (function () {
|
|
|
1059
1129
|
OffersApi.prototype.offersControllerRemove = function (id, account, options) {
|
|
1060
1130
|
if (options === void 0) { options = { headers: {} }; }
|
|
1061
1131
|
return __awaiter(this, void 0, void 0, function () {
|
|
1062
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1132
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1063
1133
|
var _this = this;
|
|
1064
1134
|
return __generator(this, function (_b) {
|
|
1065
1135
|
localVarPath = this.basePath + '/offers/{account}/{id}'
|
|
@@ -1087,12 +1157,12 @@ var OffersApi = (function () {
|
|
|
1087
1157
|
authenticationPromise = Promise.resolve();
|
|
1088
1158
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1089
1159
|
interceptorPromise = authenticationPromise;
|
|
1090
|
-
|
|
1160
|
+
_loop_16 = function (interceptor) {
|
|
1091
1161
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1092
1162
|
};
|
|
1093
1163
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1094
1164
|
interceptor = _a[_i];
|
|
1095
|
-
|
|
1165
|
+
_loop_16(interceptor);
|
|
1096
1166
|
}
|
|
1097
1167
|
return [2, interceptorPromise.then(function () {
|
|
1098
1168
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1125,7 +1195,7 @@ var OffersApi = (function () {
|
|
|
1125
1195
|
OffersApi.prototype.offersControllerSetdealid = function (id, account, body, options) {
|
|
1126
1196
|
if (options === void 0) { options = { headers: {} }; }
|
|
1127
1197
|
return __awaiter(this, void 0, void 0, function () {
|
|
1128
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1198
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1129
1199
|
var _this = this;
|
|
1130
1200
|
return __generator(this, function (_b) {
|
|
1131
1201
|
localVarPath = this.basePath + '/offers/{account}/{id}/deal-id'
|
|
@@ -1157,12 +1227,12 @@ var OffersApi = (function () {
|
|
|
1157
1227
|
authenticationPromise = Promise.resolve();
|
|
1158
1228
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1159
1229
|
interceptorPromise = authenticationPromise;
|
|
1160
|
-
|
|
1230
|
+
_loop_17 = function (interceptor) {
|
|
1161
1231
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1162
1232
|
};
|
|
1163
1233
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1164
1234
|
interceptor = _a[_i];
|
|
1165
|
-
|
|
1235
|
+
_loop_17(interceptor);
|
|
1166
1236
|
}
|
|
1167
1237
|
return [2, interceptorPromise.then(function () {
|
|
1168
1238
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1195,7 +1265,7 @@ var OffersApi = (function () {
|
|
|
1195
1265
|
OffersApi.prototype.offersControllerSethscode = function (id, account, body, options) {
|
|
1196
1266
|
if (options === void 0) { options = { headers: {} }; }
|
|
1197
1267
|
return __awaiter(this, void 0, void 0, function () {
|
|
1198
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1268
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1199
1269
|
var _this = this;
|
|
1200
1270
|
return __generator(this, function (_b) {
|
|
1201
1271
|
localVarPath = this.basePath + '/offers/{account}/{id}/hs-code'
|
|
@@ -1227,12 +1297,12 @@ var OffersApi = (function () {
|
|
|
1227
1297
|
authenticationPromise = Promise.resolve();
|
|
1228
1298
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1229
1299
|
interceptorPromise = authenticationPromise;
|
|
1230
|
-
|
|
1300
|
+
_loop_18 = function (interceptor) {
|
|
1231
1301
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1232
1302
|
};
|
|
1233
1303
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1234
1304
|
interceptor = _a[_i];
|
|
1235
|
-
|
|
1305
|
+
_loop_18(interceptor);
|
|
1236
1306
|
}
|
|
1237
1307
|
return [2, interceptorPromise.then(function () {
|
|
1238
1308
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1265,7 +1335,7 @@ var OffersApi = (function () {
|
|
|
1265
1335
|
OffersApi.prototype.offersControllerUnlock = function (id, account, options) {
|
|
1266
1336
|
if (options === void 0) { options = { headers: {} }; }
|
|
1267
1337
|
return __awaiter(this, void 0, void 0, function () {
|
|
1268
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1338
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1269
1339
|
var _this = this;
|
|
1270
1340
|
return __generator(this, function (_b) {
|
|
1271
1341
|
localVarPath = this.basePath + '/offers/{account}/{id}/unlock'
|
|
@@ -1293,12 +1363,12 @@ var OffersApi = (function () {
|
|
|
1293
1363
|
authenticationPromise = Promise.resolve();
|
|
1294
1364
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1295
1365
|
interceptorPromise = authenticationPromise;
|
|
1296
|
-
|
|
1366
|
+
_loop_19 = function (interceptor) {
|
|
1297
1367
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1298
1368
|
};
|
|
1299
1369
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1300
1370
|
interceptor = _a[_i];
|
|
1301
|
-
|
|
1371
|
+
_loop_19(interceptor);
|
|
1302
1372
|
}
|
|
1303
1373
|
return [2, interceptorPromise.then(function () {
|
|
1304
1374
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1331,7 +1401,7 @@ var OffersApi = (function () {
|
|
|
1331
1401
|
OffersApi.prototype.offersControllerUpdate = function (id, account, body, options) {
|
|
1332
1402
|
if (options === void 0) { options = { headers: {} }; }
|
|
1333
1403
|
return __awaiter(this, void 0, void 0, function () {
|
|
1334
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1404
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1335
1405
|
var _this = this;
|
|
1336
1406
|
return __generator(this, function (_b) {
|
|
1337
1407
|
localVarPath = this.basePath + '/offers/{account}/{id}'
|
|
@@ -1363,12 +1433,12 @@ var OffersApi = (function () {
|
|
|
1363
1433
|
authenticationPromise = Promise.resolve();
|
|
1364
1434
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1365
1435
|
interceptorPromise = authenticationPromise;
|
|
1366
|
-
|
|
1436
|
+
_loop_20 = function (interceptor) {
|
|
1367
1437
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1368
1438
|
};
|
|
1369
1439
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1370
1440
|
interceptor = _a[_i];
|
|
1371
|
-
|
|
1441
|
+
_loop_20(interceptor);
|
|
1372
1442
|
}
|
|
1373
1443
|
return [2, interceptorPromise.then(function () {
|
|
1374
1444
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1401,7 +1471,7 @@ var OffersApi = (function () {
|
|
|
1401
1471
|
OffersApi.prototype.offersControllerUpdatestatus = function (account, body, options) {
|
|
1402
1472
|
if (options === void 0) { options = { headers: {} }; }
|
|
1403
1473
|
return __awaiter(this, void 0, void 0, function () {
|
|
1404
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1474
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1405
1475
|
var _this = this;
|
|
1406
1476
|
return __generator(this, function (_b) {
|
|
1407
1477
|
localVarPath = this.basePath + '/offers/{account}/status'
|
|
@@ -1429,12 +1499,12 @@ var OffersApi = (function () {
|
|
|
1429
1499
|
authenticationPromise = Promise.resolve();
|
|
1430
1500
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1431
1501
|
interceptorPromise = authenticationPromise;
|
|
1432
|
-
|
|
1502
|
+
_loop_21 = function (interceptor) {
|
|
1433
1503
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1434
1504
|
};
|
|
1435
1505
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1436
1506
|
interceptor = _a[_i];
|
|
1437
|
-
|
|
1507
|
+
_loop_21(interceptor);
|
|
1438
1508
|
}
|
|
1439
1509
|
return [2, interceptorPromise.then(function () {
|
|
1440
1510
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1467,7 +1537,7 @@ var OffersApi = (function () {
|
|
|
1467
1537
|
OffersApi.prototype.offersControllerValidatestatus = function (account, body, options) {
|
|
1468
1538
|
if (options === void 0) { options = { headers: {} }; }
|
|
1469
1539
|
return __awaiter(this, void 0, void 0, function () {
|
|
1470
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1540
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1471
1541
|
var _this = this;
|
|
1472
1542
|
return __generator(this, function (_b) {
|
|
1473
1543
|
localVarPath = this.basePath + '/offers/{account}/status/validate'
|
|
@@ -1495,12 +1565,12 @@ var OffersApi = (function () {
|
|
|
1495
1565
|
authenticationPromise = Promise.resolve();
|
|
1496
1566
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1497
1567
|
interceptorPromise = authenticationPromise;
|
|
1498
|
-
|
|
1568
|
+
_loop_22 = function (interceptor) {
|
|
1499
1569
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1500
1570
|
};
|
|
1501
1571
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1502
1572
|
interceptor = _a[_i];
|
|
1503
|
-
|
|
1573
|
+
_loop_22(interceptor);
|
|
1504
1574
|
}
|
|
1505
1575
|
return [2, interceptorPromise.then(function () {
|
|
1506
1576
|
if (Object.keys(localVarFormParams).length) {
|