@tradecafe/offer-service-sdk 0.0.56 → 0.0.57

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 (130) hide show
  1. package/.openapi-generator/FILES +68 -68
  2. package/dist/api/apis.d.ts +20 -20
  3. package/dist/api/apis.js +56 -56
  4. package/dist/api/automatedOffersApi.d.ts +156 -156
  5. package/dist/api/automatedOffersApi.js +1218 -1218
  6. package/dist/api/futureBidsApi.d.ts +65 -65
  7. package/dist/api/futureBidsApi.js +456 -456
  8. package/dist/api/healthApi.d.ts +32 -32
  9. package/dist/api/healthApi.js +174 -174
  10. package/dist/api/matchedOffersApi.d.ts +258 -258
  11. package/dist/api/matchedOffersApi.js +2008 -2008
  12. package/dist/api/offersApi.d.ts +200 -200
  13. package/dist/api/offersApi.js +1605 -1605
  14. package/dist/api.d.ts +2 -2
  15. package/dist/api.js +18 -18
  16. package/dist/model/addFutureBidDto.d.ts +17 -17
  17. package/dist/model/addFutureBidDto.js +35 -35
  18. package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -14
  19. package/dist/model/addMatchedDeliveryDateDto.js +20 -20
  20. package/dist/model/associatedCostDto.d.ts +16 -16
  21. package/dist/model/associatedCostDto.js +30 -30
  22. package/dist/model/bulkAddRelistingDto.d.ts +16 -16
  23. package/dist/model/bulkAddRelistingDto.js +25 -25
  24. package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -16
  25. package/dist/model/bulkAddTertiaryCostsDto.js +25 -25
  26. package/dist/model/bulkChangeFreightRatesDto.d.ts +19 -19
  27. package/dist/model/bulkChangeFreightRatesDto.js +40 -40
  28. package/dist/model/bulkChangeIncotermDto.d.ts +16 -16
  29. package/dist/model/bulkChangeIncotermDto.js +30 -30
  30. package/dist/model/bulkChangeSellPriceItemDto.d.ts +20 -20
  31. package/dist/model/bulkChangeSellPriceItemDto.js +45 -45
  32. package/dist/model/bulkChangeSellPricesDto.d.ts +23 -18
  33. package/dist/model/bulkChangeSellPricesDto.js +55 -35
  34. package/dist/model/bulkChangeSellPricesDto.js.map +1 -1
  35. package/dist/model/bulkChangeSellingTraderDto.d.ts +16 -16
  36. package/dist/model/bulkChangeSellingTraderDto.js +30 -30
  37. package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.d.ts +15 -15
  38. package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.js +25 -25
  39. package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -19
  40. package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +45 -45
  41. package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -16
  42. package/dist/model/bulkUpdateDeliveryDatesDto.js +30 -30
  43. package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -16
  44. package/dist/model/bulkUpdateDocsCountryDto.js +30 -30
  45. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -15
  46. package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +25 -25
  47. package/dist/model/costAmountDto.d.ts +17 -17
  48. package/dist/model/costAmountDto.js +35 -35
  49. package/dist/model/costAttributesDto.d.ts +32 -32
  50. package/dist/model/costAttributesDto.js +100 -100
  51. package/dist/model/costAttributesDtoAssociated.d.ts +16 -16
  52. package/dist/model/costAttributesDtoAssociated.js +30 -30
  53. package/dist/model/costAttributesDtoDefaultCost.d.ts +18 -18
  54. package/dist/model/costAttributesDtoDefaultCost.js +40 -40
  55. package/dist/model/costDto.d.ts +35 -35
  56. package/dist/model/costDto.js +110 -110
  57. package/dist/model/costDtoAmount.d.ts +17 -17
  58. package/dist/model/costDtoAmount.js +35 -35
  59. package/dist/model/costDtoAttributes.d.ts +32 -32
  60. package/dist/model/costDtoAttributes.js +100 -100
  61. package/dist/model/costDtoSource.d.ts +15 -15
  62. package/dist/model/costDtoSource.js +25 -25
  63. package/dist/model/costSourceDto.d.ts +15 -15
  64. package/dist/model/costSourceDto.js +25 -25
  65. package/dist/model/createAutomatedOfferDto.d.ts +124 -124
  66. package/dist/model/createAutomatedOfferDto.js +419 -419
  67. package/dist/model/createMatchedOfferDto.d.ts +85 -85
  68. package/dist/model/createMatchedOfferDto.js +315 -315
  69. package/dist/model/createMatchedOfferDtoAttributes.d.ts +34 -34
  70. package/dist/model/createMatchedOfferDtoAttributes.js +94 -94
  71. package/dist/model/createOfferDto.d.ts +111 -111
  72. package/dist/model/createOfferDto.js +397 -397
  73. package/dist/model/createOfferDtoAttributes.d.ts +52 -52
  74. package/dist/model/createOfferDtoAttributes.js +174 -174
  75. package/dist/model/createOfferDtoFormula.d.ts +19 -19
  76. package/dist/model/createOfferDtoFormula.js +40 -40
  77. package/dist/model/createOfferDtoPacking.d.ts +17 -17
  78. package/dist/model/createOfferDtoPacking.js +35 -35
  79. package/dist/model/createOfferDtoWeight.d.ts +15 -15
  80. package/dist/model/createOfferDtoWeight.js +25 -25
  81. package/dist/model/defaultCostDto.d.ts +18 -18
  82. package/dist/model/defaultCostDto.js +40 -40
  83. package/dist/model/formulaDto.d.ts +19 -19
  84. package/dist/model/formulaDto.js +40 -40
  85. package/dist/model/formulaLineDto.d.ts +17 -17
  86. package/dist/model/formulaLineDto.js +35 -35
  87. package/dist/model/generalAddressDto.d.ts +43 -43
  88. package/dist/model/generalAddressDto.js +165 -165
  89. package/dist/model/healthControllerPing200Response.d.ts +24 -24
  90. package/dist/model/healthControllerPing200Response.js +35 -35
  91. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -10
  92. package/dist/model/healthControllerPing200ResponseInfoValue.js +36 -36
  93. package/dist/model/healthControllerPing503Response.d.ts +24 -24
  94. package/dist/model/healthControllerPing503Response.js +35 -35
  95. package/dist/model/matchedOfferAttributesDto.d.ts +34 -34
  96. package/dist/model/matchedOfferAttributesDto.js +94 -94
  97. package/dist/model/models.d.ts +101 -101
  98. package/dist/model/models.js +399 -399
  99. package/dist/model/offerAttributesDto.d.ts +52 -52
  100. package/dist/model/offerAttributesDto.js +174 -174
  101. package/dist/model/offerAttributesDtoEstablishment.d.ts +43 -43
  102. package/dist/model/offerAttributesDtoEstablishment.js +165 -165
  103. package/dist/model/overwriteItemDto.d.ts +22 -22
  104. package/dist/model/overwriteItemDto.js +55 -55
  105. package/dist/model/overwriteItemDtoWeight.d.ts +14 -14
  106. package/dist/model/overwriteItemDtoWeight.js +20 -20
  107. package/dist/model/packing.d.ts +17 -17
  108. package/dist/model/packing.js +35 -35
  109. package/dist/model/pinActionDto.d.ts +14 -14
  110. package/dist/model/pinActionDto.js +20 -20
  111. package/dist/model/relistingConfigDto.d.ts +17 -17
  112. package/dist/model/relistingConfigDto.js +35 -35
  113. package/dist/model/relistingDetailDto.d.ts +31 -31
  114. package/dist/model/relistingDetailDto.js +62 -62
  115. package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -19
  116. package/dist/model/relistingDetailDtoRandomConfig.js +45 -45
  117. package/dist/model/relistingRandomConfigDto.d.ts +19 -19
  118. package/dist/model/relistingRandomConfigDto.js +45 -45
  119. package/dist/model/updateFutureBidDto.d.ts +17 -17
  120. package/dist/model/updateFutureBidDto.js +35 -35
  121. package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -15
  122. package/dist/model/updateMatchedDeliveryDateDto.js +25 -25
  123. package/dist/model/userPin.d.ts +15 -15
  124. package/dist/model/userPin.js +25 -25
  125. package/dist/model/weight.d.ts +15 -15
  126. package/dist/model/weight.js +25 -25
  127. package/dist/model/weightDto.d.ts +14 -14
  128. package/dist/model/weightDto.js +20 -20
  129. package/model/bulkChangeSellPricesDto.ts +25 -0
  130. package/package.json +1 -1
