@tradecafe/offer-service-sdk 0.0.28 → 0.0.30

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.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +0 -11
  2. package/api/automatedOffersApi.ts +92 -4
  3. package/api/futureBidsApi.ts +6 -1
  4. package/api/matchedOffersApi.ts +18 -3
  5. package/api/offersApi.ts +18 -3
  6. package/dist/api/automatedOffersApi.d.ts +12 -4
  7. package/dist/api/automatedOffersApi.js +108 -30
  8. package/dist/api/automatedOffersApi.js.map +1 -1
  9. package/dist/api/futureBidsApi.d.ts +1 -1
  10. package/dist/api/futureBidsApi.js +4 -1
  11. package/dist/api/futureBidsApi.js.map +1 -1
  12. package/dist/api/matchedOffersApi.d.ts +3 -3
  13. package/dist/api/matchedOffersApi.js +12 -3
  14. package/dist/api/matchedOffersApi.js.map +1 -1
  15. package/dist/api/offersApi.d.ts +3 -3
  16. package/dist/api/offersApi.js +12 -3
  17. package/dist/api/offersApi.js.map +1 -1
  18. package/dist/model/createAutomatedOfferDto.d.ts +2 -0
  19. package/dist/model/createAutomatedOfferDto.js +10 -0
  20. package/dist/model/createAutomatedOfferDto.js.map +1 -1
  21. package/dist/model/createMatchedOfferDto.d.ts +1 -2
  22. package/dist/model/createMatchedOfferDto.js +1 -1
  23. package/dist/model/createMatchedOfferDto.js.map +1 -1
  24. package/dist/model/createOfferDto.d.ts +2 -0
  25. package/dist/model/createOfferDto.js +10 -0
  26. package/dist/model/createOfferDto.js.map +1 -1
  27. package/dist/model/createOfferDtoAttributes.d.ts +1 -2
  28. package/dist/model/createOfferDtoAttributes.js +1 -1
  29. package/dist/model/createOfferDtoAttributes.js.map +1 -1
  30. package/dist/model/generalAddressDto.d.ts +24 -0
  31. package/dist/model/generalAddressDto.js +120 -0
  32. package/dist/model/generalAddressDto.js.map +1 -1
  33. package/dist/model/models.d.ts +0 -11
  34. package/dist/model/models.js +0 -33
  35. package/dist/model/models.js.map +1 -1
  36. package/dist/model/offerAttributesDto.d.ts +1 -2
  37. package/dist/model/offerAttributesDto.js +1 -1
  38. package/dist/model/offerAttributesDto.js.map +1 -1
  39. package/dist/model/offerAttributesDtoEstablishment.d.ts +24 -0
  40. package/dist/model/offerAttributesDtoEstablishment.js +120 -0
  41. package/dist/model/offerAttributesDtoEstablishment.js.map +1 -1
  42. package/model/createAutomatedOfferDto.ts +18 -0
  43. package/model/createMatchedOfferDto.ts +5 -3
  44. package/model/createOfferDto.ts +18 -0
  45. package/model/createOfferDtoAttributes.ts +2 -3
  46. package/model/generalAddressDto.ts +216 -0
  47. package/model/models.ts +0 -33
  48. package/model/offerAttributesDto.ts +2 -3
  49. package/model/offerAttributesDtoEstablishment.ts +216 -0
  50. package/package.json +1 -1
  51. package/dist/model/bidDto.d.ts +0 -46
  52. package/dist/model/bidDto.js +0 -156
  53. package/dist/model/bidDto.js.map +0 -1
  54. package/dist/model/bidDtoPacking.d.ts +0 -15
  55. package/dist/model/bidDtoPacking.js +0 -26
  56. package/dist/model/bidDtoPacking.js.map +0 -1
  57. package/dist/model/bidDtoWeight.d.ts +0 -15
  58. package/dist/model/bidDtoWeight.js +0 -26
  59. package/dist/model/bidDtoWeight.js.map +0 -1
  60. package/dist/model/bidNoteAttributesDto.d.ts +0 -15
  61. package/dist/model/bidNoteAttributesDto.js +0 -26
  62. package/dist/model/bidNoteAttributesDto.js.map +0 -1
  63. package/dist/model/bidNoteDto.d.ts +0 -24
  64. package/dist/model/bidNoteDto.js +0 -61
  65. package/dist/model/bidNoteDto.js.map +0 -1
  66. package/dist/model/bidNoteDtoAccount.d.ts +0 -13
  67. package/dist/model/bidNoteDtoAccount.js +0 -15
  68. package/dist/model/bidNoteDtoAccount.js.map +0 -1
  69. package/dist/model/bidNoteDtoAttributes.d.ts +0 -15
  70. package/dist/model/bidNoteDtoAttributes.js +0 -26
  71. package/dist/model/bidNoteDtoAttributes.js.map +0 -1
  72. package/dist/model/bidPackingDto.d.ts +0 -15
  73. package/dist/model/bidPackingDto.js +0 -26
  74. package/dist/model/bidPackingDto.js.map +0 -1
  75. package/dist/model/bidWeightDto.d.ts +0 -15
  76. package/dist/model/bidWeightDto.js +0 -26
  77. package/dist/model/bidWeightDto.js.map +0 -1
  78. package/dist/model/createMatchedOfferDtoBid.d.ts +0 -46
  79. package/dist/model/createMatchedOfferDtoBid.js +0 -156
  80. package/dist/model/createMatchedOfferDtoBid.js.map +0 -1
  81. package/dist/model/dealProductBatchDto.d.ts +0 -20
  82. package/dist/model/dealProductBatchDto.js +0 -51
  83. package/dist/model/dealProductBatchDto.js.map +0 -1
  84. package/model/bidDto.ts +0 -270
  85. package/model/bidDtoPacking.ts +0 -47
  86. package/model/bidDtoWeight.ts +0 -47
  87. package/model/bidNoteAttributesDto.ts +0 -43
  88. package/model/bidNoteDto.ts +0 -102
  89. package/model/bidNoteDtoAccount.ts +0 -29
  90. package/model/bidNoteDtoAttributes.ts +0 -47
  91. package/model/bidPackingDto.ts +0 -43
  92. package/model/bidWeightDto.ts +0 -43
  93. package/model/createMatchedOfferDtoBid.ts +0 -274
  94. package/model/dealProductBatchDto.ts +0 -88
