ebay-api 8.5.0 → 8.6.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 (320) hide show
  1. package/README.md +4 -4
  2. package/dist/api/apiFactory.d.ts +0 -3
  3. package/dist/api/apiFactory.js +0 -4
  4. package/dist/api/base.d.ts +0 -3
  5. package/dist/api/base.js +0 -3
  6. package/dist/api/digitalSignature.d.ts +0 -33
  7. package/dist/api/digitalSignature.js +1 -41
  8. package/dist/api/index.d.ts +0 -3
  9. package/dist/api/index.js +0 -3
  10. package/dist/api/restful/buy/browse/index.d.ts +0 -66
  11. package/dist/api/restful/buy/browse/index.js +0 -73
  12. package/dist/api/restful/buy/deal/index.d.ts +0 -32
  13. package/dist/api/restful/buy/deal/index.js +0 -32
  14. package/dist/api/restful/buy/feed/index.d.ts +0 -33
  15. package/dist/api/restful/buy/feed/index.js +0 -33
  16. package/dist/api/restful/buy/marketing/index.d.ts +0 -18
  17. package/dist/api/restful/buy/marketing/index.js +0 -22
  18. package/dist/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
  19. package/dist/api/restful/buy/marketplaceInsights/index.js +0 -21
  20. package/dist/api/restful/buy/offer/index.d.ts +0 -15
  21. package/dist/api/restful/buy/offer/index.js +0 -15
  22. package/dist/api/restful/buy/order/index.d.ts +0 -227
  23. package/dist/api/restful/buy/order/index.js +0 -227
  24. package/dist/api/restful/commerce/catalog/index.d.ts +0 -54
  25. package/dist/api/restful/commerce/catalog/index.js +0 -54
  26. package/dist/api/restful/commerce/charity/index.d.ts +0 -21
  27. package/dist/api/restful/commerce/charity/index.js +0 -21
  28. package/dist/api/restful/commerce/identity/index.d.ts +0 -7
  29. package/dist/api/restful/commerce/identity/index.js +0 -7
  30. package/dist/api/restful/commerce/notification/index.d.ts +0 -93
  31. package/dist/api/restful/commerce/notification/index.js +0 -93
  32. package/dist/api/restful/commerce/taxonomy/index.d.ts +0 -64
  33. package/dist/api/restful/commerce/taxonomy/index.js +0 -64
  34. package/dist/api/restful/commerce/translation/index.d.ts +0 -8
  35. package/dist/api/restful/commerce/translation/index.js +0 -8
  36. package/dist/api/restful/developer/analytics/index.d.ts +0 -15
  37. package/dist/api/restful/developer/analytics/index.js +0 -15
  38. package/dist/api/restful/developer/keyManagement/index.d.ts +0 -15
  39. package/dist/api/restful/developer/keyManagement/index.js +0 -15
  40. package/dist/api/restful/index.d.ts +0 -16
  41. package/dist/api/restful/index.js +1 -23
  42. package/dist/api/restful/postOrder/cancellation/index.d.ts +0 -43
  43. package/dist/api/restful/postOrder/cancellation/index.js +0 -43
  44. package/dist/api/restful/postOrder/case/index.d.ts +0 -46
  45. package/dist/api/restful/postOrder/case/index.js +0 -46
  46. package/dist/api/restful/postOrder/inquiry/index.d.ts +0 -64
  47. package/dist/api/restful/postOrder/inquiry/index.js +0 -64
  48. package/dist/api/restful/postOrder/return/index.d.ts +0 -190
  49. package/dist/api/restful/postOrder/return/index.js +0 -190
  50. package/dist/api/restful/sell/account/index.d.ts +0 -241
  51. package/dist/api/restful/sell/account/index.js +0 -241
  52. package/dist/api/restful/sell/analytics/index.d.ts +0 -26
  53. package/dist/api/restful/sell/analytics/index.js +0 -26
  54. package/dist/api/restful/sell/compliance/index.d.ts +0 -23
  55. package/dist/api/restful/sell/compliance/index.js +0 -23
  56. package/dist/api/restful/sell/feed/index.d.ts +0 -135
  57. package/dist/api/restful/sell/feed/index.js +0 -135
  58. package/dist/api/restful/sell/finances/index.d.ts +0 -51
  59. package/dist/api/restful/sell/finances/index.js +0 -51
  60. package/dist/api/restful/sell/fulfillment/index.d.ts +0 -108
  61. package/dist/api/restful/sell/fulfillment/index.js +0 -108
  62. package/dist/api/restful/sell/inventory/index.d.ts +0 -197
  63. package/dist/api/restful/sell/inventory/index.js +0 -197
  64. package/dist/api/restful/sell/listing/index.d.ts +0 -8
  65. package/dist/api/restful/sell/listing/index.js +0 -8
  66. package/dist/api/restful/sell/logistics/index.d.ts +0 -33
  67. package/dist/api/restful/sell/logistics/index.js +0 -33
  68. package/dist/api/restful/sell/marketing/index.d.ts +16 -495
  69. package/dist/api/restful/sell/marketing/index.js +48 -494
  70. package/dist/api/restful/sell/metadata/index.d.ts +0 -65
  71. package/dist/api/restful/sell/metadata/index.js +0 -65
  72. package/dist/api/restful/sell/negotiation/index.d.ts +0 -14
  73. package/dist/api/restful/sell/negotiation/index.js +0 -14
  74. package/dist/api/restful/sell/recommendation/index.d.ts +0 -15
  75. package/dist/api/restful/sell/recommendation/index.js +0 -15
  76. package/dist/api/traditional/XMLRequest.d.ts +0 -44
  77. package/dist/api/traditional/XMLRequest.js +0 -46
  78. package/dist/api/traditional/clientAlerts/index.js +0 -1
  79. package/dist/api/traditional/index.d.ts +0 -3
  80. package/dist/api/traditional/index.js +0 -5
  81. package/dist/api/traditional/shopping/index.js +0 -1
  82. package/dist/auth/authNAuth.d.ts +0 -5
  83. package/dist/auth/authNAuth.js +0 -5
  84. package/dist/auth/index.d.ts +0 -3
  85. package/dist/auth/index.js +0 -3
  86. package/dist/auth/oAuth2.d.ts +0 -52
  87. package/dist/auth/oAuth2.js +0 -53
  88. package/dist/eBayApi.d.ts +1 -12
  89. package/dist/eBayApi.js +0 -14
  90. package/dist/ebay-api.min.mjs +1 -1
  91. package/dist/enums/restfulEnums.d.ts +24 -23
  92. package/dist/enums/restfulEnums.js +52 -51
  93. package/dist/errors/index.d.ts +0 -19
  94. package/dist/errors/index.js +1 -20
  95. package/dist/types/apiTypes.d.ts +2 -2
  96. package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
  97. package/dist/types/restful/specs/buy_browse_v1_oas3.js +0 -4
  98. package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
  99. package/dist/types/restful/specs/buy_deal_v1_oas3.js +0 -4
  100. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
  101. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
  102. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
  103. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
  104. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
  105. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
  106. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
  107. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
  108. package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
  109. package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
  110. package/dist/types/restful/specs/cancellation_oas3.d.ts +0 -29
  111. package/dist/types/restful/specs/cancellation_oas3.js +0 -4
  112. package/dist/types/restful/specs/case_oas3.d.ts +0 -31
  113. package/dist/types/restful/specs/case_oas3.js +0 -4
  114. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
  115. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
  116. package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
  117. package/dist/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
  118. package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
  119. package/dist/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
  120. package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
  121. package/dist/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
  122. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
  123. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
  124. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
  125. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
  126. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
  127. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
  128. package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
  129. package/dist/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
  130. package/dist/types/restful/specs/inquiry_oas3.d.ts +0 -45
  131. package/dist/types/restful/specs/inquiry_oas3.js +0 -4
  132. package/dist/types/restful/specs/return_oas3.d.ts +0 -130
  133. package/dist/types/restful/specs/return_oas3.js +0 -4
  134. package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
  135. package/dist/types/restful/specs/sell_account_v1_oas3.js +0 -4
  136. package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
  137. package/dist/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
  138. package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
  139. package/dist/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
  140. package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
  141. package/dist/types/restful/specs/sell_feed_v1_oas3.js +0 -4
  142. package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
  143. package/dist/types/restful/specs/sell_finances_v1_oas3.js +0 -4
  144. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
  145. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
  146. package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
  147. package/dist/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
  148. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
  149. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
  150. package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
  151. package/dist/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
  152. package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
  153. package/dist/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
  154. package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
  155. package/dist/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
  156. package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
  157. package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
  158. package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
  159. package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
  160. package/dist/types/restfulTypes.d.ts +3 -0
  161. package/lib/api/apiFactory.d.ts +0 -3
  162. package/lib/api/apiFactory.js +0 -4
  163. package/lib/api/base.d.ts +0 -3
  164. package/lib/api/base.js +0 -3
  165. package/lib/api/digitalSignature.d.ts +0 -33
  166. package/lib/api/digitalSignature.js +1 -41
  167. package/lib/api/index.d.ts +0 -3
  168. package/lib/api/index.js +0 -3
  169. package/lib/api/restful/buy/browse/index.d.ts +0 -66
  170. package/lib/api/restful/buy/browse/index.js +0 -73
  171. package/lib/api/restful/buy/deal/index.d.ts +0 -32
  172. package/lib/api/restful/buy/deal/index.js +0 -32
  173. package/lib/api/restful/buy/feed/index.d.ts +0 -33
  174. package/lib/api/restful/buy/feed/index.js +0 -33
  175. package/lib/api/restful/buy/marketing/index.d.ts +0 -18
  176. package/lib/api/restful/buy/marketing/index.js +0 -22
  177. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
  178. package/lib/api/restful/buy/marketplaceInsights/index.js +0 -21
  179. package/lib/api/restful/buy/offer/index.d.ts +0 -15
  180. package/lib/api/restful/buy/offer/index.js +0 -15
  181. package/lib/api/restful/buy/order/index.d.ts +0 -227
  182. package/lib/api/restful/buy/order/index.js +0 -227
  183. package/lib/api/restful/commerce/catalog/index.d.ts +0 -54
  184. package/lib/api/restful/commerce/catalog/index.js +0 -54
  185. package/lib/api/restful/commerce/charity/index.d.ts +0 -21
  186. package/lib/api/restful/commerce/charity/index.js +0 -21
  187. package/lib/api/restful/commerce/identity/index.d.ts +0 -7
  188. package/lib/api/restful/commerce/identity/index.js +0 -7
  189. package/lib/api/restful/commerce/notification/index.d.ts +0 -93
  190. package/lib/api/restful/commerce/notification/index.js +0 -93
  191. package/lib/api/restful/commerce/taxonomy/index.d.ts +0 -64
  192. package/lib/api/restful/commerce/taxonomy/index.js +0 -64
  193. package/lib/api/restful/commerce/translation/index.d.ts +0 -8
  194. package/lib/api/restful/commerce/translation/index.js +0 -8
  195. package/lib/api/restful/developer/analytics/index.d.ts +0 -15
  196. package/lib/api/restful/developer/analytics/index.js +0 -15
  197. package/lib/api/restful/developer/keyManagement/index.d.ts +0 -15
  198. package/lib/api/restful/developer/keyManagement/index.js +0 -15
  199. package/lib/api/restful/index.d.ts +0 -16
  200. package/lib/api/restful/index.js +1 -23
  201. package/lib/api/restful/postOrder/cancellation/index.d.ts +0 -43
  202. package/lib/api/restful/postOrder/cancellation/index.js +0 -43
  203. package/lib/api/restful/postOrder/case/index.d.ts +0 -46
  204. package/lib/api/restful/postOrder/case/index.js +0 -46
  205. package/lib/api/restful/postOrder/inquiry/index.d.ts +0 -64
  206. package/lib/api/restful/postOrder/inquiry/index.js +0 -64
  207. package/lib/api/restful/postOrder/return/index.d.ts +0 -190
  208. package/lib/api/restful/postOrder/return/index.js +0 -190
  209. package/lib/api/restful/sell/account/index.d.ts +0 -241
  210. package/lib/api/restful/sell/account/index.js +0 -241
  211. package/lib/api/restful/sell/analytics/index.d.ts +0 -26
  212. package/lib/api/restful/sell/analytics/index.js +0 -26
  213. package/lib/api/restful/sell/compliance/index.d.ts +0 -23
  214. package/lib/api/restful/sell/compliance/index.js +0 -23
  215. package/lib/api/restful/sell/feed/index.d.ts +0 -135
  216. package/lib/api/restful/sell/feed/index.js +0 -135
  217. package/lib/api/restful/sell/finances/index.d.ts +0 -51
  218. package/lib/api/restful/sell/finances/index.js +0 -51
  219. package/lib/api/restful/sell/fulfillment/index.d.ts +0 -108
  220. package/lib/api/restful/sell/fulfillment/index.js +0 -108
  221. package/lib/api/restful/sell/inventory/index.d.ts +0 -197
  222. package/lib/api/restful/sell/inventory/index.js +0 -197
  223. package/lib/api/restful/sell/listing/index.d.ts +0 -8
  224. package/lib/api/restful/sell/listing/index.js +0 -8
  225. package/lib/api/restful/sell/logistics/index.d.ts +0 -33
  226. package/lib/api/restful/sell/logistics/index.js +0 -33
  227. package/lib/api/restful/sell/marketing/index.d.ts +16 -495
  228. package/lib/api/restful/sell/marketing/index.js +48 -494
  229. package/lib/api/restful/sell/metadata/index.d.ts +0 -65
  230. package/lib/api/restful/sell/metadata/index.js +0 -65
  231. package/lib/api/restful/sell/negotiation/index.d.ts +0 -14
  232. package/lib/api/restful/sell/negotiation/index.js +0 -14
  233. package/lib/api/restful/sell/recommendation/index.d.ts +0 -15
  234. package/lib/api/restful/sell/recommendation/index.js +0 -15
  235. package/lib/api/traditional/XMLRequest.d.ts +0 -44
  236. package/lib/api/traditional/XMLRequest.js +0 -46
  237. package/lib/api/traditional/clientAlerts/index.js +0 -1
  238. package/lib/api/traditional/index.d.ts +0 -3
  239. package/lib/api/traditional/index.js +0 -5
  240. package/lib/api/traditional/shopping/index.js +0 -1
  241. package/lib/auth/authNAuth.d.ts +0 -5
  242. package/lib/auth/authNAuth.js +0 -5
  243. package/lib/auth/index.d.ts +0 -3
  244. package/lib/auth/index.js +0 -3
  245. package/lib/auth/oAuth2.d.ts +0 -52
  246. package/lib/auth/oAuth2.js +0 -53
  247. package/lib/eBayApi.d.ts +1 -12
  248. package/lib/eBayApi.js +0 -14
  249. package/lib/ebay-api.min.js +1 -1
  250. package/lib/enums/restfulEnums.d.ts +24 -23
  251. package/lib/enums/restfulEnums.js +52 -52
  252. package/lib/errors/index.d.ts +0 -19
  253. package/lib/errors/index.js +1 -20
  254. package/lib/types/apiTypes.d.ts +2 -2
  255. package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
  256. package/lib/types/restful/specs/buy_browse_v1_oas3.js +0 -4
  257. package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
  258. package/lib/types/restful/specs/buy_deal_v1_oas3.js +0 -4
  259. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
  260. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
  261. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
  262. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
  263. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
  264. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
  265. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
  266. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
  267. package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
  268. package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
  269. package/lib/types/restful/specs/cancellation_oas3.d.ts +0 -29
  270. package/lib/types/restful/specs/cancellation_oas3.js +0 -4
  271. package/lib/types/restful/specs/case_oas3.d.ts +0 -31
  272. package/lib/types/restful/specs/case_oas3.js +0 -4
  273. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
  274. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
  275. package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
  276. package/lib/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
  277. package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
  278. package/lib/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
  279. package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
  280. package/lib/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
  281. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
  282. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
  283. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
  284. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
  285. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
  286. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
  287. package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
  288. package/lib/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
  289. package/lib/types/restful/specs/inquiry_oas3.d.ts +0 -45
  290. package/lib/types/restful/specs/inquiry_oas3.js +0 -4
  291. package/lib/types/restful/specs/return_oas3.d.ts +0 -130
  292. package/lib/types/restful/specs/return_oas3.js +0 -4
  293. package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
  294. package/lib/types/restful/specs/sell_account_v1_oas3.js +0 -4
  295. package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
  296. package/lib/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
  297. package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
  298. package/lib/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
  299. package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
  300. package/lib/types/restful/specs/sell_feed_v1_oas3.js +0 -4
  301. package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
  302. package/lib/types/restful/specs/sell_finances_v1_oas3.js +0 -4
  303. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
  304. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
  305. package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
  306. package/lib/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
  307. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
  308. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
  309. package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
  310. package/lib/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
  311. package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
  312. package/lib/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
  313. package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
  314. package/lib/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
  315. package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
  316. package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
  317. package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
  318. package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
  319. package/lib/types/restfulTypes.d.ts +3 -0
  320. package/package.json +2 -2
