@tradecafe/offer-service-sdk 0.0.47 → 0.0.49
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 +6 -0
- package/api/automatedOffersApi.ts +76 -0
- package/api/matchedOffersApi.ts +145 -0
- package/dist/api/automatedOffersApi.d.ts +9 -0
- package/dist/api/automatedOffersApi.js +106 -36
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +187 -51
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -0
- package/dist/model/bulkAddTertiaryCostsDto.js +26 -0
- package/dist/model/bulkAddTertiaryCostsDto.js.map +1 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js +31 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js.map +1 -0
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -0
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +26 -0
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js.map +1 -0
- package/dist/model/costAmountDto.d.ts +14 -0
- package/dist/model/costAmountDto.js +21 -0
- package/dist/model/costAmountDto.js.map +1 -0
- package/dist/model/costDto.d.ts +21 -0
- package/dist/model/costDto.js +51 -0
- package/dist/model/costDto.js.map +1 -0
- package/dist/model/costDtoSource.d.ts +14 -0
- package/dist/model/costDtoSource.js +21 -0
- package/dist/model/costDtoSource.js.map +1 -0
- package/dist/model/models.d.ts +6 -0
- package/dist/model/models.js +18 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkAddTertiaryCostsDto.ts +44 -0
- package/model/bulkUpdateDeliveryDatesDto.ts +52 -0
- package/model/bulkUpdateMatchedDeliveryDatesDto.ts +43 -0
- package/model/costAmountDto.ts +34 -0
- package/model/costDto.ts +86 -0
- package/model/costDtoSource.ts +38 -0
- package/model/models.ts +18 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,12 @@ git_push.sh
|
|
|
11
11
|
model/addFutureBidDto.ts
|
|
12
12
|
model/addMatchedDeliveryDateDto.ts
|
|
13
13
|
model/bulkAddRelistingDto.ts
|
|
14
|
+
model/bulkAddTertiaryCostsDto.ts
|
|
15
|
+
model/bulkUpdateDeliveryDatesDto.ts
|
|
16
|
+
model/bulkUpdateMatchedDeliveryDatesDto.ts
|
|
17
|
+
model/costAmountDto.ts
|
|
18
|
+
model/costDto.ts
|
|
19
|
+
model/costDtoSource.ts
|
|
14
20
|
model/createAutomatedOfferDto.ts
|
|
15
21
|
model/createMatchedOfferDto.ts
|
|
16
22
|
model/createMatchedOfferDtoAttributes.ts
|
|
@@ -17,6 +17,7 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { AddMatchedDeliveryDateDto } from '../model/addMatchedDeliveryDateDto';
|
|
19
19
|
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
20
|
+
import { BulkUpdateMatchedDeliveryDatesDto } from '../model/bulkUpdateMatchedDeliveryDatesDto';
|
|
20
21
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
21
22
|
import { UpdateMatchedDeliveryDateDto } from '../model/updateMatchedDeliveryDateDto';
|
|
22
23
|
|
|
@@ -307,6 +308,81 @@ export class AutomatedOffersApi {
|
|
|
307
308
|
});
|
|
308
309
|
});
|
|
309
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @summary Bulk update matched delivery dates on an automated offer. Add one replacement date for each successful removal.
|
|
314
|
+
* @param id
|
|
315
|
+
* @param account
|
|
316
|
+
* @param bulkUpdateMatchedDeliveryDatesDto
|
|
317
|
+
*/
|
|
318
|
+
public async automatedOffersControllerBulkupdatematcheddeliverydatesonoffer (id: string, account: string, bulkUpdateMatchedDeliveryDatesDto: BulkUpdateMatchedDeliveryDatesDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
319
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-dates/bulk-update'
|
|
320
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
321
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
322
|
+
let localVarQueryParameters: any = {};
|
|
323
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
324
|
+
let localVarFormParams: any = {};
|
|
325
|
+
|
|
326
|
+
// verify required parameter 'id' is not null or undefined
|
|
327
|
+
if (id === null || id === undefined) {
|
|
328
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerBulkupdatematcheddeliverydatesonoffer.');
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// verify required parameter 'account' is not null or undefined
|
|
332
|
+
if (account === null || account === undefined) {
|
|
333
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerBulkupdatematcheddeliverydatesonoffer.');
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// verify required parameter 'bulkUpdateMatchedDeliveryDatesDto' is not null or undefined
|
|
337
|
+
if (bulkUpdateMatchedDeliveryDatesDto === null || bulkUpdateMatchedDeliveryDatesDto === undefined) {
|
|
338
|
+
throw new Error('Required parameter bulkUpdateMatchedDeliveryDatesDto was null or undefined when calling automatedOffersControllerBulkupdatematcheddeliverydatesonoffer.');
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
342
|
+
|
|
343
|
+
let localVarUseFormData = false;
|
|
344
|
+
|
|
345
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
346
|
+
method: 'PATCH',
|
|
347
|
+
qs: localVarQueryParameters,
|
|
348
|
+
headers: localVarHeaderParams,
|
|
349
|
+
uri: localVarPath,
|
|
350
|
+
useQuerystring: this._useQuerystring,
|
|
351
|
+
json: true,
|
|
352
|
+
body: ObjectSerializer.serialize(bulkUpdateMatchedDeliveryDatesDto, "BulkUpdateMatchedDeliveryDatesDto")
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
let authenticationPromise = Promise.resolve();
|
|
356
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
357
|
+
|
|
358
|
+
let interceptorPromise = authenticationPromise;
|
|
359
|
+
for (const interceptor of this.interceptors) {
|
|
360
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return interceptorPromise.then(() => {
|
|
364
|
+
if (Object.keys(localVarFormParams).length) {
|
|
365
|
+
if (localVarUseFormData) {
|
|
366
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
367
|
+
} else {
|
|
368
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
372
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
373
|
+
if (error) {
|
|
374
|
+
reject(error);
|
|
375
|
+
} else {
|
|
376
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
377
|
+
resolve({ response: response, body: body });
|
|
378
|
+
} else {
|
|
379
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
}
|
|
310
386
|
/**
|
|
311
387
|
*
|
|
312
388
|
* @summary Creates a new automated offer
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -15,6 +15,8 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
19
|
+
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
18
20
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
19
21
|
import { PinActionDto } from '../model/pinActionDto';
|
|
20
22
|
|
|
@@ -244,6 +246,149 @@ export class MatchedOffersApi {
|
|
|
244
246
|
});
|
|
245
247
|
});
|
|
246
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @summary Adds tertiary costs to multiple matched offers in a single operation
|
|
252
|
+
* @param account
|
|
253
|
+
* @param userId
|
|
254
|
+
* @param bulkAddTertiaryCostsDto
|
|
255
|
+
*/
|
|
256
|
+
public async matchedOffersControllerBulkaddtertiarycosts (account: string, userId: string, bulkAddTertiaryCostsDto: BulkAddTertiaryCostsDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
257
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/tertiary-costs/{userId}'
|
|
258
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)))
|
|
259
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
260
|
+
let localVarQueryParameters: any = {};
|
|
261
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
262
|
+
let localVarFormParams: any = {};
|
|
263
|
+
|
|
264
|
+
// verify required parameter 'account' is not null or undefined
|
|
265
|
+
if (account === null || account === undefined) {
|
|
266
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// verify required parameter 'userId' is not null or undefined
|
|
270
|
+
if (userId === null || userId === undefined) {
|
|
271
|
+
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// verify required parameter 'bulkAddTertiaryCostsDto' is not null or undefined
|
|
275
|
+
if (bulkAddTertiaryCostsDto === null || bulkAddTertiaryCostsDto === undefined) {
|
|
276
|
+
throw new Error('Required parameter bulkAddTertiaryCostsDto was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
280
|
+
|
|
281
|
+
let localVarUseFormData = false;
|
|
282
|
+
|
|
283
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
284
|
+
method: 'PUT',
|
|
285
|
+
qs: localVarQueryParameters,
|
|
286
|
+
headers: localVarHeaderParams,
|
|
287
|
+
uri: localVarPath,
|
|
288
|
+
useQuerystring: this._useQuerystring,
|
|
289
|
+
json: true,
|
|
290
|
+
body: ObjectSerializer.serialize(bulkAddTertiaryCostsDto, "BulkAddTertiaryCostsDto")
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
let authenticationPromise = Promise.resolve();
|
|
294
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
295
|
+
|
|
296
|
+
let interceptorPromise = authenticationPromise;
|
|
297
|
+
for (const interceptor of this.interceptors) {
|
|
298
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
return interceptorPromise.then(() => {
|
|
302
|
+
if (Object.keys(localVarFormParams).length) {
|
|
303
|
+
if (localVarUseFormData) {
|
|
304
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
305
|
+
} else {
|
|
306
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
310
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
311
|
+
if (error) {
|
|
312
|
+
reject(error);
|
|
313
|
+
} else {
|
|
314
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
315
|
+
resolve({ response: response, body: body });
|
|
316
|
+
} else {
|
|
317
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Updates delivery dates on multiple matched offers in a single operation
|
|
327
|
+
* @param account
|
|
328
|
+
* @param bulkUpdateDeliveryDatesDto
|
|
329
|
+
*/
|
|
330
|
+
public async matchedOffersControllerBulkupdatedeliverydates (account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
331
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/delivery-dates'
|
|
332
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
333
|
+
let localVarQueryParameters: any = {};
|
|
334
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
335
|
+
let localVarFormParams: any = {};
|
|
336
|
+
|
|
337
|
+
// verify required parameter 'account' is not null or undefined
|
|
338
|
+
if (account === null || account === undefined) {
|
|
339
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// verify required parameter 'bulkUpdateDeliveryDatesDto' is not null or undefined
|
|
343
|
+
if (bulkUpdateDeliveryDatesDto === null || bulkUpdateDeliveryDatesDto === undefined) {
|
|
344
|
+
throw new Error('Required parameter bulkUpdateDeliveryDatesDto was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
348
|
+
|
|
349
|
+
let localVarUseFormData = false;
|
|
350
|
+
|
|
351
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
352
|
+
method: 'PUT',
|
|
353
|
+
qs: localVarQueryParameters,
|
|
354
|
+
headers: localVarHeaderParams,
|
|
355
|
+
uri: localVarPath,
|
|
356
|
+
useQuerystring: this._useQuerystring,
|
|
357
|
+
json: true,
|
|
358
|
+
body: ObjectSerializer.serialize(bulkUpdateDeliveryDatesDto, "BulkUpdateDeliveryDatesDto")
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
let authenticationPromise = Promise.resolve();
|
|
362
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
363
|
+
|
|
364
|
+
let interceptorPromise = authenticationPromise;
|
|
365
|
+
for (const interceptor of this.interceptors) {
|
|
366
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
return interceptorPromise.then(() => {
|
|
370
|
+
if (Object.keys(localVarFormParams).length) {
|
|
371
|
+
if (localVarUseFormData) {
|
|
372
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
373
|
+
} else {
|
|
374
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
378
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
379
|
+
if (error) {
|
|
380
|
+
reject(error);
|
|
381
|
+
} else {
|
|
382
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
383
|
+
resolve({ response: response, body: body });
|
|
384
|
+
} else {
|
|
385
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
}
|
|
247
392
|
/**
|
|
248
393
|
*
|
|
249
394
|
* @summary Counts supplier offers by their status, providing a detailed breakdown.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import http from 'http';
|
|
3
3
|
import { AddMatchedDeliveryDateDto } from '../model/addMatchedDeliveryDateDto';
|
|
4
4
|
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
5
|
+
import { BulkUpdateMatchedDeliveryDatesDto } from '../model/bulkUpdateMatchedDeliveryDatesDto';
|
|
5
6
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
6
7
|
import { UpdateMatchedDeliveryDateDto } from '../model/updateMatchedDeliveryDateDto';
|
|
7
8
|
import { Authentication, Interceptor } from '../model/models';
|
|
@@ -48,6 +49,14 @@ export declare class AutomatedOffersApi {
|
|
|
48
49
|
response: http.IncomingMessage;
|
|
49
50
|
body?: any;
|
|
50
51
|
}>;
|
|
52
|
+
automatedOffersControllerBulkupdatematcheddeliverydatesonoffer(id: string, account: string, bulkUpdateMatchedDeliveryDatesDto: BulkUpdateMatchedDeliveryDatesDto, options?: {
|
|
53
|
+
headers: {
|
|
54
|
+
[name: string]: string;
|
|
55
|
+
};
|
|
56
|
+
}): Promise<{
|
|
57
|
+
response: http.IncomingMessage;
|
|
58
|
+
body?: any;
|
|
59
|
+
}>;
|
|
51
60
|
automatedOffersControllerCreate(account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, options?: {
|
|
52
61
|
headers: {
|
|
53
62
|
[name: string]: string;
|
|
@@ -309,11 +309,81 @@ var AutomatedOffersApi = (function () {
|
|
|
309
309
|
});
|
|
310
310
|
});
|
|
311
311
|
};
|
|
312
|
-
AutomatedOffersApi.prototype.
|
|
312
|
+
AutomatedOffersApi.prototype.automatedOffersControllerBulkupdatematcheddeliverydatesonoffer = function (id, account, bulkUpdateMatchedDeliveryDatesDto, options) {
|
|
313
313
|
if (options === void 0) { options = { headers: {} }; }
|
|
314
314
|
return __awaiter(this, void 0, void 0, function () {
|
|
315
315
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
316
316
|
var _this = this;
|
|
317
|
+
return __generator(this, function (_b) {
|
|
318
|
+
localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-dates/bulk-update'
|
|
319
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
320
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
321
|
+
localVarQueryParameters = {};
|
|
322
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
323
|
+
localVarFormParams = {};
|
|
324
|
+
if (id === null || id === undefined) {
|
|
325
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerBulkupdatematcheddeliverydatesonoffer.');
|
|
326
|
+
}
|
|
327
|
+
if (account === null || account === undefined) {
|
|
328
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerBulkupdatematcheddeliverydatesonoffer.');
|
|
329
|
+
}
|
|
330
|
+
if (bulkUpdateMatchedDeliveryDatesDto === null || bulkUpdateMatchedDeliveryDatesDto === undefined) {
|
|
331
|
+
throw new Error('Required parameter bulkUpdateMatchedDeliveryDatesDto was null or undefined when calling automatedOffersControllerBulkupdatematcheddeliverydatesonoffer.');
|
|
332
|
+
}
|
|
333
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
334
|
+
localVarUseFormData = false;
|
|
335
|
+
localVarRequestOptions = {
|
|
336
|
+
method: 'PATCH',
|
|
337
|
+
qs: localVarQueryParameters,
|
|
338
|
+
headers: localVarHeaderParams,
|
|
339
|
+
uri: localVarPath,
|
|
340
|
+
useQuerystring: this._useQuerystring,
|
|
341
|
+
json: true,
|
|
342
|
+
body: models_1.ObjectSerializer.serialize(bulkUpdateMatchedDeliveryDatesDto, "BulkUpdateMatchedDeliveryDatesDto")
|
|
343
|
+
};
|
|
344
|
+
authenticationPromise = Promise.resolve();
|
|
345
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
346
|
+
interceptorPromise = authenticationPromise;
|
|
347
|
+
_loop_4 = function (interceptor) {
|
|
348
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
349
|
+
};
|
|
350
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
351
|
+
interceptor = _a[_i];
|
|
352
|
+
_loop_4(interceptor);
|
|
353
|
+
}
|
|
354
|
+
return [2, interceptorPromise.then(function () {
|
|
355
|
+
if (Object.keys(localVarFormParams).length) {
|
|
356
|
+
if (localVarUseFormData) {
|
|
357
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return new Promise(function (resolve, reject) {
|
|
364
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
365
|
+
if (error) {
|
|
366
|
+
reject(error);
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
370
|
+
resolve({ response: response, body: body });
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
})];
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
AutomatedOffersApi.prototype.automatedOffersControllerCreate = function (account, createAutomatedOfferDto, options) {
|
|
383
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
384
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
385
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
386
|
+
var _this = this;
|
|
317
387
|
return __generator(this, function (_b) {
|
|
318
388
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
319
389
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
@@ -340,12 +410,12 @@ var AutomatedOffersApi = (function () {
|
|
|
340
410
|
authenticationPromise = Promise.resolve();
|
|
341
411
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
342
412
|
interceptorPromise = authenticationPromise;
|
|
343
|
-
|
|
413
|
+
_loop_5 = function (interceptor) {
|
|
344
414
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
345
415
|
};
|
|
346
416
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
347
417
|
interceptor = _a[_i];
|
|
348
|
-
|
|
418
|
+
_loop_5(interceptor);
|
|
349
419
|
}
|
|
350
420
|
return [2, interceptorPromise.then(function () {
|
|
351
421
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -378,7 +448,7 @@ var AutomatedOffersApi = (function () {
|
|
|
378
448
|
AutomatedOffersApi.prototype.automatedOffersControllerCreatebulk = function (account, createAutomatedOfferDto, options) {
|
|
379
449
|
if (options === void 0) { options = { headers: {} }; }
|
|
380
450
|
return __awaiter(this, void 0, void 0, function () {
|
|
381
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
451
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
382
452
|
var _this = this;
|
|
383
453
|
return __generator(this, function (_b) {
|
|
384
454
|
localVarPath = this.basePath + '/automated-offers/{account}/bulk'
|
|
@@ -406,12 +476,12 @@ var AutomatedOffersApi = (function () {
|
|
|
406
476
|
authenticationPromise = Promise.resolve();
|
|
407
477
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
408
478
|
interceptorPromise = authenticationPromise;
|
|
409
|
-
|
|
479
|
+
_loop_6 = function (interceptor) {
|
|
410
480
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
411
481
|
};
|
|
412
482
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
413
483
|
interceptor = _a[_i];
|
|
414
|
-
|
|
484
|
+
_loop_6(interceptor);
|
|
415
485
|
}
|
|
416
486
|
return [2, interceptorPromise.then(function () {
|
|
417
487
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -444,7 +514,7 @@ var AutomatedOffersApi = (function () {
|
|
|
444
514
|
AutomatedOffersApi.prototype.automatedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
445
515
|
if (options === void 0) { options = { headers: {} }; }
|
|
446
516
|
return __awaiter(this, void 0, void 0, function () {
|
|
447
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
517
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
448
518
|
var _this = this;
|
|
449
519
|
return __generator(this, function (_b) {
|
|
450
520
|
localVarPath = this.basePath + '/automated-offers/{account}/search'
|
|
@@ -481,12 +551,12 @@ var AutomatedOffersApi = (function () {
|
|
|
481
551
|
authenticationPromise = Promise.resolve();
|
|
482
552
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
483
553
|
interceptorPromise = authenticationPromise;
|
|
484
|
-
|
|
554
|
+
_loop_7 = function (interceptor) {
|
|
485
555
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
486
556
|
};
|
|
487
557
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
488
558
|
interceptor = _a[_i];
|
|
489
|
-
|
|
559
|
+
_loop_7(interceptor);
|
|
490
560
|
}
|
|
491
561
|
return [2, interceptorPromise.then(function () {
|
|
492
562
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -519,7 +589,7 @@ var AutomatedOffersApi = (function () {
|
|
|
519
589
|
AutomatedOffersApi.prototype.automatedOffersControllerFindall = function (account, skip, limit, sort, fields, options) {
|
|
520
590
|
if (options === void 0) { options = { headers: {} }; }
|
|
521
591
|
return __awaiter(this, void 0, void 0, function () {
|
|
522
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
592
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
523
593
|
var _this = this;
|
|
524
594
|
return __generator(this, function (_b) {
|
|
525
595
|
localVarPath = this.basePath + '/automated-offers/{account}'
|
|
@@ -555,12 +625,12 @@ var AutomatedOffersApi = (function () {
|
|
|
555
625
|
authenticationPromise = Promise.resolve();
|
|
556
626
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
557
627
|
interceptorPromise = authenticationPromise;
|
|
558
|
-
|
|
628
|
+
_loop_8 = function (interceptor) {
|
|
559
629
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
560
630
|
};
|
|
561
631
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
562
632
|
interceptor = _a[_i];
|
|
563
|
-
|
|
633
|
+
_loop_8(interceptor);
|
|
564
634
|
}
|
|
565
635
|
return [2, interceptorPromise.then(function () {
|
|
566
636
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -593,7 +663,7 @@ var AutomatedOffersApi = (function () {
|
|
|
593
663
|
AutomatedOffersApi.prototype.automatedOffersControllerFindone = function (id, account, fields, options) {
|
|
594
664
|
if (options === void 0) { options = { headers: {} }; }
|
|
595
665
|
return __awaiter(this, void 0, void 0, function () {
|
|
596
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
666
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
597
667
|
var _this = this;
|
|
598
668
|
return __generator(this, function (_b) {
|
|
599
669
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -624,12 +694,12 @@ var AutomatedOffersApi = (function () {
|
|
|
624
694
|
authenticationPromise = Promise.resolve();
|
|
625
695
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
626
696
|
interceptorPromise = authenticationPromise;
|
|
627
|
-
|
|
697
|
+
_loop_9 = function (interceptor) {
|
|
628
698
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
629
699
|
};
|
|
630
700
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
631
701
|
interceptor = _a[_i];
|
|
632
|
-
|
|
702
|
+
_loop_9(interceptor);
|
|
633
703
|
}
|
|
634
704
|
return [2, interceptorPromise.then(function () {
|
|
635
705
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -662,7 +732,7 @@ var AutomatedOffersApi = (function () {
|
|
|
662
732
|
AutomatedOffersApi.prototype.automatedOffersControllerGetbids = function (account, skip, limit, sort, fields, body, options) {
|
|
663
733
|
if (options === void 0) { options = { headers: {} }; }
|
|
664
734
|
return __awaiter(this, void 0, void 0, function () {
|
|
665
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
735
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
666
736
|
var _this = this;
|
|
667
737
|
return __generator(this, function (_b) {
|
|
668
738
|
localVarPath = this.basePath + '/automated-offers/{account}/bids'
|
|
@@ -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.automatedOffersControllerRemove = function (id, account, 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}/{id}'
|
|
@@ -765,12 +835,12 @@ var AutomatedOffersApi = (function () {
|
|
|
765
835
|
authenticationPromise = Promise.resolve();
|
|
766
836
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
767
837
|
interceptorPromise = authenticationPromise;
|
|
768
|
-
|
|
838
|
+
_loop_11 = function (interceptor) {
|
|
769
839
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
770
840
|
};
|
|
771
841
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
772
842
|
interceptor = _a[_i];
|
|
773
|
-
|
|
843
|
+
_loop_11(interceptor);
|
|
774
844
|
}
|
|
775
845
|
return [2, interceptorPromise.then(function () {
|
|
776
846
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -803,7 +873,7 @@ var AutomatedOffersApi = (function () {
|
|
|
803
873
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdate = function (id, account, body, options) {
|
|
804
874
|
if (options === void 0) { options = { headers: {} }; }
|
|
805
875
|
return __awaiter(this, void 0, void 0, function () {
|
|
806
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
876
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
807
877
|
var _this = this;
|
|
808
878
|
return __generator(this, function (_b) {
|
|
809
879
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}'
|
|
@@ -835,12 +905,12 @@ var AutomatedOffersApi = (function () {
|
|
|
835
905
|
authenticationPromise = Promise.resolve();
|
|
836
906
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
837
907
|
interceptorPromise = authenticationPromise;
|
|
838
|
-
|
|
908
|
+
_loop_12 = function (interceptor) {
|
|
839
909
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
840
910
|
};
|
|
841
911
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
842
912
|
interceptor = _a[_i];
|
|
843
|
-
|
|
913
|
+
_loop_12(interceptor);
|
|
844
914
|
}
|
|
845
915
|
return [2, interceptorPromise.then(function () {
|
|
846
916
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -873,7 +943,7 @@ var AutomatedOffersApi = (function () {
|
|
|
873
943
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdatematcheddeliverydateonoffer = function (id, account, updateMatchedDeliveryDateDto, options) {
|
|
874
944
|
if (options === void 0) { options = { headers: {} }; }
|
|
875
945
|
return __awaiter(this, void 0, void 0, function () {
|
|
876
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
946
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
877
947
|
var _this = this;
|
|
878
948
|
return __generator(this, function (_b) {
|
|
879
949
|
localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/update'
|
|
@@ -905,12 +975,12 @@ var AutomatedOffersApi = (function () {
|
|
|
905
975
|
authenticationPromise = Promise.resolve();
|
|
906
976
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
907
977
|
interceptorPromise = authenticationPromise;
|
|
908
|
-
|
|
978
|
+
_loop_13 = function (interceptor) {
|
|
909
979
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
910
980
|
};
|
|
911
981
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
912
982
|
interceptor = _a[_i];
|
|
913
|
-
|
|
983
|
+
_loop_13(interceptor);
|
|
914
984
|
}
|
|
915
985
|
return [2, interceptorPromise.then(function () {
|
|
916
986
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -943,7 +1013,7 @@ var AutomatedOffersApi = (function () {
|
|
|
943
1013
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdaterelistingstatus = function (automatedOfferId, id, account, body, options) {
|
|
944
1014
|
if (options === void 0) { options = { headers: {} }; }
|
|
945
1015
|
return __awaiter(this, void 0, void 0, function () {
|
|
946
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1016
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
947
1017
|
var _this = this;
|
|
948
1018
|
return __generator(this, function (_b) {
|
|
949
1019
|
localVarPath = this.basePath + '/automated-offers/{account}/{automatedOfferId}/relistings/{id}/status'
|
|
@@ -979,12 +1049,12 @@ var AutomatedOffersApi = (function () {
|
|
|
979
1049
|
authenticationPromise = Promise.resolve();
|
|
980
1050
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
981
1051
|
interceptorPromise = authenticationPromise;
|
|
982
|
-
|
|
1052
|
+
_loop_14 = function (interceptor) {
|
|
983
1053
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
984
1054
|
};
|
|
985
1055
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
986
1056
|
interceptor = _a[_i];
|
|
987
|
-
|
|
1057
|
+
_loop_14(interceptor);
|
|
988
1058
|
}
|
|
989
1059
|
return [2, interceptorPromise.then(function () {
|
|
990
1060
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1017,7 +1087,7 @@ var AutomatedOffersApi = (function () {
|
|
|
1017
1087
|
AutomatedOffersApi.prototype.automatedOffersControllerUpdatestatus = function (account, body, options) {
|
|
1018
1088
|
if (options === void 0) { options = { headers: {} }; }
|
|
1019
1089
|
return __awaiter(this, void 0, void 0, function () {
|
|
1020
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1090
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
1021
1091
|
var _this = this;
|
|
1022
1092
|
return __generator(this, function (_b) {
|
|
1023
1093
|
localVarPath = this.basePath + '/automated-offers/{account}/status'
|
|
@@ -1045,12 +1115,12 @@ var AutomatedOffersApi = (function () {
|
|
|
1045
1115
|
authenticationPromise = Promise.resolve();
|
|
1046
1116
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1047
1117
|
interceptorPromise = authenticationPromise;
|
|
1048
|
-
|
|
1118
|
+
_loop_15 = function (interceptor) {
|
|
1049
1119
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1050
1120
|
};
|
|
1051
1121
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1052
1122
|
interceptor = _a[_i];
|
|
1053
|
-
|
|
1123
|
+
_loop_15(interceptor);
|
|
1054
1124
|
}
|
|
1055
1125
|
return [2, interceptorPromise.then(function () {
|
|
1056
1126
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1083,7 +1153,7 @@ var AutomatedOffersApi = (function () {
|
|
|
1083
1153
|
AutomatedOffersApi.prototype.automatedOffersControllerViews = function (account, body, options) {
|
|
1084
1154
|
if (options === void 0) { options = { headers: {} }; }
|
|
1085
1155
|
return __awaiter(this, void 0, void 0, function () {
|
|
1086
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1156
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1087
1157
|
var _this = this;
|
|
1088
1158
|
return __generator(this, function (_b) {
|
|
1089
1159
|
localVarPath = this.basePath + '/automated-offers/{account}/views'
|
|
@@ -1108,12 +1178,12 @@ var AutomatedOffersApi = (function () {
|
|
|
1108
1178
|
authenticationPromise = Promise.resolve();
|
|
1109
1179
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1110
1180
|
interceptorPromise = authenticationPromise;
|
|
1111
|
-
|
|
1181
|
+
_loop_16 = function (interceptor) {
|
|
1112
1182
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1113
1183
|
};
|
|
1114
1184
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1115
1185
|
interceptor = _a[_i];
|
|
1116
|
-
|
|
1186
|
+
_loop_16(interceptor);
|
|
1117
1187
|
}
|
|
1118
1188
|
return [2, interceptorPromise.then(function () {
|
|
1119
1189
|
if (Object.keys(localVarFormParams).length) {
|