@tradecafe/offer-service-sdk 0.0.51 → 0.0.52
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/matchedOffersApi.ts +69 -0
- package/dist/api/matchedOffersApi.d.ts +9 -0
- package/dist/api/matchedOffersApi.js +117 -51
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -0
- package/dist/model/bulkUpdateDocsCountryDto.js +31 -0
- package/dist/model/bulkUpdateDocsCountryDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +1 -0
- package/dist/model/createAutomatedOfferDto.js +5 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/createOfferDto.d.ts +1 -0
- package/dist/model/createOfferDto.js +5 -0
- package/dist/model/createOfferDto.js.map +1 -1
- package/dist/model/createOfferDtoAttributes.d.ts +2 -0
- package/dist/model/createOfferDtoAttributes.js +10 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -1
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +3 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/offerAttributesDto.d.ts +2 -0
- package/dist/model/offerAttributesDto.js +10 -0
- package/dist/model/offerAttributesDto.js.map +1 -1
- package/model/bulkUpdateDocsCountryDto.ts +52 -0
- package/model/createAutomatedOfferDto.ts +9 -0
- package/model/createOfferDto.ts +9 -0
- package/model/createOfferDtoAttributes.ts +18 -0
- package/model/models.ts +3 -0
- package/model/offerAttributesDto.ts +18 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ model/bulkAddRelistingDto.ts
|
|
|
15
15
|
model/bulkAddTertiaryCostsDto.ts
|
|
16
16
|
model/bulkChangeFreightRatesDto.ts
|
|
17
17
|
model/bulkUpdateDeliveryDatesDto.ts
|
|
18
|
+
model/bulkUpdateDocsCountryDto.ts
|
|
18
19
|
model/bulkUpdateMatchedDeliveryDatesDto.ts
|
|
19
20
|
model/costAmountDto.ts
|
|
20
21
|
model/costAttributesDto.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import http from 'http';
|
|
|
18
18
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
19
19
|
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
20
20
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
21
|
+
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
21
22
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
22
23
|
import { PinActionDto } from '../model/pinActionDto';
|
|
23
24
|
|
|
@@ -458,6 +459,74 @@ export class MatchedOffersApi {
|
|
|
458
459
|
});
|
|
459
460
|
});
|
|
460
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @summary Updates docs_country on multiple matched offers in a single operation
|
|
465
|
+
* @param account
|
|
466
|
+
* @param bulkUpdateDocsCountryDto
|
|
467
|
+
*/
|
|
468
|
+
public async matchedOffersControllerBulkupdatedocscountry (account: string, bulkUpdateDocsCountryDto: BulkUpdateDocsCountryDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
469
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
470
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
471
|
+
let localVarQueryParameters: any = {};
|
|
472
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
473
|
+
let localVarFormParams: any = {};
|
|
474
|
+
|
|
475
|
+
// verify required parameter 'account' is not null or undefined
|
|
476
|
+
if (account === null || account === undefined) {
|
|
477
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// verify required parameter 'bulkUpdateDocsCountryDto' is not null or undefined
|
|
481
|
+
if (bulkUpdateDocsCountryDto === null || bulkUpdateDocsCountryDto === undefined) {
|
|
482
|
+
throw new Error('Required parameter bulkUpdateDocsCountryDto was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
486
|
+
|
|
487
|
+
let localVarUseFormData = false;
|
|
488
|
+
|
|
489
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
490
|
+
method: 'PUT',
|
|
491
|
+
qs: localVarQueryParameters,
|
|
492
|
+
headers: localVarHeaderParams,
|
|
493
|
+
uri: localVarPath,
|
|
494
|
+
useQuerystring: this._useQuerystring,
|
|
495
|
+
json: true,
|
|
496
|
+
body: ObjectSerializer.serialize(bulkUpdateDocsCountryDto, "BulkUpdateDocsCountryDto")
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
let authenticationPromise = Promise.resolve();
|
|
500
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
501
|
+
|
|
502
|
+
let interceptorPromise = authenticationPromise;
|
|
503
|
+
for (const interceptor of this.interceptors) {
|
|
504
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return interceptorPromise.then(() => {
|
|
508
|
+
if (Object.keys(localVarFormParams).length) {
|
|
509
|
+
if (localVarUseFormData) {
|
|
510
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
511
|
+
} else {
|
|
512
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
516
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
517
|
+
if (error) {
|
|
518
|
+
reject(error);
|
|
519
|
+
} else {
|
|
520
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
521
|
+
resolve({ response: response, body: body });
|
|
522
|
+
} else {
|
|
523
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
});
|
|
529
|
+
}
|
|
461
530
|
/**
|
|
462
531
|
*
|
|
463
532
|
* @summary Counts supplier offers by their status, providing a detailed breakdown.
|
|
@@ -3,6 +3,7 @@ import http from 'http';
|
|
|
3
3
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
4
4
|
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
5
5
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
6
|
+
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
6
7
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
7
8
|
import { PinActionDto } from '../model/pinActionDto';
|
|
8
9
|
import { Authentication, Interceptor } from '../model/models';
|
|
@@ -65,6 +66,14 @@ export declare class MatchedOffersApi {
|
|
|
65
66
|
response: http.IncomingMessage;
|
|
66
67
|
body?: any;
|
|
67
68
|
}>;
|
|
69
|
+
matchedOffersControllerBulkupdatedocscountry(account: string, bulkUpdateDocsCountryDto: BulkUpdateDocsCountryDto, options?: {
|
|
70
|
+
headers: {
|
|
71
|
+
[name: string]: string;
|
|
72
|
+
};
|
|
73
|
+
}): Promise<{
|
|
74
|
+
response: http.IncomingMessage;
|
|
75
|
+
body?: any;
|
|
76
|
+
}>;
|
|
68
77
|
matchedOffersControllerCountsbystatus(account: string, options?: {
|
|
69
78
|
headers: {
|
|
70
79
|
[name: string]: string;
|
|
@@ -449,11 +449,77 @@ var MatchedOffersApi = (function () {
|
|
|
449
449
|
});
|
|
450
450
|
});
|
|
451
451
|
};
|
|
452
|
-
MatchedOffersApi.prototype.
|
|
452
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedocscountry = function (account, bulkUpdateDocsCountryDto, options) {
|
|
453
453
|
if (options === void 0) { options = { headers: {} }; }
|
|
454
454
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
455
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
456
456
|
var _this = this;
|
|
457
|
+
return __generator(this, function (_b) {
|
|
458
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
459
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
460
|
+
localVarQueryParameters = {};
|
|
461
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
462
|
+
localVarFormParams = {};
|
|
463
|
+
if (account === null || account === undefined) {
|
|
464
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
465
|
+
}
|
|
466
|
+
if (bulkUpdateDocsCountryDto === null || bulkUpdateDocsCountryDto === undefined) {
|
|
467
|
+
throw new Error('Required parameter bulkUpdateDocsCountryDto was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
468
|
+
}
|
|
469
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
470
|
+
localVarUseFormData = false;
|
|
471
|
+
localVarRequestOptions = {
|
|
472
|
+
method: 'PUT',
|
|
473
|
+
qs: localVarQueryParameters,
|
|
474
|
+
headers: localVarHeaderParams,
|
|
475
|
+
uri: localVarPath,
|
|
476
|
+
useQuerystring: this._useQuerystring,
|
|
477
|
+
json: true,
|
|
478
|
+
body: models_1.ObjectSerializer.serialize(bulkUpdateDocsCountryDto, "BulkUpdateDocsCountryDto")
|
|
479
|
+
};
|
|
480
|
+
authenticationPromise = Promise.resolve();
|
|
481
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
482
|
+
interceptorPromise = authenticationPromise;
|
|
483
|
+
_loop_6 = function (interceptor) {
|
|
484
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
485
|
+
};
|
|
486
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
487
|
+
interceptor = _a[_i];
|
|
488
|
+
_loop_6(interceptor);
|
|
489
|
+
}
|
|
490
|
+
return [2, interceptorPromise.then(function () {
|
|
491
|
+
if (Object.keys(localVarFormParams).length) {
|
|
492
|
+
if (localVarUseFormData) {
|
|
493
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return new Promise(function (resolve, reject) {
|
|
500
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
501
|
+
if (error) {
|
|
502
|
+
reject(error);
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
506
|
+
resolve({ response: response, body: body });
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
})];
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
};
|
|
518
|
+
MatchedOffersApi.prototype.matchedOffersControllerCountsbystatus = function (account, options) {
|
|
519
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
520
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
522
|
+
var _this = this;
|
|
457
523
|
return __generator(this, function (_b) {
|
|
458
524
|
localVarPath = this.basePath + '/matched-offers/{account}/counts-by-status'
|
|
459
525
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
@@ -476,12 +542,12 @@ var MatchedOffersApi = (function () {
|
|
|
476
542
|
authenticationPromise = Promise.resolve();
|
|
477
543
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
478
544
|
interceptorPromise = authenticationPromise;
|
|
479
|
-
|
|
545
|
+
_loop_7 = function (interceptor) {
|
|
480
546
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
481
547
|
};
|
|
482
548
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
483
549
|
interceptor = _a[_i];
|
|
484
|
-
|
|
550
|
+
_loop_7(interceptor);
|
|
485
551
|
}
|
|
486
552
|
return [2, interceptorPromise.then(function () {
|
|
487
553
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -514,7 +580,7 @@ var MatchedOffersApi = (function () {
|
|
|
514
580
|
MatchedOffersApi.prototype.matchedOffersControllerCreate = function (account, createMatchedOfferDto, options) {
|
|
515
581
|
if (options === void 0) { options = { headers: {} }; }
|
|
516
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
517
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
583
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
518
584
|
var _this = this;
|
|
519
585
|
return __generator(this, function (_b) {
|
|
520
586
|
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
@@ -542,12 +608,12 @@ var MatchedOffersApi = (function () {
|
|
|
542
608
|
authenticationPromise = Promise.resolve();
|
|
543
609
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
544
610
|
interceptorPromise = authenticationPromise;
|
|
545
|
-
|
|
611
|
+
_loop_8 = function (interceptor) {
|
|
546
612
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
547
613
|
};
|
|
548
614
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
549
615
|
interceptor = _a[_i];
|
|
550
|
-
|
|
616
|
+
_loop_8(interceptor);
|
|
551
617
|
}
|
|
552
618
|
return [2, interceptorPromise.then(function () {
|
|
553
619
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -580,7 +646,7 @@ var MatchedOffersApi = (function () {
|
|
|
580
646
|
MatchedOffersApi.prototype.matchedOffersControllerDeletebid = function (id, userId, account, options) {
|
|
581
647
|
if (options === void 0) { options = { headers: {} }; }
|
|
582
648
|
return __awaiter(this, void 0, void 0, function () {
|
|
583
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
649
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
584
650
|
var _this = this;
|
|
585
651
|
return __generator(this, function (_b) {
|
|
586
652
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
@@ -612,12 +678,12 @@ var MatchedOffersApi = (function () {
|
|
|
612
678
|
authenticationPromise = Promise.resolve();
|
|
613
679
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
614
680
|
interceptorPromise = authenticationPromise;
|
|
615
|
-
|
|
681
|
+
_loop_9 = function (interceptor) {
|
|
616
682
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
617
683
|
};
|
|
618
684
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
619
685
|
interceptor = _a[_i];
|
|
620
|
-
|
|
686
|
+
_loop_9(interceptor);
|
|
621
687
|
}
|
|
622
688
|
return [2, interceptorPromise.then(function () {
|
|
623
689
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -650,7 +716,7 @@ var MatchedOffersApi = (function () {
|
|
|
650
716
|
MatchedOffersApi.prototype.matchedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
651
717
|
if (options === void 0) { options = { headers: {} }; }
|
|
652
718
|
return __awaiter(this, void 0, void 0, function () {
|
|
653
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
719
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
654
720
|
var _this = this;
|
|
655
721
|
return __generator(this, function (_b) {
|
|
656
722
|
localVarPath = this.basePath + '/matched-offers/{account}/search'
|
|
@@ -687,12 +753,12 @@ var MatchedOffersApi = (function () {
|
|
|
687
753
|
authenticationPromise = Promise.resolve();
|
|
688
754
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
689
755
|
interceptorPromise = authenticationPromise;
|
|
690
|
-
|
|
756
|
+
_loop_10 = function (interceptor) {
|
|
691
757
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
692
758
|
};
|
|
693
759
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
694
760
|
interceptor = _a[_i];
|
|
695
|
-
|
|
761
|
+
_loop_10(interceptor);
|
|
696
762
|
}
|
|
697
763
|
return [2, interceptorPromise.then(function () {
|
|
698
764
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -725,7 +791,7 @@ var MatchedOffersApi = (function () {
|
|
|
725
791
|
MatchedOffersApi.prototype.matchedOffersControllerFindall = function (account, createMatchedOfferDto, skip, limit, sort, fields, options) {
|
|
726
792
|
if (options === void 0) { options = { headers: {} }; }
|
|
727
793
|
return __awaiter(this, void 0, void 0, function () {
|
|
728
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
794
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
729
795
|
var _this = this;
|
|
730
796
|
return __generator(this, function (_b) {
|
|
731
797
|
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
@@ -765,12 +831,12 @@ var MatchedOffersApi = (function () {
|
|
|
765
831
|
authenticationPromise = Promise.resolve();
|
|
766
832
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
767
833
|
interceptorPromise = authenticationPromise;
|
|
768
|
-
|
|
834
|
+
_loop_11 = function (interceptor) {
|
|
769
835
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
770
836
|
};
|
|
771
837
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
772
838
|
interceptor = _a[_i];
|
|
773
|
-
|
|
839
|
+
_loop_11(interceptor);
|
|
774
840
|
}
|
|
775
841
|
return [2, interceptorPromise.then(function () {
|
|
776
842
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -803,7 +869,7 @@ var MatchedOffersApi = (function () {
|
|
|
803
869
|
MatchedOffersApi.prototype.matchedOffersControllerFindcountries = function (account, options) {
|
|
804
870
|
if (options === void 0) { options = { headers: {} }; }
|
|
805
871
|
return __awaiter(this, void 0, void 0, function () {
|
|
806
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
872
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
807
873
|
var _this = this;
|
|
808
874
|
return __generator(this, function (_b) {
|
|
809
875
|
localVarPath = this.basePath + '/matched-offers/{account}/countries'
|
|
@@ -827,12 +893,12 @@ var MatchedOffersApi = (function () {
|
|
|
827
893
|
authenticationPromise = Promise.resolve();
|
|
828
894
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
829
895
|
interceptorPromise = authenticationPromise;
|
|
830
|
-
|
|
896
|
+
_loop_12 = function (interceptor) {
|
|
831
897
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
832
898
|
};
|
|
833
899
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
834
900
|
interceptor = _a[_i];
|
|
835
|
-
|
|
901
|
+
_loop_12(interceptor);
|
|
836
902
|
}
|
|
837
903
|
return [2, interceptorPromise.then(function () {
|
|
838
904
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -865,7 +931,7 @@ var MatchedOffersApi = (function () {
|
|
|
865
931
|
MatchedOffersApi.prototype.matchedOffersControllerFindone = function (id, account, fields, options) {
|
|
866
932
|
if (options === void 0) { options = { headers: {} }; }
|
|
867
933
|
return __awaiter(this, void 0, void 0, function () {
|
|
868
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
934
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
869
935
|
var _this = this;
|
|
870
936
|
return __generator(this, function (_b) {
|
|
871
937
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
@@ -896,12 +962,12 @@ var MatchedOffersApi = (function () {
|
|
|
896
962
|
authenticationPromise = Promise.resolve();
|
|
897
963
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
898
964
|
interceptorPromise = authenticationPromise;
|
|
899
|
-
|
|
965
|
+
_loop_13 = function (interceptor) {
|
|
900
966
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
901
967
|
};
|
|
902
968
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
903
969
|
interceptor = _a[_i];
|
|
904
|
-
|
|
970
|
+
_loop_13(interceptor);
|
|
905
971
|
}
|
|
906
972
|
return [2, interceptorPromise.then(function () {
|
|
907
973
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -934,7 +1000,7 @@ var MatchedOffersApi = (function () {
|
|
|
934
1000
|
MatchedOffersApi.prototype.matchedOffersControllerGenerateoffernumber = function (id, account, options) {
|
|
935
1001
|
if (options === void 0) { options = { headers: {} }; }
|
|
936
1002
|
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1003
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
938
1004
|
var _this = this;
|
|
939
1005
|
return __generator(this, function (_b) {
|
|
940
1006
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/generate/number'
|
|
@@ -962,12 +1028,12 @@ var MatchedOffersApi = (function () {
|
|
|
962
1028
|
authenticationPromise = Promise.resolve();
|
|
963
1029
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
964
1030
|
interceptorPromise = authenticationPromise;
|
|
965
|
-
|
|
1031
|
+
_loop_14 = function (interceptor) {
|
|
966
1032
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
967
1033
|
};
|
|
968
1034
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
969
1035
|
interceptor = _a[_i];
|
|
970
|
-
|
|
1036
|
+
_loop_14(interceptor);
|
|
971
1037
|
}
|
|
972
1038
|
return [2, interceptorPromise.then(function () {
|
|
973
1039
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1000,7 +1066,7 @@ var MatchedOffersApi = (function () {
|
|
|
1000
1066
|
MatchedOffersApi.prototype.matchedOffersControllerLogview = function (id, account, body, options) {
|
|
1001
1067
|
if (options === void 0) { options = { headers: {} }; }
|
|
1002
1068
|
return __awaiter(this, void 0, void 0, function () {
|
|
1003
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1069
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
1004
1070
|
var _this = this;
|
|
1005
1071
|
return __generator(this, function (_b) {
|
|
1006
1072
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/view'
|
|
@@ -1032,12 +1098,12 @@ var MatchedOffersApi = (function () {
|
|
|
1032
1098
|
authenticationPromise = Promise.resolve();
|
|
1033
1099
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1034
1100
|
interceptorPromise = authenticationPromise;
|
|
1035
|
-
|
|
1101
|
+
_loop_15 = function (interceptor) {
|
|
1036
1102
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1037
1103
|
};
|
|
1038
1104
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1039
1105
|
interceptor = _a[_i];
|
|
1040
|
-
|
|
1106
|
+
_loop_15(interceptor);
|
|
1041
1107
|
}
|
|
1042
1108
|
return [2, interceptorPromise.then(function () {
|
|
1043
1109
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1070,7 +1136,7 @@ var MatchedOffersApi = (function () {
|
|
|
1070
1136
|
MatchedOffersApi.prototype.matchedOffersControllerRemove = function (id, account, options) {
|
|
1071
1137
|
if (options === void 0) { options = { headers: {} }; }
|
|
1072
1138
|
return __awaiter(this, void 0, void 0, function () {
|
|
1073
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1139
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1074
1140
|
var _this = this;
|
|
1075
1141
|
return __generator(this, function (_b) {
|
|
1076
1142
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
@@ -1098,12 +1164,12 @@ var MatchedOffersApi = (function () {
|
|
|
1098
1164
|
authenticationPromise = Promise.resolve();
|
|
1099
1165
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1100
1166
|
interceptorPromise = authenticationPromise;
|
|
1101
|
-
|
|
1167
|
+
_loop_16 = function (interceptor) {
|
|
1102
1168
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1103
1169
|
};
|
|
1104
1170
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1105
1171
|
interceptor = _a[_i];
|
|
1106
|
-
|
|
1172
|
+
_loop_16(interceptor);
|
|
1107
1173
|
}
|
|
1108
1174
|
return [2, interceptorPromise.then(function () {
|
|
1109
1175
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1136,7 +1202,7 @@ var MatchedOffersApi = (function () {
|
|
|
1136
1202
|
MatchedOffersApi.prototype.matchedOffersControllerRemovepin = function (id, account, pinActionDto, options) {
|
|
1137
1203
|
if (options === void 0) { options = { headers: {} }; }
|
|
1138
1204
|
return __awaiter(this, void 0, void 0, function () {
|
|
1139
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1205
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1140
1206
|
var _this = this;
|
|
1141
1207
|
return __generator(this, function (_b) {
|
|
1142
1208
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/unpin'
|
|
@@ -1168,12 +1234,12 @@ var MatchedOffersApi = (function () {
|
|
|
1168
1234
|
authenticationPromise = Promise.resolve();
|
|
1169
1235
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1170
1236
|
interceptorPromise = authenticationPromise;
|
|
1171
|
-
|
|
1237
|
+
_loop_17 = function (interceptor) {
|
|
1172
1238
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1173
1239
|
};
|
|
1174
1240
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1175
1241
|
interceptor = _a[_i];
|
|
1176
|
-
|
|
1242
|
+
_loop_17(interceptor);
|
|
1177
1243
|
}
|
|
1178
1244
|
return [2, interceptorPromise.then(function () {
|
|
1179
1245
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1206,7 +1272,7 @@ var MatchedOffersApi = (function () {
|
|
|
1206
1272
|
MatchedOffersApi.prototype.matchedOffersControllerReopen = function (id, account, options) {
|
|
1207
1273
|
if (options === void 0) { options = { headers: {} }; }
|
|
1208
1274
|
return __awaiter(this, void 0, void 0, function () {
|
|
1209
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1275
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1210
1276
|
var _this = this;
|
|
1211
1277
|
return __generator(this, function (_b) {
|
|
1212
1278
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/reopen'
|
|
@@ -1234,12 +1300,12 @@ var MatchedOffersApi = (function () {
|
|
|
1234
1300
|
authenticationPromise = Promise.resolve();
|
|
1235
1301
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1236
1302
|
interceptorPromise = authenticationPromise;
|
|
1237
|
-
|
|
1303
|
+
_loop_18 = function (interceptor) {
|
|
1238
1304
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1239
1305
|
};
|
|
1240
1306
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1241
1307
|
interceptor = _a[_i];
|
|
1242
|
-
|
|
1308
|
+
_loop_18(interceptor);
|
|
1243
1309
|
}
|
|
1244
1310
|
return [2, interceptorPromise.then(function () {
|
|
1245
1311
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1272,7 +1338,7 @@ var MatchedOffersApi = (function () {
|
|
|
1272
1338
|
MatchedOffersApi.prototype.matchedOffersControllerSetconfirmindex = function (id, account, body, options) {
|
|
1273
1339
|
if (options === void 0) { options = { headers: {} }; }
|
|
1274
1340
|
return __awaiter(this, void 0, void 0, function () {
|
|
1275
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1341
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1276
1342
|
var _this = this;
|
|
1277
1343
|
return __generator(this, function (_b) {
|
|
1278
1344
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}/confirm/index'
|
|
@@ -1304,12 +1370,12 @@ var MatchedOffersApi = (function () {
|
|
|
1304
1370
|
authenticationPromise = Promise.resolve();
|
|
1305
1371
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1306
1372
|
interceptorPromise = authenticationPromise;
|
|
1307
|
-
|
|
1373
|
+
_loop_19 = function (interceptor) {
|
|
1308
1374
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1309
1375
|
};
|
|
1310
1376
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1311
1377
|
interceptor = _a[_i];
|
|
1312
|
-
|
|
1378
|
+
_loop_19(interceptor);
|
|
1313
1379
|
}
|
|
1314
1380
|
return [2, interceptorPromise.then(function () {
|
|
1315
1381
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1342,7 +1408,7 @@ var MatchedOffersApi = (function () {
|
|
|
1342
1408
|
MatchedOffersApi.prototype.matchedOffersControllerTotal = function (account, body, options) {
|
|
1343
1409
|
if (options === void 0) { options = { headers: {} }; }
|
|
1344
1410
|
return __awaiter(this, void 0, void 0, function () {
|
|
1345
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1411
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1346
1412
|
var _this = this;
|
|
1347
1413
|
return __generator(this, function (_b) {
|
|
1348
1414
|
localVarPath = this.basePath + '/matched-offers/{account}/total'
|
|
@@ -1370,12 +1436,12 @@ var MatchedOffersApi = (function () {
|
|
|
1370
1436
|
authenticationPromise = Promise.resolve();
|
|
1371
1437
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1372
1438
|
interceptorPromise = authenticationPromise;
|
|
1373
|
-
|
|
1439
|
+
_loop_20 = function (interceptor) {
|
|
1374
1440
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1375
1441
|
};
|
|
1376
1442
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1377
1443
|
interceptor = _a[_i];
|
|
1378
|
-
|
|
1444
|
+
_loop_20(interceptor);
|
|
1379
1445
|
}
|
|
1380
1446
|
return [2, interceptorPromise.then(function () {
|
|
1381
1447
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1408,7 +1474,7 @@ var MatchedOffersApi = (function () {
|
|
|
1408
1474
|
MatchedOffersApi.prototype.matchedOffersControllerUpdate = function (id, account, body, options) {
|
|
1409
1475
|
if (options === void 0) { options = { headers: {} }; }
|
|
1410
1476
|
return __awaiter(this, void 0, void 0, function () {
|
|
1411
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1477
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1412
1478
|
var _this = this;
|
|
1413
1479
|
return __generator(this, function (_b) {
|
|
1414
1480
|
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
@@ -1440,12 +1506,12 @@ var MatchedOffersApi = (function () {
|
|
|
1440
1506
|
authenticationPromise = Promise.resolve();
|
|
1441
1507
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1442
1508
|
interceptorPromise = authenticationPromise;
|
|
1443
|
-
|
|
1509
|
+
_loop_21 = function (interceptor) {
|
|
1444
1510
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1445
1511
|
};
|
|
1446
1512
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1447
1513
|
interceptor = _a[_i];
|
|
1448
|
-
|
|
1514
|
+
_loop_21(interceptor);
|
|
1449
1515
|
}
|
|
1450
1516
|
return [2, interceptorPromise.then(function () {
|
|
1451
1517
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1478,7 +1544,7 @@ var MatchedOffersApi = (function () {
|
|
|
1478
1544
|
MatchedOffersApi.prototype.matchedOffersControllerUpdatestatus = function (account, body, options) {
|
|
1479
1545
|
if (options === void 0) { options = { headers: {} }; }
|
|
1480
1546
|
return __awaiter(this, void 0, void 0, function () {
|
|
1481
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1547
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1482
1548
|
var _this = this;
|
|
1483
1549
|
return __generator(this, function (_b) {
|
|
1484
1550
|
localVarPath = this.basePath + '/matched-offers/{account}/status'
|
|
@@ -1506,12 +1572,12 @@ var MatchedOffersApi = (function () {
|
|
|
1506
1572
|
authenticationPromise = Promise.resolve();
|
|
1507
1573
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1508
1574
|
interceptorPromise = authenticationPromise;
|
|
1509
|
-
|
|
1575
|
+
_loop_22 = function (interceptor) {
|
|
1510
1576
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1511
1577
|
};
|
|
1512
1578
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1513
1579
|
interceptor = _a[_i];
|
|
1514
|
-
|
|
1580
|
+
_loop_22(interceptor);
|
|
1515
1581
|
}
|
|
1516
1582
|
return [2, interceptorPromise.then(function () {
|
|
1517
1583
|
if (Object.keys(localVarFormParams).length) {
|
|
@@ -1544,7 +1610,7 @@ var MatchedOffersApi = (function () {
|
|
|
1544
1610
|
MatchedOffersApi.prototype.matchedOffersControllerValidatestatus = function (account, body, options) {
|
|
1545
1611
|
if (options === void 0) { options = { headers: {} }; }
|
|
1546
1612
|
return __awaiter(this, void 0, void 0, function () {
|
|
1547
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise,
|
|
1613
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
|
|
1548
1614
|
var _this = this;
|
|
1549
1615
|
return __generator(this, function (_b) {
|
|
1550
1616
|
localVarPath = this.basePath + '/matched-offers/{account}/status/validate'
|
|
@@ -1572,12 +1638,12 @@ var MatchedOffersApi = (function () {
|
|
|
1572
1638
|
authenticationPromise = Promise.resolve();
|
|
1573
1639
|
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1574
1640
|
interceptorPromise = authenticationPromise;
|
|
1575
|
-
|
|
1641
|
+
_loop_23 = function (interceptor) {
|
|
1576
1642
|
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1577
1643
|
};
|
|
1578
1644
|
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1579
1645
|
interceptor = _a[_i];
|
|
1580
|
-
|
|
1646
|
+
_loop_23(interceptor);
|
|
1581
1647
|
}
|
|
1582
1648
|
return [2, interceptorPromise.then(function () {
|
|
1583
1649
|
if (Object.keys(localVarFormParams).length) {
|