@@ -9,24 +9,13 @@ api/matchedOffersApi.ts
9
9
  api/offersApi.ts
10
10
  git_push.sh
11
11
  model/addFutureBidDto.ts
12
- model/bidDto.ts
13
- model/bidDtoPacking.ts
14
- model/bidDtoWeight.ts
15
- model/bidNoteAttributesDto.ts
16
- model/bidNoteDto.ts
17
- model/bidNoteDtoAccount.ts
18
- model/bidNoteDtoAttributes.ts
19
- model/bidPackingDto.ts
20
- model/bidWeightDto.ts
21
12
  model/createAutomatedOfferDto.ts
22
13
  model/createMatchedOfferDto.ts
23
- model/createMatchedOfferDtoBid.ts
24
14
  model/createOfferDto.ts
25
15
  model/createOfferDtoAttributes.ts
26
16
  model/createOfferDtoFormula.ts
27
17
  model/createOfferDtoPacking.ts
28
18
  model/createOfferDtoWeight.ts
29
- model/dealProductBatchDto.ts
30
19
  model/formulaDto.ts
31
20
  model/formulaLineDto.ts
32
21
  model/generalAddressDto.ts
@@ -154,6 +154,74 @@ export class AutomatedOffersApi {
154
154
  });
155
155
  });
156
156
  }
