@tradecafe/offer-service-sdk 0.0.38 → 0.0.40
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 +69 -0
- package/api/offersApi.ts +68 -0
- package/dist/api/automatedOffersApi.d.ts +9 -0
- package/dist/api/automatedOffersApi.js +99 -33
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/offersApi.d.ts +8 -0
- package/dist/api/offersApi.js +108 -42
- package/dist/api/offersApi.js.map +1 -1
- package/dist/model/bulkAddRelistingDto.d.ts +15 -0
- package/dist/model/bulkAddRelistingDto.js +21 -0
- package/dist/model/bulkAddRelistingDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +2 -0
- package/dist/model/createAutomatedOfferDto.js +10 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/createMatchedOfferDto.d.ts +1 -0
- package/dist/model/createMatchedOfferDto.js +5 -0
- package/dist/model/createMatchedOfferDto.js.map +1 -1
- package/dist/model/createOfferDto.d.ts +2 -0
- package/dist/model/createOfferDto.js +10 -0
- package/dist/model/createOfferDto.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/model/bulkAddRelistingDto.ts +35 -0
- package/model/createAutomatedOfferDto.ts +18 -0
- package/model/createMatchedOfferDto.ts +9 -0
- package/model/createOfferDto.ts +18 -0
- package/model/models.ts +3 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
18
19
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
19
20
|
|
|
20
21
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -86,6 +87,74 @@ export class AutomatedOffersApi {
|
|
|
86
87
|
this.interceptors.push(interceptor);
|
|
87
88
|
}
|
|
88
89
|
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary Adds relistings to multiple automated offers in bulk
|
|
93
|
+
* @param account
|
|
94
|
+
* @param bulkAddRelistingDto
|
|
95
|
+
*/
|
|
96
|
+
public async automatedOffersControllerAddrelistingbulk (account: string, bulkAddRelistingDto: BulkAddRelistingDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
97
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/bulk/relisting'
|
|
98
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
99
|
+
let localVarQueryParameters: any = {};
|
|
100
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
101
|
+
let localVarFormParams: any = {};
|
|
102
|
+
|
|
103
|
+
// verify required parameter 'account' is not null or undefined
|
|
104
|
+
if (account === null || account === undefined) {
|
|
105
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddrelistingbulk.');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// verify required parameter 'bulkAddRelistingDto' is not null or undefined
|
|
109
|
+
if (bulkAddRelistingDto === null || bulkAddRelistingDto === undefined) {
|
|
110
|
+
throw new Error('Required parameter bulkAddRelistingDto was null or undefined when calling automatedOffersControllerAddrelistingbulk.');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
114
|
+
|
|
115
|
+
let localVarUseFormData = false;
|
|
116
|
+
|
|
117
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
118
|
+
method: 'POST',
|
|
119
|
+
qs: localVarQueryParameters,
|
|
120
|
+
headers: localVarHeaderParams,
|
|
121
|
+
uri: localVarPath,
|
|
122
|
+
useQuerystring: this._useQuerystring,
|
|
123
|
+
json: true,
|
|
124
|
+
body: ObjectSerializer.serialize(bulkAddRelistingDto, "BulkAddRelistingDto")
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
let authenticationPromise = Promise.resolve();
|
|
128
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
129
|
+
|
|
130
|
+
let interceptorPromise = authenticationPromise;
|
|
131
|
+
for (const interceptor of this.interceptors) {
|
|
132
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return interceptorPromise.then(() => {
|
|
136
|
+
if (Object.keys(localVarFormParams).length) {
|
|
137
|
+
if (localVarUseFormData) {
|
|
138
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
139
|
+
} else {
|
|
140
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
144
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
145
|
+
if (error) {
|
|
146
|
+
reject(error);
|
|
147
|
+
} else {
|
|
148
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
149
|
+
resolve({ response: response, body: body });
|
|
150
|
+
} else {
|
|
151
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
}
|
|
89
158
|
/**
|
|
90
159
|
*
|
|
91
160
|
* @summary Creates a new automated offers
|
package/api/offersApi.ts
CHANGED
|
@@ -508,6 +508,74 @@ export class OffersApi {
|
|
|
508
508
|
});
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @summary Creates multiple offers
|
|
514
|
+
* @param account
|
|
515
|
+
* @param createOfferDto
|
|
516
|
+
*/
|
|
517
|
+
public async offersControllerCreatebulk (account: string, createOfferDto: Array<CreateOfferDto>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
518
|
+
const localVarPath = this.basePath + '/offers/{account}/bulk'
|
|
519
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
520
|
+
let localVarQueryParameters: any = {};
|
|
521
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
522
|
+
let localVarFormParams: any = {};
|
|
523
|
+
|
|
524
|
+
// verify required parameter 'account' is not null or undefined
|
|
525
|
+
if (account === null || account === undefined) {
|
|
526
|
+
throw new Error('Required parameter account was null or undefined when calling offersControllerCreatebulk.');
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
// verify required parameter 'createOfferDto' is not null or undefined
|
|
530
|
+
if (createOfferDto === null || createOfferDto === undefined) {
|
|
531
|
+
throw new Error('Required parameter createOfferDto was null or undefined when calling offersControllerCreatebulk.');
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
535
|
+
|
|
536
|
+
let localVarUseFormData = false;
|
|
537
|
+
|
|
538
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
539
|
+
method: 'POST',
|
|
540
|
+
qs: localVarQueryParameters,
|
|
541
|
+
headers: localVarHeaderParams,
|
|
542
|
+
uri: localVarPath,
|
|
543
|
+
useQuerystring: this._useQuerystring,
|
|
544
|
+
json: true,
|
|
545
|
+
body: ObjectSerializer.serialize(createOfferDto, "Array<CreateOfferDto>")
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
let authenticationPromise = Promise.resolve();
|
|
549
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
550
|
+
|
|
551
|
+
let interceptorPromise = authenticationPromise;
|
|
552
|
+
for (const interceptor of this.interceptors) {
|
|
553
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
return interceptorPromise.then(() => {
|
|
557
|
+
if (Object.keys(localVarFormParams).length) {
|
|
558
|
+
if (localVarUseFormData) {
|
|
559
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
560
|
+
} else {
|
|
561
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
565
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
566
|
+
if (error) {
|
|
567
|
+
reject(error);
|
|
568
|
+
} else {
|
|
569
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
570
|
+
resolve({ response: response, body: body });
|
|
571
|
+
} else {
|
|
572
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
}
|
|
511
579
|
/**
|
|
512
580
|
*
|
|
513
581
|
* @summary Delete offers with the provided IDs
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import http from 'http';
|
|
3
|
+
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
3
4
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
4
5
|
import { Authentication, Interceptor } from '../model/models';
|
|
5
6
|
export declare enum AutomatedOffersApiApiKeys {
|
|
@@ -21,6 +22,14 @@ export declare class AutomatedOffersApi {
|
|
|
21
22
|
setDefaultAuthentication(auth: Authentication): void;
|
|
22
23
|
setApiKey(key: AutomatedOffersApiApiKeys, value: string): void;
|
|
23
24
|
addInterceptor(interceptor: Interceptor): void;
|
|
25
|
+
automatedOffersControllerAddrelistingbulk(account: string, bulkAddRelistingDto: BulkAddRelistingDto, options?: {
|
|
26
|
+
headers: {
|
|
27
|
+
[name: string]: string;
|
|
28
|
+
};
|
|
29
|
+
}): Promise<{
|
|
30
|
+
response: http.IncomingMessage;
|
|
31
|
+
body?: any;
|
|
32
|
+
}>;
|
|
24
33
|
automatedOffersControllerCreate(account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, options?: {
|
|
25
34
|
headers: {
|
|
26
35
|
[name: string]: string;
|
|
@@ -103,11 +103,77 @@ var AutomatedOffersApi = (function () {
|
|
|
103
103
|
AutomatedOffersApi.prototype.addInterceptor = function (interceptor) {
|
|
104
104
|
this.interceptors.push(interceptor);
|
|
105
105
|
};
|
|
106
|
-
AutomatedOffersApi.prototype.
|
|
106
|
+
AutomatedOffersApi.prototype.automatedOffersControllerAddrelistingbulk = function (account, bulkAddRelistingDto, 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}/bulk/relisting'
|
|
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 automatedOffersControllerAddrelistingbulk.');
|
|
119
|
+
}
|
|
120
|
+
if (bulkAddRelistingDto === null || bulkAddRelistingDto === undefined) {
|
|
121
|
+
throw new Error('Required parameter bulkAddRelistingDto was null or undefined when calling automatedOffersControllerAddrelistingbulk.');
|
|
122
|
+
}
|
|
123
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
124
|
+
localVarUseFormData = false;
|
|
125
|
+
localVarRequestOptions = {
|
|
126
|
+
method: 'POST',
|
|
127
|
+
qs: localVarQueryParameters,
|
|
128
|
+
headers: localVarHeaderParams,
|
|
129
|
+
uri: localVarPath,
|
|
130
|
+
useQuerystring: this._useQuerystring,
|
|
131
|
+
json: true,
|
|
132
|
+
body: models_1.ObjectSerializer.serialize(bulkAddRelistingDto, "BulkAddRelistingDto")
|
|
133
|
+
};
|
|
134
|
+
authenticationPromise = Promise.resolve();
|
|
135
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
136
|
+
interceptorPromise = authenticationPromise;
|
|
137
|
+
_loop_1 = function (interceptor) {
|
|
138
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
139
|
+
};
|
|
140
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
141
|
+
interceptor = _a[_i];
|
|
142
|
+
_loop_1(interceptor);
|
|
143
|
+
}
|
|
144
|
+
return [2, interceptorPromise.then(function () {
|
|
145
|
+
if (Object.keys(localVarFormParams).length) {
|
|
146
|
+
if (localVarUseFormData) {
|
|
147
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return new Promise(function (resolve, reject) {
|
|
154
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
155
|
+
if (error) {
|
|
156
|
+
reject(error);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
160
|
+
resolve({ response: response, body: body });
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
})];
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
AutomatedOffersApi.prototype.automatedOffersControllerCreate = function (account, createAutomatedOfferDto, options) {
|
|
173
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
176
|
+
var _this = this;
|
|
111
177
|
return __generator(this, function (_b) {
|
|
112
178
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
113
179
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
@@ -134,12 +200,12 @@ var AutomatedOffersApi = (function () {
|
|
|
134
200
|
authenticationPromise = Promise.resolve();
|
|
135
201
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
136
202
|
interceptorPromise = authenticationPromise;
|
|
137
|
-
|
|
203
|
+
_loop_2 = function (interceptor) {
|
|
138
204
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
139
205
|
};
|
|
140
206
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
141
207
|
interceptor = _a[_i];
|
|
142
|
-
|
|
208
|
+
_loop_2(interceptor);
|
|
143
209
|
}
|
|
144
210
|
return [2, interceptorPromise.then(function () {
|
|
145
211
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -172,7 +238,7 @@ var AutomatedOffersApi = (function () {
|
|
|
172
238
|
AutomatedOffersApi.prototype.automatedOffersControllerCreatebulk = function (account, createAutomatedOfferDto, options) {
|
|
173
239
|
if (options === void 0) { options = { headers: {} }; }
|
|
174
240
|
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
241
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
176
242
|
var _this = this;
|
|
177
243
|
return __generator(this, function (_b) {
|
|
178
244
|
localVarPath = this.basePath + '/automated-offers/{account}/bulk'
|
|
@@ -200,12 +266,12 @@ var AutomatedOffersApi = (function () {
|
|
|
200
266
|
authenticationPromise = Promise.resolve();
|
|
201
267
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
202
268
|
interceptorPromise = authenticationPromise;
|
|
203
|
-
|
|
269
|
+
_loop_3 = function (interceptor) {
|
|
204
270
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
205
271
|
};
|
|
206
272
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
207
273
|
interceptor = _a[_i];
|
|
208
|
-
|
|
274
|
+
_loop_3(interceptor);
|
|
209
275
|
}
|
|
210
276
|
return [2, interceptorPromise.then(function () {
|
|
211
277
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -238,7 +304,7 @@ var AutomatedOffersApi = (function () {
|
|
|
238
304
|
AutomatedOffersApi.prototype.automatedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
239
305
|
if (options === void 0) { options = { headers: {} }; }
|
|
240
306
|
return __awaiter(this, void 0, void 0, function () {
|
|
241
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
307
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
242
308
|
var _this = this;
|
|
243
309
|
return __generator(this, function (_b) {
|
|
244
310
|
localVarPath = this.basePath + '/automated-offers/{account}/search'
|
|
@@ -275,12 +341,12 @@ var AutomatedOffersApi = (function () {
|
|
|
275
341
|
authenticationPromise = Promise.resolve();
|
|
276
342
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
277
343
|
interceptorPromise = authenticationPromise;
|
|
278
|
-
|
|
344
|
+
_loop_4 = function (interceptor) {
|
|
279
345
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
280
346
|
};
|
|
281
347
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
282
348
|
interceptor = _a[_i];
|
|
283
|
-
|
|
349
|
+
_loop_4(interceptor);
|
|
284
350
|
}
|
|
285
351
|
return [2, interceptorPromise.then(function () {
|
|
286
352
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -313,7 +379,7 @@ var AutomatedOffersApi = (function () {
|
|
|
313
379
|
AutomatedOffersApi.prototype.automatedOffersControllerFindall = function (account, createAutomatedOfferDto, skip, limit, sort, fields, options) {
|
|
314
380
|
if (options === void 0) { options = { headers: {} }; }
|
|
315
381
|
return __awaiter(this, void 0, void 0, function () {
|
|
316
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
382
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
317
383
|
var _this = this;
|
|
318
384
|
return __generator(this, function (_b) {
|
|
319
385
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
@@ -353,12 +419,12 @@ var AutomatedOffersApi = (function () {
|
|
|
353
419
|
authenticationPromise = Promise.resolve();
|
|
354
420
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
355
421
|
interceptorPromise = authenticationPromise;
|
|
356
|
-
|
|
422
|
+
_loop_5 = function (interceptor) {
|
|
357
423
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
358
424
|
};
|
|
359
425
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
360
426
|
interceptor = _a[_i];
|
|
361
|
-
|
|
427
|
+
_loop_5(interceptor);
|
|
362
428
|
}
|
|
363
429
|
return [2, interceptorPromise.then(function () {
|
|
364
430
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -391,7 +457,7 @@ var AutomatedOffersApi = (function () {
|
|
|
391
457
|
AutomatedOffersApi.prototype.automatedOffersControllerFindone = function (id, account, fields, options) {
|
|
392
458
|
if (options === void 0) { options = { headers: {} }; }
|
|
393
459
|
return __awaiter(this, void 0, void 0, function () {
|
|
394
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
460
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
395
461
|
var _this = this;
|
|
396
462
|
return __generator(this, function (_b) {
|
|
397
463
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -422,12 +488,12 @@ var AutomatedOffersApi = (function () {
|
|
|
422
488
|
authenticationPromise = Promise.resolve();
|
|
423
489
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
424
490
|
interceptorPromise = authenticationPromise;
|
|
425
|
-
|
|
491
|
+
_loop_6 = function (interceptor) {
|
|
426
492
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
427
493
|
};
|
|
428
494
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
429
495
|
interceptor = _a[_i];
|
|
430
|
-
|
|
496
|
+
_loop_6(interceptor);
|
|
431
497
|
}
|
|
432
498
|
return [2, interceptorPromise.then(function () {
|
|
433
499
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -460,7 +526,7 @@ var AutomatedOffersApi = (function () {
|
|
|
460
526
|
AutomatedOffersApi.prototype.automatedOffersControllerGetbids = function (account, skip, limit, sort, fields, body, options) {
|
|
461
527
|
if (options === void 0) { options = { headers: {} }; }
|
|
462
528
|
return __awaiter(this, void 0, void 0, function () {
|
|
463
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
529
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
464
530
|
var _this = this;
|
|
465
531
|
return __generator(this, function (_b) {
|
|
466
532
|
localVarPath = this.basePath + '/automated-offers/{account}/bids'
|
|
@@ -497,12 +563,12 @@ var AutomatedOffersApi = (function () {
|
|
|
497
563
|
authenticationPromise = Promise.resolve();
|
|
498
564
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
499
565
|
interceptorPromise = authenticationPromise;
|
|
500
|
-
|
|
566
|
+
_loop_7 = function (interceptor) {
|
|
501
567
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
502
568
|
};
|
|
503
569
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
504
570
|
interceptor = _a[_i];
|
|
505
|
-
|
|
571
|
+
_loop_7(interceptor);
|
|
506
572
|
}
|
|
507
573
|
return [2, interceptorPromise.then(function () {
|
|
508
574
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -535,7 +601,7 @@ var AutomatedOffersApi = (function () {
|
|
|
535
601
|
AutomatedOffersApi.prototype.automatedOffersControllerRemove = function (id, account, options) {
|
|
536
602
|
if (options === void 0) { options = { headers: {} }; }
|
|
537
603
|
return __awaiter(this, void 0, void 0, function () {
|
|
538
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
604
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
539
605
|
var _this = this;
|
|
540
606
|
return __generator(this, function (_b) {
|
|
541
607
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -563,12 +629,12 @@ var AutomatedOffersApi = (function () {
|
|
|
563
629
|
authenticationPromise = Promise.resolve();
|
|
564
630
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
565
631
|
interceptorPromise = authenticationPromise;
|
|
566
|
-
|
|
632
|
+
_loop_8 = function (interceptor) {
|
|
567
633
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
568
634
|
};
|
|
569
635
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
570
636
|
interceptor = _a[_i];
|
|
571
|
-
|
|
637
|
+
_loop_8(interceptor);
|
|
572
638
|
}
|
|
573
639
|
return [2, interceptorPromise.then(function () {
|
|
574
640
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -601,7 +667,7 @@ var AutomatedOffersApi = (function () {
|
|
|
601
667
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdate = function (id, account, body, options) {
|
|
602
668
|
if (options === void 0) { options = { headers: {} }; }
|
|
603
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
670
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
605
671
|
var _this = this;
|
|
606
672
|
return __generator(this, function (_b) {
|
|
607
673
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -633,12 +699,12 @@ var AutomatedOffersApi = (function () {
|
|
|
633
699
|
authenticationPromise = Promise.resolve();
|
|
634
700
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
635
701
|
interceptorPromise = authenticationPromise;
|
|
636
|
-
|
|
702
|
+
_loop_9 = function (interceptor) {
|
|
637
703
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
638
704
|
};
|
|
639
705
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
640
706
|
interceptor = _a[_i];
|
|
641
|
-
|
|
707
|
+
_loop_9(interceptor);
|
|
642
708
|
}
|
|
643
709
|
return [2, interceptorPromise.then(function () {
|
|
644
710
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -671,7 +737,7 @@ var AutomatedOffersApi = (function () {
|
|
|
671
737
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdaterelistingstatus = function (automatedOfferId, id, account, body, options) {
|
|
672
738
|
if (options === void 0) { options = { headers: {} }; }
|
|
673
739
|
return __awaiter(this, void 0, void 0, function () {
|
|
674
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
740
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
675
741
|
var _this = this;
|
|
676
742
|
return __generator(this, function (_b) {
|
|
677
743
|
localVarPath = this.basePath + '/automated-offers/{account}/{automatedOfferId}/relistings/{id}/status'
|
|
@@ -707,12 +773,12 @@ var AutomatedOffersApi = (function () {
|
|
|
707
773
|
authenticationPromise = Promise.resolve();
|
|
708
774
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
709
775
|
interceptorPromise = authenticationPromise;
|
|
710
|
-
|
|
776
|
+
_loop_10 = function (interceptor) {
|
|
711
777
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
712
778
|
};
|
|
713
779
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
714
780
|
interceptor = _a[_i];
|
|
715
|
-
|
|
781
|
+
_loop_10(interceptor);
|
|
716
782
|
}
|
|
717
783
|
return [2, interceptorPromise.then(function () {
|
|
718
784
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -745,7 +811,7 @@ var AutomatedOffersApi = (function () {
|
|
|
745
811
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdatestatus = function (account, body, options) {
|
|
746
812
|
if (options === void 0) { options = { headers: {} }; }
|
|
747
813
|
return __awaiter(this, void 0, void 0, function () {
|
|
748
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
814
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
749
815
|
var _this = this;
|
|
750
816
|
return __generator(this, function (_b) {
|
|
751
817
|
localVarPath = this.basePath + '/automated-offers/{account}/status'
|
|
@@ -773,12 +839,12 @@ var AutomatedOffersApi = (function () {
|
|
|
773
839
|
authenticationPromise = Promise.resolve();
|
|
774
840
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
775
841
|
interceptorPromise = authenticationPromise;
|
|
776
|
-
|
|
842
|
+
_loop_11 = function (interceptor) {
|
|
777
843
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
778
844
|
};
|
|
779
845
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
780
846
|
interceptor = _a[_i];
|
|
781
|
-
|
|
847
|
+
_loop_11(interceptor);
|
|
782
848
|
}
|
|
783
849
|
return [2, interceptorPromise.then(function () {
|
|
784
850
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -811,7 +877,7 @@ var AutomatedOffersApi = (function () {
|
|
|
811
877
|
AutomatedOffersApi.prototype.automatedOffersControllerViews = function (account, body, options) {
|
|
812
878
|
if (options === void 0) { options = { headers: {} }; }
|
|
813
879
|
return __awaiter(this, void 0, void 0, function () {
|
|
814
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
880
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
815
881
|
var _this = this;
|
|
816
882
|
return __generator(this, function (_b) {
|
|
817
883
|
localVarPath = this.basePath + '/automated-offers/{account}/views'
|
|
@@ -836,12 +902,12 @@ var AutomatedOffersApi = (function () {
|
|
|
836
902
|
authenticationPromise = Promise.resolve();
|
|
837
903
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
838
904
|
interceptorPromise = authenticationPromise;
|
|
839
|
-
|
|
905
|
+
_loop_12 = function (interceptor) {
|
|
840
906
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
841
907
|
};
|
|
842
908
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
843
909
|
interceptor = _a[_i];
|
|
844
|
-
|
|
910
|
+
_loop_12(interceptor);
|
|
845
911
|
}
|
|
846
912
|
return [2, interceptorPromise.then(function () {
|
|
847
913
|
if (Object.keys(localVarFormParams).length) {
|