@isoftdata/ebay-utility 1.0.0

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 (660) hide show
  1. package/Readme.md +110 -0
  2. package/lib/adapters/AdapterResult.d.ts +84 -0
  3. package/lib/adapters/AdapterResult.d.ts.map +1 -0
  4. package/lib/adapters/AdapterResult.js +117 -0
  5. package/lib/adapters/AdapterResult.js.map +1 -0
  6. package/lib/adapters/AdapterToUseCaseConverter.d.ts +77 -0
  7. package/lib/adapters/AdapterToUseCaseConverter.d.ts.map +1 -0
  8. package/lib/adapters/AdapterToUseCaseConverter.js +223 -0
  9. package/lib/adapters/AdapterToUseCaseConverter.js.map +1 -0
  10. package/lib/adapters/AuthServerRepo.d.ts +13 -0
  11. package/lib/adapters/AuthServerRepo.d.ts.map +1 -0
  12. package/lib/adapters/AuthServerRepo.js +23 -0
  13. package/lib/adapters/AuthServerRepo.js.map +1 -0
  14. package/lib/adapters/ebay/EbayAdapter.d.ts +51 -0
  15. package/lib/adapters/ebay/EbayAdapter.d.ts.map +1 -0
  16. package/lib/adapters/ebay/EbayAdapter.js +310 -0
  17. package/lib/adapters/ebay/EbayAdapter.js.map +1 -0
  18. package/lib/adapters/itrack/ItrackAdapter.d.ts +52 -0
  19. package/lib/adapters/itrack/ItrackAdapter.d.ts.map +1 -0
  20. package/lib/adapters/itrack/ItrackAdapter.js +166 -0
  21. package/lib/adapters/itrack/ItrackAdapter.js.map +1 -0
  22. package/lib/entities/Request.d.ts +8 -0
  23. package/lib/entities/Request.d.ts.map +1 -0
  24. package/lib/entities/Request.js +2 -0
  25. package/lib/entities/Request.js.map +1 -0
  26. package/lib/entities/ebay/Address.d.ts +63 -0
  27. package/lib/entities/ebay/Address.d.ts.map +1 -0
  28. package/lib/entities/ebay/Address.js +24 -0
  29. package/lib/entities/ebay/Address.js.map +1 -0
  30. package/lib/entities/ebay/Amount.d.ts +19 -0
  31. package/lib/entities/ebay/Amount.d.ts.map +1 -0
  32. package/lib/entities/ebay/Amount.js +6 -0
  33. package/lib/entities/ebay/Amount.js.map +1 -0
  34. package/lib/entities/ebay/Availability.d.ts +437 -0
  35. package/lib/entities/ebay/Availability.d.ts.map +1 -0
  36. package/lib/entities/ebay/Availability.js +140 -0
  37. package/lib/entities/ebay/Availability.js.map +1 -0
  38. package/lib/entities/ebay/CategoryType.d.ts +41 -0
  39. package/lib/entities/ebay/CategoryType.d.ts.map +1 -0
  40. package/lib/entities/ebay/CategoryType.js +22 -0
  41. package/lib/entities/ebay/CategoryType.js.map +1 -0
  42. package/lib/entities/ebay/Charity.d.ts +34 -0
  43. package/lib/entities/ebay/Charity.d.ts.map +1 -0
  44. package/lib/entities/ebay/Charity.js +13 -0
  45. package/lib/entities/ebay/Charity.js.map +1 -0
  46. package/lib/entities/ebay/ConditionDescription.d.ts +13 -0
  47. package/lib/entities/ebay/ConditionDescription.d.ts.map +1 -0
  48. package/lib/entities/ebay/ConditionDescription.js +12 -0
  49. package/lib/entities/ebay/ConditionDescription.js.map +1 -0
  50. package/lib/entities/ebay/ConditionDescriptors.d.ts +16 -0
  51. package/lib/entities/ebay/ConditionDescriptors.d.ts.map +1 -0
  52. package/lib/entities/ebay/ConditionDescriptors.js +13 -0
  53. package/lib/entities/ebay/ConditionDescriptors.js.map +1 -0
  54. package/lib/entities/ebay/ConditionEnum.d.ts +62 -0
  55. package/lib/entities/ebay/ConditionEnum.d.ts.map +1 -0
  56. package/lib/entities/ebay/ConditionEnum.js +73 -0
  57. package/lib/entities/ebay/ConditionEnum.js.map +1 -0
  58. package/lib/entities/ebay/ErrorDetailsV3.d.ts +16 -0
  59. package/lib/entities/ebay/ErrorDetailsV3.d.ts.map +1 -0
  60. package/lib/entities/ebay/ErrorDetailsV3.js +2 -0
  61. package/lib/entities/ebay/ErrorDetailsV3.js.map +1 -0
  62. package/lib/entities/ebay/FulfillmentPolicy.d.ts +130 -0
  63. package/lib/entities/ebay/FulfillmentPolicy.d.ts.map +1 -0
  64. package/lib/entities/ebay/FulfillmentPolicy.js +2 -0
  65. package/lib/entities/ebay/FulfillmentPolicy.js.map +1 -0
  66. package/lib/entities/ebay/GeoCoordinates.d.ts +21 -0
  67. package/lib/entities/ebay/GeoCoordinates.d.ts.map +1 -0
  68. package/lib/entities/ebay/GeoCoordinates.js +2 -0
  69. package/lib/entities/ebay/GeoCoordinates.js.map +1 -0
  70. package/lib/entities/ebay/ImageUpload.d.ts +45 -0
  71. package/lib/entities/ebay/ImageUpload.d.ts.map +1 -0
  72. package/lib/entities/ebay/ImageUpload.js +2 -0
  73. package/lib/entities/ebay/ImageUpload.js.map +1 -0
  74. package/lib/entities/ebay/Interval.d.ts +23 -0
  75. package/lib/entities/ebay/Interval.d.ts.map +1 -0
  76. package/lib/entities/ebay/Interval.js +2 -0
  77. package/lib/entities/ebay/Interval.js.map +1 -0
  78. package/lib/entities/ebay/InventoryItem.d.ts +112 -0
  79. package/lib/entities/ebay/InventoryItem.d.ts.map +1 -0
  80. package/lib/entities/ebay/InventoryItem.js +102 -0
  81. package/lib/entities/ebay/InventoryItem.js.map +1 -0
  82. package/lib/entities/ebay/InventoryLocation.d.ts +77 -0
  83. package/lib/entities/ebay/InventoryLocation.d.ts.map +1 -0
  84. package/lib/entities/ebay/InventoryLocation.js +2 -0
  85. package/lib/entities/ebay/InventoryLocation.js.map +1 -0
  86. package/lib/entities/ebay/InventoryLocationFull.d.ts +64 -0
  87. package/lib/entities/ebay/InventoryLocationFull.d.ts.map +1 -0
  88. package/lib/entities/ebay/InventoryLocationFull.js +42 -0
  89. package/lib/entities/ebay/InventoryLocationFull.js.map +1 -0
  90. package/lib/entities/ebay/ListingDurationEnum.d.ts +26 -0
  91. package/lib/entities/ebay/ListingDurationEnum.d.ts.map +1 -0
  92. package/lib/entities/ebay/ListingDurationEnum.js +33 -0
  93. package/lib/entities/ebay/ListingDurationEnum.js.map +1 -0
  94. package/lib/entities/ebay/ListingPolicies.d.ts +164 -0
  95. package/lib/entities/ebay/ListingPolicies.d.ts.map +1 -0
  96. package/lib/entities/ebay/ListingPolicies.js +30 -0
  97. package/lib/entities/ebay/ListingPolicies.js.map +1 -0
  98. package/lib/entities/ebay/LocationDetails.d.ts +34 -0
  99. package/lib/entities/ebay/LocationDetails.d.ts.map +1 -0
  100. package/lib/entities/ebay/LocationDetails.js +12 -0
  101. package/lib/entities/ebay/LocationDetails.js.map +1 -0
  102. package/lib/entities/ebay/MarketplaceEnum.d.ts +17 -0
  103. package/lib/entities/ebay/MarketplaceEnum.d.ts.map +1 -0
  104. package/lib/entities/ebay/MarketplaceEnum.js +31 -0
  105. package/lib/entities/ebay/MarketplaceEnum.js.map +1 -0
  106. package/lib/entities/ebay/MerchantLocationKey.d.ts +4 -0
  107. package/lib/entities/ebay/MerchantLocationKey.d.ts.map +1 -0
  108. package/lib/entities/ebay/MerchantLocationKey.js +3 -0
  109. package/lib/entities/ebay/MerchantLocationKey.js.map +1 -0
  110. package/lib/entities/ebay/Offer.d.ts +158 -0
  111. package/lib/entities/ebay/Offer.d.ts.map +1 -0
  112. package/lib/entities/ebay/Offer.js +110 -0
  113. package/lib/entities/ebay/Offer.js.map +1 -0
  114. package/lib/entities/ebay/OperatingHours.d.ts +34 -0
  115. package/lib/entities/ebay/OperatingHours.d.ts.map +1 -0
  116. package/lib/entities/ebay/OperatingHours.js +14 -0
  117. package/lib/entities/ebay/OperatingHours.js.map +1 -0
  118. package/lib/entities/ebay/PackageWeightAndSize.d.ts +132 -0
  119. package/lib/entities/ebay/PackageWeightAndSize.d.ts.map +1 -0
  120. package/lib/entities/ebay/PackageWeightAndSize.js +90 -0
  121. package/lib/entities/ebay/PackageWeightAndSize.js.map +1 -0
  122. package/lib/entities/ebay/PaymentPolicy.d.ts +55 -0
  123. package/lib/entities/ebay/PaymentPolicy.d.ts.map +1 -0
  124. package/lib/entities/ebay/PaymentPolicy.js +2 -0
  125. package/lib/entities/ebay/PaymentPolicy.js.map +1 -0
  126. package/lib/entities/ebay/PricingSummary.d.ts +80 -0
  127. package/lib/entities/ebay/PricingSummary.d.ts.map +1 -0
  128. package/lib/entities/ebay/PricingSummary.js +80 -0
  129. package/lib/entities/ebay/PricingSummary.js.map +1 -0
  130. package/lib/entities/ebay/Product.d.ts +119 -0
  131. package/lib/entities/ebay/Product.d.ts.map +1 -0
  132. package/lib/entities/ebay/Product.js +201 -0
  133. package/lib/entities/ebay/Product.js.map +1 -0
  134. package/lib/entities/ebay/ReturnPolicy.d.ts +72 -0
  135. package/lib/entities/ebay/ReturnPolicy.d.ts.map +1 -0
  136. package/lib/entities/ebay/ReturnPolicy.js +6 -0
  137. package/lib/entities/ebay/ReturnPolicy.js.map +1 -0
  138. package/lib/entities/ebay/Scopes.d.ts +7 -0
  139. package/lib/entities/ebay/Scopes.d.ts.map +1 -0
  140. package/lib/entities/ebay/Scopes.js +11 -0
  141. package/lib/entities/ebay/Scopes.js.map +1 -0
  142. package/lib/entities/ebay/ShippingOption.d.ts +91 -0
  143. package/lib/entities/ebay/ShippingOption.d.ts.map +1 -0
  144. package/lib/entities/ebay/ShippingOption.js +45 -0
  145. package/lib/entities/ebay/ShippingOption.js.map +1 -0
  146. package/lib/entities/ebay/ShippingService.d.ts +117 -0
  147. package/lib/entities/ebay/ShippingService.d.ts.map +1 -0
  148. package/lib/entities/ebay/ShippingService.js +11 -0
  149. package/lib/entities/ebay/ShippingService.js.map +1 -0
  150. package/lib/entities/ebay/Sku.d.ts +4 -0
  151. package/lib/entities/ebay/Sku.d.ts.map +1 -0
  152. package/lib/entities/ebay/Sku.js +3 -0
  153. package/lib/entities/ebay/Sku.js.map +1 -0
  154. package/lib/entities/ebay/SpecialHours.d.ts +30 -0
  155. package/lib/entities/ebay/SpecialHours.d.ts.map +1 -0
  156. package/lib/entities/ebay/SpecialHours.js +2 -0
  157. package/lib/entities/ebay/SpecialHours.js.map +1 -0
  158. package/lib/entities/ebay/TimeDuration.d.ts +38 -0
  159. package/lib/entities/ebay/TimeDuration.d.ts.map +1 -0
  160. package/lib/entities/ebay/TimeDuration.js +28 -0
  161. package/lib/entities/ebay/TimeDuration.js.map +1 -0
  162. package/lib/entities/ebay/url.d.ts +3 -0
  163. package/lib/entities/ebay/url.d.ts.map +1 -0
  164. package/lib/entities/ebay/url.js +7 -0
  165. package/lib/entities/ebay/url.js.map +1 -0
  166. package/lib/entities/ebay/validation.d.ts +52 -0
  167. package/lib/entities/ebay/validation.d.ts.map +1 -0
  168. package/lib/entities/ebay/validation.js +174 -0
  169. package/lib/entities/ebay/validation.js.map +1 -0
  170. package/lib/entities/htp/InventoryDetails.d.ts +20 -0
  171. package/lib/entities/htp/InventoryDetails.d.ts.map +1 -0
  172. package/lib/entities/htp/InventoryDetails.js +2 -0
  173. package/lib/entities/htp/InventoryDetails.js.map +1 -0
  174. package/lib/entities/http/HttpHeaders.d.ts +21 -0
  175. package/lib/entities/http/HttpHeaders.d.ts.map +1 -0
  176. package/lib/entities/http/HttpHeaders.js +10 -0
  177. package/lib/entities/http/HttpHeaders.js.map +1 -0
  178. package/lib/entities/http/HttpMethod.d.ts +7 -0
  179. package/lib/entities/http/HttpMethod.d.ts.map +1 -0
  180. package/lib/entities/http/HttpMethod.js +8 -0
  181. package/lib/entities/http/HttpMethod.js.map +1 -0
  182. package/lib/entities/http/HttpRequest.d.ts +10 -0
  183. package/lib/entities/http/HttpRequest.d.ts.map +1 -0
  184. package/lib/entities/http/HttpRequest.js +2 -0
  185. package/lib/entities/http/HttpRequest.js.map +1 -0
  186. package/lib/entities/itrack/FulfillmentPolicy.d.ts +10 -0
  187. package/lib/entities/itrack/FulfillmentPolicy.d.ts.map +1 -0
  188. package/lib/entities/itrack/FulfillmentPolicy.js +2 -0
  189. package/lib/entities/itrack/FulfillmentPolicy.js.map +1 -0
  190. package/lib/entities/itrack/InventoryListingDetail.d.ts +118 -0
  191. package/lib/entities/itrack/InventoryListingDetail.d.ts.map +1 -0
  192. package/lib/entities/itrack/InventoryListingDetail.js +2 -0
  193. package/lib/entities/itrack/InventoryListingDetail.js.map +1 -0
  194. package/lib/entities/itrack/ItrackEbayInventoryItem.js +25 -0
  195. package/lib/entities/itrack/ItrackEbayInventoryItem.js.map +1 -0
  196. package/lib/entities/itrack/ItrackEbayListing.d.ts +45 -0
  197. package/lib/entities/itrack/ItrackEbayListing.d.ts.map +1 -0
  198. package/lib/entities/itrack/ItrackEbayListing.js +25 -0
  199. package/lib/entities/itrack/ItrackEbayListing.js.map +1 -0
  200. package/lib/entities/itrack/ItrackEbayListing_deprecated.d.ts +46 -0
  201. package/lib/entities/itrack/ItrackEbayListing_deprecated.d.ts.map +1 -0
  202. package/lib/entities/itrack/ItrackEbayListing_deprecated.js +27 -0
  203. package/lib/entities/itrack/ItrackEbayListing_deprecated.js.map +1 -0
  204. package/lib/entities/itrack/PaymentPolicy.d.ts +10 -0
  205. package/lib/entities/itrack/PaymentPolicy.d.ts.map +1 -0
  206. package/lib/entities/itrack/PaymentPolicy.js +2 -0
  207. package/lib/entities/itrack/PaymentPolicy.js.map +1 -0
  208. package/lib/entities/itrack/ReturnPolicy.d.ts +10 -0
  209. package/lib/entities/itrack/ReturnPolicy.d.ts.map +1 -0
  210. package/lib/entities/itrack/ReturnPolicy.js +2 -0
  211. package/lib/entities/itrack/ReturnPolicy.js.map +1 -0
  212. package/lib/entities/itrack/ShouldBeOnEbayEnum.d.ts +5 -0
  213. package/lib/entities/itrack/ShouldBeOnEbayEnum.d.ts.map +1 -0
  214. package/lib/entities/itrack/ShouldBeOnEbayEnum.js +6 -0
  215. package/lib/entities/itrack/ShouldBeOnEbayEnum.js.map +1 -0
  216. package/lib/index.d.ts +35 -0
  217. package/lib/index.d.ts.map +1 -0
  218. package/lib/index.js +44 -0
  219. package/lib/index.js.map +1 -0
  220. package/lib/infrastructure/HttpToRepoConverter.d.ts +8 -0
  221. package/lib/infrastructure/HttpToRepoConverter.d.ts.map +1 -0
  222. package/lib/infrastructure/HttpToRepoConverter.js +28 -0
  223. package/lib/infrastructure/HttpToRepoConverter.js.map +1 -0
  224. package/lib/infrastructure/TokenManager.d.ts +33 -0
  225. package/lib/infrastructure/TokenManager.d.ts.map +1 -0
  226. package/lib/infrastructure/TokenManager.js +145 -0
  227. package/lib/infrastructure/TokenManager.js.map +1 -0
  228. package/lib/infrastructure/http.d.ts +15 -0
  229. package/lib/infrastructure/http.d.ts.map +1 -0
  230. package/lib/infrastructure/http.js +59 -0
  231. package/lib/infrastructure/http.js.map +1 -0
  232. package/lib/infrastructure/httpMultipart.d.ts +27 -0
  233. package/lib/infrastructure/httpMultipart.d.ts.map +1 -0
  234. package/lib/infrastructure/httpMultipart.js +98 -0
  235. package/lib/infrastructure/httpMultipart.js.map +1 -0
  236. package/lib/infrastructure/mysql/MysqlDatastore.d.ts +11 -0
  237. package/lib/infrastructure/mysql/MysqlDatastore.d.ts.map +1 -0
  238. package/lib/infrastructure/mysql/MysqlDatastore.js +42 -0
  239. package/lib/infrastructure/mysql/MysqlDatastore.js.map +1 -0
  240. package/lib/infrastructure/mysql/getPool.d.ts +12 -0
  241. package/lib/infrastructure/mysql/getPool.d.ts.map +1 -0
  242. package/lib/infrastructure/mysql/getPool.js +25 -0
  243. package/lib/infrastructure/mysql/getPool.js.map +1 -0
  244. package/lib/ports/DatastoreInterface.d.ts +8 -0
  245. package/lib/ports/DatastoreInterface.d.ts.map +1 -0
  246. package/lib/ports/DatastoreInterface.js +2 -0
  247. package/lib/ports/DatastoreInterface.js.map +1 -0
  248. package/lib/ports/EbayInterface.d.ts +17 -0
  249. package/lib/ports/EbayInterface.d.ts.map +1 -0
  250. package/lib/ports/EbayInterface.js +2 -0
  251. package/lib/ports/EbayInterface.js.map +1 -0
  252. package/lib/ports/HtpInterface.d.ts +1 -0
  253. package/lib/ports/HtpInterface.d.ts.map +1 -0
  254. package/lib/ports/HtpInterface.js +1 -0
  255. package/lib/ports/HtpInterface.js.map +1 -0
  256. package/lib/ports/ItrackInterface.d.ts +10 -0
  257. package/lib/ports/ItrackInterface.d.ts.map +1 -0
  258. package/lib/ports/ItrackInterface.js +2 -0
  259. package/lib/ports/ItrackInterface.js.map +1 -0
  260. package/lib/repositories/EbaySandboxRefreshTokenRepo.d.ts +5 -0
  261. package/lib/repositories/EbaySandboxRefreshTokenRepo.d.ts.map +1 -0
  262. package/lib/repositories/EbaySandboxRefreshTokenRepo.js +8 -0
  263. package/lib/repositories/EbaySandboxRefreshTokenRepo.js.map +1 -0
  264. package/lib/repositories/KeyValueRepo.d.ts +9 -0
  265. package/lib/repositories/KeyValueRepo.d.ts.map +1 -0
  266. package/lib/repositories/KeyValueRepo.js +20 -0
  267. package/lib/repositories/KeyValueRepo.js.map +1 -0
  268. package/lib/repositories/RemoteEbaySandboxTokenRepo.d.ts +5 -0
  269. package/lib/repositories/RemoteEbaySandboxTokenRepo.d.ts.map +1 -0
  270. package/lib/repositories/RemoteEbaySandboxTokenRepo.js +8 -0
  271. package/lib/repositories/RemoteEbaySandboxTokenRepo.js.map +1 -0
  272. package/lib/repositories/RemoteEbayTokenRepo.d.ts +5 -0
  273. package/lib/repositories/RemoteEbayTokenRepo.d.ts.map +1 -0
  274. package/lib/repositories/RemoteEbayTokenRepo.js +8 -0
  275. package/lib/repositories/RemoteEbayTokenRepo.js.map +1 -0
  276. package/lib/repositories/ebay/BaseRepo.d.ts +30 -0
  277. package/lib/repositories/ebay/BaseRepo.d.ts.map +1 -0
  278. package/lib/repositories/ebay/BaseRepo.js +7 -0
  279. package/lib/repositories/ebay/BaseRepo.js.map +1 -0
  280. package/lib/repositories/ebay/CompanyRepo.d.ts +5 -0
  281. package/lib/repositories/ebay/CompanyRepo.d.ts.map +1 -0
  282. package/lib/repositories/ebay/CompanyRepo.js +15 -0
  283. package/lib/repositories/ebay/CompanyRepo.js.map +1 -0
  284. package/lib/repositories/ebay/EbayRefreshTokenRepo.d.ts +1 -0
  285. package/lib/repositories/ebay/EbayRefreshTokenRepo.d.ts.map +1 -0
  286. package/lib/repositories/ebay/EbayRefreshTokenRepo.js +1 -0
  287. package/lib/repositories/ebay/EbayRefreshTokenRepo.js.map +1 -0
  288. package/lib/repositories/ebay/FulfillmentPolicyRepo.d.ts +32 -0
  289. package/lib/repositories/ebay/FulfillmentPolicyRepo.d.ts.map +1 -0
  290. package/lib/repositories/ebay/FulfillmentPolicyRepo.js +42 -0
  291. package/lib/repositories/ebay/FulfillmentPolicyRepo.js.map +1 -0
  292. package/lib/repositories/ebay/ImageUploadRepo.d.ts +25 -0
  293. package/lib/repositories/ebay/ImageUploadRepo.d.ts.map +1 -0
  294. package/lib/repositories/ebay/ImageUploadRepo.js +131 -0
  295. package/lib/repositories/ebay/ImageUploadRepo.js.map +1 -0
  296. package/lib/repositories/ebay/InventoryItemRepo.d.ts +18 -0
  297. package/lib/repositories/ebay/InventoryItemRepo.d.ts.map +1 -0
  298. package/lib/repositories/ebay/InventoryItemRepo.js +54 -0
  299. package/lib/repositories/ebay/InventoryItemRepo.js.map +1 -0
  300. package/lib/repositories/ebay/InventoryLocationRepo.d.ts +21 -0
  301. package/lib/repositories/ebay/InventoryLocationRepo.d.ts.map +1 -0
  302. package/lib/repositories/ebay/InventoryLocationRepo.js +53 -0
  303. package/lib/repositories/ebay/InventoryLocationRepo.js.map +1 -0
  304. package/lib/repositories/ebay/ListingRepo.d.ts +31 -0
  305. package/lib/repositories/ebay/ListingRepo.d.ts.map +1 -0
  306. package/lib/repositories/ebay/ListingRepo.js +43 -0
  307. package/lib/repositories/ebay/ListingRepo.js.map +1 -0
  308. package/lib/repositories/ebay/OfferRepo.d.ts +68 -0
  309. package/lib/repositories/ebay/OfferRepo.d.ts.map +1 -0
  310. package/lib/repositories/ebay/OfferRepo.js +147 -0
  311. package/lib/repositories/ebay/OfferRepo.js.map +1 -0
  312. package/lib/repositories/ebay/PaymentPolicyRepo.d.ts +30 -0
  313. package/lib/repositories/ebay/PaymentPolicyRepo.d.ts.map +1 -0
  314. package/lib/repositories/ebay/PaymentPolicyRepo.js +41 -0
  315. package/lib/repositories/ebay/PaymentPolicyRepo.js.map +1 -0
  316. package/lib/repositories/ebay/ReturnPolicyRepo.d.ts +30 -0
  317. package/lib/repositories/ebay/ReturnPolicyRepo.d.ts.map +1 -0
  318. package/lib/repositories/ebay/ReturnPolicyRepo.js +41 -0
  319. package/lib/repositories/ebay/ReturnPolicyRepo.js.map +1 -0
  320. package/lib/repositories/ebay/ShippingOptionRepo.d.ts +1 -0
  321. package/lib/repositories/ebay/ShippingOptionRepo.d.ts.map +1 -0
  322. package/lib/repositories/ebay/ShippingOptionRepo.js +1 -0
  323. package/lib/repositories/ebay/ShippingOptionRepo.js.map +1 -0
  324. package/lib/repositories/ebay/ShippingServiceRepo.d.ts +1 -0
  325. package/lib/repositories/ebay/ShippingServiceRepo.d.ts.map +1 -0
  326. package/lib/repositories/ebay/ShippingServiceRepo.js +2 -0
  327. package/lib/repositories/ebay/ShippingServiceRepo.js.map +1 -0
  328. package/lib/repositories/htp/InventoryDetailsRepo.d.ts +8 -0
  329. package/lib/repositories/htp/InventoryDetailsRepo.d.ts.map +1 -0
  330. package/lib/repositories/htp/InventoryDetailsRepo.js +25 -0
  331. package/lib/repositories/htp/InventoryDetailsRepo.js.map +1 -0
  332. package/lib/repositories/itrack/BaseRepo.d.ts +7 -0
  333. package/lib/repositories/itrack/BaseRepo.d.ts.map +1 -0
  334. package/lib/repositories/itrack/BaseRepo.js +6 -0
  335. package/lib/repositories/itrack/BaseRepo.js.map +1 -0
  336. package/lib/repositories/itrack/CompanyRepo.d.ts +5 -0
  337. package/lib/repositories/itrack/CompanyRepo.d.ts.map +1 -0
  338. package/lib/repositories/itrack/CompanyRepo.js +8 -0
  339. package/lib/repositories/itrack/CompanyRepo.js.map +1 -0
  340. package/lib/repositories/itrack/EbayInventoryItemRowRepo.d.ts +27 -0
  341. package/lib/repositories/itrack/EbayInventoryItemRowRepo.d.ts.map +1 -0
  342. package/lib/repositories/itrack/EbayInventoryItemRowRepo.js +2 -0
  343. package/lib/repositories/itrack/EbayInventoryItemRowRepo.js.map +1 -0
  344. package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.d.ts +27 -0
  345. package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.d.ts.map +1 -0
  346. package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.js +2 -0
  347. package/lib/repositories/itrack/EbayInventoryItemRowRepo_deprecated.js.map +1 -0
  348. package/lib/repositories/itrack/ImageRepo.d.ts +7 -0
  349. package/lib/repositories/itrack/ImageRepo.d.ts.map +1 -0
  350. package/lib/repositories/itrack/ImageRepo.js +23 -0
  351. package/lib/repositories/itrack/ImageRepo.js.map +1 -0
  352. package/lib/repositories/itrack/ItrackEbayConditionRepo.d.ts +36 -0
  353. package/lib/repositories/itrack/ItrackEbayConditionRepo.d.ts.map +1 -0
  354. package/lib/repositories/itrack/ItrackEbayConditionRepo.js +113 -0
  355. package/lib/repositories/itrack/ItrackEbayConditionRepo.js.map +1 -0
  356. package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.d.ts +11 -0
  357. package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.d.ts.map +1 -0
  358. package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.js +35 -0
  359. package/lib/repositories/itrack/ItrackEbayFulfillmentPolicyRepo.js.map +1 -0
  360. package/lib/repositories/itrack/ItrackEbayInventoryItemRepo.js +75 -0
  361. package/lib/repositories/itrack/ItrackEbayInventoryItemRepo.js.map +1 -0
  362. package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.d.ts +8 -0
  363. package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.d.ts.map +1 -0
  364. package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.js +66 -0
  365. package/lib/repositories/itrack/ItrackEbayInventoryListingDetailRepo_deprecated.js.map +1 -0
  366. package/lib/repositories/itrack/ItrackEbayListingRepo.d.ts +8 -0
  367. package/lib/repositories/itrack/ItrackEbayListingRepo.d.ts.map +1 -0
  368. package/lib/repositories/itrack/ItrackEbayListingRepo.js +66 -0
  369. package/lib/repositories/itrack/ItrackEbayListingRepo.js.map +1 -0
  370. package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.d.ts +11 -0
  371. package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.d.ts.map +1 -0
  372. package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.js +35 -0
  373. package/lib/repositories/itrack/ItrackEbayPaymentPolicyRepo.js.map +1 -0
  374. package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.d.ts +11 -0
  375. package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.d.ts.map +1 -0
  376. package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.js +34 -0
  377. package/lib/repositories/itrack/ItrackEbayReturnPolicyRepo.js.map +1 -0
  378. package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.d.ts +11 -0
  379. package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.d.ts.map +1 -0
  380. package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.js +35 -0
  381. package/lib/repositories/itrack/ItrackFulfillmentPolicyRepo.js.map +1 -0
  382. package/lib/repositories/itrack/ItrackPaymentPolicyRepo.d.ts +11 -0
  383. package/lib/repositories/itrack/ItrackPaymentPolicyRepo.d.ts.map +1 -0
  384. package/lib/repositories/itrack/ItrackPaymentPolicyRepo.js +35 -0
  385. package/lib/repositories/itrack/ItrackPaymentPolicyRepo.js.map +1 -0
  386. package/lib/repositories/itrack/ItrackReturnPolicyRepo.d.ts +11 -0
  387. package/lib/repositories/itrack/ItrackReturnPolicyRepo.d.ts.map +1 -0
  388. package/lib/repositories/itrack/ItrackReturnPolicyRepo.js +34 -0
  389. package/lib/repositories/itrack/ItrackReturnPolicyRepo.js.map +1 -0
  390. package/lib/repositories/itrack/StoreRepo.d.ts +35 -0
  391. package/lib/repositories/itrack/StoreRepo.d.ts.map +1 -0
  392. package/lib/repositories/itrack/StoreRepo.js +35 -0
  393. package/lib/repositories/itrack/StoreRepo.js.map +1 -0
  394. package/lib/tests/processImageUrlTest.d.ts +29 -0
  395. package/lib/tests/processImageUrlTest.d.ts.map +1 -0
  396. package/lib/tests/processImageUrlTest.js +402 -0
  397. package/lib/tests/processImageUrlTest.js.map +1 -0
  398. package/lib/tests/test.d.ts +2 -0
  399. package/lib/tests/test.d.ts.map +1 -0
  400. package/lib/tests/test.js +130 -0
  401. package/lib/tests/test.js.map +1 -0
  402. package/lib/tests/tests.js +130 -0
  403. package/lib/tests/tests.js.map +1 -0
  404. package/lib/types/PushEbayListing.d.ts +1 -0
  405. package/lib/types/PushEbayListing.d.ts.map +1 -0
  406. package/lib/types/PushEbayListing.js +1 -0
  407. package/lib/types/PushEbayListing.js.map +1 -0
  408. package/lib/types/UseCaseResult.d.ts +107 -0
  409. package/lib/types/UseCaseResult.d.ts.map +1 -0
  410. package/lib/types/UseCaseResult.examples.d.ts +42 -0
  411. package/lib/types/UseCaseResult.examples.d.ts.map +1 -0
  412. package/lib/types/UseCaseResult.examples.js +168 -0
  413. package/lib/types/UseCaseResult.examples.js.map +1 -0
  414. package/lib/types/UseCaseResult.js +201 -0
  415. package/lib/types/UseCaseResult.js.map +1 -0
  416. package/lib/usecases/Agg_StoreEvent.d.ts +21 -0
  417. package/lib/usecases/Agg_StoreEvent.d.ts.map +1 -0
  418. package/lib/usecases/Agg_StoreEvent.js +12 -0
  419. package/lib/usecases/Agg_StoreEvent.js.map +1 -0
  420. package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.d.ts +7 -0
  421. package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.d.ts.map +1 -0
  422. package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.js +5 -0
  423. package/lib/usecases/FulfillmentPolicy/AddFulfillmentPolicyToItrack.js.map +1 -0
  424. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.d.ts +6 -0
  425. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.d.ts.map +1 -0
  426. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.js +6 -0
  427. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromEbay.js.map +1 -0
  428. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.d.ts +6 -0
  429. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.d.ts.map +1 -0
  430. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.js +5 -0
  431. package/lib/usecases/FulfillmentPolicy/GetFulfillmentPoliciesFromItrack.js.map +1 -0
  432. package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.d.ts +7 -0
  433. package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.d.ts.map +1 -0
  434. package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.js +5 -0
  435. package/lib/usecases/FulfillmentPolicy/RemoveFulfillmentPolicyFromItrack.js.map +1 -0
  436. package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.d.ts +10 -0
  437. package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.d.ts.map +1 -0
  438. package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.js +35 -0
  439. package/lib/usecases/FulfillmentPolicy/SyncFulfillmentPolicy.js.map +1 -0
  440. package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.d.ts +7 -0
  441. package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.d.ts.map +1 -0
  442. package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.js +5 -0
  443. package/lib/usecases/FulfillmentPolicy/UpdateFulfillmentPolicyFromItrack.js.map +1 -0
  444. package/lib/usecases/FulfillmentPolicy/integration.test.d.ts +2 -0
  445. package/lib/usecases/FulfillmentPolicy/integration.test.d.ts.map +1 -0
  446. package/lib/usecases/FulfillmentPolicy/integration.test.js +52 -0
  447. package/lib/usecases/FulfillmentPolicy/integration.test.js.map +1 -0
  448. package/lib/usecases/GetSigninUrl.d.ts +9 -0
  449. package/lib/usecases/GetSigninUrl.d.ts.map +1 -0
  450. package/lib/usecases/GetSigninUrl.js +18 -0
  451. package/lib/usecases/GetSigninUrl.js.map +1 -0
  452. package/lib/usecases/Images/GetImageFromProduct.d.ts +12 -0
  453. package/lib/usecases/Images/GetImageFromProduct.d.ts.map +1 -0
  454. package/lib/usecases/Images/GetImageFromProduct.js +16 -0
  455. package/lib/usecases/Images/GetImageFromProduct.js.map +1 -0
  456. package/lib/usecases/Images/PushImageToEbay.d.ts +15 -0
  457. package/lib/usecases/Images/PushImageToEbay.d.ts.map +1 -0
  458. package/lib/usecases/Images/PushImageToEbay.js +25 -0
  459. package/lib/usecases/Images/PushImageToEbay.js.map +1 -0
  460. package/lib/usecases/Images/SyncImageToEbay.d.ts +21 -0
  461. package/lib/usecases/Images/SyncImageToEbay.d.ts.map +1 -0
  462. package/lib/usecases/Images/SyncImageToEbay.js +36 -0
  463. package/lib/usecases/Images/SyncImageToEbay.js.map +1 -0
  464. package/lib/usecases/Images/SyncMultipleImagesToEbay.d.ts +19 -0
  465. package/lib/usecases/Images/SyncMultipleImagesToEbay.d.ts.map +1 -0
  466. package/lib/usecases/Images/SyncMultipleImagesToEbay.js +53 -0
  467. package/lib/usecases/Images/SyncMultipleImagesToEbay.js.map +1 -0
  468. package/lib/usecases/Images/integration.test.d.ts +30 -0
  469. package/lib/usecases/Images/integration.test.d.ts.map +1 -0
  470. package/lib/usecases/Images/integration.test.js +320 -0
  471. package/lib/usecases/Images/integration.test.js.map +1 -0
  472. package/lib/usecases/Inventory/ConvertInventoryItemToSku.js +54 -0
  473. package/lib/usecases/Inventory/ConvertInventoryItemToSku.js.map +1 -0
  474. package/lib/usecases/Inventory/GetInventoryFromProduct.d.ts +8 -0
  475. package/lib/usecases/Inventory/GetInventoryFromProduct.d.ts.map +1 -0
  476. package/lib/usecases/Inventory/GetInventoryFromProduct.js +6 -0
  477. package/lib/usecases/Inventory/GetInventoryFromProduct.js.map +1 -0
  478. package/lib/usecases/Inventory/PushInventorySkuToEbay.d.ts +18 -0
  479. package/lib/usecases/Inventory/PushInventorySkuToEbay.d.ts.map +1 -0
  480. package/lib/usecases/Inventory/PushInventorySkuToEbay.js +21 -0
  481. package/lib/usecases/Inventory/PushInventorySkuToEbay.js.map +1 -0
  482. package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.d.ts +1 -0
  483. package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.d.ts.map +1 -0
  484. package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.js +1 -0
  485. package/lib/usecases/Inventory/PushInventorySkuUpdateToEbay.js.map +1 -0
  486. package/lib/usecases/Inventory/SyncInventoryToEbay.d.ts +19 -0
  487. package/lib/usecases/Inventory/SyncInventoryToEbay.d.ts.map +1 -0
  488. package/lib/usecases/Inventory/SyncInventoryToEbay.js +42 -0
  489. package/lib/usecases/Inventory/SyncInventoryToEbay.js.map +1 -0
  490. package/lib/usecases/Inventory/integration.test.d.ts +35 -0
  491. package/lib/usecases/Inventory/integration.test.d.ts.map +1 -0
  492. package/lib/usecases/Inventory/integration.test.js +333 -0
  493. package/lib/usecases/Inventory/integration.test.js.map +1 -0
  494. package/lib/usecases/Listing/GetListingFromProduct.js +15 -0
  495. package/lib/usecases/Listing/GetListingFromProduct.js.map +1 -0
  496. package/lib/usecases/Listing/PushListingToEbay.js +31 -0
  497. package/lib/usecases/Listing/PushListingToEbay.js.map +1 -0
  498. package/lib/usecases/Listing/SyncListing.js +182 -0
  499. package/lib/usecases/Listing/SyncListing.js.map +1 -0
  500. package/lib/usecases/Listing_old/GetListingFromProduct.d.ts +8 -0
  501. package/lib/usecases/Listing_old/GetListingFromProduct.d.ts.map +1 -0
  502. package/lib/usecases/Listing_old/GetListingFromProduct.js +6 -0
  503. package/lib/usecases/Listing_old/GetListingFromProduct.js.map +1 -0
  504. package/lib/usecases/Listing_old/PushListingToEbay.d.ts +16 -0
  505. package/lib/usecases/Listing_old/PushListingToEbay.d.ts.map +1 -0
  506. package/lib/usecases/Listing_old/PushListingToEbay.js +22 -0
  507. package/lib/usecases/Listing_old/PushListingToEbay.js.map +1 -0
  508. package/lib/usecases/Listing_old/SyncListing.d.ts +11 -0
  509. package/lib/usecases/Listing_old/SyncListing.d.ts.map +1 -0
  510. package/lib/usecases/Listing_old/SyncListing.js +173 -0
  511. package/lib/usecases/Listing_old/SyncListing.js.map +1 -0
  512. package/lib/usecases/Location/GetInventoryLocationsFromEbay.d.ts +11 -0
  513. package/lib/usecases/Location/GetInventoryLocationsFromEbay.d.ts.map +1 -0
  514. package/lib/usecases/Location/GetInventoryLocationsFromEbay.js +5 -0
  515. package/lib/usecases/Location/GetInventoryLocationsFromEbay.js.map +1 -0
  516. package/lib/usecases/Location/PushInventoryLocationToEbay.d.ts +12 -0
  517. package/lib/usecases/Location/PushInventoryLocationToEbay.d.ts.map +1 -0
  518. package/lib/usecases/Location/PushInventoryLocationToEbay.js +12 -0
  519. package/lib/usecases/Location/PushInventoryLocationToEbay.js.map +1 -0
  520. package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.d.ts +1 -0
  521. package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.d.ts.map +1 -0
  522. package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.js +1 -0
  523. package/lib/usecases/Location/PushInventoryLocationUpdateToEbay.js.map +1 -0
  524. package/lib/usecases/Location/SyncInventoryLocations.d.ts +17 -0
  525. package/lib/usecases/Location/SyncInventoryLocations.d.ts.map +1 -0
  526. package/lib/usecases/Location/SyncInventoryLocations.js +67 -0
  527. package/lib/usecases/Location/SyncInventoryLocations.js.map +1 -0
  528. package/lib/usecases/Location/integration.test.d.ts +2 -0
  529. package/lib/usecases/Location/integration.test.d.ts.map +1 -0
  530. package/lib/usecases/Location/integration.test.js +31 -0
  531. package/lib/usecases/Location/integration.test.js.map +1 -0
  532. package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.d.ts +22 -0
  533. package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.d.ts.map +1 -0
  534. package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.js +67 -0
  535. package/lib/usecases/Offer/ConvertItrackInventoryListingDetailToEbayOffer.js.map +1 -0
  536. package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.d.ts +17 -0
  537. package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.d.ts.map +1 -0
  538. package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.js +66 -0
  539. package/lib/usecases/Offer/ConvertItrackListingToEbayOffer.js.map +1 -0
  540. package/lib/usecases/Offer/CreateEbayOffer.d.ts +11 -0
  541. package/lib/usecases/Offer/CreateEbayOffer.d.ts.map +1 -0
  542. package/lib/usecases/Offer/CreateEbayOffer.js +31 -0
  543. package/lib/usecases/Offer/CreateEbayOffer.js.map +1 -0
  544. package/lib/usecases/Offer/GetEbayDefaultsFromProduct.d.ts +8 -0
  545. package/lib/usecases/Offer/GetEbayDefaultsFromProduct.d.ts.map +1 -0
  546. package/lib/usecases/Offer/GetEbayDefaultsFromProduct.js +10 -0
  547. package/lib/usecases/Offer/GetEbayDefaultsFromProduct.js.map +1 -0
  548. package/lib/usecases/Offer/PublishEbayOffer.d.ts +11 -0
  549. package/lib/usecases/Offer/PublishEbayOffer.d.ts.map +1 -0
  550. package/lib/usecases/Offer/PublishEbayOffer.js +20 -0
  551. package/lib/usecases/Offer/PublishEbayOffer.js.map +1 -0
  552. package/lib/usecases/Offer/PushEbayOffer.d.ts +14 -0
  553. package/lib/usecases/Offer/PushEbayOffer.d.ts.map +1 -0
  554. package/lib/usecases/Offer/PushEbayOffer.js +54 -0
  555. package/lib/usecases/Offer/PushEbayOffer.js.map +1 -0
  556. package/lib/usecases/Offer/SyncEbayInventoryAndOffer.d.ts +26 -0
  557. package/lib/usecases/Offer/SyncEbayInventoryAndOffer.d.ts.map +1 -0
  558. package/lib/usecases/Offer/SyncEbayInventoryAndOffer.js +145 -0
  559. package/lib/usecases/Offer/SyncEbayInventoryAndOffer.js.map +1 -0
  560. package/lib/usecases/Offer/SyncEbayOffer.d.ts +20 -0
  561. package/lib/usecases/Offer/SyncEbayOffer.d.ts.map +1 -0
  562. package/lib/usecases/Offer/SyncEbayOffer.js +49 -0
  563. package/lib/usecases/Offer/SyncEbayOffer.js.map +1 -0
  564. package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.d.ts +36 -0
  565. package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.d.ts.map +1 -0
  566. package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.js +102 -0
  567. package/lib/usecases/Offer/convertItrackListingToEbayInventoryAndOffer.js.map +1 -0
  568. package/lib/usecases/Offer/createOfferSample.d.ts +1 -0
  569. package/lib/usecases/Offer/createOfferSample.d.ts.map +1 -0
  570. package/lib/usecases/Offer/createOfferSample.js +230 -0
  571. package/lib/usecases/Offer/createOfferSample.js.map +1 -0
  572. package/lib/usecases/Offer/integration.test.d.ts +37 -0
  573. package/lib/usecases/Offer/integration.test.d.ts.map +1 -0
  574. package/lib/usecases/Offer/integration.test.js +472 -0
  575. package/lib/usecases/Offer/integration.test.js.map +1 -0
  576. package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.d.ts +7 -0
  577. package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.d.ts.map +1 -0
  578. package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.js +5 -0
  579. package/lib/usecases/PaymentPolicy/AddPaymentPolicyToItrack.js.map +1 -0
  580. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.d.ts +6 -0
  581. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.d.ts.map +1 -0
  582. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.js +6 -0
  583. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromEbay.js.map +1 -0
  584. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.d.ts +6 -0
  585. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.d.ts.map +1 -0
  586. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.js +5 -0
  587. package/lib/usecases/PaymentPolicy/GetPaymentPoliciesFromItrack.js.map +1 -0
  588. package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.d.ts +7 -0
  589. package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.d.ts.map +1 -0
  590. package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.js +5 -0
  591. package/lib/usecases/PaymentPolicy/RemovePaymentPolicyFromItrack.js.map +1 -0
  592. package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.d.ts +15 -0
  593. package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.d.ts.map +1 -0
  594. package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.js +40 -0
  595. package/lib/usecases/PaymentPolicy/SyncPaymentPoliciesFromEbay.js.map +1 -0
  596. package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.d.ts +7 -0
  597. package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.d.ts.map +1 -0
  598. package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.js +5 -0
  599. package/lib/usecases/PaymentPolicy/UpdatePaymentPolicyFromItrack.js.map +1 -0
  600. package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.d.ts +7 -0
  601. package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.d.ts.map +1 -0
  602. package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.js +5 -0
  603. package/lib/usecases/ReturnPolicy/AddReturnPolicyToItrack.js.map +1 -0
  604. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.d.ts +6 -0
  605. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.d.ts.map +1 -0
  606. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.js +6 -0
  607. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromEbay.js.map +1 -0
  608. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.d.ts +6 -0
  609. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.d.ts.map +1 -0
  610. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.js +5 -0
  611. package/lib/usecases/ReturnPolicy/GetReturnPoliciesFromItrack.js.map +1 -0
  612. package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.d.ts +7 -0
  613. package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.d.ts.map +1 -0
  614. package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.js +5 -0
  615. package/lib/usecases/ReturnPolicy/RemoveReturnPolicyFromItrack.js.map +1 -0
  616. package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.d.ts +15 -0
  617. package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.d.ts.map +1 -0
  618. package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.js +40 -0
  619. package/lib/usecases/ReturnPolicy/SyncReturnPoliciesFromEbay.js.map +1 -0
  620. package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.d.ts +7 -0
  621. package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.d.ts.map +1 -0
  622. package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.js +5 -0
  623. package/lib/usecases/ReturnPolicy/UpdateReturnPolicyInItrack.js.map +1 -0
  624. package/lib/usecases/ReturnPolicy/integration.test.d.ts +2 -0
  625. package/lib/usecases/ReturnPolicy/integration.test.d.ts.map +1 -0
  626. package/lib/usecases/ReturnPolicy/integration.test.js +56 -0
  627. package/lib/usecases/ReturnPolicy/integration.test.js.map +1 -0
  628. package/lib/usecases/integration.test.d.ts +33 -0
  629. package/lib/usecases/integration.test.d.ts.map +1 -0
  630. package/lib/usecases/integration.test.js +499 -0
  631. package/lib/usecases/integration.test.js.map +1 -0
  632. package/lib/usecases/types/CompleteListing.d.ts +29 -0
  633. package/lib/usecases/types/CompleteListing.d.ts.map +1 -0
  634. package/lib/usecases/types/CompleteListing.js +2 -0
  635. package/lib/usecases/types/CompleteListing.js.map +1 -0
  636. package/lib/utils/buildInventoryListingRow.d.ts +23 -0
  637. package/lib/utils/buildInventoryListingRow.d.ts.map +1 -0
  638. package/lib/utils/buildInventoryListingRow.js +14 -0
  639. package/lib/utils/buildInventoryListingRow.js.map +1 -0
  640. package/lib/utils/ebayResponseParser.d.ts +50 -0
  641. package/lib/utils/ebayResponseParser.d.ts.map +1 -0
  642. package/lib/utils/ebayResponseParser.js +98 -0
  643. package/lib/utils/ebayResponseParser.js.map +1 -0
  644. package/lib/utils/imageUrlComparison.d.ts +5 -0
  645. package/lib/utils/imageUrlComparison.d.ts.map +1 -0
  646. package/lib/utils/imageUrlComparison.js +46 -0
  647. package/lib/utils/imageUrlComparison.js.map +1 -0
  648. package/lib/utils/imageUrlComparison.test.d.ts +2 -0
  649. package/lib/utils/imageUrlComparison.test.d.ts.map +1 -0
  650. package/lib/utils/imageUrlComparison.test.js +113 -0
  651. package/lib/utils/imageUrlComparison.test.js.map +1 -0
  652. package/lib/utils/typeHelpers.d.ts +5 -0
  653. package/lib/utils/typeHelpers.d.ts.map +1 -0
  654. package/lib/utils/typeHelpers.js +2 -0
  655. package/lib/utils/typeHelpers.js.map +1 -0
  656. package/lib/utils/utils.d.ts +25 -0
  657. package/lib/utils/utils.d.ts.map +1 -0
  658. package/lib/utils/utils.js +124 -0
  659. package/lib/utils/utils.js.map +1 -0
  660. package/package.json +56 -0