157
+ /**
158
+ *
159
+ * @summary Creates multiple automated offers
160
+ * @param account
161
+ * @param createAutomatedOfferDto
162
+ */
163
+ public async automatedOffersControllerCreatebulk (account: string, createAutomatedOfferDto: Array<CreateAutomatedOfferDto>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
164
+ const localVarPath = this.basePath + '/automated-offers/{account}/bulk'
165
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
166
+ let localVarQueryParameters: any = {};
167
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
168
+ let localVarFormParams: any = {};
169
+
170
+ // verify required parameter 'account' is not null or undefined
171
+ if (account === null || account === undefined) {
172
+ throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerCreatebulk.');
173
+ }
174
+
175
+ // verify required parameter 'createAutomatedOfferDto' is not null or undefined
176
+ if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
177
+ throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerCreatebulk.');
178
+ }
179
+
180
+ (<any>Object).assign(localVarHeaderParams, options.headers);
181
+
182
+ let localVarUseFormData = false;
183
+
184
+ let localVarRequestOptions: localVarRequest.Options = {
185
+ method: 'POST',
186
+ qs: localVarQueryParameters,
187
+ headers: localVarHeaderParams,
188
+ uri: localVarPath,
189
+ useQuerystring: this._useQuerystring,
190
+ json: true,
191
+ body: ObjectSerializer.serialize(createAutomatedOfferDto, "Array<CreateAutomatedOfferDto>")
192
+ };
193
+
194
+ let authenticationPromise = Promise.resolve();
195
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
196
+
197
+ let interceptorPromise = authenticationPromise;
198
+ for (const interceptor of this.interceptors) {
199
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
200
+ }
201
+
202
+ return interceptorPromise.then(() => {
203
+ if (Object.keys(localVarFormParams).length) {
204
+ if (localVarUseFormData) {
205
+ (<any>localVarRequestOptions).formData = localVarFormParams;
206
+ } else {
207
+ localVarRequestOptions.form = localVarFormParams;
208
+ }
209
+ }
210
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
211
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
212
+ if (error) {
213
+ reject(error);
214
+ } else {
215
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
216
+ resolve({ response: response, body: body });
217
+ } else {
218
+ reject(new HttpError(response, body, response.statusCode));
219
+ }
220
+ }
221
+ });
222
+ });
223
+ });
224
+ }
157
225
  /**
158
226
  *
159
227
  * @summary Retrieves a list of all automated offers by search criteria
@@ -161,9 +229,10 @@ export class AutomatedOffersApi {
161
229
  * @param skip
162
230
  * @param limit
163
231
  * @param sort
232
+ * @param fields Comma-separated list of fields to include
164
233
  * @param body
165
234
  */
166
- public async automatedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
235
+ public async automatedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
167
236
  const localVarPath = this.basePath + '/automated-offers/{account}/search'
168
237
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
169
238
  let localVarQueryParameters: any = {};
@@ -187,6 +256,10 @@ export class AutomatedOffersApi {
187
256
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
188
257
  }
189
258
 
259
+ if (fields !== undefined) {
260
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
261
+ }
262
+
190
263
  (<any>Object).assign(localVarHeaderParams, options.headers);
191
264
 
192
265
  let localVarUseFormData = false;