@@ -1,400 +1,400 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBearerAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
18
- __exportStar(require("./addFutureBidDto"), exports);
19
- __exportStar(require("./addMatchedDeliveryDateDto"), exports);
20
- __exportStar(require("./associatedCostDto"), exports);
21
- __exportStar(require("./bulkAddRelistingDto"), exports);
22
- __exportStar(require("./bulkAddTertiaryCostsDto"), exports);
23
- __exportStar(require("./bulkChangeFreightRatesDto"), exports);
24
- __exportStar(require("./bulkChangeIncotermDto"), exports);
25
- __exportStar(require("./bulkChangeSellPriceItemDto"), exports);
26
- __exportStar(require("./bulkChangeSellPricesDto"), exports);
27
- __exportStar(require("./bulkChangeSellingTraderDto"), exports);
28
- __exportStar(require("./bulkDeleteBuyerSpecialInstructionsDto"), exports);
29
- __exportStar(require("./bulkUpdateBuyerSpecialInstructionsDto"), exports);
30
- __exportStar(require("./bulkUpdateDeliveryDatesDto"), exports);
31
- __exportStar(require("./bulkUpdateDocsCountryDto"), exports);
32
- __exportStar(require("./bulkUpdateMatchedDeliveryDatesDto"), exports);
33
- __exportStar(require("./costAmountDto"), exports);
34
- __exportStar(require("./costAttributesDto"), exports);
35
- __exportStar(require("./costAttributesDtoAssociated"), exports);
36
- __exportStar(require("./costAttributesDtoDefaultCost"), exports);
37
- __exportStar(require("./costDto"), exports);
38
- __exportStar(require("./costDtoAmount"), exports);
39
- __exportStar(require("./costDtoAttributes"), exports);
40
- __exportStar(require("./costDtoSource"), exports);
41
- __exportStar(require("./costSourceDto"), exports);
42
- __exportStar(require("./createAutomatedOfferDto"), exports);
43
- __exportStar(require("./createMatchedOfferDto"), exports);
44
- __exportStar(require("./createMatchedOfferDtoAttributes"), exports);
45
- __exportStar(require("./createOfferDto"), exports);
46
- __exportStar(require("./createOfferDtoAttributes"), exports);
47
- __exportStar(require("./createOfferDtoFormula"), exports);
48
- __exportStar(require("./createOfferDtoPacking"), exports);
49
- __exportStar(require("./createOfferDtoWeight"), exports);
50
- __exportStar(require("./defaultCostDto"), exports);
51
- __exportStar(require("./formulaDto"), exports);
52
- __exportStar(require("./formulaLineDto"), exports);
53
- __exportStar(require("./generalAddressDto"), exports);
54
- __exportStar(require("./healthControllerPing200Response"), exports);
55
- __exportStar(require("./healthControllerPing200ResponseInfoValue"), exports);
56
- __exportStar(require("./healthControllerPing503Response"), exports);
57
- __exportStar(require("./matchedOfferAttributesDto"), exports);
58
- __exportStar(require("./offerAttributesDto"), exports);
59
- __exportStar(require("./offerAttributesDtoEstablishment"), exports);
60
- __exportStar(require("./overwriteItemDto"), exports);
61
- __exportStar(require("./overwriteItemDtoWeight"), exports);
62
- __exportStar(require("./packing"), exports);
63
- __exportStar(require("./pinActionDto"), exports);
64
- __exportStar(require("./relistingConfigDto"), exports);
65
- __exportStar(require("./relistingDetailDto"), exports);
66
- __exportStar(require("./relistingDetailDtoRandomConfig"), exports);
67
- __exportStar(require("./relistingRandomConfigDto"), exports);
68
- __exportStar(require("./updateFutureBidDto"), exports);
69
- __exportStar(require("./updateMatchedDeliveryDateDto"), exports);
70
- __exportStar(require("./userPin"), exports);
71
- __exportStar(require("./weight"), exports);
72
- __exportStar(require("./weightDto"), exports);
73
- var addFutureBidDto_1 = require("./addFutureBidDto");
74
- var addMatchedDeliveryDateDto_1 = require("./addMatchedDeliveryDateDto");
75
- var associatedCostDto_1 = require("./associatedCostDto");
76
- var bulkAddRelistingDto_1 = require("./bulkAddRelistingDto");
77
- var bulkAddTertiaryCostsDto_1 = require("./bulkAddTertiaryCostsDto");
78
- var bulkChangeFreightRatesDto_1 = require("./bulkChangeFreightRatesDto");
79
- var bulkChangeIncotermDto_1 = require("./bulkChangeIncotermDto");
80
- var bulkChangeSellPriceItemDto_1 = require("./bulkChangeSellPriceItemDto");
81
- var bulkChangeSellPricesDto_1 = require("./bulkChangeSellPricesDto");
82
- var bulkChangeSellingTraderDto_1 = require("./bulkChangeSellingTraderDto");
83
- var bulkDeleteBuyerSpecialInstructionsDto_1 = require("./bulkDeleteBuyerSpecialInstructionsDto");
84
- var bulkUpdateBuyerSpecialInstructionsDto_1 = require("./bulkUpdateBuyerSpecialInstructionsDto");
85
- var bulkUpdateDeliveryDatesDto_1 = require("./bulkUpdateDeliveryDatesDto");
86
- var bulkUpdateDocsCountryDto_1 = require("./bulkUpdateDocsCountryDto");
87
- var bulkUpdateMatchedDeliveryDatesDto_1 = require("./bulkUpdateMatchedDeliveryDatesDto");
88
- var costAmountDto_1 = require("./costAmountDto");
89
- var costAttributesDto_1 = require("./costAttributesDto");
90
- var costAttributesDtoAssociated_1 = require("./costAttributesDtoAssociated");
91
- var costAttributesDtoDefaultCost_1 = require("./costAttributesDtoDefaultCost");
92
- var costDto_1 = require("./costDto");
93
- var costDtoAmount_1 = require("./costDtoAmount");
94
- var costDtoAttributes_1 = require("./costDtoAttributes");
95
- var costDtoSource_1 = require("./costDtoSource");
96
- var costSourceDto_1 = require("./costSourceDto");
97
- var createAutomatedOfferDto_1 = require("./createAutomatedOfferDto");
98
- var createMatchedOfferDto_1 = require("./createMatchedOfferDto");
99
- var createMatchedOfferDtoAttributes_1 = require("./createMatchedOfferDtoAttributes");
100
- var createOfferDto_1 = require("./createOfferDto");
101
- var createOfferDtoAttributes_1 = require("./createOfferDtoAttributes");
102
- var createOfferDtoFormula_1 = require("./createOfferDtoFormula");
103
- var createOfferDtoPacking_1 = require("./createOfferDtoPacking");
104
- var createOfferDtoWeight_1 = require("./createOfferDtoWeight");
105
- var defaultCostDto_1 = require("./defaultCostDto");
106
- var formulaDto_1 = require("./formulaDto");
107
- var formulaLineDto_1 = require("./formulaLineDto");
108
- var generalAddressDto_1 = require("./generalAddressDto");
109
- var healthControllerPing200Response_1 = require("./healthControllerPing200Response");
110
- var healthControllerPing200ResponseInfoValue_1 = require("./healthControllerPing200ResponseInfoValue");
111
- var healthControllerPing503Response_1 = require("./healthControllerPing503Response");
112
- var matchedOfferAttributesDto_1 = require("./matchedOfferAttributesDto");
113
- var offerAttributesDto_1 = require("./offerAttributesDto");
114
- var offerAttributesDtoEstablishment_1 = require("./offerAttributesDtoEstablishment");
115
- var overwriteItemDto_1 = require("./overwriteItemDto");
116
- var overwriteItemDtoWeight_1 = require("./overwriteItemDtoWeight");
117
- var packing_1 = require("./packing");
118
- var pinActionDto_1 = require("./pinActionDto");
119
- var relistingConfigDto_1 = require("./relistingConfigDto");
120
- var relistingDetailDto_1 = require("./relistingDetailDto");
121
- var relistingDetailDtoRandomConfig_1 = require("./relistingDetailDtoRandomConfig");
122
- var relistingRandomConfigDto_1 = require("./relistingRandomConfigDto");
123
- var updateFutureBidDto_1 = require("./updateFutureBidDto");
124
- var updateMatchedDeliveryDateDto_1 = require("./updateMatchedDeliveryDateDto");
125
- var userPin_1 = require("./userPin");
126
- var weight_1 = require("./weight");
127
- var weightDto_1 = require("./weightDto");
128
- var primitives = [
129
- "string",
130
- "boolean",
131
- "double",
132
- "integer",
133
- "long",
134
- "float",
135
- "number",
136
- "any"
137
- ];
138
- var enumsMap = {
139
- "CreateAutomatedOfferDto.TypeEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.TypeEnum,
140
- "CreateAutomatedOfferDto.StatusEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.StatusEnum,
141
- "CreateAutomatedOfferDto.AutomatedOfferStatusEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.AutomatedOfferStatusEnum,
142
- "CreateMatchedOfferDto.StatusEnum": createMatchedOfferDto_1.CreateMatchedOfferDto.StatusEnum,
143
- "CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum": createMatchedOfferDtoAttributes_1.CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum,
144
- "CreateOfferDto.TypeEnum": createOfferDto_1.CreateOfferDto.TypeEnum,
145
- "CreateOfferDto.StatusEnum": createOfferDto_1.CreateOfferDto.StatusEnum,
146
- "CreateOfferDtoAttributes.DeliveryPreferenceEnum": createOfferDtoAttributes_1.CreateOfferDtoAttributes.DeliveryPreferenceEnum,
147
- "MatchedOfferAttributesDto.DeliveryPreferenceEnum": matchedOfferAttributesDto_1.MatchedOfferAttributesDto.DeliveryPreferenceEnum,
148
- "OfferAttributesDto.DeliveryPreferenceEnum": offerAttributesDto_1.OfferAttributesDto.DeliveryPreferenceEnum,
149
- "RelistingDetailDto.StatusEnum": relistingDetailDto_1.RelistingDetailDto.StatusEnum,
150
- };
151
- var typeMap = {
152
- "AddFutureBidDto": addFutureBidDto_1.AddFutureBidDto,
153
- "AddMatchedDeliveryDateDto": addMatchedDeliveryDateDto_1.AddMatchedDeliveryDateDto,
154
- "AssociatedCostDto": associatedCostDto_1.AssociatedCostDto,
155
- "BulkAddRelistingDto": bulkAddRelistingDto_1.BulkAddRelistingDto,
156
- "BulkAddTertiaryCostsDto": bulkAddTertiaryCostsDto_1.BulkAddTertiaryCostsDto,
157
- "BulkChangeFreightRatesDto": bulkChangeFreightRatesDto_1.BulkChangeFreightRatesDto,
158
- "BulkChangeIncotermDto": bulkChangeIncotermDto_1.BulkChangeIncotermDto,
159
- "BulkChangeSellPriceItemDto": bulkChangeSellPriceItemDto_1.BulkChangeSellPriceItemDto,
160
- "BulkChangeSellPricesDto": bulkChangeSellPricesDto_1.BulkChangeSellPricesDto,
161
- "BulkChangeSellingTraderDto": bulkChangeSellingTraderDto_1.BulkChangeSellingTraderDto,
162
- "BulkDeleteBuyerSpecialInstructionsDto": bulkDeleteBuyerSpecialInstructionsDto_1.BulkDeleteBuyerSpecialInstructionsDto,
163
- "BulkUpdateBuyerSpecialInstructionsDto": bulkUpdateBuyerSpecialInstructionsDto_1.BulkUpdateBuyerSpecialInstructionsDto,
164
- "BulkUpdateDeliveryDatesDto": bulkUpdateDeliveryDatesDto_1.BulkUpdateDeliveryDatesDto,
165
- "BulkUpdateDocsCountryDto": bulkUpdateDocsCountryDto_1.BulkUpdateDocsCountryDto,
166
- "BulkUpdateMatchedDeliveryDatesDto": bulkUpdateMatchedDeliveryDatesDto_1.BulkUpdateMatchedDeliveryDatesDto,
167
- "CostAmountDto": costAmountDto_1.CostAmountDto,
168
- "CostAttributesDto": costAttributesDto_1.CostAttributesDto,
169
- "CostAttributesDtoAssociated": costAttributesDtoAssociated_1.CostAttributesDtoAssociated,
170
- "CostAttributesDtoDefaultCost": costAttributesDtoDefaultCost_1.CostAttributesDtoDefaultCost,
171
- "CostDto": costDto_1.CostDto,
172
- "CostDtoAmount": costDtoAmount_1.CostDtoAmount,
173
- "CostDtoAttributes": costDtoAttributes_1.CostDtoAttributes,
174
- "CostDtoSource": costDtoSource_1.CostDtoSource,
175
- "CostSourceDto": costSourceDto_1.CostSourceDto,
176
- "CreateAutomatedOfferDto": createAutomatedOfferDto_1.CreateAutomatedOfferDto,
177
- "CreateMatchedOfferDto": createMatchedOfferDto_1.CreateMatchedOfferDto,
178
- "CreateMatchedOfferDtoAttributes": createMatchedOfferDtoAttributes_1.CreateMatchedOfferDtoAttributes,
179
- "CreateOfferDto": createOfferDto_1.CreateOfferDto,
180
- "CreateOfferDtoAttributes": createOfferDtoAttributes_1.CreateOfferDtoAttributes,
181
- "CreateOfferDtoFormula": createOfferDtoFormula_1.CreateOfferDtoFormula,
182
- "CreateOfferDtoPacking": createOfferDtoPacking_1.CreateOfferDtoPacking,
183
- "CreateOfferDtoWeight": createOfferDtoWeight_1.CreateOfferDtoWeight,
184
- "DefaultCostDto": defaultCostDto_1.DefaultCostDto,
185
- "FormulaDto": formulaDto_1.FormulaDto,
186
- "FormulaLineDto": formulaLineDto_1.FormulaLineDto,
187
- "GeneralAddressDto": generalAddressDto_1.GeneralAddressDto,
188
- "HealthControllerPing200Response": healthControllerPing200Response_1.HealthControllerPing200Response,
189
- "HealthControllerPing200ResponseInfoValue": healthControllerPing200ResponseInfoValue_1.HealthControllerPing200ResponseInfoValue,
190
- "HealthControllerPing503Response": healthControllerPing503Response_1.HealthControllerPing503Response,
191
- "MatchedOfferAttributesDto": matchedOfferAttributesDto_1.MatchedOfferAttributesDto,
192
- "OfferAttributesDto": offerAttributesDto_1.OfferAttributesDto,
193
- "OfferAttributesDtoEstablishment": offerAttributesDtoEstablishment_1.OfferAttributesDtoEstablishment,
194
- "OverwriteItemDto": overwriteItemDto_1.OverwriteItemDto,
195
- "OverwriteItemDtoWeight": overwriteItemDtoWeight_1.OverwriteItemDtoWeight,
196
- "Packing": packing_1.Packing,
197
- "PinActionDto": pinActionDto_1.PinActionDto,
198
- "RelistingConfigDto": relistingConfigDto_1.RelistingConfigDto,
199
- "RelistingDetailDto": relistingDetailDto_1.RelistingDetailDto,
200
- "RelistingDetailDtoRandomConfig": relistingDetailDtoRandomConfig_1.RelistingDetailDtoRandomConfig,
201
- "RelistingRandomConfigDto": relistingRandomConfigDto_1.RelistingRandomConfigDto,
202
- "UpdateFutureBidDto": updateFutureBidDto_1.UpdateFutureBidDto,
203
- "UpdateMatchedDeliveryDateDto": updateMatchedDeliveryDateDto_1.UpdateMatchedDeliveryDateDto,
204
- "UserPin": userPin_1.UserPin,
205
- "Weight": weight_1.Weight,
206
- "WeightDto": weightDto_1.WeightDto,
207
- };
208
- var ObjectSerializer = (function () {
209
- function ObjectSerializer() {
210
- }
211
- ObjectSerializer.findCorrectType = function (data, expectedType) {
212
- if (data == undefined) {
213
- return expectedType;
214
- }
215
- else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
216
- return expectedType;
217
- }
218
- else if (expectedType === "Date") {
219
- return expectedType;
220
- }
221
- else {
222
- if (enumsMap[expectedType]) {
223
- return expectedType;
224
- }
225
- if (!typeMap[expectedType]) {
226
- return expectedType;
227
- }
228
- var discriminatorProperty = typeMap[expectedType].discriminator;
229
- if (discriminatorProperty == null) {
230
- return expectedType;
231
- }
232
- else {
233
- if (data[discriminatorProperty]) {
234
- var discriminatorType = data[discriminatorProperty];
235
- if (typeMap[discriminatorType]) {
236
- return discriminatorType;
237
- }
238
- else {
239
- return expectedType;
240
- }
241
- }
242
- else {
243
- return expectedType;
244
- }
245
- }
246
- }
247
- };
248
- ObjectSerializer.serialize = function (data, type) {
249
- if (data == undefined) {
250
- return data;
251
- }
252
- else if (primitives.indexOf(type.toLowerCase()) !== -1) {
253
- return data;
254
- }
255
- else if (type.lastIndexOf("Array<", 0) === 0) {
256
- var subType = type.replace("Array<", "");
257
- subType = subType.substring(0, subType.length - 1);
258
- var transformedData = [];
259
- for (var index = 0; index < data.length; index++) {
260
- var datum = data[index];
261
- transformedData.push(ObjectSerializer.serialize(datum, subType));
262
- }
263
- return transformedData;
264
- }
265
- else if (type === "Date") {
266
- return data.toISOString();
267
- }
268
- else {
269
- if (enumsMap[type]) {
270
- return data;
271
- }
272
- if (!typeMap[type]) {
273
- return data;
274
- }
275
- type = this.findCorrectType(data, type);
276
- var attributeTypes = typeMap[type].getAttributeTypeMap();
277
- var instance = {};
278
- for (var index = 0; index < attributeTypes.length; index++) {
279
- var attributeType = attributeTypes[index];
280
- instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
281
- }
282
- return instance;
283
- }
284
- };
285
- ObjectSerializer.deserialize = function (data, type) {
286
- type = ObjectSerializer.findCorrectType(data, type);
287
- if (data == undefined) {
288
- return data;
289
- }
290
- else if (primitives.indexOf(type.toLowerCase()) !== -1) {
291
- return data;
292
- }
293
- else if (type.lastIndexOf("Array<", 0) === 0) {
294
- var subType = type.replace("Array<", "");
295
- subType = subType.substring(0, subType.length - 1);
296
- var transformedData = [];
297
- for (var index = 0; index < data.length; index++) {
298
- var datum = data[index];
299
- transformedData.push(ObjectSerializer.deserialize(datum, subType));
300
- }
301
- return transformedData;
302
- }
303
- else if (type === "Date") {
304
- return new Date(data);
305
- }
306
- else {
307
- if (enumsMap[type]) {
308
- return data;
309
- }
310
- if (!typeMap[type]) {
311
- return data;
312
- }
313
- var instance = new typeMap[type]();
314
- var attributeTypes = typeMap[type].getAttributeTypeMap();
315
- for (var index = 0; index < attributeTypes.length; index++) {
316
- var attributeType = attributeTypes[index];
317
- instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
318
- }
319
- return instance;
320
- }
321
- };
322
- return ObjectSerializer;
323
- }());
324
- exports.ObjectSerializer = ObjectSerializer;
325
- var HttpBasicAuth = (function () {
326
- function HttpBasicAuth() {
327
- this.username = '';
328
- this.password = '';
329
- }
330
- HttpBasicAuth.prototype.applyToRequest = function (requestOptions) {
331
- requestOptions.auth = {
332
- username: this.username, password: this.password
333
- };
334
- };
335
- return HttpBasicAuth;
336
- }());
337
- exports.HttpBasicAuth = HttpBasicAuth;
338
- var HttpBearerAuth = (function () {
339
- function HttpBearerAuth() {
340
- this.accessToken = '';
341
- }
342
- HttpBearerAuth.prototype.applyToRequest = function (requestOptions) {
343
- if (requestOptions && requestOptions.headers) {
344
- var accessToken = typeof this.accessToken === 'function'
345
- ? this.accessToken()
346
- : this.accessToken;
347
- requestOptions.headers["Authorization"] = "Bearer " + accessToken;
348
- }
349
- };
350
- return HttpBearerAuth;
351
- }());
352
- exports.HttpBearerAuth = HttpBearerAuth;
353
- var ApiKeyAuth = (function () {
354
- function ApiKeyAuth(location, paramName) {
355
- this.location = location;
356
- this.paramName = paramName;
357
- this.apiKey = '';
358
- }
359
- ApiKeyAuth.prototype.applyToRequest = function (requestOptions) {
360
- if (this.location == "query") {
361
- requestOptions.qs[this.paramName] = this.apiKey;
362
- }
363
- else if (this.location == "header" && requestOptions && requestOptions.headers) {
364
- requestOptions.headers[this.paramName] = this.apiKey;
365
- }
366
- else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
367
- if (requestOptions.headers['Cookie']) {
368
- requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
369
- }
370
- else {
371
- requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
372
- }
373
- }
374
- };
375
- return ApiKeyAuth;
376
- }());
377
- exports.ApiKeyAuth = ApiKeyAuth;
378
- var OAuth = (function () {
379
- function OAuth() {
380
- this.accessToken = '';
381
- }
382
- OAuth.prototype.applyToRequest = function (requestOptions) {
383
- if (requestOptions && requestOptions.headers) {
384
- requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
385
- }
386
- };
387
- return OAuth;
388
- }());
389
- exports.OAuth = OAuth;
390
- var VoidAuth = (function () {
391
- function VoidAuth() {
392
- this.username = '';
393
- this.password = '';
394
- }
395
- VoidAuth.prototype.applyToRequest = function (_) {
396
- };
397
- return VoidAuth;
398
- }());
399
- exports.VoidAuth = VoidAuth;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBearerAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
18
+ __exportStar(require("./addFutureBidDto"), exports);
19
+ __exportStar(require("./addMatchedDeliveryDateDto"), exports);
20
+ __exportStar(require("./associatedCostDto"), exports);
21
+ __exportStar(require("./bulkAddRelistingDto"), exports);
22
+ __exportStar(require("./bulkAddTertiaryCostsDto"), exports);
23
+ __exportStar(require("./bulkChangeFreightRatesDto"), exports);
24
+ __exportStar(require("./bulkChangeIncotermDto"), exports);
25
+ __exportStar(require("./bulkChangeSellPriceItemDto"), exports);
26
+ __exportStar(require("./bulkChangeSellPricesDto"), exports);
27
+ __exportStar(require("./bulkChangeSellingTraderDto"), exports);
28
+ __exportStar(require("./bulkDeleteBuyerSpecialInstructionsDto"), exports);
29
+ __exportStar(require("./bulkUpdateBuyerSpecialInstructionsDto"), exports);
30
+ __exportStar(require("./bulkUpdateDeliveryDatesDto"), exports);
31
+ __exportStar(require("./bulkUpdateDocsCountryDto"), exports);
32
+ __exportStar(require("./bulkUpdateMatchedDeliveryDatesDto"), exports);
33
+ __exportStar(require("./costAmountDto"), exports);
34
+ __exportStar(require("./costAttributesDto"), exports);
35
+ __exportStar(require("./costAttributesDtoAssociated"), exports);
36
+ __exportStar(require("./costAttributesDtoDefaultCost"), exports);
37
+ __exportStar(require("./costDto"), exports);
38
+ __exportStar(require("./costDtoAmount"), exports);
39
+ __exportStar(require("./costDtoAttributes"), exports);
40
+ __exportStar(require("./costDtoSource"), exports);
41
+ __exportStar(require("./costSourceDto"), exports);
42
+ __exportStar(require("./createAutomatedOfferDto"), exports);
43
+ __exportStar(require("./createMatchedOfferDto"), exports);
44
+ __exportStar(require("./createMatchedOfferDtoAttributes"), exports);
45
+ __exportStar(require("./createOfferDto"), exports);
46
+ __exportStar(require("./createOfferDtoAttributes"), exports);
47
+ __exportStar(require("./createOfferDtoFormula"), exports);
48
+ __exportStar(require("./createOfferDtoPacking"), exports);
49
+ __exportStar(require("./createOfferDtoWeight"), exports);
50
+ __exportStar(require("./defaultCostDto"), exports);
51
+ __exportStar(require("./formulaDto"), exports);
52
+ __exportStar(require("./formulaLineDto"), exports);
53
+ __exportStar(require("./generalAddressDto"), exports);
54
+ __exportStar(require("./healthControllerPing200Response"), exports);
55
+ __exportStar(require("./healthControllerPing200ResponseInfoValue"), exports);
56
+ __exportStar(require("./healthControllerPing503Response"), exports);
57
+ __exportStar(require("./matchedOfferAttributesDto"), exports);
58
+ __exportStar(require("./offerAttributesDto"), exports);
59
+ __exportStar(require("./offerAttributesDtoEstablishment"), exports);
60
+ __exportStar(require("./overwriteItemDto"), exports);
61
+ __exportStar(require("./overwriteItemDtoWeight"), exports);
62
+ __exportStar(require("./packing"), exports);
63
+ __exportStar(require("./pinActionDto"), exports);
64
+ __exportStar(require("./relistingConfigDto"), exports);
65
+ __exportStar(require("./relistingDetailDto"), exports);
66
+ __exportStar(require("./relistingDetailDtoRandomConfig"), exports);
67
+ __exportStar(require("./relistingRandomConfigDto"), exports);
68
+ __exportStar(require("./updateFutureBidDto"), exports);
69
+ __exportStar(require("./updateMatchedDeliveryDateDto"), exports);
70
+ __exportStar(require("./userPin"), exports);
71
+ __exportStar(require("./weight"), exports);
72
+ __exportStar(require("./weightDto"), exports);
73
+ var addFutureBidDto_1 = require("./addFutureBidDto");
74
+ var addMatchedDeliveryDateDto_1 = require("./addMatchedDeliveryDateDto");
75
+ var associatedCostDto_1 = require("./associatedCostDto");
76
+ var bulkAddRelistingDto_1 = require("./bulkAddRelistingDto");
77
+ var bulkAddTertiaryCostsDto_1 = require("./bulkAddTertiaryCostsDto");
78
+ var bulkChangeFreightRatesDto_1 = require("./bulkChangeFreightRatesDto");
79
+ var bulkChangeIncotermDto_1 = require("./bulkChangeIncotermDto");
80
+ var bulkChangeSellPriceItemDto_1 = require("./bulkChangeSellPriceItemDto");
81
+ var bulkChangeSellPricesDto_1 = require("./bulkChangeSellPricesDto");
82
+ var bulkChangeSellingTraderDto_1 = require("./bulkChangeSellingTraderDto");
83
+ var bulkDeleteBuyerSpecialInstructionsDto_1 = require("./bulkDeleteBuyerSpecialInstructionsDto");
84
+ var bulkUpdateBuyerSpecialInstructionsDto_1 = require("./bulkUpdateBuyerSpecialInstructionsDto");
85
+ var bulkUpdateDeliveryDatesDto_1 = require("./bulkUpdateDeliveryDatesDto");
86
+ var bulkUpdateDocsCountryDto_1 = require("./bulkUpdateDocsCountryDto");
87
+ var bulkUpdateMatchedDeliveryDatesDto_1 = require("./bulkUpdateMatchedDeliveryDatesDto");
88
+ var costAmountDto_1 = require("./costAmountDto");
89
+ var costAttributesDto_1 = require("./costAttributesDto");
90
+ var costAttributesDtoAssociated_1 = require("./costAttributesDtoAssociated");
91
+ var costAttributesDtoDefaultCost_1 = require("./costAttributesDtoDefaultCost");
92
+ var costDto_1 = require("./costDto");
93
+ var costDtoAmount_1 = require("./costDtoAmount");
94
+ var costDtoAttributes_1 = require("./costDtoAttributes");
95
+ var costDtoSource_1 = require("./costDtoSource");
96
+ var costSourceDto_1 = require("./costSourceDto");
97
+ var createAutomatedOfferDto_1 = require("./createAutomatedOfferDto");
98
+ var createMatchedOfferDto_1 = require("./createMatchedOfferDto");
99
+ var createMatchedOfferDtoAttributes_1 = require("./createMatchedOfferDtoAttributes");
100
+ var createOfferDto_1 = require("./createOfferDto");
101
+ var createOfferDtoAttributes_1 = require("./createOfferDtoAttributes");
102
+ var createOfferDtoFormula_1 = require("./createOfferDtoFormula");
103
+ var createOfferDtoPacking_1 = require("./createOfferDtoPacking");
104
+ var createOfferDtoWeight_1 = require("./createOfferDtoWeight");
105
+ var defaultCostDto_1 = require("./defaultCostDto");
106
+ var formulaDto_1 = require("./formulaDto");
107
+ var formulaLineDto_1 = require("./formulaLineDto");
108
+ var generalAddressDto_1 = require("./generalAddressDto");
109
+ var healthControllerPing200Response_1 = require("./healthControllerPing200Response");
110
+ var healthControllerPing200ResponseInfoValue_1 = require("./healthControllerPing200ResponseInfoValue");
111
+ var healthControllerPing503Response_1 = require("./healthControllerPing503Response");
112
+ var matchedOfferAttributesDto_1 = require("./matchedOfferAttributesDto");
113
+ var offerAttributesDto_1 = require("./offerAttributesDto");
114
+ var offerAttributesDtoEstablishment_1 = require("./offerAttributesDtoEstablishment");
115
+ var overwriteItemDto_1 = require("./overwriteItemDto");
116
+ var overwriteItemDtoWeight_1 = require("./overwriteItemDtoWeight");
117
+ var packing_1 = require("./packing");
118
+ var pinActionDto_1 = require("./pinActionDto");
119
+ var relistingConfigDto_1 = require("./relistingConfigDto");
120
+ var relistingDetailDto_1 = require("./relistingDetailDto");
121
+ var relistingDetailDtoRandomConfig_1 = require("./relistingDetailDtoRandomConfig");
122
+ var relistingRandomConfigDto_1 = require("./relistingRandomConfigDto");
123
+ var updateFutureBidDto_1 = require("./updateFutureBidDto");
124
+ var updateMatchedDeliveryDateDto_1 = require("./updateMatchedDeliveryDateDto");
125
+ var userPin_1 = require("./userPin");
126
+ var weight_1 = require("./weight");
127
+ var weightDto_1 = require("./weightDto");
128
+ var primitives = [
129
+ "string",
130
+ "boolean",
131
+ "double",
132
+ "integer",
133
+ "long",
134
+ "float",
135
+ "number",
136
+ "any"
137
+ ];
138
+ var enumsMap = {
139
+ "CreateAutomatedOfferDto.TypeEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.TypeEnum,
140
+ "CreateAutomatedOfferDto.StatusEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.StatusEnum,
141
+ "CreateAutomatedOfferDto.AutomatedOfferStatusEnum": createAutomatedOfferDto_1.CreateAutomatedOfferDto.AutomatedOfferStatusEnum,
142
+ "CreateMatchedOfferDto.StatusEnum": createMatchedOfferDto_1.CreateMatchedOfferDto.StatusEnum,
143
+ "CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum": createMatchedOfferDtoAttributes_1.CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum,
144
+ "CreateOfferDto.TypeEnum": createOfferDto_1.CreateOfferDto.TypeEnum,
145
+ "CreateOfferDto.StatusEnum": createOfferDto_1.CreateOfferDto.StatusEnum,
146
+ "CreateOfferDtoAttributes.DeliveryPreferenceEnum": createOfferDtoAttributes_1.CreateOfferDtoAttributes.DeliveryPreferenceEnum,
147
+ "MatchedOfferAttributesDto.DeliveryPreferenceEnum": matchedOfferAttributesDto_1.MatchedOfferAttributesDto.DeliveryPreferenceEnum,
148
+ "OfferAttributesDto.DeliveryPreferenceEnum": offerAttributesDto_1.OfferAttributesDto.DeliveryPreferenceEnum,
149
+ "RelistingDetailDto.StatusEnum": relistingDetailDto_1.RelistingDetailDto.StatusEnum,
150
+ };
151
+ var typeMap = {
152
+ "AddFutureBidDto": addFutureBidDto_1.AddFutureBidDto,
153
+ "AddMatchedDeliveryDateDto": addMatchedDeliveryDateDto_1.AddMatchedDeliveryDateDto,
154
+ "AssociatedCostDto": associatedCostDto_1.AssociatedCostDto,
155
+ "BulkAddRelistingDto": bulkAddRelistingDto_1.BulkAddRelistingDto,
156
+ "BulkAddTertiaryCostsDto": bulkAddTertiaryCostsDto_1.BulkAddTertiaryCostsDto,
157
+ "BulkChangeFreightRatesDto": bulkChangeFreightRatesDto_1.BulkChangeFreightRatesDto,
158
+ "BulkChangeIncotermDto": bulkChangeIncotermDto_1.BulkChangeIncotermDto,
159
+ "BulkChangeSellPriceItemDto": bulkChangeSellPriceItemDto_1.BulkChangeSellPriceItemDto,
160
+ "BulkChangeSellPricesDto": bulkChangeSellPricesDto_1.BulkChangeSellPricesDto,
161
+ "BulkChangeSellingTraderDto": bulkChangeSellingTraderDto_1.BulkChangeSellingTraderDto,
162
+ "BulkDeleteBuyerSpecialInstructionsDto": bulkDeleteBuyerSpecialInstructionsDto_1.BulkDeleteBuyerSpecialInstructionsDto,
163
+ "BulkUpdateBuyerSpecialInstructionsDto": bulkUpdateBuyerSpecialInstructionsDto_1.BulkUpdateBuyerSpecialInstructionsDto,
164
+ "BulkUpdateDeliveryDatesDto": bulkUpdateDeliveryDatesDto_1.BulkUpdateDeliveryDatesDto,
165
+ "BulkUpdateDocsCountryDto": bulkUpdateDocsCountryDto_1.BulkUpdateDocsCountryDto,
166
+ "BulkUpdateMatchedDeliveryDatesDto": bulkUpdateMatchedDeliveryDatesDto_1.BulkUpdateMatchedDeliveryDatesDto,
167
+ "CostAmountDto": costAmountDto_1.CostAmountDto,
168
+ "CostAttributesDto": costAttributesDto_1.CostAttributesDto,
169
+ "CostAttributesDtoAssociated": costAttributesDtoAssociated_1.CostAttributesDtoAssociated,
170
+ "CostAttributesDtoDefaultCost": costAttributesDtoDefaultCost_1.CostAttributesDtoDefaultCost,
171
+ "CostDto": costDto_1.CostDto,
172
+ "CostDtoAmount": costDtoAmount_1.CostDtoAmount,
173
+ "CostDtoAttributes": costDtoAttributes_1.CostDtoAttributes,
174
+ "CostDtoSource": costDtoSource_1.CostDtoSource,
175
+ "CostSourceDto": costSourceDto_1.CostSourceDto,
176
+ "CreateAutomatedOfferDto": createAutomatedOfferDto_1.CreateAutomatedOfferDto,
177
+ "CreateMatchedOfferDto": createMatchedOfferDto_1.CreateMatchedOfferDto,
178
+ "CreateMatchedOfferDtoAttributes": createMatchedOfferDtoAttributes_1.CreateMatchedOfferDtoAttributes,
179
+ "CreateOfferDto": createOfferDto_1.CreateOfferDto,
180
+ "CreateOfferDtoAttributes": createOfferDtoAttributes_1.CreateOfferDtoAttributes,
181
+ "CreateOfferDtoFormula": createOfferDtoFormula_1.CreateOfferDtoFormula,
182
+ "CreateOfferDtoPacking": createOfferDtoPacking_1.CreateOfferDtoPacking,
183
+ "CreateOfferDtoWeight": createOfferDtoWeight_1.CreateOfferDtoWeight,
184
+ "DefaultCostDto": defaultCostDto_1.DefaultCostDto,
185
+ "FormulaDto": formulaDto_1.FormulaDto,
186
+ "FormulaLineDto": formulaLineDto_1.FormulaLineDto,
187
+ "GeneralAddressDto": generalAddressDto_1.GeneralAddressDto,
188
+ "HealthControllerPing200Response": healthControllerPing200Response_1.HealthControllerPing200Response,
189
+ "HealthControllerPing200ResponseInfoValue": healthControllerPing200ResponseInfoValue_1.HealthControllerPing200ResponseInfoValue,
190
+ "HealthControllerPing503Response": healthControllerPing503Response_1.HealthControllerPing503Response,
191
+ "MatchedOfferAttributesDto": matchedOfferAttributesDto_1.MatchedOfferAttributesDto,
192
+ "OfferAttributesDto": offerAttributesDto_1.OfferAttributesDto,
193
+ "OfferAttributesDtoEstablishment": offerAttributesDtoEstablishment_1.OfferAttributesDtoEstablishment,
194
+ "OverwriteItemDto": overwriteItemDto_1.OverwriteItemDto,
195
+ "OverwriteItemDtoWeight": overwriteItemDtoWeight_1.OverwriteItemDtoWeight,
196
+ "Packing": packing_1.Packing,
197
+ "PinActionDto": pinActionDto_1.PinActionDto,
198
+ "RelistingConfigDto": relistingConfigDto_1.RelistingConfigDto,
199
+ "RelistingDetailDto": relistingDetailDto_1.RelistingDetailDto,
200
+ "RelistingDetailDtoRandomConfig": relistingDetailDtoRandomConfig_1.RelistingDetailDtoRandomConfig,
201
+ "RelistingRandomConfigDto": relistingRandomConfigDto_1.RelistingRandomConfigDto,
202
+ "UpdateFutureBidDto": updateFutureBidDto_1.UpdateFutureBidDto,
203
+ "UpdateMatchedDeliveryDateDto": updateMatchedDeliveryDateDto_1.UpdateMatchedDeliveryDateDto,
204
+ "UserPin": userPin_1.UserPin,
205
+ "Weight": weight_1.Weight,
206
+ "WeightDto": weightDto_1.WeightDto,
207
+ };
208
+ var ObjectSerializer = (function () {
209
+ function ObjectSerializer() {
210
+ }
211
+ ObjectSerializer.findCorrectType = function (data, expectedType) {
212
+ if (data == undefined) {
213
+ return expectedType;
214
+ }
215
+ else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
216
+ return expectedType;
217
+ }
218
+ else if (expectedType === "Date") {
219
+ return expectedType;
220
+ }
221
+ else {
222
+ if (enumsMap[expectedType]) {
223
+ return expectedType;
224
+ }
225
+ if (!typeMap[expectedType]) {
226
+ return expectedType;
227
+ }
228
+ var discriminatorProperty = typeMap[expectedType].discriminator;
229
+ if (discriminatorProperty == null) {
230
+ return expectedType;
231
+ }
232
+ else {
233
+ if (data[discriminatorProperty]) {
234
+ var discriminatorType = data[discriminatorProperty];
235
+ if (typeMap[discriminatorType]) {
236
+ return discriminatorType;
237
+ }
238
+ else {
239
+ return expectedType;
240
+ }
241
+ }
242
+ else {
243
+ return expectedType;
244
+ }
245
+ }
246
+ }
247
+ };
248
+ ObjectSerializer.serialize = function (data, type) {
249
+ if (data == undefined) {
250
+ return data;
251
+ }
252
+ else if (primitives.indexOf(type.toLowerCase()) !== -1) {
253
+ return data;
254
+ }
255
+ else if (type.lastIndexOf("Array<", 0) === 0) {
256
+ var subType = type.replace("Array<", "");
257
+ subType = subType.substring(0, subType.length - 1);
258
+ var transformedData = [];
259
+ for (var index = 0; index < data.length; index++) {
260
+ var datum = data[index];
261
+ transformedData.push(ObjectSerializer.serialize(datum, subType));
262
+ }
263
+ return transformedData;
264
+ }
265
+ else if (type === "Date") {
266
+ return data.toISOString();
267
+ }
268
+ else {
269
+ if (enumsMap[type]) {
270
+ return data;
271
+ }
272
+ if (!typeMap[type]) {
273
+ return data;
274
+ }
275
+ type = this.findCorrectType(data, type);
276
+ var attributeTypes = typeMap[type].getAttributeTypeMap();
277
+ var instance = {};
278
+ for (var index = 0; index < attributeTypes.length; index++) {
279
+ var attributeType = attributeTypes[index];
280
+ instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
281
+ }
282
+ return instance;
283
+ }
284
+ };
285
+ ObjectSerializer.deserialize = function (data, type) {
286
+ type = ObjectSerializer.findCorrectType(data, type);
287
+ if (data == undefined) {
288
+ return data;
289
+ }
290
+ else if (primitives.indexOf(type.toLowerCase()) !== -1) {
291
+ return data;
292
+ }
293
+ else if (type.lastIndexOf("Array<", 0) === 0) {
294
+ var subType = type.replace("Array<", "");
295
+ subType = subType.substring(0, subType.length - 1);
296
+ var transformedData = [];
297
+ for (var index = 0; index < data.length; index++) {
298
+ var datum = data[index];
299
+ transformedData.push(ObjectSerializer.deserialize(datum, subType));
300
+ }
301
+ return transformedData;
302
+ }
303
+ else if (type === "Date") {
304
+ return new Date(data);
305
+ }
306
+ else {
307
+ if (enumsMap[type]) {
308
+ return data;
309
+ }
310
+ if (!typeMap[type]) {
311
+ return data;
312
+ }
313
+ var instance = new typeMap[type]();
314
+ var attributeTypes = typeMap[type].getAttributeTypeMap();
315
+ for (var index = 0; index < attributeTypes.length; index++) {
316
+ var attributeType = attributeTypes[index];
317
+ instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
318
+ }
319
+ return instance;
320
+ }
321
+ };
322
+ return ObjectSerializer;
323
+ }());
324
+ exports.ObjectSerializer = ObjectSerializer;
325
+ var HttpBasicAuth = (function () {
326
+ function HttpBasicAuth() {
327
+ this.username = '';
328
+ this.password = '';
329
+ }
330
+ HttpBasicAuth.prototype.applyToRequest = function (requestOptions) {
331
+ requestOptions.auth = {
332
+ username: this.username, password: this.password
333
+ };
334
+ };
335
+ return HttpBasicAuth;
336
+ }());
337
+ exports.HttpBasicAuth = HttpBasicAuth;
338
+ var HttpBearerAuth = (function () {
339
+ function HttpBearerAuth() {
340
+ this.accessToken = '';
341
+ }
342
+ HttpBearerAuth.prototype.applyToRequest = function (requestOptions) {
343
+ if (requestOptions && requestOptions.headers) {
344
+ var accessToken = typeof this.accessToken === 'function'
345
+ ? this.accessToken()
346
+ : this.accessToken;
347
+ requestOptions.headers["Authorization"] = "Bearer " + accessToken;
348
+ }
349
+ };
350
+ return HttpBearerAuth;
351
+ }());
352
+ exports.HttpBearerAuth = HttpBearerAuth;
353
+ var ApiKeyAuth = (function () {
354
+ function ApiKeyAuth(location, paramName) {
355
+ this.location = location;
356
+ this.paramName = paramName;
357
+ this.apiKey = '';
358
+ }
359
+ ApiKeyAuth.prototype.applyToRequest = function (requestOptions) {
360
+ if (this.location == "query") {
361
+ requestOptions.qs[this.paramName] = this.apiKey;
362
+ }
363
+ else if (this.location == "header" && requestOptions && requestOptions.headers) {
364
+ requestOptions.headers[this.paramName] = this.apiKey;
365
+ }
366
+ else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
367
+ if (requestOptions.headers['Cookie']) {
368
+ requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
369
+ }
370
+ else {
371
+ requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
372
+ }
373
+ }
374
+ };
375
+ return ApiKeyAuth;
376
+ }());
377
+ exports.ApiKeyAuth = ApiKeyAuth;
378
+ var OAuth = (function () {
379
+ function OAuth() {
380
+ this.accessToken = '';
381
+ }
382
+ OAuth.prototype.applyToRequest = function (requestOptions) {
383
+ if (requestOptions && requestOptions.headers) {
384
+ requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
385
+ }
386
+ };
387
+ return OAuth;
388
+ }());
389
+ exports.OAuth = OAuth;
390
+ var VoidAuth = (function () {
391
+ function VoidAuth() {
392
+ this.username = '';
393
+ this.password = '';
394
+ }
395
+ VoidAuth.prototype.applyToRequest = function (_) {
396
+ };
397
+ return VoidAuth;
398
+ }());
399
+ exports.VoidAuth = VoidAuth;
400
400
  //# sourceMappingURL=models.js.map