@tradecafe/offer-service-sdk 0.0.57 → 0.0.58

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 (136) hide show
  1. package/.openapi-generator/FILES +69 -68
  2. package/api/matchedOffersApi.ts +69 -0
  3. package/dist/api/apis.d.ts +20 -20
  4. package/dist/api/apis.js +56 -56
  5. package/dist/api/automatedOffersApi.d.ts +156 -156
  6. package/dist/api/automatedOffersApi.js +1218 -1218
  7. package/dist/api/futureBidsApi.d.ts +65 -65
  8. package/dist/api/futureBidsApi.js +456 -456
  9. package/dist/api/healthApi.d.ts +32 -32
  10. package/dist/api/healthApi.js +174 -174
  11. package/dist/api/matchedOffersApi.d.ts +267 -258
  12. package/dist/api/matchedOffersApi.js +2074 -2008
  13. package/dist/api/matchedOffersApi.js.map +1 -1
  14. package/dist/api/offersApi.d.ts +200 -200
  15. package/dist/api/offersApi.js +1605 -1605
  16. package/dist/api.d.ts +2 -2
  17. package/dist/api.js +18 -18
  18. package/dist/model/addFutureBidDto.d.ts +17 -17
  19. package/dist/model/addFutureBidDto.js +35 -35
  20. package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -14
  21. package/dist/model/addMatchedDeliveryDateDto.js +20 -20
  22. package/dist/model/associatedCostDto.d.ts +16 -16
  23. package/dist/model/associatedCostDto.js +30 -30
  24. package/dist/model/bulkAddRelistingDto.d.ts +16 -16
  25. package/dist/model/bulkAddRelistingDto.js +25 -25
  26. package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -16
  27. package/dist/model/bulkAddTertiaryCostsDto.js +25 -25
  28. package/dist/model/bulkChangeDestinationLocationDto.d.ts +16 -0
  29. package/dist/model/bulkChangeDestinationLocationDto.js +31 -0
  30. package/dist/model/bulkChangeDestinationLocationDto.js.map +1 -0
  31. package/dist/model/bulkChangeFreightRatesDto.d.ts +19 -19
  32. package/dist/model/bulkChangeFreightRatesDto.js +40 -40
  33. package/dist/model/bulkChangeIncotermDto.d.ts +16 -16
  34. package/dist/model/bulkChangeIncotermDto.js +30 -30
  35. package/dist/model/bulkChangeSellPriceItemDto.d.ts +20 -20
  36. package/dist/model/bulkChangeSellPriceItemDto.js +45 -45
  37. package/dist/model/bulkChangeSellPricesDto.d.ts +23 -23
  38. package/dist/model/bulkChangeSellPricesDto.js +55 -55
  39. package/dist/model/bulkChangeSellingTraderDto.d.ts +16 -16
  40. package/dist/model/bulkChangeSellingTraderDto.js +30 -30
  41. package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.d.ts +15 -15
  42. package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.js +25 -25
  43. package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -19
  44. package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +45 -45
  45. package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -16
  46. package/dist/model/bulkUpdateDeliveryDatesDto.js +30 -30
  47. package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -16
  48. package/dist/model/bulkUpdateDocsCountryDto.js +30 -30
  49. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -15
  50. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +25 -25
  51. package/dist/model/costAmountDto.d.ts +17 -17
  52. package/dist/model/costAmountDto.js +35 -35
  53. package/dist/model/costAttributesDto.d.ts +32 -32
  54. package/dist/model/costAttributesDto.js +100 -100
  55. package/dist/model/costAttributesDtoAssociated.d.ts +16 -16
  56. package/dist/model/costAttributesDtoAssociated.js +30 -30
  57. package/dist/model/costAttributesDtoDefaultCost.d.ts +18 -18
  58. package/dist/model/costAttributesDtoDefaultCost.js +40 -40
  59. package/dist/model/costDto.d.ts +35 -35
  60. package/dist/model/costDto.js +110 -110
  61. package/dist/model/costDtoAmount.d.ts +17 -17
  62. package/dist/model/costDtoAmount.js +35 -35
  63. package/dist/model/costDtoAttributes.d.ts +32 -32
  64. package/dist/model/costDtoAttributes.js +100 -100
  65. package/dist/model/costDtoSource.d.ts +15 -15
  66. package/dist/model/costDtoSource.js +25 -25
  67. package/dist/model/costSourceDto.d.ts +15 -15
  68. package/dist/model/costSourceDto.js +25 -25
  69. package/dist/model/createAutomatedOfferDto.d.ts +124 -124
  70. package/dist/model/createAutomatedOfferDto.js +419 -419
  71. package/dist/model/createMatchedOfferDto.d.ts +85 -85
  72. package/dist/model/createMatchedOfferDto.js +315 -315
  73. package/dist/model/createMatchedOfferDtoAttributes.d.ts +34 -34
  74. package/dist/model/createMatchedOfferDtoAttributes.js +94 -94
  75. package/dist/model/createOfferDto.d.ts +111 -111
  76. package/dist/model/createOfferDto.js +397 -397
  77. package/dist/model/createOfferDtoAttributes.d.ts +52 -52
  78. package/dist/model/createOfferDtoAttributes.js +174 -174
  79. package/dist/model/createOfferDtoFormula.d.ts +19 -19
  80. package/dist/model/createOfferDtoFormula.js +40 -40
  81. package/dist/model/createOfferDtoPacking.d.ts +17 -17
  82. package/dist/model/createOfferDtoPacking.js +35 -35
  83. package/dist/model/createOfferDtoWeight.d.ts +15 -15
  84. package/dist/model/createOfferDtoWeight.js +25 -25
  85. package/dist/model/defaultCostDto.d.ts +18 -18
  86. package/dist/model/defaultCostDto.js +40 -40
  87. package/dist/model/formulaDto.d.ts +19 -19
  88. package/dist/model/formulaDto.js +40 -40
  89. package/dist/model/formulaLineDto.d.ts +17 -17
  90. package/dist/model/formulaLineDto.js +35 -35
  91. package/dist/model/generalAddressDto.d.ts +43 -43
  92. package/dist/model/generalAddressDto.js +165 -165
  93. package/dist/model/healthControllerPing200Response.d.ts +24 -24
  94. package/dist/model/healthControllerPing200Response.js +35 -35
  95. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -10
  96. package/dist/model/healthControllerPing200ResponseInfoValue.js +36 -36
  97. package/dist/model/healthControllerPing503Response.d.ts +24 -24
  98. package/dist/model/healthControllerPing503Response.js +35 -35
  99. package/dist/model/matchedOfferAttributesDto.d.ts +34 -34
  100. package/dist/model/matchedOfferAttributesDto.js +94 -94
  101. package/dist/model/models.d.ts +102 -101
  102. package/dist/model/models.js +402 -399
  103. package/dist/model/models.js.map +1 -1
  104. package/dist/model/offerAttributesDto.d.ts +52 -52
  105. package/dist/model/offerAttributesDto.js +174 -174
  106. package/dist/model/offerAttributesDtoEstablishment.d.ts +43 -43
  107. package/dist/model/offerAttributesDtoEstablishment.js +165 -165
  108. package/dist/model/overwriteItemDto.d.ts +22 -22
  109. package/dist/model/overwriteItemDto.js +55 -55
  110. package/dist/model/overwriteItemDtoWeight.d.ts +14 -14
  111. package/dist/model/overwriteItemDtoWeight.js +20 -20
  112. package/dist/model/packing.d.ts +17 -17
  113. package/dist/model/packing.js +35 -35
  114. package/dist/model/pinActionDto.d.ts +14 -14
  115. package/dist/model/pinActionDto.js +20 -20
  116. package/dist/model/relistingConfigDto.d.ts +17 -17
  117. package/dist/model/relistingConfigDto.js +35 -35
  118. package/dist/model/relistingDetailDto.d.ts +31 -31
  119. package/dist/model/relistingDetailDto.js +62 -62
  120. package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -19
  121. package/dist/model/relistingDetailDtoRandomConfig.js +45 -45
  122. package/dist/model/relistingRandomConfigDto.d.ts +19 -19
  123. package/dist/model/relistingRandomConfigDto.js +45 -45
  124. package/dist/model/updateFutureBidDto.d.ts +17 -17
  125. package/dist/model/updateFutureBidDto.js +35 -35
  126. package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -15
  127. package/dist/model/updateMatchedDeliveryDateDto.js +25 -25
  128. package/dist/model/userPin.d.ts +15 -15
  129. package/dist/model/userPin.js +25 -25
  130. package/dist/model/weight.d.ts +15 -15
  131. package/dist/model/weight.js +25 -25
  132. package/dist/model/weightDto.d.ts +14 -14
  133. package/dist/model/weightDto.js +20 -20
  134. package/model/bulkChangeDestinationLocationDto.ts +43 -0
  135. package/model/models.ts +3 -0
  136. package/package.json +1 -1
