@tradecafe/offer-service-sdk 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/api/automatedOffersApi.ts +231 -12
- package/api/offersApi.ts +75 -0
- package/dist/api/automatedOffersApi.d.ts +26 -1
- package/dist/api/automatedOffersApi.js +247 -41
- 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/dist/model/createAutomatedOfferDto.d.ts +4 -1
- package/dist/model/createAutomatedOfferDto.js +3 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +3 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -0
- package/dist/model/updateMatchedDeliveryDateDto.js +26 -0
- package/dist/model/updateMatchedDeliveryDateDto.js.map +1 -0
- package/model/createAutomatedOfferDto.ts +4 -1
- package/model/models.ts +3 -0
- package/model/updateMatchedDeliveryDateDto.ts +43 -0
- package/package.json +1 -1
|
@@ -103,11 +103,151 @@ var AutomatedOffersApi = (function () {
|
|
|
103
103
|
AutomatedOffersApi.prototype.addInterceptor = function (interceptor) {
|
|
104
104
|
this.interceptors.push(interceptor);
|
|
105
105
|
};
|
|
106
|
-
AutomatedOffersApi.prototype.
|
|
106
|
+
AutomatedOffersApi.prototype.automatedOffersControllerAddmatchedbuyertooffer = 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 + '/automated-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 automatedOffersControllerAddmatchedbuyertooffer.');
|
|
121
|
+
}
|
|
122
|
+
if (buyer === null || buyer === undefined) {
|
|
123
|
+
throw new Error('Required parameter buyer was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
124
|
+
}
|
|
125
|
+
if (account === null || account === undefined) {
|
|
126
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
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
|
+
AutomatedOffersApi.prototype.automatedOffersControllerAddmatcheddeliverydatetooffer = 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;
|
|
181
|
+
return __generator(this, function (_b) {
|
|
182
|
+
localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/add'
|
|
183
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
184
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
185
|
+
localVarQueryParameters = {};
|
|
186
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
187
|
+
localVarFormParams = {};
|
|
188
|
+
if (id === null || id === undefined) {
|
|
189
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
190
|
+
}
|
|
191
|
+
if (account === null || account === undefined) {
|
|
192
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
193
|
+
}
|
|
194
|
+
if (body === null || body === undefined) {
|
|
195
|
+
throw new Error('Required parameter body was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
196
|
+
}
|
|
197
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
198
|
+
localVarUseFormData = false;
|
|
199
|
+
localVarRequestOptions = {
|
|
200
|
+
method: 'PUT',
|
|
201
|
+
qs: localVarQueryParameters,
|
|
202
|
+
headers: localVarHeaderParams,
|
|
203
|
+
uri: localVarPath,
|
|
204
|
+
useQuerystring: this._useQuerystring,
|
|
205
|
+
json: true,
|
|
206
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
207
|
+
};
|
|
208
|
+
authenticationPromise = Promise.resolve();
|
|
209
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
210
|
+
interceptorPromise = authenticationPromise;
|
|
211
|
+
_loop_2 = function (interceptor) {
|
|
212
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
213
|
+
};
|
|
214
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
215
|
+
interceptor = _a[_i];
|
|
216
|
+
_loop_2(interceptor);
|
|
217
|
+
}
|
|
218
|
+
return [2, interceptorPromise.then(function () {
|
|
219
|
+
if (Object.keys(localVarFormParams).length) {
|
|
220
|
+
if (localVarUseFormData) {
|
|
221
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return new Promise(function (resolve, reject) {
|
|
228
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
229
|
+
if (error) {
|
|
230
|
+
reject(error);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
234
|
+
resolve({ response: response, body: body });
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
})];
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
AutomatedOffersApi.prototype.automatedOffersControllerAddrelistingbulk = function (account, bulkAddRelistingDto, options) {
|
|
247
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
250
|
+
var _this = this;
|
|
111
251
|
return __generator(this, function (_b) {
|
|
112
252
|
localVarPath = this.basePath + '/automated-offers/{account}/bulk/relisting'
|
|
113
253
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
@@ -134,12 +274,12 @@ var AutomatedOffersApi = (function () {
|
|
|
134
274
|
authenticationPromise = Promise.resolve();
|
|
135
275
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
136
276
|
interceptorPromise = authenticationPromise;
|
|
137
|
-
|
|
277
|
+
_loop_3 = function (interceptor) {
|
|
138
278
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
139
279
|
};
|
|
140
280
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
141
281
|
interceptor = _a[_i];
|
|
142
|
-
|
|
282
|
+
_loop_3(interceptor);
|
|
143
283
|
}
|
|
144
284
|
return [2, interceptorPromise.then(function () {
|
|
145
285
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -172,7 +312,7 @@ var AutomatedOffersApi = (function () {
|
|
|
172
312
|
AutomatedOffersApi.prototype.automatedOffersControllerCreate = function (account, createAutomatedOfferDto, options) {
|
|
173
313
|
if (options === void 0) { options = { headers: {} }; }
|
|
174
314
|
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
315
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
176
316
|
var _this = this;
|
|
177
317
|
return __generator(this, function (_b) {
|
|
178
318
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
@@ -200,12 +340,12 @@ var AutomatedOffersApi = (function () {
|
|
|
200
340
|
authenticationPromise = Promise.resolve();
|
|
201
341
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
202
342
|
interceptorPromise = authenticationPromise;
|
|
203
|
-
|
|
343
|
+
_loop_4 = function (interceptor) {
|
|
204
344
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
205
345
|
};
|
|
206
346
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
207
347
|
interceptor = _a[_i];
|
|
208
|
-
|
|
348
|
+
_loop_4(interceptor);
|
|
209
349
|
}
|
|
210
350
|
return [2, interceptorPromise.then(function () {
|
|
211
351
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -238,7 +378,7 @@ var AutomatedOffersApi = (function () {
|
|
|
238
378
|
AutomatedOffersApi.prototype.automatedOffersControllerCreatebulk = function (account, createAutomatedOfferDto, options) {
|
|
239
379
|
if (options === void 0) { options = { headers: {} }; }
|
|
240
380
|
return __awaiter(this, void 0, void 0, function () {
|
|
241
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
381
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
242
382
|
var _this = this;
|
|
243
383
|
return __generator(this, function (_b) {
|
|
244
384
|
localVarPath = this.basePath + '/automated-offers/{account}/bulk'
|
|
@@ -266,12 +406,12 @@ var AutomatedOffersApi = (function () {
|
|
|
266
406
|
authenticationPromise = Promise.resolve();
|
|
267
407
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
268
408
|
interceptorPromise = authenticationPromise;
|
|
269
|
-
|
|
409
|
+
_loop_5 = function (interceptor) {
|
|
270
410
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
271
411
|
};
|
|
272
412
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
273
413
|
interceptor = _a[_i];
|
|
274
|
-
|
|
414
|
+
_loop_5(interceptor);
|
|
275
415
|
}
|
|
276
416
|
return [2, interceptorPromise.then(function () {
|
|
277
417
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -304,7 +444,7 @@ var AutomatedOffersApi = (function () {
|
|
|
304
444
|
AutomatedOffersApi.prototype.automatedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
305
445
|
if (options === void 0) { options = { headers: {} }; }
|
|
306
446
|
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
447
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
308
448
|
var _this = this;
|
|
309
449
|
return __generator(this, function (_b) {
|
|
310
450
|
localVarPath = this.basePath + '/automated-offers/{account}/search'
|
|
@@ -341,12 +481,12 @@ var AutomatedOffersApi = (function () {
|
|
|
341
481
|
authenticationPromise = Promise.resolve();
|
|
342
482
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
343
483
|
interceptorPromise = authenticationPromise;
|
|
344
|
-
|
|
484
|
+
_loop_6 = function (interceptor) {
|
|
345
485
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
346
486
|
};
|
|
347
487
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
348
488
|
interceptor = _a[_i];
|
|
349
|
-
|
|
489
|
+
_loop_6(interceptor);
|
|
350
490
|
}
|
|
351
491
|
return [2, interceptorPromise.then(function () {
|
|
352
492
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -376,10 +516,10 @@ var AutomatedOffersApi = (function () {
|
|
|
376
516
|
});
|
|
377
517
|
});
|
|
378
518
|
};
|
|
379
|
-
AutomatedOffersApi.prototype.automatedOffersControllerFindall = function (account,
|
|
519
|
+
AutomatedOffersApi.prototype.automatedOffersControllerFindall = function (account, skip, limit, sort, fields, options) {
|
|
380
520
|
if (options === void 0) { options = { headers: {} }; }
|
|
381
521
|
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
522
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
383
523
|
var _this = this;
|
|
384
524
|
return __generator(this, function (_b) {
|
|
385
525
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
@@ -390,9 +530,6 @@ var AutomatedOffersApi = (function () {
|
|
|
390
530
|
if (account === null || account === undefined) {
|
|
391
531
|
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerFindall.');
|
|
392
532
|
}
|
|
393
|
-
if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
|
|
394
|
-
throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerFindall.');
|
|
395
|
-
}
|
|
396
533
|
if (skip !== undefined) {
|
|
397
534
|
localVarQueryParameters['skip'] = models_1.ObjectSerializer.serialize(skip, "number");
|
|
398
535
|
}
|
|
@@ -414,17 +551,16 @@ var AutomatedOffersApi = (function () {
|
|
|
414
551
|
uri: localVarPath,
|
|
415
552
|
useQuerystring: this._useQuerystring,
|
|
416
553
|
json: true,
|
|
417
|
-
body: models_1.ObjectSerializer.serialize(createAutomatedOfferDto, "CreateAutomatedOfferDto")
|
|
418
554
|
};
|
|
419
555
|
authenticationPromise = Promise.resolve();
|
|
420
556
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
421
557
|
interceptorPromise = authenticationPromise;
|
|
422
|
-
|
|
558
|
+
_loop_7 = function (interceptor) {
|
|
423
559
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
424
560
|
};
|
|
425
561
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
426
562
|
interceptor = _a[_i];
|
|
427
|
-
|
|
563
|
+
_loop_7(interceptor);
|
|
428
564
|
}
|
|
429
565
|
return [2, interceptorPromise.then(function () {
|
|
430
566
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -457,7 +593,7 @@ var AutomatedOffersApi = (function () {
|
|
|
457
593
|
AutomatedOffersApi.prototype.automatedOffersControllerFindone = function (id, account, fields, options) {
|
|
458
594
|
if (options === void 0) { options = { headers: {} }; }
|
|
459
595
|
return __awaiter(this, void 0, void 0, function () {
|
|
460
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
596
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
461
597
|
var _this = this;
|
|
462
598
|
return __generator(this, function (_b) {
|
|
463
599
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -488,12 +624,12 @@ var AutomatedOffersApi = (function () {
|
|
|
488
624
|
authenticationPromise = Promise.resolve();
|
|
489
625
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
490
626
|
interceptorPromise = authenticationPromise;
|
|
491
|
-
|
|
627
|
+
_loop_8 = function (interceptor) {
|
|
492
628
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
493
629
|
};
|
|
494
630
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
495
631
|
interceptor = _a[_i];
|
|
496
|
-
|
|
632
|
+
_loop_8(interceptor);
|
|
497
633
|
}
|
|
498
634
|
return [2, interceptorPromise.then(function () {
|
|
499
635
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -526,7 +662,7 @@ var AutomatedOffersApi = (function () {
|
|
|
526
662
|
AutomatedOffersApi.prototype.automatedOffersControllerGetbids = function (account, skip, limit, sort, fields, body, options) {
|
|
527
663
|
if (options === void 0) { options = { headers: {} }; }
|
|
528
664
|
return __awaiter(this, void 0, void 0, function () {
|
|
529
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
665
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
530
666
|
var _this = this;
|
|
531
667
|
return __generator(this, function (_b) {
|
|
532
668
|
localVarPath = this.basePath + '/automated-offers/{account}/bids'
|
|
@@ -563,12 +699,12 @@ var AutomatedOffersApi = (function () {
|
|
|
563
699
|
authenticationPromise = Promise.resolve();
|
|
564
700
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
565
701
|
interceptorPromise = authenticationPromise;
|
|
566
|
-
|
|
702
|
+
_loop_9 = function (interceptor) {
|
|
567
703
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
568
704
|
};
|
|
569
705
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
570
706
|
interceptor = _a[_i];
|
|
571
|
-
|
|
707
|
+
_loop_9(interceptor);
|
|
572
708
|
}
|
|
573
709
|
return [2, interceptorPromise.then(function () {
|
|
574
710
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -601,7 +737,7 @@ var AutomatedOffersApi = (function () {
|
|
|
601
737
|
AutomatedOffersApi.prototype.automatedOffersControllerRemove = function (id, account, options) {
|
|
602
738
|
if (options === void 0) { options = { headers: {} }; }
|
|
603
739
|
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
740
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
605
741
|
var _this = this;
|
|
606
742
|
return __generator(this, function (_b) {
|
|
607
743
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -629,12 +765,12 @@ var AutomatedOffersApi = (function () {
|
|
|
629
765
|
authenticationPromise = Promise.resolve();
|
|
630
766
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
631
767
|
interceptorPromise = authenticationPromise;
|
|
632
|
-
|
|
768
|
+
_loop_10 = function (interceptor) {
|
|
633
769
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
634
770
|
};
|
|
635
771
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
636
772
|
interceptor = _a[_i];
|
|
637
|
-
|
|
773
|
+
_loop_10(interceptor);
|
|
638
774
|
}
|
|
639
775
|
return [2, interceptorPromise.then(function () {
|
|
640
776
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -667,7 +803,7 @@ var AutomatedOffersApi = (function () {
|
|
|
667
803
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdate = function (id, account, body, options) {
|
|
668
804
|
if (options === void 0) { options = { headers: {} }; }
|
|
669
805
|
return __awaiter(this, void 0, void 0, function () {
|
|
670
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
806
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
671
807
|
var _this = this;
|
|
672
808
|
return __generator(this, function (_b) {
|
|
673
809
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -699,12 +835,82 @@ var AutomatedOffersApi = (function () {
|
|
|
699
835
|
authenticationPromise = Promise.resolve();
|
|
700
836
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
701
837
|
interceptorPromise = authenticationPromise;
|
|
702
|
-
|
|
838
|
+
_loop_11 = function (interceptor) {
|
|
703
839
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
704
840
|
};
|
|
705
841
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
706
842
|
interceptor = _a[_i];
|
|
707
|
-
|
|
843
|
+
_loop_11(interceptor);
|
|
844
|
+
}
|
|
845
|
+
return [2, interceptorPromise.then(function () {
|
|
846
|
+
if (Object.keys(localVarFormParams).length) {
|
|
847
|
+
if (localVarUseFormData) {
|
|
848
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
849
|
+
}
|
|
850
|
+
else {
|
|
851
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
return new Promise(function (resolve, reject) {
|
|
855
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
856
|
+
if (error) {
|
|
857
|
+
reject(error);
|
|
858
|
+
}
|
|
859
|
+
else {
|
|
860
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
861
|
+
resolve({ response: response, body: body });
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
});
|
|
869
|
+
})];
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
AutomatedOffersApi.prototype.automatedOffersControllerUpdatematcheddeliverydateonoffer = function (id, account, updateMatchedDeliveryDateDto, options) {
|
|
874
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
875
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
876
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
877
|
+
var _this = this;
|
|
878
|
+
return __generator(this, function (_b) {
|
|
879
|
+
localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/update'
|
|
880
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
881
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
882
|
+
localVarQueryParameters = {};
|
|
883
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
884
|
+
localVarFormParams = {};
|
|
885
|
+
if (id === null || id === undefined) {
|
|
886
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
887
|
+
}
|
|
888
|
+
if (account === null || account === undefined) {
|
|
889
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
890
|
+
}
|
|
891
|
+
if (updateMatchedDeliveryDateDto === null || updateMatchedDeliveryDateDto === undefined) {
|
|
892
|
+
throw new Error('Required parameter updateMatchedDeliveryDateDto was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
893
|
+
}
|
|
894
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
895
|
+
localVarUseFormData = false;
|
|
896
|
+
localVarRequestOptions = {
|
|
897
|
+
method: 'PATCH',
|
|
898
|
+
qs: localVarQueryParameters,
|
|
899
|
+
headers: localVarHeaderParams,
|
|
900
|
+
uri: localVarPath,
|
|
901
|
+
useQuerystring: this._useQuerystring,
|
|
902
|
+
json: true,
|
|
903
|
+
body: models_1.ObjectSerializer.serialize(updateMatchedDeliveryDateDto, "UpdateMatchedDeliveryDateDto")
|
|
904
|
+
};
|
|
905
|
+
authenticationPromise = Promise.resolve();
|
|
906
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
907
|
+
interceptorPromise = authenticationPromise;
|
|
908
|
+
_loop_12 = function (interceptor) {
|
|
909
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
910
|
+
};
|
|
911
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
912
|
+
interceptor = _a[_i];
|
|
913
|
+
_loop_12(interceptor);
|
|
708
914
|
}
|
|
709
915
|
return [2, interceptorPromise.then(function () {
|
|
710
916
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -737,7 +943,7 @@ var AutomatedOffersApi = (function () {
|
|
|
737
943
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdaterelistingstatus = function (automatedOfferId, id, account, body, options) {
|
|
738
944
|
if (options === void 0) { options = { headers: {} }; }
|
|
739
945
|
return __awaiter(this, void 0, void 0, function () {
|
|
740
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
946
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
741
947
|
var _this = this;
|
|
742
948
|
return __generator(this, function (_b) {
|
|
743
949
|
localVarPath = this.basePath + '/automated-offers/{account}/{automatedOfferId}/relistings/{id}/status'
|
|
@@ -773,12 +979,12 @@ var AutomatedOffersApi = (function () {
|
|
|
773
979
|
authenticationPromise = Promise.resolve();
|
|
774
980
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
775
981
|
interceptorPromise = authenticationPromise;
|
|
776
|
-
|
|
982
|
+
_loop_13 = function (interceptor) {
|
|
777
983
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
778
984
|
};
|
|
779
985
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
780
986
|
interceptor = _a[_i];
|
|
781
|
-
|
|
987
|
+
_loop_13(interceptor);
|
|
782
988
|
}
|
|
783
989
|
return [2, interceptorPromise.then(function () {
|
|
784
990
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -811,7 +1017,7 @@ var AutomatedOffersApi = (function () {
|
|
|
811
1017
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdatestatus = function (account, body, options) {
|
|
812
1018
|
if (options === void 0) { options = { headers: {} }; }
|
|
813
1019
|
return __awaiter(this, void 0, void 0, function () {
|
|
814
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1020
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
815
1021
|
var _this = this;
|
|
816
1022
|
return __generator(this, function (_b) {
|
|
817
1023
|
localVarPath = this.basePath + '/automated-offers/{account}/status'
|
|
@@ -839,12 +1045,12 @@ var AutomatedOffersApi = (function () {
|
|
|
839
1045
|
authenticationPromise = Promise.resolve();
|
|
840
1046
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
841
1047
|
interceptorPromise = authenticationPromise;
|
|
842
|
-
|
|
1048
|
+
_loop_14 = function (interceptor) {
|
|
843
1049
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
844
1050
|
};
|
|
845
1051
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
846
1052
|
interceptor = _a[_i];
|
|
847
|
-
|
|
1053
|
+
_loop_14(interceptor);
|
|
848
1054
|
}
|
|
849
1055
|
return [2, interceptorPromise.then(function () {
|
|
850
1056
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -877,7 +1083,7 @@ var AutomatedOffersApi = (function () {
|
|
|
877
1083
|
AutomatedOffersApi.prototype.automatedOffersControllerViews = function (account, body, options) {
|
|
878
1084
|
if (options === void 0) { options = { headers: {} }; }
|
|
879
1085
|
return __awaiter(this, void 0, void 0, function () {
|
|
880
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1086
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
881
1087
|
var _this = this;
|
|
882
1088
|
return __generator(this, function (_b) {
|
|
883
1089
|
localVarPath = this.basePath + '/automated-offers/{account}/views'
|
|
@@ -902,12 +1108,12 @@ var AutomatedOffersApi = (function () {
|
|
|
902
1108
|
authenticationPromise = Promise.resolve();
|
|
903
1109
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
904
1110
|
interceptorPromise = authenticationPromise;
|
|
905
|
-
|
|
1111
|
+
_loop_15 = function (interceptor) {
|
|
906
1112
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
907
1113
|
};
|
|
908
1114
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
909
1115
|
interceptor = _a[_i];
|
|
910
|
-
|
|
1116
|
+
_loop_15(interceptor);
|
|
911
1117
|
}
|
|
912
1118
|
return [2, interceptorPromise.then(function () {
|
|
913
1119
|
if (Object.keys(localVarFormParams).length) {
|