@tradecafe/offer-service-sdk 0.0.57 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -0
- package/api/apis.ts +3 -1
- package/api/matchedOffersApi.ts +329 -0
- package/api/promoTextsApi.ts +426 -0
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +3 -1
- package/dist/api/apis.js.map +1 -1
- package/dist/api/matchedOffersApi.d.ts +43 -0
- package/dist/api/matchedOffersApi.js +406 -84
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/api/promoTextsApi.d.ts +67 -0
- package/dist/api/promoTextsApi.js +436 -0
- package/dist/api/promoTextsApi.js.map +1 -0
- package/dist/model/archivePromoTextDto.d.ts +14 -0
- package/dist/model/archivePromoTextDto.js +21 -0
- package/dist/model/archivePromoTextDto.js.map +1 -0
- package/dist/model/bulkCancelPromotionDto.d.ts +16 -0
- package/dist/model/bulkCancelPromotionDto.js +31 -0
- package/dist/model/bulkCancelPromotionDto.js.map +1 -0
- package/dist/model/bulkChangeDestinationLocationDto.d.ts +16 -0
- package/dist/model/bulkChangeDestinationLocationDto.js +31 -0
- package/dist/model/bulkChangeDestinationLocationDto.js.map +1 -0
- package/dist/model/bulkPromoteDto.d.ts +17 -0
- package/dist/model/bulkPromoteDto.js +36 -0
- package/dist/model/bulkPromoteDto.js.map +1 -0
- package/dist/model/createPromoTextDto.d.ts +17 -0
- package/dist/model/createPromoTextDto.js +31 -0
- package/dist/model/createPromoTextDto.js.map +1 -0
- package/dist/model/models.d.ts +8 -0
- package/dist/model/models.js +25 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/promoTextPairDto.d.ts +24 -0
- package/dist/model/promoTextPairDto.js +41 -0
- package/dist/model/promoTextPairDto.js.map +1 -0
- package/dist/model/searchPromoTextDto.d.ts +15 -0
- package/dist/model/searchPromoTextDto.js +26 -0
- package/dist/model/searchPromoTextDto.js.map +1 -0
- package/dist/model/updatePromoTextDto.d.ts +17 -0
- package/dist/model/updatePromoTextDto.js +31 -0
- package/dist/model/updatePromoTextDto.js.map +1 -0
- package/model/archivePromoTextDto.ts +34 -0
- package/model/bulkCancelPromotionDto.ts +49 -0
- package/model/bulkChangeDestinationLocationDto.ts +43 -0
- package/model/bulkPromoteDto.ts +55 -0
- package/model/createPromoTextDto.ts +53 -0
- package/model/models.ts +25 -0
- package/model/promoTextPairDto.ts +60 -0
- package/model/searchPromoTextDto.ts +43 -0
- package/model/updatePromoTextDto.ts +47 -0
- package/package.json +1 -1
|
@@ -103,11 +103,73 @@ var MatchedOffersApi = (function () {
|
|
|
103
103
|
MatchedOffersApi.prototype.addInterceptor = function (interceptor) {
|
|
104
104
|
this.interceptors.push(interceptor);
|
|
105
105
|
};
|
|
106
|
-
MatchedOffersApi.prototype.
|
|
106
|
+
MatchedOffersApi.prototype.matchedOffersControllerActivepromotions = function (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 + '/matched-offers/{account}/promotions/active'
|
|
113
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
114
|
+
localVarQueryParameters = {};
|
|
115
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
116
|
+
localVarFormParams = {};
|
|
117
|
+
if (account === null || account === undefined) {
|
|
118
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerActivepromotions.');
|
|
119
|
+
}
|
|
120
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
121
|
+
localVarUseFormData = false;
|
|
122
|
+
localVarRequestOptions = {
|
|
123
|
+
method: 'GET',
|
|
124
|
+
qs: localVarQueryParameters,
|
|
125
|
+
headers: localVarHeaderParams,
|
|
126
|
+
uri: localVarPath,
|
|
127
|
+
useQuerystring: this._useQuerystring,
|
|
128
|
+
json: true,
|
|
129
|
+
};
|
|
130
|
+
authenticationPromise = Promise.resolve();
|
|
131
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
132
|
+
interceptorPromise = authenticationPromise;
|
|
133
|
+
_loop_1 = function (interceptor) {
|
|
134
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
135
|
+
};
|
|
136
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
137
|
+
interceptor = _a[_i];
|
|
138
|
+
_loop_1(interceptor);
|
|
139
|
+
}
|
|
140
|
+
return [2, interceptorPromise.then(function () {
|
|
141
|
+
if (Object.keys(localVarFormParams).length) {
|
|
142
|
+
if (localVarUseFormData) {
|
|
143
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return new Promise(function (resolve, reject) {
|
|
150
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
151
|
+
if (error) {
|
|
152
|
+
reject(error);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
156
|
+
resolve({ response: response, body: body });
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
})];
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
MatchedOffersApi.prototype.matchedOffersControllerAddbid = function (id, userId, account, body, options) {
|
|
169
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
170
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
172
|
+
var _this = this;
|
|
111
173
|
return __generator(this, function (_b) {
|
|
112
174
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
113
175
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
@@ -142,12 +204,12 @@ var MatchedOffersApi = (function () {
|
|
|
142
204
|
authenticationPromise = Promise.resolve();
|
|
143
205
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
144
206
|
interceptorPromise = authenticationPromise;
|
|
145
|
-
|
|
207
|
+
_loop_2 = function (interceptor) {
|
|
146
208
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
147
209
|
};
|
|
148
210
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
149
211
|
interceptor = _a[_i];
|
|
150
|
-
|
|
212
|
+
_loop_2(interceptor);
|
|
151
213
|
}
|
|
152
214
|
return [2, interceptorPromise.then(function () {
|
|
153
215
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -180,7 +242,7 @@ var MatchedOffersApi = (function () {
|
|
|
180
242
|
MatchedOffersApi.prototype.matchedOffersControllerAddpin = function (id, account, pinActionDto, options) {
|
|
181
243
|
if (options === void 0) { options = { headers: {} }; }
|
|
182
244
|
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
245
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
184
246
|
var _this = this;
|
|
185
247
|
return __generator(this, function (_b) {
|
|
186
248
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/pin'
|
|
@@ -212,12 +274,12 @@ var MatchedOffersApi = (function () {
|
|
|
212
274
|
authenticationPromise = Promise.resolve();
|
|
213
275
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
214
276
|
interceptorPromise = authenticationPromise;
|
|
215
|
-
|
|
277
|
+
_loop_3 = function (interceptor) {
|
|
216
278
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
217
279
|
};
|
|
218
280
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
219
281
|
interceptor = _a[_i];
|
|
220
|
-
|
|
282
|
+
_loop_3(interceptor);
|
|
221
283
|
}
|
|
222
284
|
return [2, interceptorPromise.then(function () {
|
|
223
285
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -250,7 +312,7 @@ var MatchedOffersApi = (function () {
|
|
|
250
312
|
MatchedOffersApi.prototype.matchedOffersControllerBulkaddtertiarycosts = function (account, userId, bulkAddTertiaryCostsDto, options) {
|
|
251
313
|
if (options === void 0) { options = { headers: {} }; }
|
|
252
314
|
return __awaiter(this, void 0, void 0, function () {
|
|
253
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
315
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
254
316
|
var _this = this;
|
|
255
317
|
return __generator(this, function (_b) {
|
|
256
318
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/tertiary-costs/{userId}'
|
|
@@ -282,12 +344,144 @@ var MatchedOffersApi = (function () {
|
|
|
282
344
|
authenticationPromise = Promise.resolve();
|
|
283
345
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
284
346
|
interceptorPromise = authenticationPromise;
|
|
285
|
-
|
|
347
|
+
_loop_4 = function (interceptor) {
|
|
286
348
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
287
349
|
};
|
|
288
350
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
289
351
|
interceptor = _a[_i];
|
|
290
|
-
|
|
352
|
+
_loop_4(interceptor);
|
|
353
|
+
}
|
|
354
|
+
return [2, interceptorPromise.then(function () {
|
|
355
|
+
if (Object.keys(localVarFormParams).length) {
|
|
356
|
+
if (localVarUseFormData) {
|
|
357
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return new Promise(function (resolve, reject) {
|
|
364
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
365
|
+
if (error) {
|
|
366
|
+
reject(error);
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
370
|
+
resolve({ response: response, body: body });
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
})];
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkcancelpromotion = function (account, bulkCancelPromotionDto, options) {
|
|
383
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
384
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
385
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
386
|
+
var _this = this;
|
|
387
|
+
return __generator(this, function (_b) {
|
|
388
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/cancel-promotion'
|
|
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 matchedOffersControllerBulkcancelpromotion.');
|
|
395
|
+
}
|
|
396
|
+
if (bulkCancelPromotionDto === null || bulkCancelPromotionDto === undefined) {
|
|
397
|
+
throw new Error('Required parameter bulkCancelPromotionDto was null or undefined when calling matchedOffersControllerBulkcancelpromotion.');
|
|
398
|
+
}
|
|
399
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
400
|
+
localVarUseFormData = false;
|
|
401
|
+
localVarRequestOptions = {
|
|
402
|
+
method: 'PUT',
|
|
403
|
+
qs: localVarQueryParameters,
|
|
404
|
+
headers: localVarHeaderParams,
|
|
405
|
+
uri: localVarPath,
|
|
406
|
+
useQuerystring: this._useQuerystring,
|
|
407
|
+
json: true,
|
|
408
|
+
body: models_1.ObjectSerializer.serialize(bulkCancelPromotionDto, "BulkCancelPromotionDto")
|
|
409
|
+
};
|
|
410
|
+
authenticationPromise = Promise.resolve();
|
|
411
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
412
|
+
interceptorPromise = authenticationPromise;
|
|
413
|
+
_loop_5 = function (interceptor) {
|
|
414
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
415
|
+
};
|
|
416
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
417
|
+
interceptor = _a[_i];
|
|
418
|
+
_loop_5(interceptor);
|
|
419
|
+
}
|
|
420
|
+
return [2, interceptorPromise.then(function () {
|
|
421
|
+
if (Object.keys(localVarFormParams).length) {
|
|
422
|
+
if (localVarUseFormData) {
|
|
423
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return new Promise(function (resolve, reject) {
|
|
430
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
431
|
+
if (error) {
|
|
432
|
+
reject(error);
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
436
|
+
resolve({ response: response, body: body });
|
|
437
|
+
}
|
|
438
|
+
else {
|
|
439
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
})];
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkchangedestinationlocation = function (account, bulkChangeDestinationLocationDto, options) {
|
|
449
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
452
|
+
var _this = this;
|
|
453
|
+
return __generator(this, function (_b) {
|
|
454
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/destination-location'
|
|
455
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
456
|
+
localVarQueryParameters = {};
|
|
457
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
458
|
+
localVarFormParams = {};
|
|
459
|
+
if (account === null || account === undefined) {
|
|
460
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangedestinationlocation.');
|
|
461
|
+
}
|
|
462
|
+
if (bulkChangeDestinationLocationDto === null || bulkChangeDestinationLocationDto === undefined) {
|
|
463
|
+
throw new Error('Required parameter bulkChangeDestinationLocationDto was null or undefined when calling matchedOffersControllerBulkchangedestinationlocation.');
|
|
464
|
+
}
|
|
465
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
466
|
+
localVarUseFormData = false;
|
|
467
|
+
localVarRequestOptions = {
|
|
468
|
+
method: 'PUT',
|
|
469
|
+
qs: localVarQueryParameters,
|
|
470
|
+
headers: localVarHeaderParams,
|
|
471
|
+
uri: localVarPath,
|
|
472
|
+
useQuerystring: this._useQuerystring,
|
|
473
|
+
json: true,
|
|
474
|
+
body: models_1.ObjectSerializer.serialize(bulkChangeDestinationLocationDto, "BulkChangeDestinationLocationDto")
|
|
475
|
+
};
|
|
476
|
+
authenticationPromise = Promise.resolve();
|
|
477
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
478
|
+
interceptorPromise = authenticationPromise;
|
|
479
|
+
_loop_6 = function (interceptor) {
|
|
480
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
481
|
+
};
|
|
482
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
483
|
+
interceptor = _a[_i];
|
|
484
|
+
_loop_6(interceptor);
|
|
291
485
|
}
|
|
292
486
|
return [2, interceptorPromise.then(function () {
|
|
293
487
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -320,7 +514,7 @@ var MatchedOffersApi = (function () {
|
|
|
320
514
|
MatchedOffersApi.prototype.matchedOffersControllerBulkchangefreightrates = function (account, bulkChangeFreightRatesDto, options) {
|
|
321
515
|
if (options === void 0) { options = { headers: {} }; }
|
|
322
516
|
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
517
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
324
518
|
var _this = this;
|
|
325
519
|
return __generator(this, function (_b) {
|
|
326
520
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/freight-rates'
|
|
@@ -348,12 +542,12 @@ var MatchedOffersApi = (function () {
|
|
|
348
542
|
authenticationPromise = Promise.resolve();
|
|
349
543
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
350
544
|
interceptorPromise = authenticationPromise;
|
|
351
|
-
|
|
545
|
+
_loop_7 = function (interceptor) {
|
|
352
546
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
353
547
|
};
|
|
354
548
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
355
549
|
interceptor = _a[_i];
|
|
356
|
-
|
|
550
|
+
_loop_7(interceptor);
|
|
357
551
|
}
|
|
358
552
|
return [2, interceptorPromise.then(function () {
|
|
359
553
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -386,7 +580,7 @@ var MatchedOffersApi = (function () {
|
|
|
386
580
|
MatchedOffersApi.prototype.matchedOffersControllerBulkchangeincoterm = function (account, bulkChangeIncotermDto, options) {
|
|
387
581
|
if (options === void 0) { options = { headers: {} }; }
|
|
388
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
389
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
583
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
390
584
|
var _this = this;
|
|
391
585
|
return __generator(this, function (_b) {
|
|
392
586
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/incoterm'
|
|
@@ -414,12 +608,12 @@ var MatchedOffersApi = (function () {
|
|
|
414
608
|
authenticationPromise = Promise.resolve();
|
|
415
609
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
416
610
|
interceptorPromise = authenticationPromise;
|
|
417
|
-
|
|
611
|
+
_loop_8 = function (interceptor) {
|
|
418
612
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
419
613
|
};
|
|
420
614
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
421
615
|
interceptor = _a[_i];
|
|
422
|
-
|
|
616
|
+
_loop_8(interceptor);
|
|
423
617
|
}
|
|
424
618
|
return [2, interceptorPromise.then(function () {
|
|
425
619
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -452,7 +646,7 @@ var MatchedOffersApi = (function () {
|
|
|
452
646
|
MatchedOffersApi.prototype.matchedOffersControllerBulkchangesellingtrader = function (account, bulkChangeSellingTraderDto, options) {
|
|
453
647
|
if (options === void 0) { options = { headers: {} }; }
|
|
454
648
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
649
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
456
650
|
var _this = this;
|
|
457
651
|
return __generator(this, function (_b) {
|
|
458
652
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/selling-trader'
|
|
@@ -480,12 +674,12 @@ var MatchedOffersApi = (function () {
|
|
|
480
674
|
authenticationPromise = Promise.resolve();
|
|
481
675
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
482
676
|
interceptorPromise = authenticationPromise;
|
|
483
|
-
|
|
677
|
+
_loop_9 = function (interceptor) {
|
|
484
678
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
485
679
|
};
|
|
486
680
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
487
681
|
interceptor = _a[_i];
|
|
488
|
-
|
|
682
|
+
_loop_9(interceptor);
|
|
489
683
|
}
|
|
490
684
|
return [2, interceptorPromise.then(function () {
|
|
491
685
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -518,7 +712,7 @@ var MatchedOffersApi = (function () {
|
|
|
518
712
|
MatchedOffersApi.prototype.matchedOffersControllerBulkchangesellprices = function (account, bulkChangeSellPricesDto, options) {
|
|
519
713
|
if (options === void 0) { options = { headers: {} }; }
|
|
520
714
|
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
715
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
522
716
|
var _this = this;
|
|
523
717
|
return __generator(this, function (_b) {
|
|
524
718
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/sell-prices'
|
|
@@ -546,12 +740,12 @@ var MatchedOffersApi = (function () {
|
|
|
546
740
|
authenticationPromise = Promise.resolve();
|
|
547
741
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
548
742
|
interceptorPromise = authenticationPromise;
|
|
549
|
-
|
|
743
|
+
_loop_10 = function (interceptor) {
|
|
550
744
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
551
745
|
};
|
|
552
746
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
553
747
|
interceptor = _a[_i];
|
|
554
|
-
|
|
748
|
+
_loop_10(interceptor);
|
|
555
749
|
}
|
|
556
750
|
return [2, interceptorPromise.then(function () {
|
|
557
751
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -584,7 +778,7 @@ var MatchedOffersApi = (function () {
|
|
|
584
778
|
MatchedOffersApi.prototype.matchedOffersControllerBulkdeletebuyerspecialinstructions = function (account, bulkDeleteBuyerSpecialInstructionsDto, options) {
|
|
585
779
|
if (options === void 0) { options = { headers: {} }; }
|
|
586
780
|
return __awaiter(this, void 0, void 0, function () {
|
|
587
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
781
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
588
782
|
var _this = this;
|
|
589
783
|
return __generator(this, function (_b) {
|
|
590
784
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
@@ -612,12 +806,78 @@ var MatchedOffersApi = (function () {
|
|
|
612
806
|
authenticationPromise = Promise.resolve();
|
|
613
807
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
614
808
|
interceptorPromise = authenticationPromise;
|
|
615
|
-
|
|
809
|
+
_loop_11 = function (interceptor) {
|
|
616
810
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
617
811
|
};
|
|
618
812
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
619
813
|
interceptor = _a[_i];
|
|
620
|
-
|
|
814
|
+
_loop_11(interceptor);
|
|
815
|
+
}
|
|
816
|
+
return [2, interceptorPromise.then(function () {
|
|
817
|
+
if (Object.keys(localVarFormParams).length) {
|
|
818
|
+
if (localVarUseFormData) {
|
|
819
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
820
|
+
}
|
|
821
|
+
else {
|
|
822
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
return new Promise(function (resolve, reject) {
|
|
826
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
827
|
+
if (error) {
|
|
828
|
+
reject(error);
|
|
829
|
+
}
|
|
830
|
+
else {
|
|
831
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
832
|
+
resolve({ response: response, body: body });
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
});
|
|
840
|
+
})];
|
|
841
|
+
});
|
|
842
|
+
});
|
|
843
|
+
};
|
|
844
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkpromote = function (account, bulkPromoteDto, options) {
|
|
845
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
846
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
847
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
848
|
+
var _this = this;
|
|
849
|
+
return __generator(this, function (_b) {
|
|
850
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/promote'
|
|
851
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
852
|
+
localVarQueryParameters = {};
|
|
853
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
854
|
+
localVarFormParams = {};
|
|
855
|
+
if (account === null || account === undefined) {
|
|
856
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkpromote.');
|
|
857
|
+
}
|
|
858
|
+
if (bulkPromoteDto === null || bulkPromoteDto === undefined) {
|
|
859
|
+
throw new Error('Required parameter bulkPromoteDto was null or undefined when calling matchedOffersControllerBulkpromote.');
|
|
860
|
+
}
|
|
861
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
862
|
+
localVarUseFormData = false;
|
|
863
|
+
localVarRequestOptions = {
|
|
864
|
+
method: 'POST',
|
|
865
|
+
qs: localVarQueryParameters,
|
|
866
|
+
headers: localVarHeaderParams,
|
|
867
|
+
uri: localVarPath,
|
|
868
|
+
useQuerystring: this._useQuerystring,
|
|
869
|
+
json: true,
|
|
870
|
+
body: models_1.ObjectSerializer.serialize(bulkPromoteDto, "BulkPromoteDto")
|
|
871
|
+
};
|
|
872
|
+
authenticationPromise = Promise.resolve();
|
|
873
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
874
|
+
interceptorPromise = authenticationPromise;
|
|
875
|
+
_loop_12 = function (interceptor) {
|
|
876
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
877
|
+
};
|
|
878
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
879
|
+
interceptor = _a[_i];
|
|
880
|
+
_loop_12(interceptor);
|
|
621
881
|
}
|
|
622
882
|
return [2, interceptorPromise.then(function () {
|
|
623
883
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -650,7 +910,7 @@ var MatchedOffersApi = (function () {
|
|
|
650
910
|
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatebuyerspecialinstructions = function (account, bulkUpdateBuyerSpecialInstructionsDto, options) {
|
|
651
911
|
if (options === void 0) { options = { headers: {} }; }
|
|
652
912
|
return __awaiter(this, void 0, void 0, function () {
|
|
653
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
913
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
654
914
|
var _this = this;
|
|
655
915
|
return __generator(this, function (_b) {
|
|
656
916
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
@@ -678,12 +938,12 @@ var MatchedOffersApi = (function () {
|
|
|
678
938
|
authenticationPromise = Promise.resolve();
|
|
679
939
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
680
940
|
interceptorPromise = authenticationPromise;
|
|
681
|
-
|
|
941
|
+
_loop_13 = function (interceptor) {
|
|
682
942
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
683
943
|
};
|
|
684
944
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
685
945
|
interceptor = _a[_i];
|
|
686
|
-
|
|
946
|
+
_loop_13(interceptor);
|
|
687
947
|
}
|
|
688
948
|
return [2, interceptorPromise.then(function () {
|
|
689
949
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -716,7 +976,7 @@ var MatchedOffersApi = (function () {
|
|
|
716
976
|
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedeliverydates = function (account, bulkUpdateDeliveryDatesDto, options) {
|
|
717
977
|
if (options === void 0) { options = { headers: {} }; }
|
|
718
978
|
return __awaiter(this, void 0, void 0, function () {
|
|
719
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
979
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
720
980
|
var _this = this;
|
|
721
981
|
return __generator(this, function (_b) {
|
|
722
982
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/delivery-dates'
|
|
@@ -744,12 +1004,12 @@ var MatchedOffersApi = (function () {
|
|
|
744
1004
|
authenticationPromise = Promise.resolve();
|
|
745
1005
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
746
1006
|
interceptorPromise = authenticationPromise;
|
|
747
|
-
|
|
1007
|
+
_loop_14 = function (interceptor) {
|
|
748
1008
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
749
1009
|
};
|
|
750
1010
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
751
1011
|
interceptor = _a[_i];
|
|
752
|
-
|
|
1012
|
+
_loop_14(interceptor);
|
|
753
1013
|
}
|
|
754
1014
|
return [2, interceptorPromise.then(function () {
|
|
755
1015
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -782,7 +1042,7 @@ var MatchedOffersApi = (function () {
|
|
|
782
1042
|
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedocscountry = function (account, bulkUpdateDocsCountryDto, options) {
|
|
783
1043
|
if (options === void 0) { options = { headers: {} }; }
|
|
784
1044
|
return __awaiter(this, void 0, void 0, function () {
|
|
785
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1045
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
786
1046
|
var _this = this;
|
|
787
1047
|
return __generator(this, function (_b) {
|
|
788
1048
|
localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
@@ -810,12 +1070,12 @@ var MatchedOffersApi = (function () {
|
|
|
810
1070
|
authenticationPromise = Promise.resolve();
|
|
811
1071
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
812
1072
|
interceptorPromise = authenticationPromise;
|
|
813
|
-
|
|
1073
|
+
_loop_15 = function (interceptor) {
|
|
814
1074
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
815
1075
|
};
|
|
816
1076
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
817
1077
|
interceptor = _a[_i];
|
|
818
|
-
|
|
1078
|
+
_loop_15(interceptor);
|
|
819
1079
|
}
|
|
820
1080
|
return [2, interceptorPromise.then(function () {
|
|
821
1081
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -848,7 +1108,7 @@ var MatchedOffersApi = (function () {
|
|
|
848
1108
|
MatchedOffersApi.prototype.matchedOffersControllerCountsbystatus = function (account, options) {
|
|
849
1109
|
if (options === void 0) { options = { headers: {} }; }
|
|
850
1110
|
return __awaiter(this, void 0, void 0, function () {
|
|
851
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1111
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
852
1112
|
var _this = this;
|
|
853
1113
|
return __generator(this, function (_b) {
|
|
854
1114
|
localVarPath = this.basePath + '/matched-offers/{account}/counts-by-status'
|
|
@@ -872,12 +1132,12 @@ var MatchedOffersApi = (function () {
|
|
|
872
1132
|
authenticationPromise = Promise.resolve();
|
|
873
1133
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
874
1134
|
interceptorPromise = authenticationPromise;
|
|
875
|
-
|
|
1135
|
+
_loop_16 = function (interceptor) {
|
|
876
1136
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
877
1137
|
};
|
|
878
1138
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
879
1139
|
interceptor = _a[_i];
|
|
880
|
-
|
|
1140
|
+
_loop_16(interceptor);
|
|
881
1141
|
}
|
|
882
1142
|
return [2, interceptorPromise.then(function () {
|
|
883
1143
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -910,7 +1170,7 @@ var MatchedOffersApi = (function () {
|
|
|
910
1170
|
MatchedOffersApi.prototype.matchedOffersControllerCreate = function (account, createMatchedOfferDto, options) {
|
|
911
1171
|
if (options === void 0) { options = { headers: {} }; }
|
|
912
1172
|
return __awaiter(this, void 0, void 0, function () {
|
|
913
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1173
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
914
1174
|
var _this = this;
|
|
915
1175
|
return __generator(this, function (_b) {
|
|
916
1176
|
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
@@ -938,12 +1198,12 @@ var MatchedOffersApi = (function () {
|
|
|
938
1198
|
authenticationPromise = Promise.resolve();
|
|
939
1199
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
940
1200
|
interceptorPromise = authenticationPromise;
|
|
941
|
-
|
|
1201
|
+
_loop_17 = function (interceptor) {
|
|
942
1202
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
943
1203
|
};
|
|
944
1204
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
945
1205
|
interceptor = _a[_i];
|
|
946
|
-
|
|
1206
|
+
_loop_17(interceptor);
|
|
947
1207
|
}
|
|
948
1208
|
return [2, interceptorPromise.then(function () {
|
|
949
1209
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -976,7 +1236,7 @@ var MatchedOffersApi = (function () {
|
|
|
976
1236
|
MatchedOffersApi.prototype.matchedOffersControllerDeletebid = function (id, userId, account, options) {
|
|
977
1237
|
if (options === void 0) { options = { headers: {} }; }
|
|
978
1238
|
return __awaiter(this, void 0, void 0, function () {
|
|
979
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1239
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
980
1240
|
var _this = this;
|
|
981
1241
|
return __generator(this, function (_b) {
|
|
982
1242
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
@@ -1008,12 +1268,12 @@ var MatchedOffersApi = (function () {
|
|
|
1008
1268
|
authenticationPromise = Promise.resolve();
|
|
1009
1269
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1010
1270
|
interceptorPromise = authenticationPromise;
|
|
1011
|
-
|
|
1271
|
+
_loop_18 = function (interceptor) {
|
|
1012
1272
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1013
1273
|
};
|
|
1014
1274
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1015
1275
|
interceptor = _a[_i];
|
|
1016
|
-
|
|
1276
|
+
_loop_18(interceptor);
|
|
1017
1277
|
}
|
|
1018
1278
|
return [2, interceptorPromise.then(function () {
|
|
1019
1279
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1046,7 +1306,7 @@ var MatchedOffersApi = (function () {
|
|
|
1046
1306
|
MatchedOffersApi.prototype.matchedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
1047
1307
|
if (options === void 0) { options = { headers: {} }; }
|
|
1048
1308
|
return __awaiter(this, void 0, void 0, function () {
|
|
1049
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1309
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1050
1310
|
var _this = this;
|
|
1051
1311
|
return __generator(this, function (_b) {
|
|
1052
1312
|
localVarPath = this.basePath + '/matched-offers/{account}/search'
|
|
@@ -1083,12 +1343,12 @@ var MatchedOffersApi = (function () {
|
|
|
1083
1343
|
authenticationPromise = Promise.resolve();
|
|
1084
1344
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1085
1345
|
interceptorPromise = authenticationPromise;
|
|
1086
|
-
|
|
1346
|
+
_loop_19 = function (interceptor) {
|
|
1087
1347
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1088
1348
|
};
|
|
1089
1349
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1090
1350
|
interceptor = _a[_i];
|
|
1091
|
-
|
|
1351
|
+
_loop_19(interceptor);
|
|
1092
1352
|
}
|
|
1093
1353
|
return [2, interceptorPromise.then(function () {
|
|
1094
1354
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1121,7 +1381,7 @@ var MatchedOffersApi = (function () {
|
|
|
1121
1381
|
MatchedOffersApi.prototype.matchedOffersControllerFindall = function (account, createMatchedOfferDto, skip, limit, sort, fields, options) {
|
|
1122
1382
|
if (options === void 0) { options = { headers: {} }; }
|
|
1123
1383
|
return __awaiter(this, void 0, void 0, function () {
|
|
1124
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1384
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1125
1385
|
var _this = this;
|
|
1126
1386
|
return __generator(this, function (_b) {
|
|
1127
1387
|
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
@@ -1161,12 +1421,12 @@ var MatchedOffersApi = (function () {
|
|
|
1161
1421
|
authenticationPromise = Promise.resolve();
|
|
1162
1422
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1163
1423
|
interceptorPromise = authenticationPromise;
|
|
1164
|
-
|
|
1424
|
+
_loop_20 = function (interceptor) {
|
|
1165
1425
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1166
1426
|
};
|
|
1167
1427
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1168
1428
|
interceptor = _a[_i];
|
|
1169
|
-
|
|
1429
|
+
_loop_20(interceptor);
|
|
1170
1430
|
}
|
|
1171
1431
|
return [2, interceptorPromise.then(function () {
|
|
1172
1432
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1199,7 +1459,7 @@ var MatchedOffersApi = (function () {
|
|
|
1199
1459
|
MatchedOffersApi.prototype.matchedOffersControllerFindcountries = function (account, options) {
|
|
1200
1460
|
if (options === void 0) { options = { headers: {} }; }
|
|
1201
1461
|
return __awaiter(this, void 0, void 0, function () {
|
|
1202
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1462
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1203
1463
|
var _this = this;
|
|
1204
1464
|
return __generator(this, function (_b) {
|
|
1205
1465
|
localVarPath = this.basePath + '/matched-offers/{account}/countries'
|
|
@@ -1223,12 +1483,12 @@ var MatchedOffersApi = (function () {
|
|
|
1223
1483
|
authenticationPromise = Promise.resolve();
|
|
1224
1484
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1225
1485
|
interceptorPromise = authenticationPromise;
|
|
1226
|
-
|
|
1486
|
+
_loop_21 = function (interceptor) {
|
|
1227
1487
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1228
1488
|
};
|
|
1229
1489
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1230
1490
|
interceptor = _a[_i];
|
|
1231
|
-
|
|
1491
|
+
_loop_21(interceptor);
|
|
1232
1492
|
}
|
|
1233
1493
|
return [2, interceptorPromise.then(function () {
|
|
1234
1494
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1261,7 +1521,7 @@ var MatchedOffersApi = (function () {
|
|
|
1261
1521
|
MatchedOffersApi.prototype.matchedOffersControllerFindone = function (id, account, fields, options) {
|
|
1262
1522
|
if (options === void 0) { options = { headers: {} }; }
|
|
1263
1523
|
return __awaiter(this, void 0, void 0, function () {
|
|
1264
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1524
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1265
1525
|
var _this = this;
|
|
1266
1526
|
return __generator(this, function (_b) {
|
|
1267
1527
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
@@ -1292,12 +1552,12 @@ var MatchedOffersApi = (function () {
|
|
|
1292
1552
|
authenticationPromise = Promise.resolve();
|
|
1293
1553
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1294
1554
|
interceptorPromise = authenticationPromise;
|
|
1295
|
-
|
|
1555
|
+
_loop_22 = function (interceptor) {
|
|
1296
1556
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1297
1557
|
};
|
|
1298
1558
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1299
1559
|
interceptor = _a[_i];
|
|
1300
|
-
|
|
1560
|
+
_loop_22(interceptor);
|
|
1301
1561
|
}
|
|
1302
1562
|
return [2, interceptorPromise.then(function () {
|
|
1303
1563
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1330,7 +1590,7 @@ var MatchedOffersApi = (function () {
|
|
|
1330
1590
|
MatchedOffersApi.prototype.matchedOffersControllerGenerateoffernumber = function (id, account, options) {
|
|
1331
1591
|
if (options === void 0) { options = { headers: {} }; }
|
|
1332
1592
|
return __awaiter(this, void 0, void 0, function () {
|
|
1333
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1593
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
|
|
1334
1594
|
var _this = this;
|
|
1335
1595
|
return __generator(this, function (_b) {
|
|
1336
1596
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/generate/number'
|
|
@@ -1358,12 +1618,12 @@ var MatchedOffersApi = (function () {
|
|
|
1358
1618
|
authenticationPromise = Promise.resolve();
|
|
1359
1619
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1360
1620
|
interceptorPromise = authenticationPromise;
|
|
1361
|
-
|
|
1621
|
+
_loop_23 = function (interceptor) {
|
|
1362
1622
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1363
1623
|
};
|
|
1364
1624
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1365
1625
|
interceptor = _a[_i];
|
|
1366
|
-
|
|
1626
|
+
_loop_23(interceptor);
|
|
1367
1627
|
}
|
|
1368
1628
|
return [2, interceptorPromise.then(function () {
|
|
1369
1629
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1396,7 +1656,7 @@ var MatchedOffersApi = (function () {
|
|
|
1396
1656
|
MatchedOffersApi.prototype.matchedOffersControllerLogview = function (id, account, body, options) {
|
|
1397
1657
|
if (options === void 0) { options = { headers: {} }; }
|
|
1398
1658
|
return __awaiter(this, void 0, void 0, function () {
|
|
1399
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1659
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_24, _i, _a, interceptor;
|
|
1400
1660
|
var _this = this;
|
|
1401
1661
|
return __generator(this, function (_b) {
|
|
1402
1662
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/view'
|
|
@@ -1428,12 +1688,74 @@ var MatchedOffersApi = (function () {
|
|
|
1428
1688
|
authenticationPromise = Promise.resolve();
|
|
1429
1689
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1430
1690
|
interceptorPromise = authenticationPromise;
|
|
1431
|
-
|
|
1691
|
+
_loop_24 = function (interceptor) {
|
|
1432
1692
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1433
1693
|
};
|
|
1434
1694
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1435
1695
|
interceptor = _a[_i];
|
|
1436
|
-
|
|
1696
|
+
_loop_24(interceptor);
|
|
1697
|
+
}
|
|
1698
|
+
return [2, interceptorPromise.then(function () {
|
|
1699
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1700
|
+
if (localVarUseFormData) {
|
|
1701
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1702
|
+
}
|
|
1703
|
+
else {
|
|
1704
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
return new Promise(function (resolve, reject) {
|
|
1708
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1709
|
+
if (error) {
|
|
1710
|
+
reject(error);
|
|
1711
|
+
}
|
|
1712
|
+
else {
|
|
1713
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1714
|
+
resolve({ response: response, body: body });
|
|
1715
|
+
}
|
|
1716
|
+
else {
|
|
1717
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
});
|
|
1722
|
+
})];
|
|
1723
|
+
});
|
|
1724
|
+
});
|
|
1725
|
+
};
|
|
1726
|
+
MatchedOffersApi.prototype.matchedOffersControllerPromotionsbybuyer = function (account, options) {
|
|
1727
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1728
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1729
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_25, _i, _a, interceptor;
|
|
1730
|
+
var _this = this;
|
|
1731
|
+
return __generator(this, function (_b) {
|
|
1732
|
+
localVarPath = this.basePath + '/matched-offers/{account}/promotions/by-buyer'
|
|
1733
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1734
|
+
localVarQueryParameters = {};
|
|
1735
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1736
|
+
localVarFormParams = {};
|
|
1737
|
+
if (account === null || account === undefined) {
|
|
1738
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerPromotionsbybuyer.');
|
|
1739
|
+
}
|
|
1740
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1741
|
+
localVarUseFormData = false;
|
|
1742
|
+
localVarRequestOptions = {
|
|
1743
|
+
method: 'GET',
|
|
1744
|
+
qs: localVarQueryParameters,
|
|
1745
|
+
headers: localVarHeaderParams,
|
|
1746
|
+
uri: localVarPath,
|
|
1747
|
+
useQuerystring: this._useQuerystring,
|
|
1748
|
+
json: true,
|
|
1749
|
+
};
|
|
1750
|
+
authenticationPromise = Promise.resolve();
|
|
1751
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1752
|
+
interceptorPromise = authenticationPromise;
|
|
1753
|
+
_loop_25 = function (interceptor) {
|
|
1754
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1755
|
+
};
|
|
1756
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1757
|
+
interceptor = _a[_i];
|
|
1758
|
+
_loop_25(interceptor);
|
|
1437
1759
|
}
|
|
1438
1760
|
return [2, interceptorPromise.then(function () {
|
|
1439
1761
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1466,7 +1788,7 @@ var MatchedOffersApi = (function () {
|
|
|
1466
1788
|
MatchedOffersApi.prototype.matchedOffersControllerRemove = function (id, account, options) {
|
|
1467
1789
|
if (options === void 0) { options = { headers: {} }; }
|
|
1468
1790
|
return __awaiter(this, void 0, void 0, function () {
|
|
1469
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1791
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_26, _i, _a, interceptor;
|
|
1470
1792
|
var _this = this;
|
|
1471
1793
|
return __generator(this, function (_b) {
|
|
1472
1794
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
@@ -1494,12 +1816,12 @@ var MatchedOffersApi = (function () {
|
|
|
1494
1816
|
authenticationPromise = Promise.resolve();
|
|
1495
1817
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1496
1818
|
interceptorPromise = authenticationPromise;
|
|
1497
|
-
|
|
1819
|
+
_loop_26 = function (interceptor) {
|
|
1498
1820
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1499
1821
|
};
|
|
1500
1822
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1501
1823
|
interceptor = _a[_i];
|
|
1502
|
-
|
|
1824
|
+
_loop_26(interceptor);
|
|
1503
1825
|
}
|
|
1504
1826
|
return [2, interceptorPromise.then(function () {
|
|
1505
1827
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1532,7 +1854,7 @@ var MatchedOffersApi = (function () {
|
|
|
1532
1854
|
MatchedOffersApi.prototype.matchedOffersControllerRemovepin = function (id, account, pinActionDto, options) {
|
|
1533
1855
|
if (options === void 0) { options = { headers: {} }; }
|
|
1534
1856
|
return __awaiter(this, void 0, void 0, function () {
|
|
1535
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1857
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_27, _i, _a, interceptor;
|
|
1536
1858
|
var _this = this;
|
|
1537
1859
|
return __generator(this, function (_b) {
|
|
1538
1860
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/unpin'
|
|
@@ -1564,12 +1886,12 @@ var MatchedOffersApi = (function () {
|
|
|
1564
1886
|
authenticationPromise = Promise.resolve();
|
|
1565
1887
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1566
1888
|
interceptorPromise = authenticationPromise;
|
|
1567
|
-
|
|
1889
|
+
_loop_27 = function (interceptor) {
|
|
1568
1890
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1569
1891
|
};
|
|
1570
1892
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1571
1893
|
interceptor = _a[_i];
|
|
1572
|
-
|
|
1894
|
+
_loop_27(interceptor);
|
|
1573
1895
|
}
|
|
1574
1896
|
return [2, interceptorPromise.then(function () {
|
|
1575
1897
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1602,7 +1924,7 @@ var MatchedOffersApi = (function () {
|
|
|
1602
1924
|
MatchedOffersApi.prototype.matchedOffersControllerReopen = function (id, account, options) {
|
|
1603
1925
|
if (options === void 0) { options = { headers: {} }; }
|
|
1604
1926
|
return __awaiter(this, void 0, void 0, function () {
|
|
1605
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1927
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_28, _i, _a, interceptor;
|
|
1606
1928
|
var _this = this;
|
|
1607
1929
|
return __generator(this, function (_b) {
|
|
1608
1930
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/reopen'
|
|
@@ -1630,12 +1952,12 @@ var MatchedOffersApi = (function () {
|
|
|
1630
1952
|
authenticationPromise = Promise.resolve();
|
|
1631
1953
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1632
1954
|
interceptorPromise = authenticationPromise;
|
|
1633
|
-
|
|
1955
|
+
_loop_28 = function (interceptor) {
|
|
1634
1956
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1635
1957
|
};
|
|
1636
1958
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1637
1959
|
interceptor = _a[_i];
|
|
1638
|
-
|
|
1960
|
+
_loop_28(interceptor);
|
|
1639
1961
|
}
|
|
1640
1962
|
return [2, interceptorPromise.then(function () {
|
|
1641
1963
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1668,7 +1990,7 @@ var MatchedOffersApi = (function () {
|
|
|
1668
1990
|
MatchedOffersApi.prototype.matchedOffersControllerSetconfirmindex = function (id, account, body, options) {
|
|
1669
1991
|
if (options === void 0) { options = { headers: {} }; }
|
|
1670
1992
|
return __awaiter(this, void 0, void 0, function () {
|
|
1671
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1993
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_29, _i, _a, interceptor;
|
|
1672
1994
|
var _this = this;
|
|
1673
1995
|
return __generator(this, function (_b) {
|
|
1674
1996
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/confirm/index'
|
|
@@ -1700,12 +2022,12 @@ var MatchedOffersApi = (function () {
|
|
|
1700
2022
|
authenticationPromise = Promise.resolve();
|
|
1701
2023
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1702
2024
|
interceptorPromise = authenticationPromise;
|
|
1703
|
-
|
|
2025
|
+
_loop_29 = function (interceptor) {
|
|
1704
2026
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1705
2027
|
};
|
|
1706
2028
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1707
2029
|
interceptor = _a[_i];
|
|
1708
|
-
|
|
2030
|
+
_loop_29(interceptor);
|
|
1709
2031
|
}
|
|
1710
2032
|
return [2, interceptorPromise.then(function () {
|
|
1711
2033
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1738,7 +2060,7 @@ var MatchedOffersApi = (function () {
|
|
|
1738
2060
|
MatchedOffersApi.prototype.matchedOffersControllerTotal = function (account, body, options) {
|
|
1739
2061
|
if (options === void 0) { options = { headers: {} }; }
|
|
1740
2062
|
return __awaiter(this, void 0, void 0, function () {
|
|
1741
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
2063
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_30, _i, _a, interceptor;
|
|
1742
2064
|
var _this = this;
|
|
1743
2065
|
return __generator(this, function (_b) {
|
|
1744
2066
|
localVarPath = this.basePath + '/matched-offers/{account}/total'
|
|
@@ -1766,12 +2088,12 @@ var MatchedOffersApi = (function () {
|
|
|
1766
2088
|
authenticationPromise = Promise.resolve();
|
|
1767
2089
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1768
2090
|
interceptorPromise = authenticationPromise;
|
|
1769
|
-
|
|
2091
|
+
_loop_30 = function (interceptor) {
|
|
1770
2092
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1771
2093
|
};
|
|
1772
2094
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1773
2095
|
interceptor = _a[_i];
|
|
1774
|
-
|
|
2096
|
+
_loop_30(interceptor);
|
|
1775
2097
|
}
|
|
1776
2098
|
return [2, interceptorPromise.then(function () {
|
|
1777
2099
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1804,7 +2126,7 @@ var MatchedOffersApi = (function () {
|
|
|
1804
2126
|
MatchedOffersApi.prototype.matchedOffersControllerUpdate = function (id, account, body, options) {
|
|
1805
2127
|
if (options === void 0) { options = { headers: {} }; }
|
|
1806
2128
|
return __awaiter(this, void 0, void 0, function () {
|
|
1807
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
2129
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_31, _i, _a, interceptor;
|
|
1808
2130
|
var _this = this;
|
|
1809
2131
|
return __generator(this, function (_b) {
|
|
1810
2132
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
@@ -1836,12 +2158,12 @@ var MatchedOffersApi = (function () {
|
|
|
1836
2158
|
authenticationPromise = Promise.resolve();
|
|
1837
2159
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1838
2160
|
interceptorPromise = authenticationPromise;
|
|
1839
|
-
|
|
2161
|
+
_loop_31 = function (interceptor) {
|
|
1840
2162
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1841
2163
|
};
|
|
1842
2164
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1843
2165
|
interceptor = _a[_i];
|
|
1844
|
-
|
|
2166
|
+
_loop_31(interceptor);
|
|
1845
2167
|
}
|
|
1846
2168
|
return [2, interceptorPromise.then(function () {
|
|
1847
2169
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1874,7 +2196,7 @@ var MatchedOffersApi = (function () {
|
|
|
1874
2196
|
MatchedOffersApi.prototype.matchedOffersControllerUpdatestatus = function (account, body, options) {
|
|
1875
2197
|
if (options === void 0) { options = { headers: {} }; }
|
|
1876
2198
|
return __awaiter(this, void 0, void 0, function () {
|
|
1877
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
2199
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_32, _i, _a, interceptor;
|
|
1878
2200
|
var _this = this;
|
|
1879
2201
|
return __generator(this, function (_b) {
|
|
1880
2202
|
localVarPath = this.basePath + '/matched-offers/{account}/status'
|
|
@@ -1902,12 +2224,12 @@ var MatchedOffersApi = (function () {
|
|
|
1902
2224
|
authenticationPromise = Promise.resolve();
|
|
1903
2225
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1904
2226
|
interceptorPromise = authenticationPromise;
|
|
1905
|
-
|
|
2227
|
+
_loop_32 = function (interceptor) {
|
|
1906
2228
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1907
2229
|
};
|
|
1908
2230
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1909
2231
|
interceptor = _a[_i];
|
|
1910
|
-
|
|
2232
|
+
_loop_32(interceptor);
|
|
1911
2233
|
}
|
|
1912
2234
|
return [2, interceptorPromise.then(function () {
|
|
1913
2235
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1940,7 +2262,7 @@ var MatchedOffersApi = (function () {
|
|
|
1940
2262
|
MatchedOffersApi.prototype.matchedOffersControllerValidatestatus = function (account, body, options) {
|
|
1941
2263
|
if (options === void 0) { options = { headers: {} }; }
|
|
1942
2264
|
return __awaiter(this, void 0, void 0, function () {
|
|
1943
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
2265
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_33, _i, _a, interceptor;
|
|
1944
2266
|
var _this = this;
|
|
1945
2267
|
return __generator(this, function (_b) {
|
|
1946
2268
|
localVarPath = this.basePath + '/matched-offers/{account}/status/validate'
|
|
@@ -1968,12 +2290,12 @@ var MatchedOffersApi = (function () {
|
|
|
1968
2290
|
authenticationPromise = Promise.resolve();
|
|
1969
2291
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1970
2292
|
interceptorPromise = authenticationPromise;
|
|
1971
|
-
|
|
2293
|
+
_loop_33 = function (interceptor) {
|
|
1972
2294
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1973
2295
|
};
|
|
1974
2296
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1975
2297
|
interceptor = _a[_i];
|
|
1976
|
-
|
|
2298
|
+
_loop_33(interceptor);
|
|
1977
2299
|
}
|
|
1978
2300
|
return [2, interceptorPromise.then(function () {
|
|
1979
2301
|
if (Object.keys(localVarFormParams).length) {
|