@@ -1,68 +1,69 @@
1
- .gitignore
2
- .openapi-generator-ignore
3
- api.ts
4
- api/apis.ts
5
- api/automatedOffersApi.ts
6
- api/futureBidsApi.ts
7
- api/healthApi.ts
8
- api/matchedOffersApi.ts
9
- api/offersApi.ts
10
- git_push.sh
11
- model/addFutureBidDto.ts
12
- model/addMatchedDeliveryDateDto.ts
13
- model/associatedCostDto.ts
14
- model/bulkAddRelistingDto.ts
15
- model/bulkAddTertiaryCostsDto.ts
16
- model/bulkChangeFreightRatesDto.ts
17
- model/bulkChangeIncotermDto.ts
18
- model/bulkChangeSellPriceItemDto.ts
19
- model/bulkChangeSellPricesDto.ts
20
- model/bulkChangeSellingTraderDto.ts
21
- model/bulkDeleteBuyerSpecialInstructionsDto.ts
22
- model/bulkUpdateBuyerSpecialInstructionsDto.ts
23
- model/bulkUpdateDeliveryDatesDto.ts
24
- model/bulkUpdateDocsCountryDto.ts
25
- model/bulkUpdateMatchedDeliveryDatesDto.ts
26
- model/costAmountDto.ts
27
- model/costAttributesDto.ts
28
- model/costAttributesDtoAssociated.ts
29
- model/costAttributesDtoDefaultCost.ts
30
- model/costDto.ts
31
- model/costDtoAmount.ts
32
- model/costDtoAttributes.ts
33
- model/costDtoSource.ts
34
- model/costSourceDto.ts
35
- model/createAutomatedOfferDto.ts
36
- model/createMatchedOfferDto.ts
37
- model/createMatchedOfferDtoAttributes.ts
38
- model/createOfferDto.ts
39
- model/createOfferDtoAttributes.ts
40
- model/createOfferDtoFormula.ts
41
- model/createOfferDtoPacking.ts
42
- model/createOfferDtoWeight.ts
43
- model/defaultCostDto.ts
44
- model/formulaDto.ts
45
- model/formulaLineDto.ts
46
- model/generalAddressDto.ts
47
- model/healthControllerPing200Response.ts
48
- model/healthControllerPing200ResponseInfoValue.ts
49
- model/healthControllerPing503Response.ts
50
- model/matchedOfferAttributesDto.ts
51
- model/models.ts
52
- model/offerAttributesDto.ts
53
- model/offerAttributesDtoEstablishment.ts
54
- model/overwriteItemDto.ts
55
- model/overwriteItemDtoWeight.ts
56
- model/packing.ts
57
- model/pinActionDto.ts
58
- model/relistingConfigDto.ts
59
- model/relistingDetailDto.ts
60
- model/relistingDetailDtoRandomConfig.ts
61
- model/relistingRandomConfigDto.ts
62
- model/updateFutureBidDto.ts
63
- model/updateMatchedDeliveryDateDto.ts
64
- model/userPin.ts
65
- model/weight.ts
66
- model/weightDto.ts
67
- package.json
68
- tsconfig.json
1
+ .gitignore
2
+ .openapi-generator-ignore
3
+ api.ts
4
+ api/apis.ts
5
+ api/automatedOffersApi.ts
6
+ api/futureBidsApi.ts
7
+ api/healthApi.ts
8
+ api/matchedOffersApi.ts
9
+ api/offersApi.ts
10
+ git_push.sh
11
+ model/addFutureBidDto.ts
12
+ model/addMatchedDeliveryDateDto.ts
13
+ model/associatedCostDto.ts
14
+ model/bulkAddRelistingDto.ts
15
+ model/bulkAddTertiaryCostsDto.ts
16
+ model/bulkChangeDestinationLocationDto.ts
17
+ model/bulkChangeFreightRatesDto.ts
18
+ model/bulkChangeIncotermDto.ts
19
+ model/bulkChangeSellPriceItemDto.ts
20
+ model/bulkChangeSellPricesDto.ts
21
+ model/bulkChangeSellingTraderDto.ts
22
+ model/bulkDeleteBuyerSpecialInstructionsDto.ts
23
+ model/bulkUpdateBuyerSpecialInstructionsDto.ts
24
+ model/bulkUpdateDeliveryDatesDto.ts
25
+ model/bulkUpdateDocsCountryDto.ts
26
+ model/bulkUpdateMatchedDeliveryDatesDto.ts
27
+ model/costAmountDto.ts
28
+ model/costAttributesDto.ts
29
+ model/costAttributesDtoAssociated.ts
30
+ model/costAttributesDtoDefaultCost.ts
31
+ model/costDto.ts
32
+ model/costDtoAmount.ts
33
+ model/costDtoAttributes.ts
34
+ model/costDtoSource.ts
35
+ model/costSourceDto.ts
36
+ model/createAutomatedOfferDto.ts
37
+ model/createMatchedOfferDto.ts
38
+ model/createMatchedOfferDtoAttributes.ts
39
+ model/createOfferDto.ts
40
+ model/createOfferDtoAttributes.ts
41
+ model/createOfferDtoFormula.ts
42
+ model/createOfferDtoPacking.ts
43
+ model/createOfferDtoWeight.ts
44
+ model/defaultCostDto.ts
45
+ model/formulaDto.ts
46
+ model/formulaLineDto.ts
47
+ model/generalAddressDto.ts
48
+ model/healthControllerPing200Response.ts
49
+ model/healthControllerPing200ResponseInfoValue.ts
50
+ model/healthControllerPing503Response.ts
51
+ model/matchedOfferAttributesDto.ts
52
+ model/models.ts
53
+ model/offerAttributesDto.ts
54
+ model/offerAttributesDtoEstablishment.ts
55
+ model/overwriteItemDto.ts
56
+ model/overwriteItemDtoWeight.ts
57
+ model/packing.ts
58
+ model/pinActionDto.ts
59
+ model/relistingConfigDto.ts
60
+ model/relistingDetailDto.ts
61
+ model/relistingDetailDtoRandomConfig.ts
62
+ model/relistingRandomConfigDto.ts
63
+ model/updateFutureBidDto.ts
64
+ model/updateMatchedDeliveryDateDto.ts
65
+ model/userPin.ts
66
+ model/weight.ts
67
+ model/weightDto.ts
68
+ package.json
69
+ tsconfig.json
@@ -16,6 +16,7 @@ import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
18
  import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
