@tradecafe/offer-service-sdk 0.0.43 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/automatedOffersApi.ts +75 -0
- package/api/offersApi.ts +75 -0
- package/dist/api/automatedOffersApi.d.ts +8 -0
- package/dist/api/automatedOffersApi.js +106 -36
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/offersApi.d.ts +8 -0
- package/dist/api/offersApi.js +133 -63
- package/dist/api/offersApi.js.map +1 -1
- package/package.json +1 -1
|
@@ -87,6 +87,81 @@ export class AutomatedOffersApi {
|
|
|
87
87
|
this.interceptors.push(interceptor);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary Add buyer after create its MO to the offer
|
|
93
|
+
* @param id
|
|
94
|
+
* @param buyer
|
|
95
|
+
* @param account
|
|
96
|
+
*/
|
|
97
|
+
public async automatedOffersControllerAddmatchedbuyertooffer (id: string, buyer: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
98
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-buyer/{buyer}/add'
|
|
99
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
100
|
+
.replace('{' + 'buyer' + '}', encodeURIComponent(String(buyer)))
|
|
101
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
102
|
+
let localVarQueryParameters: any = {};
|
|
103
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
104
|
+
let localVarFormParams: any = {};
|
|
105
|
+
|
|
106
|
+
// verify required parameter 'id' is not null or undefined
|
|
107
|
+
if (id === null || id === undefined) {
|
|
108
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// verify required parameter 'buyer' is not null or undefined
|
|
112
|
+
if (buyer === null || buyer === undefined) {
|
|
113
|
+
throw new Error('Required parameter buyer was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// verify required parameter 'account' is not null or undefined
|
|
117
|
+
if (account === null || account === undefined) {
|
|
118
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
122
|
+
|
|
123
|
+
let localVarUseFormData = false;
|
|
124
|
+
|
|
125
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
126
|
+
method: 'PUT',
|
|
127
|
+
qs: localVarQueryParameters,
|
|
128
|
+
headers: localVarHeaderParams,
|
|
129
|
+
uri: localVarPath,
|
|
130
|
+
useQuerystring: this._useQuerystring,
|
|
131
|
+
json: true,
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
let authenticationPromise = Promise.resolve();
|
|
135
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
136
|
+
|
|
137
|
+
let interceptorPromise = authenticationPromise;
|
|
138
|
+
for (const interceptor of this.interceptors) {
|
|
139
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return interceptorPromise.then(() => {
|
|
143
|
+
if (Object.keys(localVarFormParams).length) {
|
|
144
|
+
if (localVarUseFormData) {
|
|
145
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
146
|
+
} else {
|
|
147
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
151
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
152
|
+
if (error) {
|
|
153
|
+
reject(error);
|
|
154
|
+
} else {
|
|
155
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
156
|
+
resolve({ response: response, body: body });
|
|
157
|
+
} else {
|
|
158
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
90
165
|
/**
|
|
91
166
|
*
|
|
92
167
|
* @summary Adds relistings to multiple automated offers in bulk
|
package/api/offersApi.ts
CHANGED
|
@@ -86,6 +86,81 @@ export class OffersApi {
|
|
|
86
86
|
this.interceptors.push(interceptor);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @summary Add buyer after create its MO to the offer
|
|
92
|
+
* @param id
|
|
93
|
+
* @param buyer
|
|
94
|
+
* @param account
|
|
95
|
+
*/
|
|
96
|
+
public async offersControllerAddmatchedbuyertooffer (id: string, buyer: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
97
|
+
const localVarPath = this.basePath + '/offers/{account}/{id}/matched-buyer/{buyer}/add'
|
|
98
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
99
|
+
.replace('{' + 'buyer' + '}', encodeURIComponent(String(buyer)))
|
|
100
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
101
|
+
let localVarQueryParameters: any = {};
|
|
102
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
103
|
+
let localVarFormParams: any = {};
|
|
104
|
+
|
|
105
|
+
// verify required parameter 'id' is not null or undefined
|
|
106
|
+
if (id === null || id === undefined) {
|
|
107
|
+
throw new Error('Required parameter id was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// verify required parameter 'buyer' is not null or undefined
|
|
111
|
+
if (buyer === null || buyer === undefined) {
|
|
112
|
+
throw new Error('Required parameter buyer was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// verify required parameter 'account' is not null or undefined
|
|
116
|
+
if (account === null || account === undefined) {
|
|
117
|
+
throw new Error('Required parameter account was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
121
|
+
|
|
122
|
+
let localVarUseFormData = false;
|
|
123
|
+
|
|
124
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
125
|
+
method: 'PUT',
|
|
126
|
+
qs: localVarQueryParameters,
|
|
127
|
+
headers: localVarHeaderParams,
|
|
128
|
+
uri: localVarPath,
|
|
129
|
+
useQuerystring: this._useQuerystring,
|
|
130
|
+
json: true,
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
let authenticationPromise = Promise.resolve();
|
|
134
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
135
|
+
|
|
136
|
+
let interceptorPromise = authenticationPromise;
|
|
137
|
+
for (const interceptor of this.interceptors) {
|
|
138
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return interceptorPromise.then(() => {
|
|
142
|
+
if (Object.keys(localVarFormParams).length) {
|
|
143
|
+
if (localVarUseFormData) {
|
|
144
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
145
|
+
} else {
|
|
146
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
150
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
151
|
+
if (error) {
|
|
152
|
+
reject(error);
|
|
153
|
+
} else {
|
|
154
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
155
|
+
resolve({ response: response, body: body });
|
|
156
|
+
} else {
|
|
157
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
89
164
|
/**
|
|
90
165
|
*
|
|
91
166
|
* @summary Adds note to the offer with the provided ID
|
|
@@ -22,6 +22,14 @@ export declare class AutomatedOffersApi {
|
|
|
22
22
|
setDefaultAuthentication(auth: Authentication): void;
|
|
23
23
|
setApiKey(key: AutomatedOffersApiApiKeys, value: string): void;
|
|
24
24
|
addInterceptor(interceptor: Interceptor): void;
|
|
25
|
+
automatedOffersControllerAddmatchedbuyertooffer(id: string, buyer: string, account: string, options?: {
|
|
26
|
+
headers: {
|
|
27
|
+
[name: string]: string;
|
|
28
|
+
};
|
|
29
|
+
}): Promise<{
|
|
30
|
+
response: http.IncomingMessage;
|
|
31
|
+
body?: any;
|
|
32
|
+
}>;
|
|
25
33
|
automatedOffersControllerAddrelistingbulk(account: string, bulkAddRelistingDto: BulkAddRelistingDto, options?: {
|
|
26
34
|
headers: {
|
|
27
35
|
[name: string]: string;
|
|
@@ -103,11 +103,81 @@ 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.automatedOffersControllerAddrelistingbulk = function (account, bulkAddRelistingDto, options) {
|
|
177
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
178
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
180
|
+
var _this = this;
|
|
111
181
|
return __generator(this, function (_b) {
|
|
112
182
|
localVarPath = this.basePath + '/automated-offers/{account}/bulk/relisting'
|
|
113
183
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
@@ -134,12 +204,12 @@ var AutomatedOffersApi = (function () {
|
|
|
134
204
|
authenticationPromise = Promise.resolve();
|
|
135
205
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
136
206
|
interceptorPromise = authenticationPromise;
|
|
137
|
-
|
|
207
|
+
_loop_2 = function (interceptor) {
|
|
138
208
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
139
209
|
};
|
|
140
210
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
141
211
|
interceptor = _a[_i];
|
|
142
|
-
|
|
212
|
+
_loop_2(interceptor);
|
|
143
213
|
}
|
|
144
214
|
return [2, interceptorPromise.then(function () {
|
|
145
215
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -172,7 +242,7 @@ var AutomatedOffersApi = (function () {
|
|
|
172
242
|
AutomatedOffersApi.prototype.automatedOffersControllerCreate = function (account, createAutomatedOfferDto, options) {
|
|
173
243
|
if (options === void 0) { options = { headers: {} }; }
|
|
174
244
|
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
245
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
176
246
|
var _this = this;
|
|
177
247
|
return __generator(this, function (_b) {
|
|
178
248
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
@@ -200,12 +270,12 @@ var AutomatedOffersApi = (function () {
|
|
|
200
270
|
authenticationPromise = Promise.resolve();
|
|
201
271
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
202
272
|
interceptorPromise = authenticationPromise;
|
|
203
|
-
|
|
273
|
+
_loop_3 = function (interceptor) {
|
|
204
274
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
205
275
|
};
|
|
206
276
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
207
277
|
interceptor = _a[_i];
|
|
208
|
-
|
|
278
|
+
_loop_3(interceptor);
|
|
209
279
|
}
|
|
210
280
|
return [2, interceptorPromise.then(function () {
|
|
211
281
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -238,7 +308,7 @@ var AutomatedOffersApi = (function () {
|
|
|
238
308
|
AutomatedOffersApi.prototype.automatedOffersControllerCreatebulk = function (account, createAutomatedOfferDto, options) {
|
|
239
309
|
if (options === void 0) { options = { headers: {} }; }
|
|
240
310
|
return __awaiter(this, void 0, void 0, function () {
|
|
241
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
311
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
242
312
|
var _this = this;
|
|
243
313
|
return __generator(this, function (_b) {
|
|
244
314
|
localVarPath = this.basePath + '/automated-offers/{account}/bulk'
|
|
@@ -266,12 +336,12 @@ var AutomatedOffersApi = (function () {
|
|
|
266
336
|
authenticationPromise = Promise.resolve();
|
|
267
337
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
268
338
|
interceptorPromise = authenticationPromise;
|
|
269
|
-
|
|
339
|
+
_loop_4 = function (interceptor) {
|
|
270
340
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
271
341
|
};
|
|
272
342
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
273
343
|
interceptor = _a[_i];
|
|
274
|
-
|
|
344
|
+
_loop_4(interceptor);
|
|
275
345
|
}
|
|
276
346
|
return [2, interceptorPromise.then(function () {
|
|
277
347
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -304,7 +374,7 @@ var AutomatedOffersApi = (function () {
|
|
|
304
374
|
AutomatedOffersApi.prototype.automatedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
305
375
|
if (options === void 0) { options = { headers: {} }; }
|
|
306
376
|
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
377
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
308
378
|
var _this = this;
|
|
309
379
|
return __generator(this, function (_b) {
|
|
310
380
|
localVarPath = this.basePath + '/automated-offers/{account}/search'
|
|
@@ -341,12 +411,12 @@ var AutomatedOffersApi = (function () {
|
|
|
341
411
|
authenticationPromise = Promise.resolve();
|
|
342
412
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
343
413
|
interceptorPromise = authenticationPromise;
|
|
344
|
-
|
|
414
|
+
_loop_5 = function (interceptor) {
|
|
345
415
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
346
416
|
};
|
|
347
417
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
348
418
|
interceptor = _a[_i];
|
|
349
|
-
|
|
419
|
+
_loop_5(interceptor);
|
|
350
420
|
}
|
|
351
421
|
return [2, interceptorPromise.then(function () {
|
|
352
422
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -379,7 +449,7 @@ var AutomatedOffersApi = (function () {
|
|
|
379
449
|
AutomatedOffersApi.prototype.automatedOffersControllerFindall = function (account, createAutomatedOfferDto, skip, limit, sort, fields, options) {
|
|
380
450
|
if (options === void 0) { options = { headers: {} }; }
|
|
381
451
|
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
452
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
383
453
|
var _this = this;
|
|
384
454
|
return __generator(this, function (_b) {
|
|
385
455
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
@@ -419,12 +489,12 @@ var AutomatedOffersApi = (function () {
|
|
|
419
489
|
authenticationPromise = Promise.resolve();
|
|
420
490
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
421
491
|
interceptorPromise = authenticationPromise;
|
|
422
|
-
|
|
492
|
+
_loop_6 = function (interceptor) {
|
|
423
493
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
424
494
|
};
|
|
425
495
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
426
496
|
interceptor = _a[_i];
|
|
427
|
-
|
|
497
|
+
_loop_6(interceptor);
|
|
428
498
|
}
|
|
429
499
|
return [2, interceptorPromise.then(function () {
|
|
430
500
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -457,7 +527,7 @@ var AutomatedOffersApi = (function () {
|
|
|
457
527
|
AutomatedOffersApi.prototype.automatedOffersControllerFindone = function (id, account, fields, options) {
|
|
458
528
|
if (options === void 0) { options = { headers: {} }; }
|
|
459
529
|
return __awaiter(this, void 0, void 0, function () {
|
|
460
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
530
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
461
531
|
var _this = this;
|
|
462
532
|
return __generator(this, function (_b) {
|
|
463
533
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -488,12 +558,12 @@ var AutomatedOffersApi = (function () {
|
|
|
488
558
|
authenticationPromise = Promise.resolve();
|
|
489
559
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
490
560
|
interceptorPromise = authenticationPromise;
|
|
491
|
-
|
|
561
|
+
_loop_7 = function (interceptor) {
|
|
492
562
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
493
563
|
};
|
|
494
564
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
495
565
|
interceptor = _a[_i];
|
|
496
|
-
|
|
566
|
+
_loop_7(interceptor);
|
|
497
567
|
}
|
|
498
568
|
return [2, interceptorPromise.then(function () {
|
|
499
569
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -526,7 +596,7 @@ var AutomatedOffersApi = (function () {
|
|
|
526
596
|
AutomatedOffersApi.prototype.automatedOffersControllerGetbids = function (account, skip, limit, sort, fields, body, options) {
|
|
527
597
|
if (options === void 0) { options = { headers: {} }; }
|
|
528
598
|
return __awaiter(this, void 0, void 0, function () {
|
|
529
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
599
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
530
600
|
var _this = this;
|
|
531
601
|
return __generator(this, function (_b) {
|
|
532
602
|
localVarPath = this.basePath + '/automated-offers/{account}/bids'
|
|
@@ -563,12 +633,12 @@ var AutomatedOffersApi = (function () {
|
|
|
563
633
|
authenticationPromise = Promise.resolve();
|
|
564
634
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
565
635
|
interceptorPromise = authenticationPromise;
|
|
566
|
-
|
|
636
|
+
_loop_8 = function (interceptor) {
|
|
567
637
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
568
638
|
};
|
|
569
639
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
570
640
|
interceptor = _a[_i];
|
|
571
|
-
|
|
641
|
+
_loop_8(interceptor);
|
|
572
642
|
}
|
|
573
643
|
return [2, interceptorPromise.then(function () {
|
|
574
644
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -601,7 +671,7 @@ var AutomatedOffersApi = (function () {
|
|
|
601
671
|
AutomatedOffersApi.prototype.automatedOffersControllerRemove = function (id, account, options) {
|
|
602
672
|
if (options === void 0) { options = { headers: {} }; }
|
|
603
673
|
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
674
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
605
675
|
var _this = this;
|
|
606
676
|
return __generator(this, function (_b) {
|
|
607
677
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -629,12 +699,12 @@ var AutomatedOffersApi = (function () {
|
|
|
629
699
|
authenticationPromise = Promise.resolve();
|
|
630
700
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
631
701
|
interceptorPromise = authenticationPromise;
|
|
632
|
-
|
|
702
|
+
_loop_9 = function (interceptor) {
|
|
633
703
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
634
704
|
};
|
|
635
705
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
636
706
|
interceptor = _a[_i];
|
|
637
|
-
|
|
707
|
+
_loop_9(interceptor);
|
|
638
708
|
}
|
|
639
709
|
return [2, interceptorPromise.then(function () {
|
|
640
710
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -667,7 +737,7 @@ var AutomatedOffersApi = (function () {
|
|
|
667
737
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdate = function (id, account, body, options) {
|
|
668
738
|
if (options === void 0) { options = { headers: {} }; }
|
|
669
739
|
return __awaiter(this, void 0, void 0, function () {
|
|
670
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
740
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
671
741
|
var _this = this;
|
|
672
742
|
return __generator(this, function (_b) {
|
|
673
743
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -699,12 +769,12 @@ var AutomatedOffersApi = (function () {
|
|
|
699
769
|
authenticationPromise = Promise.resolve();
|
|
700
770
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
701
771
|
interceptorPromise = authenticationPromise;
|
|
702
|
-
|
|
772
|
+
_loop_10 = function (interceptor) {
|
|
703
773
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
704
774
|
};
|
|
705
775
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
706
776
|
interceptor = _a[_i];
|
|
707
|
-
|
|
777
|
+
_loop_10(interceptor);
|
|
708
778
|
}
|
|
709
779
|
return [2, interceptorPromise.then(function () {
|
|
710
780
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -737,7 +807,7 @@ var AutomatedOffersApi = (function () {
|
|
|
737
807
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdaterelistingstatus = function (automatedOfferId, id, account, body, options) {
|
|
738
808
|
if (options === void 0) { options = { headers: {} }; }
|
|
739
809
|
return __awaiter(this, void 0, void 0, function () {
|
|
740
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
810
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
741
811
|
var _this = this;
|
|
742
812
|
return __generator(this, function (_b) {
|
|
743
813
|
localVarPath = this.basePath + '/automated-offers/{account}/{automatedOfferId}/relistings/{id}/status'
|
|
@@ -773,12 +843,12 @@ var AutomatedOffersApi = (function () {
|
|
|
773
843
|
authenticationPromise = Promise.resolve();
|
|
774
844
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
775
845
|
interceptorPromise = authenticationPromise;
|
|
776
|
-
|
|
846
|
+
_loop_11 = function (interceptor) {
|
|
777
847
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
778
848
|
};
|
|
779
849
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
780
850
|
interceptor = _a[_i];
|
|
781
|
-
|
|
851
|
+
_loop_11(interceptor);
|
|
782
852
|
}
|
|
783
853
|
return [2, interceptorPromise.then(function () {
|
|
784
854
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -811,7 +881,7 @@ var AutomatedOffersApi = (function () {
|
|
|
811
881
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdatestatus = function (account, body, options) {
|
|
812
882
|
if (options === void 0) { options = { headers: {} }; }
|
|
813
883
|
return __awaiter(this, void 0, void 0, function () {
|
|
814
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
884
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
815
885
|
var _this = this;
|
|
816
886
|
return __generator(this, function (_b) {
|
|
817
887
|
localVarPath = this.basePath + '/automated-offers/{account}/status'
|
|
@@ -839,12 +909,12 @@ var AutomatedOffersApi = (function () {
|
|
|
839
909
|
authenticationPromise = Promise.resolve();
|
|
840
910
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
841
911
|
interceptorPromise = authenticationPromise;
|
|
842
|
-
|
|
912
|
+
_loop_12 = function (interceptor) {
|
|
843
913
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
844
914
|
};
|
|
845
915
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
846
916
|
interceptor = _a[_i];
|
|
847
|
-
|
|
917
|
+
_loop_12(interceptor);
|
|
848
918
|
}
|
|
849
919
|
return [2, interceptorPromise.then(function () {
|
|
850
920
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -877,7 +947,7 @@ var AutomatedOffersApi = (function () {
|
|
|
877
947
|
AutomatedOffersApi.prototype.automatedOffersControllerViews = function (account, body, options) {
|
|
878
948
|
if (options === void 0) { options = { headers: {} }; }
|
|
879
949
|
return __awaiter(this, void 0, void 0, function () {
|
|
880
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
950
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
881
951
|
var _this = this;
|
|
882
952
|
return __generator(this, function (_b) {
|
|
883
953
|
localVarPath = this.basePath + '/automated-offers/{account}/views'
|
|
@@ -902,12 +972,12 @@ var AutomatedOffersApi = (function () {
|
|
|
902
972
|
authenticationPromise = Promise.resolve();
|
|
903
973
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
904
974
|
interceptorPromise = authenticationPromise;
|
|
905
|
-
|
|
975
|
+
_loop_13 = function (interceptor) {
|
|
906
976
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
907
977
|
};
|
|
908
978
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
909
979
|
interceptor = _a[_i];
|
|
910
|
-
|
|
980
|
+
_loop_13(interceptor);
|
|
911
981
|
}
|
|
912
982
|
return [2, interceptorPromise.then(function () {
|
|
913
983
|
if (Object.keys(localVarFormParams).length) {
|