@@ -760,6 +760,29 @@ export declare enum CurrencyCode {
760
760
  ZMW = "ZMW",
761
761
  ZWL = "ZWL"
762
762
  }
763
+ export declare enum Locale {
764
+ de_AT = "de-AT",
765
+ de_CH = "de-CH",
766
+ de_DE = "de-DE",
767
+ en_AU = "en-AU",
768
+ en_CA = "en-CA",
769
+ en_GB = "en-GB",
770
+ en_IE = "en-IE",
771
+ en_PH = "en-PH",
772
+ en_US = "en-US",
773
+ es_ES = "es-ES",
774
+ fr_BE = "fr-BE",
775
+ fr_CA = "fr-CA",
776
+ fr_FR = "fr-FR",
777
+ it_IT = "it-IT",
778
+ nl_BE = "nl-BE",
779
+ nl_NL = "nl-NL",
780
+ pl_PL = "pl-PL",
781
+ th_TH = "th-TH",
782
+ zh_HK = "zh-HK",
783
+ zh_TW = "zh-TW"
784
+ }
785
+ export { Locale as ContentLanguage };
763
786
  export declare enum Condition {
764
787
  NEW = "NEW",
765
788
  LIKE_NEW = "LIKE_NEW",
@@ -773,7 +796,7 @@ export declare enum Condition {
773
796
  USED_ACCEPTABLE = "USED_ACCEPTABLE",
774
797
  FOR_PARTS_OR_NOT_WORKING = "FOR_PARTS_OR_NOT_WORKING"
775
798
  }
776
- export declare enum Locale {
799
+ export declare enum LocaleEnum {
777
800
  en_US = "en_US",
778
801
  en_CA = "en_CA",
779
802
  fr_CA = "fr_CA",
@@ -800,28 +823,6 @@ export declare enum Locale {
800
823
  en_IE = "en_IE",
801
824
  en_MY = "en_MY"
802
825
  }
803
- export declare enum ContentLanguage {
804
- de_AT = "de-AT",
805
- de_CH = "de-CH",
806
- de_DE = "de-DE",
807
- en_AU = "en-AU",
808
- en_CA = "en-CA",
809
- en_GB = "en-GB",
810
- en_IE = "en-IE",
811
- en_PH = "en-PH",
812
- en_US = "en-US",
813
- es_ES = "es-ES",
814
- fr_BE = "fr-BE",
815
- fr_CA = "fr-CA",
816
- fr_FR = "fr-FR",
817
- it_IT = "it-IT",
818
- nl_BE = "nl-BE",
819
- nl_NL = "nl-NL",
820
- pl_PL = "pl-PL",
821
- th_TH = "th-TH",
822
- zh_HK = "zh-HK",
823
- zh_TW = "zh-TW"
824
- }
825
826
  export declare enum Marketplace {
826
827
  EBAY_US = "EBAY_US",
827
828
  EBAY_MOTORS = "EBAY_MOTORS",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PackageType = exports.WeightUnitOfMeasure = exports.LengthUnitOfMeasure = exports.CancelReason = exports.ReasonForRefund = exports.RegionType = exports.ReturnShippingCostPayer = exports.ReturnMethod = exports.RefundMethod = exports.Metric = exports.FormatType = exports.Marketplace = exports.ContentLanguage = exports.Locale = exports.Condition = exports.CurrencyCode = exports.CountryCode = exports.RecipientAccountReferenceType = exports.PaymentMethodType = exports.PaymentsProgramStatus = exports.PaymentsProgramType = exports.ShippingCostType = exports.ShippingOptionType = exports.TimeDurationUnit = exports.StoreType = exports.ActivityOption = exports.RefundFeeType = exports.FilePurpose = exports.ReturnState = exports.ReturnCountFilter = exports.CategoryType = exports.Decision = exports.EscalateReason = exports.GetReturnFieldGroupEnum = exports.ReturnType = exports.RequestType = exports.ReturnReason = exports.ShippingCarrier = exports.InquiryStatusFilter = exports.CaseSearchFieldGroup = exports.CaseStatusFilter = exports.InquirySearchFieldGroup = exports.UserRoleFilter = void 0;
3
+ exports.PackageType = exports.WeightUnitOfMeasure = exports.LengthUnitOfMeasure = exports.CancelReason = exports.ReasonForRefund = exports.RegionType = exports.ReturnShippingCostPayer = exports.ReturnMethod = exports.RefundMethod = exports.Metric = exports.FormatType = exports.Marketplace = exports.LocaleEnum = exports.Condition = exports.ContentLanguage = exports.Locale = exports.CurrencyCode = exports.CountryCode = exports.RecipientAccountReferenceType = exports.PaymentMethodType = exports.PaymentsProgramStatus = exports.PaymentsProgramType = exports.ShippingCostType = exports.ShippingOptionType = exports.TimeDurationUnit = exports.StoreType = exports.ActivityOption = exports.RefundFeeType = exports.FilePurpose = exports.ReturnState = exports.ReturnCountFilter = exports.CategoryType = exports.Decision = exports.EscalateReason = exports.GetReturnFieldGroupEnum = exports.ReturnType = exports.RequestType = exports.ReturnReason = exports.ShippingCarrier = exports.InquiryStatusFilter = exports.CaseSearchFieldGroup = exports.CaseStatusFilter = exports.InquirySearchFieldGroup = exports.UserRoleFilter = void 0;
4
4
  var UserRoleFilter;
5
5
  (function (UserRoleFilter) {
6
6
  UserRoleFilter["BUYER"] = "BUYER";
@@ -791,6 +791,29 @@ var CurrencyCode;
791
791
  CurrencyCode["ZMW"] = "ZMW";
792
792
  CurrencyCode["ZWL"] = "ZWL";
793
793
  })(CurrencyCode || (exports.CurrencyCode = CurrencyCode = {}));
794
+ var Locale;
795
+ (function (Locale) {
796
+ Locale["de_AT"] = "de-AT";
797
+ Locale["de_CH"] = "de-CH";
798
+ Locale["de_DE"] = "de-DE";
799
+ Locale["en_AU"] = "en-AU";
800
+ Locale["en_CA"] = "en-CA";
801
+ Locale["en_GB"] = "en-GB";
802
+ Locale["en_IE"] = "en-IE";
803
+ Locale["en_PH"] = "en-PH";
804
+ Locale["en_US"] = "en-US";
805
+ Locale["es_ES"] = "es-ES";
806
+ Locale["fr_BE"] = "fr-BE";
807
+ Locale["fr_CA"] = "fr-CA";
808
+ Locale["fr_FR"] = "fr-FR";
809
+ Locale["it_IT"] = "it-IT";
810
+ Locale["nl_BE"] = "nl-BE";
811
+ Locale["nl_NL"] = "nl-NL";
812
+ Locale["pl_PL"] = "pl-PL";
813
+ Locale["th_TH"] = "th-TH";
814
+ Locale["zh_HK"] = "zh-HK";
815
+ Locale["zh_TW"] = "zh-TW";
816
+ })(Locale || (exports.ContentLanguage = exports.Locale = Locale = {}));
794
817
  var Condition;
795
818
  (function (Condition) {
796
819
  Condition["NEW"] = "NEW";
@@ -805,57 +828,34 @@ var Condition;
805
828
  Condition["USED_ACCEPTABLE"] = "USED_ACCEPTABLE";
806
829
  Condition["FOR_PARTS_OR_NOT_WORKING"] = "FOR_PARTS_OR_NOT_WORKING";
807
830
  })(Condition || (exports.Condition = Condition = {}));
808
- var Locale;
809
- (function (Locale) {
810
- Locale["en_US"] = "en_US";
811
- Locale["en_CA"] = "en_CA";
812
- Locale["fr_CA"] = "fr_CA";
813
- Locale["en_GB"] = "en_GB";
814
- Locale["en_AU"] = "en_AU";
815
- Locale["en_IN"] = "en_IN";
816
- Locale["de_AT"] = "de_AT";
817
- Locale["fr_BE"] = "fr_BE";
818
- Locale["fr_FR"] = "fr_FR";
819
- Locale["de_DE"] = "de_DE";
820
- Locale["it_IT"] = "it_IT";
821
- Locale["nl_BE"] = "nl_BE";
822
- Locale["nl_NL"] = "nl_NL";
823
- Locale["es_ES"] = "es_ES";
824
- Locale["de_CH"] = "de_CH";
825
- Locale["fi_FI"] = "fi_FI";
826
- Locale["zh_HK"] = "zh_HK";
827
- Locale["hu_HU"] = "hu_HU";
828
- Locale["en_PH"] = "en_PH";
829
- Locale["pl_PL"] = "pl_PL";
830
- Locale["pt_PT"] = "pt_PT";
831
- Locale["ru_RU"] = "ru_RU";
832
- Locale["en_SG"] = "en_SG";
833
- Locale["en_IE"] = "en_IE";
834
- Locale["en_MY"] = "en_MY";
835
- })(Locale || (exports.Locale = Locale = {}));
836
- var ContentLanguage;
837
- (function (ContentLanguage) {
838
- ContentLanguage["de_AT"] = "de-AT";
839
- ContentLanguage["de_CH"] = "de-CH";
840
- ContentLanguage["de_DE"] = "de-DE";
841
- ContentLanguage["en_AU"] = "en-AU";
842
- ContentLanguage["en_CA"] = "en-CA";
843
- ContentLanguage["en_GB"] = "en-GB";
844
- ContentLanguage["en_IE"] = "en-IE";
845
- ContentLanguage["en_PH"] = "en-PH";
846
- ContentLanguage["en_US"] = "en-US";
847
- ContentLanguage["es_ES"] = "es-ES";
848
- ContentLanguage["fr_BE"] = "fr-BE";
849
- ContentLanguage["fr_CA"] = "fr-CA";
850
- ContentLanguage["fr_FR"] = "fr-FR";
851
- ContentLanguage["it_IT"] = "it-IT";
852
- ContentLanguage["nl_BE"] = "nl-BE";
853
- ContentLanguage["nl_NL"] = "nl-NL";
854
- ContentLanguage["pl_PL"] = "pl-PL";
855
- ContentLanguage["th_TH"] = "th-TH";
856
- ContentLanguage["zh_HK"] = "zh-HK";
857
- ContentLanguage["zh_TW"] = "zh-TW";
858
- })(ContentLanguage || (exports.ContentLanguage = ContentLanguage = {}));
831
+ var LocaleEnum;
832
+ (function (LocaleEnum) {
833
+ LocaleEnum["en_US"] = "en_US";
834
+ LocaleEnum["en_CA"] = "en_CA";
835
+ LocaleEnum["fr_CA"] = "fr_CA";
836
+ LocaleEnum["en_GB"] = "en_GB";
837
+ LocaleEnum["en_AU"] = "en_AU";
838
+ LocaleEnum["en_IN"] = "en_IN";
839
+ LocaleEnum["de_AT"] = "de_AT";
840
+ LocaleEnum["fr_BE"] = "fr_BE";
841
+ LocaleEnum["fr_FR"] = "fr_FR";
842
+ LocaleEnum["de_DE"] = "de_DE";
843
+ LocaleEnum["it_IT"] = "it_IT";
844
+ LocaleEnum["nl_BE"] = "nl_BE";
845
+ LocaleEnum["nl_NL"] = "nl_NL";
846
+ LocaleEnum["es_ES"] = "es_ES";
847
+ LocaleEnum["de_CH"] = "de_CH";
848
+ LocaleEnum["fi_FI"] = "fi_FI";
849
+ LocaleEnum["zh_HK"] = "zh_HK";
850
+ LocaleEnum["hu_HU"] = "hu_HU";
851
+ LocaleEnum["en_PH"] = "en_PH";
852
+ LocaleEnum["pl_PL"] = "pl_PL";
853
+ LocaleEnum["pt_PT"] = "pt_PT";
854
+ LocaleEnum["ru_RU"] = "ru_RU";
855
+ LocaleEnum["en_SG"] = "en_SG";
856
+ LocaleEnum["en_IE"] = "en_IE";
857
+ LocaleEnum["en_MY"] = "en_MY";
858
+ })(LocaleEnum || (exports.LocaleEnum = LocaleEnum = {}));
859
859
  var Marketplace;
860
860
  (function (Marketplace) {
861
861
  Marketplace["EBAY_US"] = "EBAY_US";
@@ -1,18 +1,8 @@
1
1
  export declare const rawError: unique symbol;
2
- /**
3
- * Error object for ease of capturing if some service depends on .toJSON() method to log something
4
- *
5
- * @ignore
6
- */
7
2
  export declare class EBayError extends Error {
8
3
  readonly meta: any;
9
4
  readonly description: string;
10
5
  constructor(message: string, description?: string, meta?: any);
11
- /**
12
- * returns a JSON representation of the Error
13
- *
14
- * @return {Object} json representation of the Error
15
- */
16
6
  toJSON(): {
17
7
  message: string;
18
8
  description: string;
@@ -21,23 +11,14 @@ export declare class EBayError extends Error {
21
11
  meta: any;
22
12
  };
23
13
  }
24
- /**
25
- * thrown when Request.prototype.run() is called without having defined an eBay API call
26
- */
27
14
  export declare class EbayNoCallError extends EBayError {
28
15
  constructor(msg?: string);
29
16
  }
30
- /**
31
- * thrown when attempting to load environment variables that don't exist
32
- */
33
17
  export declare class ApiEnvError extends EBayError {
34
18
  constructor(key: any);
35
19
  }
36
20
  export declare const getErrorMessage: (err: any) => any;
37
21
  export declare const getErrorDescription: (err: any) => any;
38
- /**
39
- * Thrown when an Error occurs on eBay's side.
40
- */
41
22
  export declare class EbayApiError extends EBayError {
42
23
  constructor(err: any);
43
24
  }
@@ -4,15 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.checkEBayResponse = exports.handleEBayError = exports.mapEBayError = exports.EBayInvalidScope = exports.EBayTokenRequired = exports.EBayIAFTokenInvalid = exports.EBayIAFTokenExpired = exports.EBayInvalidAccessToken = exports.EBayNotFound = exports.EBayInvalidGrant = exports.EBayAccessDenied = exports.EbayApiError = exports.getErrorDescription = exports.getErrorMessage = exports.ApiEnvError = exports.EbayNoCallError = exports.EBayError = exports.rawError = void 0;
7
- // tslint:disable:max-classes-per-file
8
7
  const debug_1 = __importDefault(require("debug"));
9
8
  const log = (0, debug_1.default)('ebay:error');
10
9
  exports.rawError = Symbol('raw-error');
11
- /**
12
- * Error object for ease of capturing if some service depends on .toJSON() method to log something
13
- *
14
- * @ignore
15
- */
16
10
  class EBayError extends Error {
17
11
  constructor(message, description = '', meta = {}) {
18
12
  super(message);
@@ -21,11 +15,6 @@ class EBayError extends Error {
21
15
  this.description = description;
22
16
  this.meta = meta;
23
17
  }
24
- /**
25
- * returns a JSON representation of the Error
26
- *
27
- * @return {Object} json representation of the Error
28
- */
29
18
  toJSON() {
30
19
  return {
31
20
  message: this.message,
@@ -37,18 +26,12 @@ class EBayError extends Error {
37
26
  }
38
27
  }
39
28
  exports.EBayError = EBayError;
40
- /**
41
- * thrown when Request.prototype.run() is called without having defined an eBay API call
42
- */
43
29
  class EbayNoCallError extends EBayError {
44
30
  constructor(msg = 'No eBay API call defined, please invoke one.') {
45
31
  super(msg);
46
32
  }
47
33
  }
48
34
  exports.EbayNoCallError = EbayNoCallError;
49
- /**
50
- * thrown when attempting to load environment variables that don't exist
51
- */
52
35
  class ApiEnvError extends EBayError {
53
36
  constructor(key) {
54
37
  super(`Could not find ${key} in process.env.`);
@@ -71,9 +54,6 @@ const getErrorDescription = (err) => err.response?.data?.error_description
71
54
  || err.response?.statusText
72
55
  || '';
73
56
  exports.getErrorDescription = getErrorDescription;
74
- /**
75
- * Thrown when an Error occurs on eBay's side.
76
- */
77
57
  class EbayApiError extends EBayError {
78
58
  constructor(err) {
79
59
  const { message, description, meta } = (0, exports.mapEBayError)(err);
@@ -198,6 +178,7 @@ const checkEBayResponse = (data) => {
198
178
  case EBayIAFTokenExpired.code:
199
179
  throw new EBayIAFTokenExpired(data);
200
180
  case EBayIAFTokenInvalid.code:
181
+ case 1.32:
201
182
  throw new EBayIAFTokenInvalid(data);
202
183
  case EBayTokenRequired.code:
203
184
  throw new EBayTokenRequired(data);
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { ContentLanguage, Locale, MarketplaceId, SiteId } from '../enums/index.js';
2
+ import { Locale, MarketplaceId, SiteId } from '../enums/index.js';
3
3
  export type Scope = string[];
4
4
  export type Keyset = {
5
5
  appId: string;
@@ -9,7 +9,7 @@ export type Keyset = {
9
9
  export type RestConfig = {
10
10
  marketplaceId?: MarketplaceId | `${MarketplaceId}`;
11
11
  endUserCtx?: string;
12
- contentLanguage?: ContentLanguage | `${ContentLanguage}`;
12
+ contentLanguage?: Locale | `${Locale}`;
13
13
  acceptLanguage?: Locale | `${Locale}`;
14
14
  };
15
15
  export type TraditionalConfig = {