@@ -0,0 +1,164 @@
1
+ import { Amount } from "./Amount.js";
2
+ import { NonFunctionProperties } from "../../utils/typeHelpers.js";
3
+ /**
4
+ * This type is used to identify the payment, return, and fulfillment listing policies that will be, or are associated
5
+ * with the listing. Every published offer must have a payment, return, and fulfillment listing policy associated with
6
+ * it. This type is also used to override the shipping costs of one or more shipping service options that are associated
7
+ * with the fulfillment policy, to enable eBay Plus eligibility for a listing, or to enable the Best Offer feature on
8
+ * the listing.
9
+ */
10
+ export declare class ListingPolicies {
11
+ /**
12
+ * This unique identifier indicates the fulfillment listing policy that will be used once an offer is published and
13
+ * converted to an eBay listing. This fulfillment listing policy will set all fulfillment-related settings for the
14
+ * eBay listing.
15
+ *
16
+ * Listing policies are not immediately required for offers, but are required before an offer can be published. The
17
+ * seller should review the fulfillment listing policy before assigning it to the offer to make sure it is
18
+ * compatible with the inventory item and the offer settings. The seller may also want to review the shipping
19
+ * service costs in the fulfillment policy, and that seller might decide to override the shipping costs for one or
20
+ * more shipping service options by using the shippingCostOverrides container.
21
+ *
22
+ * Listing policies can be created and managed in My eBay or with the Account API. To get a list of all return
23
+ * policies associated with a seller's account on a specific eBay Marketplace, use the Account API's
24
+ * getFulfillmentPolicies call. There are also calls in the Account API to retrieve a fulfillment policy by policy
25
+ * ID or policy name.
26
+ */
27
+ fulfillmentPolicyId: string;
28
+ /**
29
+ * This unique identifier indicates the payment listing policy that will be used once an offer is published and
30
+ * converted to an eBay listing. This payment listing policy will set all payment-related settings for the eBay
31
+ * listing.
32
+ *
33
+ * Listing policies are not immediately required for offers, but are required before an offer can be published. The
34
+ * seller should review the payment listing policy before assigning it to the offer, as the following must be true
35
+ * for the payment listing policy to be compatible with the offer:
36
+ *
37
+ * The marketplaceId value should reflect where the offer is being published
38
+ * The immediatePay field value must be set to true since Inventory API offers only support immediate payment
39
+ * The only specified payment method should be 'PayPal', since immediate payment requires 'PayPal'
40
+ *
41
+ * Listing policies can be created and managed in My eBay or
42
+ * with the Account API. To get a list of all payment policies associated with a seller's account on a specific eBay
43
+ * Marketplace, use the Account API's getPaymentPolicies call. There are also calls in the Account API to retrieve a
44
+ * payment policy by policy ID or policy name.
45
+ */
46
+ paymentPolicyId: string;
47
+ /**
48
+ * This unique identifier indicates the return listing policy that will be used once an offer is published and
49
+ * converted to an eBay listing. This return listing policy will set all return policy settings for the eBay
50
+ * listing.
51
+ *
52
+ * Listing policies are not immediately required for offers, but are required before an offer can be published. The
53
+ * seller should review the return listing policy before assigning it to the offer to make sure it is compatible
54
+ * with the inventory item and the offer settings.
55
+ *
56
+ * Listing policies can be created and managed in My eBay or with the Account API. To get a list of all return
57
+ * policies associated with a seller's account on a specific eBay Marketplace, use the Account API's
58
+ * getReturnPolicies call. There are also calls in the Account API to retrieve a return policy by policy ID or
59
+ * policy name.
60
+ */
61
+ returnPolicyId: string;
62
+ /**
63
+ * This container is used if the seller wishes to override the shipping costs or surcharge for one or more domestic
64
+ * or international shipping service options defined in the fulfillment listing policy. To override the costs of a
65
+ * specific domestic or international shipping service option, the seller must know the priority/order of that
66
+ * shipping service in the fulfillment listing policy. The name of a shipping service option can be found in the
67
+ * shippingOptions.shippingServices.shippingServiceCode field of the fulfillment policy, and the priority/order of
68
+ * that shipping service option is found in the shippingOptions.shippingServices.sortOrderId field. Both of these
69
+ * values can be retrieved by searching for that fulfillment policy with the getFulfillmentPolicies or
70
+ * getFulfillmentPolicyByName calls of the Account API. The shippingCostOverrides.priority value should match the
71
+ * shippingOptions.shippingServices.sortOrderId in order to override the shipping costs for that shipping service
72
+ * option. The seller must also ensure that the shippingServiceType value is set to DOMESTIC to override a domestic
73
+ * shipping service option, or to INTERNATIONAL to override an international shipping service option.
74
+ *
75
+ * A separate ShippingCostOverrides node is needed for each shipping service option whose costs are being
76
+ * overridden. All defined fields of the shippingCostOverrides container should be included, even if the shipping
77
+ * costs and surcharge values are not changing.
78
+ */
79
+ shippingCostOverrides?: ShippingCostOverride[];
80
+ constructor(init: NonFunctionProperties<ListingPolicies>);
81
+ }
82
+ /**
83
+ * This type is used if the seller wants to override the shipping costs or surcharge associated with a specific domestic
84
+ * or international shipping service option defined in the fulfillment listing policy that is being applied toward the
85
+ * offer. The shipping-related costs that can be overridden include the shipping cost to ship one item, the shipping
86
+ * cost to ship each additional item (if multiple quantity are purchased), and the shipping surcharge applied to the
87
+ * shipping service option.
88
+ */
89
+ interface ShippingCostOverride {
90
+ /**
91
+ * The dollar value passed into this field will override the additional shipping cost that is currently set for the
92
+ * applicable shipping service option. The "Additional shipping cost" is the cost to ship each additional identical
93
+ * product to the buyer using the corresponding shipping service. The shipping service option in the fulfillment
94
+ * policy to override is controlled by the shippingServiceType and priority values.
95
+ *
96
+ * If using an updateOffer call, and this field is defined for the offer being updated, this field must be supplied
97
+ * again, even if its value is not changing.
98
+ */
99
+ additionalShippingCost?: Amount;
100
+ /**
101
+ * The integer value input into this field, along with the shippingServiceType value, sets which domestic or
102
+ * international shipping service option in the fulfillment policy will be modified with updated shipping costs.
103
+ * Specifically, the shippingCostOverrides.shippingServiceType value in a createOffer or updateOffer call must match
104
+ * the shippingOptions.optionType value in a fulfillment listing policy, and the shippingCostOverrides.priority
105
+ * value in a createOffer or updateOffer call must match the shippingOptions.shippingServices.sortOrderId value in a
106
+ * fulfillment listing policy.
107
+ *
108
+ * This field is always required when overriding the shipping costs of a shipping service option, and will be always
109
+ * be returned for each shipping service option whose costs are being overridden.
110
+ */
111
+ priority: number;
112
+ /**
113
+ * The dollar value passed into this field will override the shipping cost that is currently set for the applicable
114
+ * shipping service option. This value will be the cost to ship one item to the buyer using the corresponding
115
+ * shipping service. The shipping service option in the fulfillment policy to override is controlled by the
116
+ * shippingServiceType and priority values.
117
+ *
118
+ * If using an updateOffer call, and this field is defined for the offer being updated, this field must be supplied
119
+ * again, even if its value is not changing.
120
+ */
121
+ shippingCost: Amount;
122
+ /**
123
+ * This enumerated value indicates whether the shipping service specified in the priority field is a domestic or an
124
+ * international shipping service option. To override the shipping costs for a specific domestic shipping service in
125
+ * the fulfillment listing policy, this field should be set to DOMESTIC, and to override the shipping costs for each
126
+ * international shipping service, this field should be set to INTERNATIONAL. This value, along with priority value,
127
+ * sets which domestic or international shipping service option in the fulfillment policy that will be modified with
128
+ * updated shipping costs. Specifically, the shippingCostOverrides.shippingServiceType value in a createOffer or
129
+ * updateOffer call must match the shippingOptions.optionType value in a fulfillment listing policy, and the
130
+ * shippingCostOverrides.priority value in a createOffer or updateOffer call must match the
131
+ * shippingOptions.shippingServices.sortOrderId value in a fulfillment listing policy.
132
+ *
133
+ * This field is always required when overriding the shipping costs of a shipping service option, and will be always
134
+ * be returned for each shipping service option whose costs are being overridden.
135
+ */
136
+ shippingServiceType: ShippingServiceTypeEnum;
137
+ /**
138
+ * The dollar value passed into this field will override the shipping surcharge that is currently set for the
139
+ * applicable shipping service option. The shipping service option in the fulfillment policy to override is
140
+ * controlled by the shippingServiceType and priority values.
141
+ *
142
+ * If using an updateOffer call, and this field is defined for the offer being updated, this field must be supplied
143
+ * again, even if its value is not changing.
144
+ */
145
+ surcharge: Amount;
146
+ }
147
+ /**
148
+ * This enumeration type is used to specify/indicate whether the shipping service option whose shipping costs will be
149
+ * overridden is a domestic or an international shipping service.
150
+ */
151
+ declare enum ShippingServiceTypeEnum {
152
+ /**
153
+ * This enumeration value indicates that the shipping service option whose shipping costs will be overridden is a
154
+ * domestic shipping service.
155
+ */
156
+ Domestic = "DOMESTIC",
157
+ /**
158
+ * This enumeration value indicates that the shipping service option whose shipping costs will be overridden is an
159
+ * international shipping service.
160
+ */
161
+ International = "INTERNATIONAL"
162
+ }
163
+ export {};
164
+ //# sourceMappingURL=ListingPolicies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingPolicies.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/ListingPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE;;;;;;GAMG;AACH,qBAAa,eAAe;IAC3B;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;;;;;;;;;;;;OAaG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;;;;;;;;;;;;;;;MAgBE;IACF,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,CAAA;gBAElC,IAAI,EAAE,qBAAqB,CAAC,eAAe,CAAC;CAGxD;AAED;;;;;;GAMG;AACH,UAAU,oBAAoB;IAC7B;;;;;;;;OAQG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;;;;;OAUG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;OAaG;IACH,mBAAmB,EAAE,uBAAuB,CAAC;IAC7C;;;;;;;OAOG;IACH,SAAS,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,aAAK,uBAAuB;IAC3B;;;OAGG;IACH,QAAQ,aAAa;IACrB;;;OAGG;IACH,aAAa,kBAAkB;CAC/B"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This type is used to identify the payment, return, and fulfillment listing policies that will be, or are associated
3
+ * with the listing. Every published offer must have a payment, return, and fulfillment listing policy associated with
4
+ * it. This type is also used to override the shipping costs of one or more shipping service options that are associated
5
+ * with the fulfillment policy, to enable eBay Plus eligibility for a listing, or to enable the Best Offer feature on
6
+ * the listing.
7
+ */
8
+ export class ListingPolicies {
9
+ constructor(init) {
10
+ Object.assign(this, init);
11
+ }
12
+ }
13
+ /**
14
+ * This enumeration type is used to specify/indicate whether the shipping service option whose shipping costs will be
15
+ * overridden is a domestic or an international shipping service.
16
+ */
17
+ var ShippingServiceTypeEnum;
18
+ (function (ShippingServiceTypeEnum) {
19
+ /**
20
+ * This enumeration value indicates that the shipping service option whose shipping costs will be overridden is a
21
+ * domestic shipping service.
22
+ */
23
+ ShippingServiceTypeEnum["Domestic"] = "DOMESTIC";
24
+ /**
25
+ * This enumeration value indicates that the shipping service option whose shipping costs will be overridden is an
26
+ * international shipping service.
27
+ */
28
+ ShippingServiceTypeEnum["International"] = "INTERNATIONAL";
29
+ })(ShippingServiceTypeEnum || (ShippingServiceTypeEnum = {}));
30
+ //# sourceMappingURL=ListingPolicies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListingPolicies.js","sourceRoot":"","sources":["../../../src/entities/ebay/ListingPolicies.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,OAAO,eAAe;IAuE3B,YAAY,IAA4C;QACvD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1B,CAAC;CACD;AAoED;;;GAGG;AACH,IAAK,uBAWJ;AAXD,WAAK,uBAAuB;IAC3B;;;OAGG;IACH,gDAAqB,CAAA;IACrB;;;OAGG;IACH,0DAA+B,CAAA;AAChC,CAAC,EAXI,uBAAuB,KAAvB,uBAAuB,QAW3B"}
@@ -0,0 +1,34 @@
1
+ import { ValidationError } from "yup";
2
+ import { Address } from "./Address.js";
3
+ import { GeoCoordinates } from "./GeoCoordinates.js";
4
+ import { InventoryLocationResponse } from "./InventoryLocation.js";
5
+ /**
6
+ * This type is used by the createInventoryLocation call to provide an full or partial address of an inventory location.
7
+ */
8
+ export interface LocationDetails {
9
+ /**
10
+ * The address container is required for a createInventoryLocation call. Except in the case of an inventory location
11
+ * that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory
12
+ * location.
13
+ */
14
+ address: Address;
15
+ /**
16
+ * This container is used to set the Global Positioning System (GPS) latitude and longitude coordinates for the
17
+ * inventory location.
18
+ */
19
+ geoCoordinates?: GeoCoordinates;
20
+ }
21
+ export interface Location extends LocationDetails {
22
+ locationId: string;
23
+ }
24
+ export interface LocationResponse {
25
+ href: string;
26
+ limit: number;
27
+ next: string;
28
+ offset: number;
29
+ prev: string;
30
+ total: number;
31
+ locations: InventoryLocationResponse[];
32
+ }
33
+ export declare const validateLocationDetails: (location: unknown) => ValidationError | LocationDetails;
34
+ //# sourceMappingURL=LocationDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationDetails.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/LocationDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAIlE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAGD,MAAM,WAAW,QAAS,SAAQ,eAAe;IAChD,UAAU,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,yBAAyB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,OAAO,sCASxD,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { ValidationError } from "yup";
2
+ import { isObject, isValidationError } from "./validation.js";
3
+ import { validate as validateAddress } from "./Address.js";
4
+ export const validateLocationDetails = (location) => {
5
+ if (!isObject(location))
6
+ return new ValidationError("Location Details must be defined", location);
7
+ const failures = [
8
+ validateAddress(location.address),
9
+ ].filter(isValidationError);
10
+ return failures.length ? new ValidationError("Error validating Location Details", failures) : location;
11
+ };
12
+ //# sourceMappingURL=LocationDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationDetails.js","sourceRoot":"","sources":["../../../src/entities/ebay/LocationDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AAIrC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,cAAc,CAAA;AAmC1D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAiB,EAAE,EAAE;IAE5D,IAAI,CAAC,QAAQ,CAAkB,QAAQ,CAAC;QAAE,OAAO,IAAI,eAAe,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAA;IAElH,MAAM,QAAQ,GAAG;QAChB,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC;KACjC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAE3B,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,mCAAmC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;AACvG,CAAC,CAAA"}
@@ -0,0 +1,17 @@
1
+ /** This enumeration type is used to indicate the different eBay marketplace sites. */
2
+ export declare enum MarketplaceEnum {
3
+ Motors = "EBAY_MOTORS",
4
+ US = "EBAY_US"
5
+ }
6
+ export declare const checkMarketplaceEnum: (val: string) => MarketplaceEnum;
7
+ /**
8
+ * This enumerated type defines the unique eBay-assigned IDs for each of the eBay marketplaces.
9
+ * Yes, this is DIFFERENT than MarketplaceEnum and BOTH are in use by ebay.
10
+ * https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum
11
+ * */
12
+ export declare enum MarketplaceIdEnum {
13
+ Motors = "EBAY_MOTORS_US",
14
+ US = "EBAY_US"
15
+ }
16
+ export declare const checkMarketplaceIdEnum: (val: string) => MarketplaceIdEnum;
17
+ //# sourceMappingURL=MarketplaceEnum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketplaceEnum.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/MarketplaceEnum.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,oBAAY,eAAe;IAC1B,MAAM,gBAAgB;IACtB,EAAE,YAAY;CACd;AAED,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,KAAG,eAGlD,CAAA;AAED;;;;KAIK;AACL,oBAAY,iBAAiB;IAI5B,MAAM,mBAAmB;IAEzB,EAAE,YAAY;CACd;AAED,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,KAAG,iBAGpD,CAAA"}
@@ -0,0 +1,31 @@
1
+ /** This enumeration type is used to indicate the different eBay marketplace sites. */
2
+ export var MarketplaceEnum;
3
+ (function (MarketplaceEnum) {
4
+ MarketplaceEnum["Motors"] = "EBAY_MOTORS";
5
+ MarketplaceEnum["US"] = "EBAY_US";
6
+ })(MarketplaceEnum || (MarketplaceEnum = {}));
7
+ export const checkMarketplaceEnum = (val) => {
8
+ if (Object.values(MarketplaceEnum).includes(val))
9
+ return val;
10
+ throw new Error(`'${val}' is not a valid eBay marketplace`);
11
+ };
12
+ /**
13
+ * This enumerated type defines the unique eBay-assigned IDs for each of the eBay marketplaces.
14
+ * Yes, this is DIFFERENT than MarketplaceEnum and BOTH are in use by ebay.
15
+ * https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum
16
+ * */
17
+ export var MarketplaceIdEnum;
18
+ (function (MarketplaceIdEnum) {
19
+ /* Indicates the parent category for "Auto Parts and Vehicles" on the EBAY_US marketplace
20
+ * (https://www.ebay.com/motors).
21
+ */
22
+ MarketplaceIdEnum["Motors"] = "EBAY_MOTORS_US";
23
+ /* Indicates the eBay marketplace for the United States (https://www.ebay.com). */
24
+ MarketplaceIdEnum["US"] = "EBAY_US";
25
+ })(MarketplaceIdEnum || (MarketplaceIdEnum = {}));
26
+ export const checkMarketplaceIdEnum = (val) => {
27
+ if (Object.values(MarketplaceIdEnum).includes(val))
28
+ return val;
29
+ throw new Error(`'${val}' is not a valid eBay marketplace id`);
30
+ };
31
+ //# sourceMappingURL=MarketplaceEnum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketplaceEnum.js","sourceRoot":"","sources":["../../../src/entities/ebay/MarketplaceEnum.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,yCAAsB,CAAA;IACtB,iCAAc,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAmB,EAAE;IACpE,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,GAAsB,CAAC;QAAE,OAAO,GAAsB,CAAA;IAClG,MAAM,IAAI,KAAK,CAAC,IAAI,GAAG,mCAAmC,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED;;;;KAIK;AACL,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC5B;;OAEG;IACH,8CAAyB,CAAA;IACzB,kFAAkF;IAClF,mCAAc,CAAA;AACf,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAW,EAAqB,EAAE;IACxE,IAAI,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,GAAwB,CAAC;QAAE,OAAO,GAAwB,CAAA;IACxG,MAAM,IAAI,KAAK,CAAC,IAAI,GAAG,sCAAsC,CAAC,CAAA;AAC/D,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import * as zod from 'zod';
2
+ export declare const MerchantLocationKey: zod.ZodString;
3
+ export type MerchantLocationKey = string;
4
+ //# sourceMappingURL=MerchantLocationKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MerchantLocationKey.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/MerchantLocationKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,eAAO,MAAM,mBAAmB,eAA0B,CAAA;AAC1D,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ import * as zod from 'zod';
2
+ export const MerchantLocationKey = zod.string().length(36);
3
+ //# sourceMappingURL=MerchantLocationKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MerchantLocationKey.js","sourceRoot":"","sources":["../../../src/entities/ebay/MerchantLocationKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
@@ -0,0 +1,158 @@
1
+ import { Charity } from "./Charity.js";
2
+ import { ListingPolicies } from "./ListingPolicies.js";
3
+ import { ListingDurationEnum } from "./ListingDurationEnum.js";
4
+ import { MarketplaceEnum } from "./MarketplaceEnum.js";
5
+ import { MerchantLocationKey } from "./MerchantLocationKey.js";
6
+ import { PricingSummary } from "./PricingSummary.js";
7
+ import { ValidationResult } from './validation.js';
8
+ import { ErrorDetailV3 } from "./ErrorDetailsV3.js";
9
+ import { Sku } from "./Sku.js";
10
+ /** This enumeration type is used to indicate the listing format of the offer. */
11
+ export declare enum FormatTypeEnum {
12
+ /**
13
+ * This enumeration value indicates that the listing format of the offer is fixed price. Currently, fixed price is
14
+ * the only supported listing format.
15
+ */
16
+ FixedPrice = "FIXED_PRICE"
17
+ }
18
+ /** This enumeration type is used to indicate the current status of the offer (published or unpublished). */
19
+ export declare enum OfferStatusEnum {
20
+ Published = "PUBLISHED",
21
+ Unpublished = "UNPUBLISHED"
22
+ }
23
+ export interface EbayOfferDetails {
24
+ /** This integer value sets the quantity of the inventory item (specified by the sku value) that will be available
25
+ * for purchase by buyers shopping on the eBay site specified in the marketplaceId field. Quantity must be set to 1
26
+ * or more in order for the inventory item to be purchasable, but this field is not necessarily required, even for
27
+ * published offers, if the general quantity of the inventory item has already been set in the inventory item
28
+ * record.
29
+ *
30
+ * Occurrence: Conditional
31
+ */
32
+ availableQuantity?: number;
33
+ /**
34
+ * The unique identifier of the eBay category that the inventory item will be listed under. This field is not
35
+ * immediately required upon creating an offer, but will be required before publishing the offer. Sellers can use
36
+ * the getCategorySuggestions method of the Taxonomy API or the GetSuggestedCategories call of the Trading API to
37
+ * retrieve suggested category ID values. The seller passes in a query string like "iPhone 6", and category ID
38
+ * values for suggested categories are returned in the response.
39
+ */
40
+ categoryId: string;
41
+ /**
42
+ * This container is used if the seller wishes to select a charitable organization that will receive a percentage of
43
+ * sale proceeds for each sale generated by the eBay listing. This container consists of the charityId field to
44
+ * identify the charitable organization, and the donationPercentage field that indicates the percentage of the sales
45
+ * proceeds that will be donated to the charitable organization for each sale. Both fields in this container are
46
+ * conditionally required for charitable listings.
47
+ */
48
+ charity?: Charity;
49
+ /**
50
+ * This enumerated value indicates the listing format of the offer. Currently, the only supported value for this
51
+ * field is FIXED_PRICE, as the Inventory API only supports fixed-price listings at this time.
52
+ */
53
+ format: FormatTypeEnum.FixedPrice;
54
+ /**
55
+ * This field indicates whether or not eBay product catalog details are applied to a listing. A value of true
56
+ * indicates the listing corresponds to the eBay product associated with the provided product identifier. The
57
+ * product identifier is provided in createOrReplaceInventoryItem.
58
+ */
59
+ includeCatalogProductDetails?: boolean;
60
+ /**
61
+ * The text in this field is (published offers), or will become (unpublished offers) the description of the eBay
62
+ * listing. This field is not immediately required for an unpublished offer, but will be required before publishing
63
+ * the offer. Note that if the listingDescription field was omitted in the createOffer call for the offer, the offer
64
+ * entity should have picked up the text provided in the product.description field of the inventory item record, or
65
+ * if the inventory item is part of a group, the offer entity should have picked up the text provided in the
66
+ * description field of the inventory item group record.
67
+ *
68
+ * HTML tags and markup can be used in listing descriptions, but each character counts toward the max length limit.
69
+ *
70
+ * Max length: 500000 (which includes HTML markup/tags)
71
+ *
72
+ * Occurrence: Conditional
73
+ */
74
+ listingDescription?: string;
75
+ /**
76
+ * This field indicates the number of days that the listing will be active. For fixed-price listings, this value must be set to GTC,
77
+ * but auction listings support different listing durations.
78
+ *
79
+ * The GTC (Good 'Til Cancelled) listings are automatically renewed each calendar month until the seller decides to end the listing.
80
+ */
81
+ listingDuration: ListingDurationEnum;
82
+ /**
83
+ * This container is used to set the listing policies that will be used to construct the listing. This container
84
+ * consists of the identifiers of the payment, return, and fulfillment listing policies that will be associated with
85
+ * the eBay listing. This container is not initially required upon first creating an offer, but will become required
86
+ * before an offer can be published.
87
+ *
88
+ * It is required that the seller be opted in to Business Policies before being able to create live eBay listings
89
+ * through the Inventory API. Sellers can opt-in to Business Policies through My eBay or by using the Account API's
90
+ * optInToProgram call. Similarly, payment, return, and fulfillment listing policies may be created/managed in My
91
+ * eBay or by using the listing policy calls of the Account API.
92
+ */
93
+ listingPolicies: ListingPolicies;
94
+ /**
95
+ * This field is only applicable if the listing is a lot listing. A lot listing is a listing that has multiple
96
+ * quantity of the same product. An example would be a set of four identical car tires. The integer value passed
97
+ * into this field is the number of identical items being sold through the lot listing.
98
+ */
99
+ lotSize?: number;
100
+ /**
101
+ * The unique identifier of a merchant's inventory location (where the inventory item in the offer is located). A
102
+ * merchantLocationKey value is established when the merchant creates an inventory location using the
103
+ * createInventoryLocation call. To get more information about inventory locations, the getInventoryLocation call
104
+ * can be used.
105
+ *
106
+ * This field is not initially required upon first creating an offer, but will become required before an offer can
107
+ * be published.
108
+ */
109
+ merchantLocationKey: MerchantLocationKey;
110
+ /**
111
+ * This container shows the listing price for the product offer, and if applicable, the settings for the Minimum
112
+ * Advertised Price and Strikethrough Pricing features. The Minimum Advertised Price feature is only available on
113
+ * the US site. Strikethrough Pricing is available on the US, eBay Motors, UK, Germany, Canada (English and French),
114
+ * France, Italy, and Spain sites.
115
+ *
116
+ * This container is not initially required upon first creating an offer, but the price of the offer will become
117
+ * required before an offer can be published.
118
+ */
119
+ pricingSummary: PricingSummary;
120
+ /**
121
+ * This field is only applicable and set if the seller wishes to set a restriction on the purchase quantity per
122
+ * seller. If this field is set by the seller for the offer, then each distinct buyer may purchase up to, but not
123
+ * exceed the quantity specified for this field. So, if this field's value is 5, each buyer may purchase between one
124
+ * to five of these products, and the purchases can occur in one multiple-quantity purchase, or over multiple
125
+ * transactions. If a buyer attempts to purchase one or more of these products, and the cumulative quantity will
126
+ * take the buyer beyond the quantity limit, that buyer will be blocked from that purchase.
127
+ */
128
+ quantityLimitPerBuyer?: number;
129
+ sku?: Sku;
130
+ /**
131
+ * This container is used if the seller would like to place the inventory item into one or two eBay store categories
132
+ * that the seller has set up for their eBay store. The string value(s) passed in to this container will be the full
133
+ * path(s) to the eBay store categories, as shown below:
134
+ *
135
+ * "storeCategoryNames": [
136
+ * "/Fashion/Men/Shirts",
137
+ * "/Fashion/Men/Accessories" ],
138
+ */
139
+ storeCategoryNames?: string[];
140
+ /**
141
+ * This enumeration value is the unique identifier of the eBay site for which the offer will be made available. See
142
+ * MarketplaceEnum for the list of supported enumeration values. This field is required.
143
+ */
144
+ marketplaceId: MarketplaceEnum;
145
+ }
146
+ export declare const validateEbayOfferDetails: (offer: unknown) => ValidationResult<EbayOfferDetails>;
147
+ export interface PushOfferResponse {
148
+ id: string | null;
149
+ }
150
+ export interface PublishOfferResponse {
151
+ id: string | null;
152
+ warnings?: ErrorDetailV3[];
153
+ }
154
+ export interface PushOfferRequest {
155
+ offer: EbayOfferDetails;
156
+ sku: Sku;
157
+ }
158
+ //# sourceMappingURL=Offer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Offer.d.ts","sourceRoot":"","sources":["../../../src/entities/ebay/Offer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,cAAc,EAA0B,MAAM,qBAAqB,CAAA;AAE5E,OAAO,EAAY,gBAAgB,EAA6F,MAAM,iBAAiB,CAAA;AACvJ,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,iFAAiF;AACjF,oBAAY,cAAc;IACzB;;;OAGG;IACH,UAAU,gBAAgB;CAC1B;AAED,4GAA4G;AAC5G,oBAAY,eAAe;IAC1B,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAChC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,MAAM,EAAE,cAAc,CAAC,UAAU,CAAA;IACjC;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;;;;OAKG;IACH,eAAe,EAAE,mBAAmB,CAAA;IACpC;;;;;;;;;;OAUG;IACH,eAAe,EAAE,eAAe,CAAA;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;;OAQG;IACH,mBAAmB,EAAE,mBAAmB,CAAA;IACxC;;;;;;;;OAQG;IACH,cAAc,EAAE,cAAc,CAAA;IAC9B;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B,GAAG,CAAC,EAAE,GAAG,CAAA;IACT;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAA;CAC9B;AA2CD,eAAO,MAAM,wBAAwB,GAAI,OAAO,OAAO,KAAG,gBAAgB,CAAC,gBAAgB,CAyD1F,CAAA;AAED,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACpC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IACjB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAEhC,KAAK,EAAE,gBAAgB,CAAC;IAExB,GAAG,EAAE,GAAG,CAAC;CACT"}
@@ -0,0 +1,110 @@
1
+ import { ListingDurationEnum } from "./ListingDurationEnum.js";
2
+ import { MarketplaceEnum } from "./MarketplaceEnum.js";
3
+ import { validatePricingSummary } from "./PricingSummary.js";
4
+ //import { isObject, isValidationError, ValidationError } from "./validation.js"
5
+ import { isObject, validateString, validateEnum } from './validation.js';
6
+ /** This enumeration type is used to indicate the listing format of the offer. */
7
+ export var FormatTypeEnum;
8
+ (function (FormatTypeEnum) {
9
+ /**
10
+ * This enumeration value indicates that the listing format of the offer is fixed price. Currently, fixed price is
11
+ * the only supported listing format.
12
+ */
13
+ FormatTypeEnum["FixedPrice"] = "FIXED_PRICE";
14
+ })(FormatTypeEnum || (FormatTypeEnum = {}));
15
+ /** This enumeration type is used to indicate the current status of the offer (published or unpublished). */
16
+ export var OfferStatusEnum;
17
+ (function (OfferStatusEnum) {
18
+ OfferStatusEnum["Published"] = "PUBLISHED";
19
+ OfferStatusEnum["Unpublished"] = "UNPUBLISHED";
20
+ })(OfferStatusEnum || (OfferStatusEnum = {}));
21
+ // export interface EbayOfferKeys {
22
+ // /**
23
+ // * This enumeration value is the unique identifier of the eBay site for which the offer will be made available. See
24
+ // * MarketplaceEnum for the list of supported enumeration values. This field is required.
25
+ // */
26
+ // marketplaceId: MarketplaceEnum
27
+ // /**
28
+ // * This is the seller-defined SKU value of the product that will be listed on the eBay site (specified in the
29
+ // * marketplaceId field). Only one offer (in unpublished or published state) may exist for each
30
+ // * sku/marketplaceId/format combination. This field is required.
31
+ // */
32
+ // sku: string
33
+ // }
34
+ //export type EbayOfferDetailsWithKeys = EbayOfferDetails & EbayOfferKeys
35
+ // Used in getOffers response payload
36
+ // export interface EbayOfferDetailsWithAll extends EbayOfferDetailsWithKeys {
37
+ // listing: {
38
+ // listingId: string,
39
+ // },
40
+ // offerId: string,
41
+ // status: OfferStatusEnum,
42
+ // }
43
+ // export interface OfferArrayElement extends EbayOfferDetailsWithKeys {
44
+ // offerId: string,
45
+ // status: OfferStatusEnum,
46
+ // }
47
+ // export const validateEbayOfferDetails = (offer: unknown) => {
48
+ // if (!isObject<EbayOfferDetails>(offer)) return new ValidationError("Offer must be defined", offer)
49
+ // const failures = [
50
+ // validatePricingSummary
51
+ // ].filter(isValidationError)
52
+ // return failures.length ? new ValidationError("Error validating Product", failures) : offer
53
+ // }
54
+ // TODO: There are likely other fields to review
55
+ export const validateEbayOfferDetails = (offer) => {
56
+ const errors = [];
57
+ if (!isObject(offer)) {
58
+ errors.push({
59
+ type: 'validation_error',
60
+ field: 'offer',
61
+ message: 'Offer must be an object',
62
+ value: offer,
63
+ code: 'INVALID_TYPE'
64
+ });
65
+ return { success: false, errors };
66
+ }
67
+ // Validate pricing (required)
68
+ const pricingSummaryValidation = validatePricingSummary(offer.pricingSummary);
69
+ if (!pricingSummaryValidation.success && pricingSummaryValidation.errors) {
70
+ errors.push(...pricingSummaryValidation.errors.map(error => ({
71
+ ...error,
72
+ field: `offer.${error.field}`
73
+ })));
74
+ }
75
+ // Validate other required fields
76
+ errors.push(...validateString('offer.categoryId', offer.categoryId, { required: true }));
77
+ errors.push(...validateEnum('offer.format', offer.format, FormatTypeEnum, { required: true }));
78
+ errors.push(...validateEnum('offer.listingDuration', offer.listingDuration, ListingDurationEnum, { required: true }));
79
+ errors.push(...validateEnum('offer.marketplaceId', offer.marketplaceId, MarketplaceEnum, { required: true }));
80
+ errors.push(...validateString('offer.merchantLocationKey', offer.merchantLocationKey, { required: true }));
81
+ // Validate listingPolicies (required object)
82
+ if (!offer.listingPolicies) {
83
+ errors.push({
84
+ type: 'validation_error',
85
+ field: 'offer.listingPolicies',
86
+ message: 'ListingPolicies is required',
87
+ value: offer.listingPolicies,
88
+ code: 'REQUIRED_FIELD_MISSING'
89
+ });
90
+ }
91
+ else if (!isObject(offer.listingPolicies)) {
92
+ errors.push({
93
+ type: 'validation_error',
94
+ field: 'offer.listingPolicies',
95
+ message: 'ListingPolicies must be an object',
96
+ value: offer.listingPolicies,
97
+ code: 'INVALID_TYPE'
98
+ });
99
+ }
100
+ else {
101
+ // Validate required policy IDs within listingPolicies
102
+ errors.push(...validateString('offer.listingPolicies.fulfillmentPolicyId', offer.listingPolicies.fulfillmentPolicyId, { required: true }));
103
+ errors.push(...validateString('offer.listingPolicies.paymentPolicyId', offer.listingPolicies.paymentPolicyId, { required: true }));
104
+ errors.push(...validateString('offer.listingPolicies.returnPolicyId', offer.listingPolicies.returnPolicyId, { required: true }));
105
+ }
106
+ return errors.length > 0
107
+ ? { success: false, errors }
108
+ : { success: true, data: offer };
109
+ };
110
+ //# sourceMappingURL=Offer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Offer.js","sourceRoot":"","sources":["../../../src/entities/ebay/Offer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAkB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,gFAAgF;AAChF,OAAO,EAAE,QAAQ,EAAwC,cAAc,EAAE,YAAY,EAA2C,MAAM,iBAAiB,CAAA;AAGvJ,iFAAiF;AACjF,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACzB;;;OAGG;IACH,4CAA0B,CAAA;AAC3B,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,4GAA4G;AAC5G,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,0CAAuB,CAAA;IACvB,8CAA2B,CAAA;AAC5B,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AA+HD,mCAAmC;AACnC,OAAO;AACP,uHAAuH;AACvH,4FAA4F;AAC5F,OAAO;AACP,kCAAkC;AAClC,OAAO;AACP,iHAAiH;AACjH,kGAAkG;AAClG,oEAAoE;AACpE,OAAO;AACP,eAAe;AACf,IAAI;AAEJ,yEAAyE;AAEzE,qCAAqC;AACrC,8EAA8E;AAC9E,cAAc;AACd,uBAAuB;AACvB,MAAM;AACN,oBAAoB;AACpB,4BAA4B;AAC5B,IAAI;AAEJ,wEAAwE;AACxE,oBAAoB;AACpB,4BAA4B;AAC5B,IAAI;AAEJ,gEAAgE;AAChE,sGAAsG;AAEtG,sBAAsB;AACtB,2BAA2B;AAC3B,+BAA+B;AAE/B,8FAA8F;AAC9F,IAAI;AAEJ,gDAAgD;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAc,EAAsC,EAAE;IAC9F,MAAM,MAAM,GAAyB,EAAE,CAAA;IAEvC,IAAI,CAAC,QAAQ,CAAmB,KAAK,CAAC,EAAE,CAAC;QACxC,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,yBAAyB;YAClC,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,cAAc;SACpB,CAAC,CAAA;QACF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;IAClC,CAAC;IAED,8BAA8B;IAC9B,MAAM,wBAAwB,GAAG,sBAAsB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;IAC7E,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,wBAAwB,CAAC,MAAM,EAAE,CAAC;QAC1E,MAAM,CAAC,IAAI,CAAC,GAAG,wBAAwB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC5D,GAAG,KAAK;YACR,KAAK,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE;SAC7B,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;IAED,iCAAiC;IACjC,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,CAAA;IACvF,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC9F,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,uBAAuB,EAAE,KAAK,CAAC,eAAe,EAAE,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IACrH,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,qBAAqB,EAAE,KAAK,CAAC,aAAa,EAAE,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC7G,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,2BAA2B,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAE1G,6CAA6C;IAC7C,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,6BAA6B;YACtC,KAAK,EAAE,KAAK,CAAC,eAAe;YAC5B,IAAI,EAAE,wBAAwB;SAC9B,CAAC,CAAA;IACH,CAAC;SAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;QAC7C,MAAM,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,mCAAmC;YAC5C,KAAK,EAAE,KAAK,CAAC,eAAe;YAC5B,IAAI,EAAE,cAAc;SACpB,CAAC,CAAA;IACH,CAAC;SAAM,CAAC;QACP,sDAAsD;QACtD,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,2CAA2C,EAAE,KAAK,CAAC,eAAe,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QAC1I,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,uCAAuC,EAAE,KAAK,CAAC,eAAe,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QAClI,MAAM,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,sCAAsC,EAAE,KAAK,CAAC,eAAe,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IACjI,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC;QACvB,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;QAC5B,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAyB,EAAE,CAAA;AACtD,CAAC,CAAA"}