@@ -240,8 +313,9 @@ export class AutomatedOffersApi {
240
313
  * @param skip
241
314
  * @param limit
242
315
  * @param sort
316
+ * @param fields Comma-separated list of fields to include
243
317
  */
244
- public async automatedOffersControllerFindall (account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
318
+ public async automatedOffersControllerFindall (account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
245
319
  const localVarPath = this.basePath + '/automated-offers/{account}'
246
320
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
247
321
  let localVarQueryParameters: any = {};
@@ -270,6 +344,10 @@ export class AutomatedOffersApi {
270
344
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
271
345
  }
272
346
 
347
+ if (fields !== undefined) {
348
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
349
+ }
350
+
273
351
  (<any>Object).assign(localVarHeaderParams, options.headers);
274
352
 
275
353
  let localVarUseFormData = false;
@@ -320,8 +398,9 @@ export class AutomatedOffersApi {
320
398
  * @summary Retrieves the automated offer with the provided ID
321
399
  * @param id
322
400
  * @param account
401
+ * @param fields Comma-separated list of fields to include
323
402
  */
324
- public async automatedOffersControllerFindone (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
403
+ public async automatedOffersControllerFindone (id: string, account: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
325
404
  const localVarPath = this.basePath + '/automated-offers/{account}/{id}'
326
405
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
327
406
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -339,6 +418,10 @@ export class AutomatedOffersApi {
339
418
  throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerFindone.');
340
419
  }
341
420
 
421
+ if (fields !== undefined) {
422
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
423
+ }
424
+
342
425
  (<any>Object).assign(localVarHeaderParams, options.headers);
343
426
 
344
427
  let localVarUseFormData = false;
@@ -390,9 +473,10 @@ export class AutomatedOffersApi {
390
473
  * @param skip
391
474
  * @param limit
392
475
  * @param sort
476
+ * @param fields Fields to include in the response. If not specified, all fields are returned.
393
477
  * @param body
394
478
  */
395
- public async automatedOffersControllerGetbids (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
479
+ public async automatedOffersControllerGetbids (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
396
480
  const localVarPath = this.basePath + '/automated-offers/{account}/bids'
397
481
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
398
482
  let localVarQueryParameters: any = {};
@@ -416,6 +500,10 @@ export class AutomatedOffersApi {
416
500
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
417
501
  }
418
502
 
503
+ if (fields !== undefined) {
504
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
505
+ }
506
+
419
507
  (<any>Object).assign(localVarHeaderParams, options.headers);
420
508
 
421
509
  let localVarUseFormData = false;
@@ -177,8 +177,9 @@ export class FutureBidsApi {
177
177
  * @param skip
178
178
  * @param limit
179
179
  * @param sort
180
+ * @param fields Comma-separated list of fields to include
180
181
  */
181
- public async futureBidsControllerFindall (account: string, addFutureBidDto: AddFutureBidDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
182
+ public async futureBidsControllerFindall (account: string, addFutureBidDto: AddFutureBidDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
182
183
  const localVarPath = this.basePath + '/future-bids/{account}'
183
184
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
184
185
  let localVarQueryParameters: any = {};
@@ -207,6 +208,10 @@ export class FutureBidsApi {
207
208
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
208
209
  }
209
210
 
211
+ if (fields !== undefined) {
212
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
213
+ }
214
+
210
215
  (<any>Object).assign(localVarHeaderParams, options.headers);
211
216
 
212
217
  let localVarUseFormData = false;
@@ -455,9 +455,10 @@ export class MatchedOffersApi {
455
455
  * @param skip
456
456
  * @param limit
457
457
  * @param sort
458
+ * @param fields Comma-separated list of fields to include
458
459
  * @param body
459
460
  */
460
- public async matchedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
461
+ public async matchedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
461
462
  const localVarPath = this.basePath + '/matched-offers/{account}/search'
462
463
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
463
464
  let localVarQueryParameters: any = {};
@@ -481,6 +482,10 @@ export class MatchedOffersApi {
481
482
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
482
483
  }
483
484
 
485
+ if (fields !== undefined) {
486
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
487
+ }
488
+
484
489
  (<any>Object).assign(localVarHeaderParams, options.headers);
485
490
 
486
491
  let localVarUseFormData = false;
@@ -534,8 +539,9 @@ export class MatchedOffersApi {
534
539
  * @param skip
535
540
  * @param limit
536
541
  * @param sort
542
+ * @param fields Comma-separated list of fields to include
537
543
  */
538
- public async matchedOffersControllerFindall (account: string, createMatchedOfferDto: CreateMatchedOfferDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
544
+ public async matchedOffersControllerFindall (account: string, createMatchedOfferDto: CreateMatchedOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
539
545
  const localVarPath = this.basePath + '/matched-offers/{account}'
540
546
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
541
547
  let localVarQueryParameters: any = {};
@@ -564,6 +570,10 @@ export class MatchedOffersApi {
564
570
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
565
571
  }
566
572
 
573
+ if (fields !== undefined) {
574
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
575
+ }
576
+
567
577
  (<any>Object).assign(localVarHeaderParams, options.headers);
568
578
 
569
579
  let localVarUseFormData = false;
@@ -675,8 +685,9 @@ export class MatchedOffersApi {
675
685
  * @summary Retrieves the matched offer with the provided ID
676
686
  * @param id
677
687
  * @param account
688
+ * @param fields Comma-separated list of fields to include
678
689
  */
679
- public async matchedOffersControllerFindone (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
690
+ public async matchedOffersControllerFindone (id: string, account: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
680
691
  const localVarPath = this.basePath + '/matched-offers/{account}/{id}'
681
692
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
682
693
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -694,6 +705,10 @@ export class MatchedOffersApi {
694
705
  throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindone.');
695
706
  }
696
707
 
708
+ if (fields !== undefined) {
709
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
710
+ }
711
+
697
712
  (<any>Object).assign(localVarHeaderParams, options.headers);
698
713
 
699
714
  let localVarUseFormData = false;
package/api/offersApi.ts CHANGED
@@ -583,9 +583,10 @@ export class OffersApi {
583
583
  * @param skip
584
584
  * @param limit
585
585
  * @param sort
586
+ * @param fields Comma-separated list of fields to include
586
587
  * @param body
587
588
  */
588
- public async offersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
589
+ public async offersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
589
590
  const localVarPath = this.basePath + '/offers/{account}/search'
590
591
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
591
592
  let localVarQueryParameters: any = {};
@@ -609,6 +610,10 @@ export class OffersApi {
609
610
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
610
611
  }
611
612
 
613
+ if (fields !== undefined) {
614
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
615
+ }
616
+
612
617
  (<any>Object).assign(localVarHeaderParams, options.headers);
613
618
 
614
619
  let localVarUseFormData = false;
@@ -662,8 +667,9 @@ export class OffersApi {
662
667
  * @param skip
663
668
  * @param limit
664
669
  * @param sort
670
+ * @param fields Comma-separated list of fields to include
665
671
  */
666
- public async offersControllerFindall (account: string, createOfferDto: CreateOfferDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
672
+ public async offersControllerFindall (account: string, createOfferDto: CreateOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
667
673
  const localVarPath = this.basePath + '/offers/{account}'
668
674
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
669
675
  let localVarQueryParameters: any = {};
@@ -692,6 +698,10 @@ export class OffersApi {
692
698
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
693
699
  }
694
700
 
701
+ if (fields !== undefined) {
702
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
703
+ }
704
+
695
705
  (<any>Object).assign(localVarHeaderParams, options.headers);
696
706
 
697
707
  let localVarUseFormData = false;
@@ -803,8 +813,9 @@ export class OffersApi {
803
813
  * @summary Retrieves the offer with the provided ID
804
814
  * @param id
805
815
  * @param account
816
+ * @param fields Comma-separated list of fields to include
806
817
  */
807
- public async offersControllerFindone (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
818
+ public async offersControllerFindone (id: string, account: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
808
819
  const localVarPath = this.basePath + '/offers/{account}/{id}'
809
820
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
810
821
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -822,6 +833,10 @@ export class OffersApi {
822
833
  throw new Error('Required parameter account was null or undefined when calling offersControllerFindone.');
823
834
  }
824
835
 
836
+ if (fields !== undefined) {
837
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
838
+ }
839
+
825
840
  (<any>Object).assign(localVarHeaderParams, options.headers);
826
841
 
827
842
  let localVarUseFormData = false;
@@ -29,7 +29,7 @@ export declare class AutomatedOffersApi {
29
29
  response: http.IncomingMessage;
30
30
  body?: any;
31
31
  }>;
32
- automatedOffersControllerFilter(account: string, skip?: number, limit?: number, sort?: string, body?: object, options?: {
32
+ automatedOffersControllerCreatebulk(account: string, createAutomatedOfferDto: Array<CreateAutomatedOfferDto>, options?: {
33
33
  headers: {
34
34
  [name: string]: string;
35
35
  };
@@ -37,7 +37,7 @@ export declare class AutomatedOffersApi {
37
37
  response: http.IncomingMessage;
38
38
  body?: any;
39
39
  }>;
40
- automatedOffersControllerFindall(account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, skip?: number, limit?: number, sort?: string, options?: {
40
+ automatedOffersControllerFilter(account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options?: {
41
41
  headers: {
42
42
  [name: string]: string;
43
43
  };
@@ -45,7 +45,7 @@ export declare class AutomatedOffersApi {
45
45
  response: http.IncomingMessage;
46
46
  body?: any;
47
47
  }>;
48
- automatedOffersControllerFindone(id: string, account: string, options?: {
48
+ automatedOffersControllerFindall(account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options?: {
49
49
  headers: {
50
50
  [name: string]: string;
51
51
  };
@@ -53,7 +53,15 @@ export declare class AutomatedOffersApi {
53
53
  response: http.IncomingMessage;
54
54
  body?: any;
55
55
  }>;
56
- automatedOffersControllerGetbids(account: string, skip?: number, limit?: number, sort?: string, body?: object, options?: {
56
+ automatedOffersControllerFindone(id: string, account: string, fields?: string, options?: {
57
+ headers: {
58
+ [name: string]: string;
59
+ };
60
+ }): Promise<{
61
+ response: http.IncomingMessage;
62
+ body?: any;
63
+ }>;
64
+ automatedOffersControllerGetbids(account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options?: {
57
65
  headers: {
58
66
  [name: string]: string;
59
67
  };