@tradecafe/offer-service-sdk 0.0.44 → 0.0.46
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 +4 -0
- package/api/automatedOffersApi.ts +158 -13
- package/dist/api/automatedOffersApi.d.ts +19 -1
- package/dist/api/automatedOffersApi.js +177 -41
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -0
- package/dist/model/addMatchedDeliveryDateDto.js +21 -0
- package/dist/model/addMatchedDeliveryDateDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +4 -1
- package/dist/model/createAutomatedOfferDto.js +3 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/createMatchedOfferDto.d.ts +2 -1
- package/dist/model/createMatchedOfferDto.js +1 -1
- package/dist/model/createMatchedOfferDto.js.map +1 -1
- package/dist/model/createMatchedOfferDtoAttributes.d.ts +14 -0
- package/dist/model/createMatchedOfferDtoAttributes.js +21 -0
- package/dist/model/createMatchedOfferDtoAttributes.js.map +1 -0
- package/dist/model/createOfferDtoAttributes.d.ts +1 -0
- package/dist/model/createOfferDtoAttributes.js +5 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -1
- package/dist/model/matchedOfferAttributesDto.d.ts +14 -0
- package/dist/model/matchedOfferAttributesDto.js +21 -0
- package/dist/model/matchedOfferAttributesDto.js.map +1 -0
- package/dist/model/models.d.ts +4 -0
- package/dist/model/models.js +12 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/offerAttributesDto.d.ts +1 -0
- package/dist/model/offerAttributesDto.js +5 -0
- package/dist/model/offerAttributesDto.js.map +1 -1
- package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -0
- package/dist/model/updateMatchedDeliveryDateDto.js +26 -0
- package/dist/model/updateMatchedDeliveryDateDto.js.map +1 -0
- package/model/addMatchedDeliveryDateDto.ts +34 -0
- package/model/createAutomatedOfferDto.ts +4 -1
- package/model/createMatchedOfferDto.ts +3 -5
- package/model/createMatchedOfferDtoAttributes.ts +38 -0
- package/model/createOfferDtoAttributes.ts +9 -0
- package/model/matchedOfferAttributesDto.ts +34 -0
- package/model/models.ts +12 -0
- package/model/offerAttributesDto.ts +9 -0
- package/model/updateMatchedDeliveryDateDto.ts +43 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,9 +9,11 @@ api/matchedOffersApi.ts
|
|
|
9
9
|
api/offersApi.ts
|
|
10
10
|
git_push.sh
|
|
11
11
|
model/addFutureBidDto.ts
|
|
12
|
+
model/addMatchedDeliveryDateDto.ts
|
|
12
13
|
model/bulkAddRelistingDto.ts
|
|
13
14
|
model/createAutomatedOfferDto.ts
|
|
14
15
|
model/createMatchedOfferDto.ts
|
|
16
|
+
model/createMatchedOfferDtoAttributes.ts
|
|
15
17
|
model/createOfferDto.ts
|
|
16
18
|
model/createOfferDtoAttributes.ts
|
|
17
19
|
model/createOfferDtoFormula.ts
|
|
@@ -23,6 +25,7 @@ model/generalAddressDto.ts
|
|
|
23
25
|
model/healthControllerPing200Response.ts
|
|
24
26
|
model/healthControllerPing200ResponseInfoValue.ts
|
|
25
27
|
model/healthControllerPing503Response.ts
|
|
28
|
+
model/matchedOfferAttributesDto.ts
|
|
26
29
|
model/models.ts
|
|
27
30
|
model/offerAttributesDto.ts
|
|
28
31
|
model/offerAttributesDtoEstablishment.ts
|
|
@@ -35,6 +38,7 @@ model/relistingDetailDto.ts
|
|
|
35
38
|
model/relistingDetailDtoRandomConfig.ts
|
|
36
39
|
model/relistingRandomConfigDto.ts
|
|
37
40
|
model/updateFutureBidDto.ts
|
|
41
|
+
model/updateMatchedDeliveryDateDto.ts
|
|
38
42
|
model/userPin.ts
|
|
39
43
|
model/weight.ts
|
|
40
44
|
model/weightDto.ts
|
|
@@ -15,8 +15,10 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { AddMatchedDeliveryDateDto } from '../model/addMatchedDeliveryDateDto';
|
|
18
19
|
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
19
20
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
21
|
+
import { UpdateMatchedDeliveryDateDto } from '../model/updateMatchedDeliveryDateDto';
|
|
20
22
|
|
|
21
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
22
24
|
|
|
@@ -89,7 +91,7 @@ export class AutomatedOffersApi {
|
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
93
|
*
|
|
92
|
-
* @summary Add buyer after
|
|
94
|
+
* @summary Add buyer after creating its MO to the offer
|
|
93
95
|
* @param id
|
|
94
96
|
* @param buyer
|
|
95
97
|
* @param account
|
|
@@ -162,6 +164,81 @@ export class AutomatedOffersApi {
|
|
|
162
164
|
});
|
|
163
165
|
});
|
|
164
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @summary Add delivery date after creating its MO to the offer
|
|
170
|
+
* @param id
|
|
171
|
+
* @param account
|
|
172
|
+
* @param addMatchedDeliveryDateDto
|
|
173
|
+
*/
|
|
174
|
+
public async automatedOffersControllerAddmatcheddeliverydatetooffer (id: string, account: string, addMatchedDeliveryDateDto: AddMatchedDeliveryDateDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
175
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/add'
|
|
176
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
177
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
178
|
+
let localVarQueryParameters: any = {};
|
|
179
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
180
|
+
let localVarFormParams: any = {};
|
|
181
|
+
|
|
182
|
+
// verify required parameter 'id' is not null or undefined
|
|
183
|
+
if (id === null || id === undefined) {
|
|
184
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// verify required parameter 'account' is not null or undefined
|
|
188
|
+
if (account === null || account === undefined) {
|
|
189
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// verify required parameter 'addMatchedDeliveryDateDto' is not null or undefined
|
|
193
|
+
if (addMatchedDeliveryDateDto === null || addMatchedDeliveryDateDto === undefined) {
|
|
194
|
+
throw new Error('Required parameter addMatchedDeliveryDateDto was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
198
|
+
|
|
199
|
+
let localVarUseFormData = false;
|
|
200
|
+
|
|
201
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
202
|
+
method: 'PUT',
|
|
203
|
+
qs: localVarQueryParameters,
|
|
204
|
+
headers: localVarHeaderParams,
|
|
205
|
+
uri: localVarPath,
|
|
206
|
+
useQuerystring: this._useQuerystring,
|
|
207
|
+
json: true,
|
|
208
|
+
body: ObjectSerializer.serialize(addMatchedDeliveryDateDto, "AddMatchedDeliveryDateDto")
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
let authenticationPromise = Promise.resolve();
|
|
212
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
213
|
+
|
|
214
|
+
let interceptorPromise = authenticationPromise;
|
|
215
|
+
for (const interceptor of this.interceptors) {
|
|
216
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
return interceptorPromise.then(() => {
|
|
220
|
+
if (Object.keys(localVarFormParams).length) {
|
|
221
|
+
if (localVarUseFormData) {
|
|
222
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
223
|
+
} else {
|
|
224
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
228
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
229
|
+
if (error) {
|
|
230
|
+
reject(error);
|
|
231
|
+
} else {
|
|
232
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
233
|
+
resolve({ response: response, body: body });
|
|
234
|
+
} else {
|
|
235
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
}
|
|
165
242
|
/**
|
|
166
243
|
*
|
|
167
244
|
* @summary Adds relistings to multiple automated offers in bulk
|
|
@@ -232,7 +309,7 @@ export class AutomatedOffersApi {
|
|
|
232
309
|
}
|
|
233
310
|
/**
|
|
234
311
|
*
|
|
235
|
-
* @summary Creates a new automated
|
|
312
|
+
* @summary Creates a new automated offer
|
|
236
313
|
* @param account
|
|
237
314
|
* @param createAutomatedOfferDto
|
|
238
315
|
*/
|
|
@@ -451,15 +528,14 @@ export class AutomatedOffersApi {
|
|
|
451
528
|
}
|
|
452
529
|
/**
|
|
453
530
|
*
|
|
454
|
-
* @summary Retrieves a list of all automated
|
|
531
|
+
* @summary Retrieves a list of all automated offers
|
|
455
532
|
* @param account
|
|
456
|
-
* @param createAutomatedOfferDto
|
|
457
533
|
* @param skip
|
|
458
534
|
* @param limit
|
|
459
535
|
* @param sort
|
|
460
536
|
* @param fields Comma-separated list of fields to include
|
|
461
537
|
*/
|
|
462
|
-
public async automatedOffersControllerFindall (account: string,
|
|
538
|
+
public async automatedOffersControllerFindall (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
463
539
|
const localVarPath = this.basePath + '/automated-offers/{account}'
|
|
464
540
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
465
541
|
let localVarQueryParameters: any = {};
|
|
@@ -471,11 +547,6 @@ export class AutomatedOffersApi {
|
|
|
471
547
|
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerFindall.');
|
|
472
548
|
}
|
|
473
549
|
|
|
474
|
-
// verify required parameter 'createAutomatedOfferDto' is not null or undefined
|
|
475
|
-
if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
|
|
476
|
-
throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerFindall.');
|
|
477
|
-
}
|
|
478
|
-
|
|
479
550
|
if (skip !== undefined) {
|
|
480
551
|
localVarQueryParameters['skip'] = ObjectSerializer.serialize(skip, "number");
|
|
481
552
|
}
|
|
@@ -503,7 +574,6 @@ export class AutomatedOffersApi {
|
|
|
503
574
|
uri: localVarPath,
|
|
504
575
|
useQuerystring: this._useQuerystring,
|
|
505
576
|
json: true,
|
|
506
|
-
body: ObjectSerializer.serialize(createAutomatedOfferDto, "CreateAutomatedOfferDto")
|
|
507
577
|
};
|
|
508
578
|
|
|
509
579
|
let authenticationPromise = Promise.resolve();
|
|
@@ -612,7 +682,7 @@ export class AutomatedOffersApi {
|
|
|
612
682
|
}
|
|
613
683
|
/**
|
|
614
684
|
*
|
|
615
|
-
* @summary Retrieves
|
|
685
|
+
* @summary Retrieves bids of all automated offers by search criteria
|
|
616
686
|
* @param account
|
|
617
687
|
* @param skip
|
|
618
688
|
* @param limit
|
|
@@ -836,6 +906,81 @@ export class AutomatedOffersApi {
|
|
|
836
906
|
});
|
|
837
907
|
});
|
|
838
908
|
}
|
|
909
|
+
/**
|
|
910
|
+
*
|
|
911
|
+
* @summary Update a delivery date on the offer, replacing only the first occurrence of the old value
|
|
912
|
+
* @param id
|
|
913
|
+
* @param account
|
|
914
|
+
* @param updateMatchedDeliveryDateDto
|
|
915
|
+
*/
|
|
916
|
+
public async automatedOffersControllerUpdatematcheddeliverydateonoffer (id: string, account: string, updateMatchedDeliveryDateDto: UpdateMatchedDeliveryDateDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
917
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/update'
|
|
918
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
919
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
920
|
+
let localVarQueryParameters: any = {};
|
|
921
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
922
|
+
let localVarFormParams: any = {};
|
|
923
|
+
|
|
924
|
+
// verify required parameter 'id' is not null or undefined
|
|
925
|
+
if (id === null || id === undefined) {
|
|
926
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
// verify required parameter 'account' is not null or undefined
|
|
930
|
+
if (account === null || account === undefined) {
|
|
931
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
// verify required parameter 'updateMatchedDeliveryDateDto' is not null or undefined
|
|
935
|
+
if (updateMatchedDeliveryDateDto === null || updateMatchedDeliveryDateDto === undefined) {
|
|
936
|
+
throw new Error('Required parameter updateMatchedDeliveryDateDto was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
940
|
+
|
|
941
|
+
let localVarUseFormData = false;
|
|
942
|
+
|
|
943
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
944
|
+
method: 'PATCH',
|
|
945
|
+
qs: localVarQueryParameters,
|
|
946
|
+
headers: localVarHeaderParams,
|
|
947
|
+
uri: localVarPath,
|
|
948
|
+
useQuerystring: this._useQuerystring,
|
|
949
|
+
json: true,
|
|
950
|
+
body: ObjectSerializer.serialize(updateMatchedDeliveryDateDto, "UpdateMatchedDeliveryDateDto")
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
let authenticationPromise = Promise.resolve();
|
|
954
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
955
|
+
|
|
956
|
+
let interceptorPromise = authenticationPromise;
|
|
957
|
+
for (const interceptor of this.interceptors) {
|
|
958
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
return interceptorPromise.then(() => {
|
|
962
|
+
if (Object.keys(localVarFormParams).length) {
|
|
963
|
+
if (localVarUseFormData) {
|
|
964
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
965
|
+
} else {
|
|
966
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
970
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
971
|
+
if (error) {
|
|
972
|
+
reject(error);
|
|
973
|
+
} else {
|
|
974
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
975
|
+
resolve({ response: response, body: body });
|
|
976
|
+
} else {
|
|
977
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
});
|
|
983
|
+
}
|
|
839
984
|
/**
|
|
840
985
|
*
|
|
841
986
|
* @summary Updates the relisting status
|
|
@@ -988,7 +1133,7 @@ export class AutomatedOffersApi {
|
|
|
988
1133
|
}
|
|
989
1134
|
/**
|
|
990
1135
|
*
|
|
991
|
-
* @summary Retrieves
|
|
1136
|
+
* @summary Retrieves views of all automated offers by search criteria
|
|
992
1137
|
* @param account
|
|
993
1138
|
* @param body
|
|
994
1139
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import http from 'http';
|
|
3
|
+
import { AddMatchedDeliveryDateDto } from '../model/addMatchedDeliveryDateDto';
|
|
3
4
|
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
4
5
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
6
|
+
import { UpdateMatchedDeliveryDateDto } from '../model/updateMatchedDeliveryDateDto';
|
|
5
7
|
import { Authentication, Interceptor } from '../model/models';
|
|
6
8
|
export declare enum AutomatedOffersApiApiKeys {
|
|
7
9
|
}
|
|
@@ -30,6 +32,14 @@ export declare class AutomatedOffersApi {
|
|
|
30
32
|
response: http.IncomingMessage;
|
|
31
33
|
body?: any;
|
|
32
34
|
}>;
|
|
35
|
+
automatedOffersControllerAddmatcheddeliverydatetooffer(id: string, account: string, addMatchedDeliveryDateDto: AddMatchedDeliveryDateDto, options?: {
|
|
36
|
+
headers: {
|
|
37
|
+
[name: string]: string;
|
|
38
|
+
};
|
|
39
|
+
}): Promise<{
|
|
40
|
+
response: http.IncomingMessage;
|
|
41
|
+
body?: any;
|
|
42
|
+
}>;
|
|
33
43
|
automatedOffersControllerAddrelistingbulk(account: string, bulkAddRelistingDto: BulkAddRelistingDto, options?: {
|
|
34
44
|
headers: {
|
|
35
45
|
[name: string]: string;
|
|
@@ -62,7 +72,7 @@ export declare class AutomatedOffersApi {
|
|
|
62
72
|
response: http.IncomingMessage;
|
|
63
73
|
body?: any;
|
|
64
74
|
}>;
|
|
65
|
-
automatedOffersControllerFindall(account: string,
|
|
75
|
+
automatedOffersControllerFindall(account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options?: {
|
|
66
76
|
headers: {
|
|
67
77
|
[name: string]: string;
|
|
68
78
|
};
|
|
@@ -102,6 +112,14 @@ export declare class AutomatedOffersApi {
|
|
|
102
112
|
response: http.IncomingMessage;
|
|
103
113
|
body?: any;
|
|
104
114
|
}>;
|
|
115
|
+
automatedOffersControllerUpdatematcheddeliverydateonoffer(id: string, account: string, updateMatchedDeliveryDateDto: UpdateMatchedDeliveryDateDto, options?: {
|
|
116
|
+
headers: {
|
|
117
|
+
[name: string]: string;
|
|
118
|
+
};
|
|
119
|
+
}): Promise<{
|
|
120
|
+
response: http.IncomingMessage;
|
|
121
|
+
body?: any;
|
|
122
|
+
}>;
|
|
105
123
|
automatedOffersControllerUpdaterelistingstatus(automatedOfferId: string, id: string, account: string, body: object, options?: {
|
|
106
124
|
headers: {
|
|
107
125
|
[name: string]: string;
|