19
+ import { BulkChangeDestinationLocationDto } from '../model/bulkChangeDestinationLocationDto';
19
20
  import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
20
21
  import { BulkChangeIncotermDto } from '../model/bulkChangeIncotermDto';
21
22
  import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
@@ -328,6 +329,74 @@ export class MatchedOffersApi {
328
329
  });
329
330
  });
330
331
  }
332
+ /**
333
+ *
334
+ * @summary Changes the destination location on multiple matched offers in a single operation
335
+ * @param account
336
+ * @param bulkChangeDestinationLocationDto
337
+ */
338
+ public async matchedOffersControllerBulkchangedestinationlocation (account: string, bulkChangeDestinationLocationDto: BulkChangeDestinationLocationDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
339
+ const localVarPath = this.basePath + '/matched-offers/{account}/bulk/destination-location'
340
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
341
+ let localVarQueryParameters: any = {};
342
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
343
+ let localVarFormParams: any = {};
344
+
345
+ // verify required parameter 'account' is not null or undefined
346
+ if (account === null || account === undefined) {
347
+ throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangedestinationlocation.');
348
+ }
349
+
350
+ // verify required parameter 'bulkChangeDestinationLocationDto' is not null or undefined
351
+ if (bulkChangeDestinationLocationDto === null || bulkChangeDestinationLocationDto === undefined) {
352
+ throw new Error('Required parameter bulkChangeDestinationLocationDto was null or undefined when calling matchedOffersControllerBulkchangedestinationlocation.');
353
+ }
354
+
355
+ (<any>Object).assign(localVarHeaderParams, options.headers);
356
+
357
+ let localVarUseFormData = false;
358
+
359
+ let localVarRequestOptions: localVarRequest.Options = {
360
+ method: 'PUT',
361
+ qs: localVarQueryParameters,
362
+ headers: localVarHeaderParams,
363
+ uri: localVarPath,
364
+ useQuerystring: this._useQuerystring,
365
+ json: true,
366
+ body: ObjectSerializer.serialize(bulkChangeDestinationLocationDto, "BulkChangeDestinationLocationDto")
367
+ };
368
+
369
+ let authenticationPromise = Promise.resolve();
370
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
371
+
372
+ let interceptorPromise = authenticationPromise;
373
+ for (const interceptor of this.interceptors) {
374
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
375
+ }
376
+
377
+ return interceptorPromise.then(() => {
378
+ if (Object.keys(localVarFormParams).length) {
379
+ if (localVarUseFormData) {
380
+ (<any>localVarRequestOptions).formData = localVarFormParams;
381
+ } else {
382
+ localVarRequestOptions.form = localVarFormParams;
383
+ }
384
+ }
385
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
386
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
387
+ if (error) {
388
+ reject(error);
389
+ } else {
390
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
391
+ resolve({ response: response, body: body });
392
+ } else {
393
+ reject(new HttpError(response, body, response.statusCode));
394
+ }
395
+ }
396
+ });
397
+ });
398
+ });
399
+ }
331
400
  /**
332
401
  *
333
402
  * @summary Changes freight rates for multiple matched offers in a single operation
@@ -1,20 +1,20 @@
1
- /// <reference types="node" />
2
- export * from './automatedOffersApi';
3
- import { AutomatedOffersApi } from './automatedOffersApi';
4
- export * from './futureBidsApi';
5
- import { FutureBidsApi } from './futureBidsApi';
6
- export * from './healthApi';
7
- import { HealthApi } from './healthApi';
8
- export * from './matchedOffersApi';
9
- import { MatchedOffersApi } from './matchedOffersApi';
10
- export * from './offersApi';
11
- import { OffersApi } from './offersApi';
12
- import * as http from 'http';
13
- export declare class HttpError extends Error {
14
- response: http.IncomingMessage;
15
- body: any;
16
- statusCode?: number | undefined;
17
- constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
18
- }
19
- export { RequestFile } from '../model/models';
20
- export declare const APIS: (typeof AutomatedOffersApi | typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];
1
+ /// <reference types="node" />
2
+ export * from './automatedOffersApi';
3
+ import { AutomatedOffersApi } from './automatedOffersApi';
4
+ export * from './futureBidsApi';
5
+ import { FutureBidsApi } from './futureBidsApi';
6
+ export * from './healthApi';
7
+ import { HealthApi } from './healthApi';
8
+ export * from './matchedOffersApi';
9
+ import { MatchedOffersApi } from './matchedOffersApi';
10
+ export * from './offersApi';
11
+ import { OffersApi } from './offersApi';
12
+ import * as http from 'http';
13
+ export declare class HttpError extends Error {
14
+ response: http.IncomingMessage;
15
+ body: any;
16
+ statusCode?: number | undefined;
17
+ constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
18
+ }
19
+ export { RequestFile } from '../model/models';
20
+ export declare const APIS: (typeof AutomatedOffersApi | typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];
package/dist/api/apis.js CHANGED
@@ -1,57 +1,57 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.APIS = exports.HttpError = void 0;
33
- __exportStar(require("./automatedOffersApi"), exports);
34
- var automatedOffersApi_1 = require("./automatedOffersApi");
35
- __exportStar(require("./futureBidsApi"), exports);
36
- var futureBidsApi_1 = require("./futureBidsApi");
37
- __exportStar(require("./healthApi"), exports);
38
- var healthApi_1 = require("./healthApi");
39
- __exportStar(require("./matchedOffersApi"), exports);
40
- var matchedOffersApi_1 = require("./matchedOffersApi");
41
- __exportStar(require("./offersApi"), exports);
42
- var offersApi_1 = require("./offersApi");
43
- var HttpError = (function (_super) {
44
- __extends(HttpError, _super);
45
- function HttpError(response, body, statusCode) {
46
- var _this = _super.call(this, 'HTTP request failed') || this;
47
- _this.response = response;
48
- _this.body = body;
49
- _this.statusCode = statusCode;
50
- _this.name = 'HttpError';
51
- return _this;
52
- }
53
- return HttpError;
54
- }(Error));
55
- exports.HttpError = HttpError;
56
- exports.APIS = [automatedOffersApi_1.AutomatedOffersApi, futureBidsApi_1.FutureBidsApi, healthApi_1.HealthApi, matchedOffersApi_1.MatchedOffersApi, offersApi_1.OffersApi];
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.APIS = exports.HttpError = void 0;
33
+ __exportStar(require("./automatedOffersApi"), exports);
34
+ var automatedOffersApi_1 = require("./automatedOffersApi");
35
+ __exportStar(require("./futureBidsApi"), exports);
36
+ var futureBidsApi_1 = require("./futureBidsApi");
37
+ __exportStar(require("./healthApi"), exports);
38
+ var healthApi_1 = require("./healthApi");
39
+ __exportStar(require("./matchedOffersApi"), exports);
40
+ var matchedOffersApi_1 = require("./matchedOffersApi");
41
+ __exportStar(require("./offersApi"), exports);
42
+ var offersApi_1 = require("./offersApi");
43
+ var HttpError = (function (_super) {
44
+ __extends(HttpError, _super);
45
+ function HttpError(response, body, statusCode) {
46
+ var _this = _super.call(this, 'HTTP request failed') || this;
47
+ _this.response = response;
48
+ _this.body = body;
49
+ _this.statusCode = statusCode;
50
+ _this.name = 'HttpError';
51
+ return _this;
52
+ }
53
+ return HttpError;
54
+ }(Error));
55
+ exports.HttpError = HttpError;
56
+ exports.APIS = [automatedOffersApi_1.AutomatedOffersApi, futureBidsApi_1.FutureBidsApi, healthApi_1.HealthApi, matchedOffersApi_1.MatchedOffersApi, offersApi_1.OffersApi];
57
57
  //# sourceMappingURL=apis.js.map