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
@@ -1,118 +1,47 @@
1
1
  import Restful from '../../index.js';
2
- /**
3
- * <p>The <i>Marketing API </i> offers two platforms that sellers can use to promote and advertise their products:
4
- * </p> <ul><li><b>Promoted Listings</b> is an eBay ad service that lets sellers set up <i>ad campaigns </i>
5
- * for the products they want to promote. eBay displays the ads in search results and in other
6
- * marketing modules as <b>SPONSORED</b> listings.
7
- */
8
2
  class Marketing extends Restful {
9
3
  get basePath() {
10
4
  return '/sell/marketing/v1';
11
5
  }
12
- /**
13
- * This method creates an ad for each inventory reference ID specified in the request and associates the newly
14
- * created ads with the specified campaign.
15
- *
16
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
17
- * @param body This type defines the fields for the bulkCreateAdsByInventoryReference request.
18
- */
19
6
  bulkCreateAdsByInventoryReference(campaignId, body) {
20
7
  campaignId = encodeURIComponent(campaignId);
21
8
  return this.post(`/ad_campaign/${campaignId}/bulk_create_ads_by_inventory_reference`, body);
22
9
  }
23
- /**
24
- * This method creates an ad for each listing ID specified in the request and associates the newly created ads with
25
- * the specified campaign.
26
- *
27
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
28
- * a seller's campaign IDs by calling getCampaigns.
29
- * @param body The container for the bulk request to create ads for eBay listing IDs. eBay listing IDs are
30
- * generated when the listing is created on eBay.
31
- */
32
10
  bulkCreateAdsByListingId(campaignId, body) {
33
11
  campaignId = encodeURIComponent(campaignId);
34
12
  return this.post(`/ad_campaign/${campaignId}/bulk_create_ads_by_listing_id`, body);
35
13
  }
36
- /**
37
- * This method deletes a set of ads, as specified by a list of inventory reference IDs, from the specified
38
- * campaign.
39
- *
40
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
41
- * a seller's campaign IDs by calling getCampaigns.
42
- * @param body This type defines the fields for a bulkDeleteAdsByInventoryReference request.
43
- */
44
14
  bulkDeleteAdsByInventoryReference(campaignId, body) {
45
15
  campaignId = encodeURIComponent(campaignId);
46
16
  return this.post(`/ad_campaign/${campaignId}/bulk_delete_ads_by_inventory_reference`, body);
47
17
  }
48
- /**
49
- * This method deletes a set of ads, as specified by a list of listing IDs, from the specified campaign.
50
- *
51
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
52
- * a seller's campaign IDs by calling getCampaigns.
53
- * @param body This type defines the fields for the bulkDeleteAdsByListingId request.
54
- */
55
18
  bulkDeleteAdsByListingId(campaignId, body) {
56
19
  campaignId = encodeURIComponent(campaignId);
57
20
  return this.post(`/ad_campaign/${campaignId}/bulk_delete_ads_by_listing_id`, body);
58
21
  }
59
- /**
60
- * This method replaces an ad bid based on a list of inventory references IDs associated with the specified
61
- * campaign.
62
- *
63
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
64
- * @param body This type defines the fields for the BulkCreateAdsByInventoryReference request.
65
- */
66
22
  bulkUpdateAdsBidByInventoryReference(campaignId, body) {
67
23
  campaignId = encodeURIComponent(campaignId);
68
24
  return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_bid_by_inventory_reference`, body);
69
25
  }
70
- /**
71
- * This method replaces an ad bid based on a supplied list of listing IDs that are associated with the specified
72
- * campaign.
73
- *
74
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
75
- * a seller's campaign IDs by calling getCampaigns.
76
- * @param body Container for the bulk request to update ads.
77
- */
78
26
  bulkUpdateAdsBidByListingId(campaignId, body) {
79
27
  campaignId = encodeURIComponent(campaignId);
80
28
  return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_bid_by_listing_id`, body);
81
29
  }
82
- /**
83
- * This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program.
84
- *
85
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
86
- * a seller's campaign IDs by calling getCampaigns.
87
- * @param body The bulk request to update the ads.
88
- */
89
30
  bulkUpdateAdsStatus(campaignId, body) {
90
31
  campaignId = encodeURIComponent(campaignId);
91
32
  return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_status`, body);
92
33
  }
93
- /**
94
- * This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program.
95
- *
96
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
97
- * a seller's campaign IDs by calling getCampaigns.
98
- * @param body The bulk request to update ads.
99
- */
100
34
  bulkUpdateAdsStatusByListingId(campaignId, body) {
101
35
  campaignId = encodeURIComponent(campaignId);
102
36
  return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_status_by_listing_id`, body);
103
37
  }
104
- /**
105
- * This method retrieves all the ads for the specified campaign.
106
- *
107
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
108
- * a seller's campaign IDs by calling getCampaigns.
109
- * @param limit Specifies the maximum number of ads to return on a page in the paginated response. Default: 10
110
- * Maximum: 500
111
- * @param listingIds A comma separated list of eBay listing IDs. The response includes only active ads (ads
112
- * associated with a RUNNING campaign).
113
- * @param offset Specifies the number of ads to skip in the result set before returning the first ad in the
114
- * paginated response.
115
- */
38
+ launchCampaign(campaignId) {
39
+ campaignId = encodeURIComponent(campaignId);
40
+ return this.post(`/ad_campaign/${campaignId}/launch`);
41
+ }
42
+ setupQuickCampaign(body) {
43
+ return this.post(`/ad_campaign/setup_quick_campaign`, body);
44
+ }
116
45
  getAds(campaignId, { limit, listingIds, offset } = {}) {
117
46
  campaignId = encodeURIComponent(campaignId);
118
47
  return this.get(`/ad_campaign/${campaignId}/ad`, {
@@ -123,74 +52,28 @@ class Marketing extends Restful {
123
52
  }
124
53
  });
125
54
  }
126
- /**
127
- * This method creates an ad for the specified listing ID, sets the bid percentage for that specific item, and
128
- * associates the ad with the specified campaign.
129
- *
130
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
131
- * a seller's campaign IDs by calling getCampaigns.
132
- * @param body This type defines the fields for the createAd request.
133
- */
134
55
  createAdByListingId(campaignId, body) {
135
56
  campaignId = encodeURIComponent(campaignId);
136
57
  return this.post(`/ad_campaign/${campaignId}/ad`, body);
137
58
  }
138
- /**
139
- * This method creates an ad for the specified inventory reference ID, sets the bid percentage for that specific
140
- * item, and associates the ad with the specified campaign.
141
- *
142
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
143
- * a seller's campaign IDs by calling getCampaigns.
144
- * @param body This type defines the fields for the createAdsByInventoryReference request.
145
- */
146
59
  createAdsByInventoryReference(campaignId, body) {
147
60
  campaignId = encodeURIComponent(campaignId);
148
61
  return this.post(`/ad_campaign/${campaignId}/create_ads_by_inventory_reference`, body);
149
62
  }
150
- /**
151
- * This method retrieves the specified ad from the specified campaign.
152
- *
153
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
154
- * a seller's campaign IDs by calling getCampaigns.
155
- * @param adId Identifier of an ad. This ID was generated when the ad was created.
156
- */
157
63
  getAd(campaignId, adId) {
158
64
  campaignId = encodeURIComponent(campaignId);
159
65
  adId = encodeURIComponent(adId);
160
66
  return this.get(`/ad_campaign/${campaignId}/ad/${adId}`);
161
67
  }
162
- /**
163
- * This method retrieves the specified ad from the specified campaign.
164
- *
165
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
166
- * @param adId Identifier of an ad. This ID was generated when the ad was created.
167
- */
168
68
  deleteAd(campaignId, adId) {
169
69
  campaignId = encodeURIComponent(campaignId);
170
70
  adId = encodeURIComponent(adId);
171
71
  return this.delete(`/ad_campaign/${campaignId}/ad/${adId}`);
172
72
  }
173
- /**
174
- * This method deletes ads using a list of seller inventory reference IDs that are associated with the specified
175
- * campaign ID.
176
- *
177
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
178
- * a seller's campaign IDs by calling getCampaigns.
179
- */
180
73
  deleteAdsByInventoryReference(campaignId) {
181
74
  campaignId = encodeURIComponent(campaignId);
182
75
  return this.post(`/ad_campaign/${campaignId}/delete_ads_by_inventory_reference`);
183
76
  }
184
- /**
185
- * This method retrieves ads from the specified campaign using the seller's inventory reference ID and inventory
186
- * reference type.
187
- *
188
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
189
- * a seller's campaign IDs by calling getCampaigns.
190
- * @param inventoryReferenceId The inventory reference ID associated with the ad you want returned.
191
- * @param inventoryReferenceType The type of the inventory reference ID. Set this value to either INVENTORY_ITEM (a
192
- * single listing) or INVENTORY_ITEM_GROUP (a multi-variation listing).
193
- */
194
77
  getAdsByInventoryReference(campaignId, inventoryReferenceId, inventoryReferenceType) {
195
78
  campaignId = encodeURIComponent(campaignId);
196
79
  return this.get(`/ad_campaign/${campaignId}/get_ads_by_inventory_reference`, {
@@ -200,28 +83,11 @@ class Marketing extends Restful {
200
83
  }
201
84
  });
202
85
  }
203
- /**
204
- * This method updates the bid for the specified ad in the specified campaign. In the request, supply the
205
- * campaign_id and ad_id as a URI parameters.
206
- *
207
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
208
- * a seller's campaign IDs by calling getCampaigns.
209
- * @param adId A unique eBay-assigned ID for an ad that's generated when an ad is created.
210
- * @param body This type defines the fields for the updateBid request.
211
- */
212
86
  updateBid(campaignId, adId, body) {
213
87
  campaignId = encodeURIComponent(campaignId);
214
88
  adId = encodeURIComponent(adId);
215
89
  return this.post(`/ad_campaign/${campaignId}/ad/${adId}/update_bid`, body);
216
90
  }
217
- /**
218
- *
219
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
220
- * a seller's campaign IDs by calling getCampaigns.
221
- * @param adGroupStatus A comma-separated list of ad group statuses.
222
- * @param limit The number of results, from the current result set, to be returned in a single page.
223
- * @param offset The number of results that will be skipped in the result set.
224
- */
225
91
  getAdGroups(campaignId, { adGroupStatus, limit, offset } = {}) {
226
92
  campaignId = encodeURIComponent(campaignId);
227
93
  return this.get(`/ad_campaign/${campaignId}/ad_group`, {
@@ -232,90 +98,34 @@ class Marketing extends Restful {
232
98
  }
233
99
  });
234
100
  }
235
- /**
236
- *
237
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
238
- * a seller's campaign IDs by calling getCampaigns.
239
- * @param body This type defines the fields for the <b>createAdGroup</b> request.
240
- */
241
101
  createAdGroup(campaignId, body) {
242
102
  campaignId = encodeURIComponent(campaignId);
243
103
  return this.post(`/ad_campaign/${campaignId}/ad_group`, body);
244
104
  }
245
- /**
246
- *
247
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
248
- * a seller's campaign IDs by calling getCampaigns.
249
- * @param adGroupId The ID of the ad group that shall be retrieved.
250
- */
251
105
  getAdGroup(campaignId, adGroupId) {
252
106
  adGroupId = encodeURIComponent(adGroupId);
253
107
  campaignId = encodeURIComponent(campaignId);
254
108
  return this.get(`/ad_campaign/${campaignId}/ad_group/${adGroupId}`);
255
109
  }
256
- /**
257
- *
258
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
259
- * a seller's campaign IDs by calling getCampaigns.
260
- * @param adGroupId The ID of the ad group that shall be retrieved.
261
- * @param body This type defines the fields for the <b>UpdateAdGroup</b> request.
262
- */
263
110
  updateAdGroup(campaignId, adGroupId, body) {
264
111
  adGroupId = encodeURIComponent(adGroupId);
265
112
  campaignId = encodeURIComponent(campaignId);
266
113
  return this.put(`/ad_campaign/${campaignId}/ad_group/${adGroupId}`, body);
267
114
  }
268
- /**
269
- *
270
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
271
- * a seller's campaign IDs by calling getCampaigns.
272
- * @param adGroupId The ID of the ad group that shall be retrieved.
273
- * @param body The data requested to retrieve the suggested bids.
274
- */
275
115
  suggestBids(campaignId, adGroupId, body) {
276
116
  adGroupId = encodeURIComponent(adGroupId);
277
117
  campaignId = encodeURIComponent(campaignId);
278
118
  return this.post(`/ad_campaign/${campaignId}/ad_group/${adGroupId}/suggest_bids`, body);
279
119
  }
280
- /**
281
- *
282
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
283
- * a seller's campaign IDs by calling getCampaigns.
284
- * @param adGroupId The ID of the ad group that shall be retrieved.
285
- * @param body The required data to retrieve suggested keywords.
286
- */
287
120
  suggestKeywords(campaignId, adGroupId, body) {
288
121
  adGroupId = encodeURIComponent(adGroupId);
289
122
  campaignId = encodeURIComponent(campaignId);
290
123
  return this.post(`/ad_campaign/${campaignId}/ad_group/${adGroupId}/suggest_keywords`, body);
291
124
  }
292
- /**
293
- * This method clones (makes a copy of) the specified campaign.
294
- *
295
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
296
- * a seller's campaign IDs by calling getCampaigns.
297
- * @param body This type defines the fields for a clone campaign request.
298
- */
299
125
  cloneCampaign(campaignId, body) {
300
126
  campaignId = encodeURIComponent(campaignId);
301
127
  return this.post(`/ad_campaign/${campaignId}/clone`, body);
302
128
  }
303
- /**
304
- * This method retrieves the details for all the campaigns of a seller, including the campaign's the selection
305
- * rules.
306
- *
307
- * @param campaignName Specifies the campaign name. The results are filtered to include only the campaign by the
308
- * specified name.
309
- * @param campaignStatus Specifies the campaign status. The results are filtered to include only campaigns that are
310
- * in the specified states.
311
- * @param endDateRange Specifies the range of a campaign's end date. The results are filtered to include only
312
- * campaigns with an end date that is within specified range.
313
- * @param limit Specifies the maximum number of campaigns to return on a page in the paginated response. Default:
314
- * 10 Maximum: 500
315
- * @param offset Specifies the number of campaigns to skip in the result set before returning the first report in
316
- * the paginated response.
317
- * @param startDateRange Specifies the range of a campaign's start date in which to filter the results.
318
- */
319
129
  getCampaigns({ campaignName, campaignStatus, endDateRange, limit, offset, startDateRange } = {}) {
320
130
  return this.get(`/ad_campaign`, {
321
131
  params: {
@@ -328,55 +138,21 @@ class Marketing extends Restful {
328
138
  }
329
139
  });
330
140
  }
331
- /**
332
- * This method retrieves the details of a single campaign, as specified with the campaign_id query parameter.
333
- *
334
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
335
- * a seller's campaign IDs by calling getCampaigns.
336
- */
337
141
  getCampaign(campaignId) {
338
142
  campaignId = encodeURIComponent(campaignId);
339
143
  return this.get(`/ad_campaign/${campaignId}`);
340
144
  }
341
- /**
342
- * This method creates a Promoted Listings ad campaign.
343
- *
344
- * @param body his type defines the fields for the create campaign request.
345
- */
346
145
  createCampaign(body) {
347
146
  return this.post(`/ad_campaign`, body);
348
147
  }
349
- /**
350
- * This method deletes the campaign specified by the campaign_id query parameter.
351
- *
352
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
353
- * a seller's campaign IDs by calling getCampaigns.
354
- */
355
148
  deleteCampaign(campaignId) {
356
149
  campaignId = encodeURIComponent(campaignId);
357
150
  return this.delete(`/ad_campaign/${campaignId}`);
358
151
  }
359
- /**
360
- * This method ends an active (RUNNINGM) or paused campaign. Specify the campaign you want to end by supplying its
361
- * campaign ID in a query parameter.
362
- *
363
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
364
- * a seller's campaign IDs by calling getCampaigns.
365
- */
366
152
  endCampaign(campaignId) {
367
153
  campaignId = encodeURIComponent(campaignId);
368
154
  return this.post(`/ad_campaign/${campaignId}/end`);
369
155
  }
370
- /**
371
- * This method retrieves the campaign containing the listing that is specified using either an eBay listing ID or
372
- * an inventory reference ID and inventory reference type.
373
- *
374
- * @param inventoryReferenceId The seller's inventory reference ID of the listing to be used to find the campaign
375
- * in which it is associated.
376
- * @param inventoryReferenceType The type of the seller's inventory reference ID, which is a listing or group of
377
- * items.
378
- * @param listingId Identifier of the eBay listing associated with the ad.
379
- */
380
156
  findCampaignByAdReference({ inventoryReferenceId, inventoryReferenceType, listingId } = {}) {
381
157
  return this.get(`/ad_campaign/find_campaign_by_ad_reference`, {
382
158
  params: {
@@ -386,11 +162,6 @@ class Marketing extends Restful {
386
162
  }
387
163
  });
388
164
  }
389
- /**
390
- * This method retrieves the details of a single campaign, as specified with the campaign_name query parameter.
391
- *
392
- * @param campaignName Name of the campaign.
393
- */
394
165
  getCampaignByName(campaignName) {
395
166
  return this.get(`/ad_campaign/get_campaign_by_name`, {
396
167
  params: {
@@ -398,34 +169,14 @@ class Marketing extends Restful {
398
169
  }
399
170
  });
400
171
  }
401
- /**
402
- * This method pauses an active (RUNNING) campaign. You can restarted by calling resumeCampaign, as long as the
403
- * campaign's end date is in the future..
404
- *
405
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
406
- * a seller's campaign IDs by calling getCampaigns.
407
- */
408
172
  pauseCampaign(campaignId) {
409
173
  campaignId = encodeURIComponent(campaignId);
410
174
  return this.post(`/ad_campaign/${campaignId}/pause`);
411
175
  }
412
- /**
413
- * This method resumes a paused campaign, as long as it's end date is in the future.
414
- *
415
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
416
- * a seller's campaign IDs by calling getCampaigns.
417
- */
418
176
  resumeCampaign(campaignId) {
419
177
  campaignId = encodeURIComponent(campaignId);
420
178
  return this.post(`/ad_campaign/${campaignId}/resume`);
421
179
  }
422
- /**
423
- *
424
- * @param campaignId A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
425
- * @param categoryIds Specifies the category ID that is used to limit the results.
426
- * @param limit Specifies the maximum number of campaigns to return on a page in the paginated response.
427
- * @param offset Specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.
428
- */
429
180
  suggestItems(campaignId, { categoryIds, limit, offset } = {}) {
430
181
  campaignId = encodeURIComponent(campaignId);
431
182
  return this.get(`/ad_campaign/${campaignId}/suggest_items`, {
@@ -436,64 +187,26 @@ class Marketing extends Restful {
436
187
  }
437
188
  });
438
189
  }
439
- /**
440
- *
441
- * @param campaignId A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
442
- * @param body This type defines the request fields for the ad rate strategy that shall be updated.
443
- */
444
190
  updateAdRateStrategy(campaignId, body) {
445
191
  campaignId = encodeURIComponent(campaignId);
446
192
  return this.post(`/ad_campaign/${campaignId}/update_ad_rate_strategy`, body);
447
193
  }
448
- /**
449
- *
450
- * @param campaignId A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
451
- * @param body This type defines the request fields for the budget details that shall be updated.
452
- */
453
194
  updateCampaignBudget(campaignId, body) {
454
195
  campaignId = encodeURIComponent(campaignId);
455
196
  return this.post(`/ad_campaign/${campaignId}/update_campaign_budget`, body);
456
197
  }
457
- /**
458
- * This method replaces the name and the start and end dates of a campaign.
459
- *
460
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
461
- * a seller's campaign IDs by calling getCampaigns.
462
- * @param body This type defines the fields to updated the campaign name and start and end dates.
463
- */
464
198
  updateCampaignIdentification(campaignId, body) {
465
199
  campaignId = encodeURIComponent(campaignId);
466
200
  return this.post(`/ad_campaign/${campaignId}/update_campaign_identification`, body);
467
201
  }
468
- /**
469
- *
470
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
471
- * a seller's campaign IDs by calling getCampaigns.
472
- * @param body A type that defines the fields for the bulk request to create keywords.
473
- */
474
202
  bulkCreateKeyword(campaignId, body) {
475
203
  campaignId = encodeURIComponent(campaignId);
476
204
  return this.post(`/ad_campaign/${campaignId}/bulk_create_keyword`, body);
477
205
  }
478
- /**
479
- *
480
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
481
- * a seller's campaign IDs by calling getCampaigns.
482
- * @param body A type that defines the fields for the bulk request to update keywords.
483
- */
484
206
  bulkUpdateKeyword(campaignId, body) {
485
207
  campaignId = encodeURIComponent(campaignId);
486
208
  return this.post(`/ad_campaign/${campaignId}/bulk_update_keyword`, body);
487
209
  }
488
- /**
489
- *
490
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
491
- * a seller's campaign IDs by calling getCampaigns.
492
- * @param adGroupIds A comma-separated list of ad group IDs.
493
- * @param keywordStatus A comma-separated list of keyword statuses.
494
- * @param limit Specifies the maximum number of results to return on a page in the paginated response.
495
- * @param offset Specifies the number of results to skip in the result set before returning the first report in the paginated response.
496
- */
497
210
  getKeywords(campaignId, { adGroupIds, keywordStatus, limit, offset } = {}) {
498
211
  campaignId = encodeURIComponent(campaignId);
499
212
  return this.get(`/ad_campaign/${campaignId}/keyword`, {
@@ -505,61 +218,26 @@ class Marketing extends Restful {
505
218
  }
506
219
  });
507
220
  }
508
- /**
509
- *
510
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
511
- * a seller's campaign IDs by calling getCampaigns.
512
- * @param body A type that defines the fields for the request to create a keyword.
513
- */
514
221
  createKeyword(campaignId, body) {
515
222
  campaignId = encodeURIComponent(campaignId);
516
223
  return this.post(`/ad_campaign/${campaignId}/keyword`, body);
517
224
  }
518
- /**
519
- *
520
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
521
- * a seller's campaign IDs by calling getCampaigns.
522
- * @param keywordId This path parameter is used to identify the keyword to retrieve.
523
- */
524
225
  getKeyword(campaignId, keywordId) {
525
226
  campaignId = encodeURIComponent(campaignId);
526
227
  keywordId = encodeURIComponent(keywordId);
527
228
  return this.get(`/ad_campaign/${campaignId}/keyword/${keywordId}`);
528
229
  }
529
- /**
530
- *
531
- * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
532
- * a seller's campaign IDs by calling getCampaigns.
533
- * @param keywordId This path parameter is used to identify the keyword to retrieve.
534
- * @param body A type that defines the fields for the request to update a keyword.
535
- */
536
230
  updateKeyword(campaignId, keywordId, body) {
537
231
  campaignId = encodeURIComponent(campaignId);
538
232
  keywordId = encodeURIComponent(keywordId);
539
233
  return this.put(`/ad_campaign/${campaignId}/keyword/${keywordId}`, body);
540
234
  }
541
- /**
542
- *
543
- * @param body A type that defines the fields for the bulk request to create negative keywords.
544
- */
545
235
  bulkCreateNegativeKeyword(body) {
546
236
  return this.post(`/bulk_create_negative_keyword`, body);
547
237
  }
548
- /**
549
- *
550
- * @param body A type that defines the fields for the bulk request to create negative keywords.
551
- */
552
238
  bulkUpdateNegativeKeyword(body) {
553
239
  return this.post(`/bulk_update_negative_keyword`, body);
554
240
  }
555
- /**
556
- *
557
- * @param adGroupIds A comma-separated list of ad group IDs.
558
- * @param campaignIds A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.
559
- * @param limit The number of results, from the current result set, to be returned in a single page.
560
- * @param negativeKeywordStatus A comma-separated list of negative keyword statuses.
561
- * @param offset The number of results that will be skipped in the result set.
562
- */
563
241
  getNegativeKeywords({ adGroupIds, campaignIds, limit, negativeKeywordStatus, offset } = {}) {
564
242
  return this.get(`/negative_keyword`, {
565
243
  params: {
@@ -569,66 +247,28 @@ class Marketing extends Restful {
569
247
  }
570
248
  });
571
249
  }
572
- /**
573
- *
574
- * @param body A type that defines the fields for the request to create a negative keyword.
575
- */
576
250
  createNegativeKeyword(body) {
577
251
  return this.post(`/negative_keyword`, body);
578
252
  }
579
- /**
580
- *
581
- * @param negativeKeywordId The unique identifier for the negative keyword.
582
- */
583
253
  getNegativeKeyword(negativeKeywordId) {
584
254
  negativeKeywordId = encodeURIComponent(negativeKeywordId);
585
255
  return this.get(`/negative_keyword/${negativeKeywordId}`);
586
256
  }
587
- /**
588
- *
589
- * @param negativeKeywordId The unique identifier for the negative keyword.
590
- * @param body A type that defines the fields for the request to update a negative keyword.
591
- */
592
257
  updateNegativeKeyword(negativeKeywordId, body) {
593
258
  negativeKeywordId = encodeURIComponent(negativeKeywordId);
594
259
  return this.put(`/negative_keyword/${negativeKeywordId}`, body);
595
260
  }
596
- /**
597
- * This call downloads the report as specified by the report_id path parameter.
598
- *
599
- * @param reportId The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when
600
- * you run a report task with a call to createReportTask.
601
- */
602
261
  getReport(reportId) {
603
262
  reportId = encodeURIComponent(reportId);
604
263
  return this.get(`/ad_report/${reportId}`);
605
264
  }
606
- /**
607
- * This call retrieves information that details the fields used in each of the Promoted Listings reports.
608
- */
609
265
  getReportMetadata() {
610
266
  return this.get(`/ad_report_metadata`);
611
267
  }
612
- /**
613
- * This call retrieves metadata that details the fields used by the Promoted Listings report type that's specified
614
- * by the report_type path parameter.
615
- *
616
- * @param reportType The name of the report type whose metadata you want to get.
617
- */
618
268
  getReportMetadataForReportType(reportType) {
619
269
  reportType = encodeURIComponent(reportType);
620
270
  return this.get(`/ad_report_metadata/${reportType}`);
621
271
  }
622
- /**
623
- * This method returns information on all the existing report tasks related to a seller.
624
- *
625
- * @param limit Specifies the maximum number of report tasks to return on a page in the paginated response.
626
- * Default: 10 Maximum: 500
627
- * @param offset Specifies the number of report tasks to skip in the result set before returning the first report
628
- * in the paginated response.
629
- * @param reportTaskStatuses This parameter filters the returned report tasks by their status. Supply a
630
- * comma-separated list of the report statuses you want returned.
631
- */
632
272
  getReportTasks({ limit, offset, reportTaskStatuses } = {}) {
633
273
  return this.get(`/ad_report_task`, {
634
274
  params: {
@@ -638,128 +278,47 @@ class Marketing extends Restful {
638
278
  }
639
279
  });
640
280
  }
641
- /**
642
- * This call returns the details of a specific Promoted Listings report task, as specified by the report_task_id
643
- * path parameter. T
644
- *
645
- * @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
646
- * created by a call to createReportTask.
647
- */
648
281
  getReportTask(reportTaskId) {
649
282
  reportTaskId = encodeURIComponent(reportTaskId);
650
283
  return this.get(`/ad_report_task/${reportTaskId}`);
651
284
  }
652
- /**
653
- * This method creates a report task, which generates a Promoted Listings report based on the values specified in
654
- * the call.
655
- *
656
- * @param body The container for the fields that define the report task.
657
- */
658
285
  createReportTask(body) {
659
286
  return this.post(`/ad_report_task`, body);
660
287
  }
661
- /**
662
- * This call deletes the report task specified by the report_task_id path parameter.
663
- *
664
- * @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
665
- * created by a call to createReportTask.
666
- */
667
288
  deleteReportTask(reportTaskId) {
668
289
  reportTaskId = encodeURIComponent(reportTaskId);
669
290
  return this.delete(`/ad_report_task/${reportTaskId}`);
670
291
  }
671
- /**
672
- * This method creates an item price markdown promotion (know simply as a &quot;markdown promotion&quot;) where a
673
- * discount amount is applied directly to the items included the promotion.
674
- *
675
- * @param body This type defines the fields that describe an item price markdown promotion.
676
- */
677
292
  createItemPriceMarkdownPromotion(body) {
678
293
  return this.post(`/item_price_markdown`, body);
679
294
  }
680
- /**
681
- * This method updates the specified item price markdown promotion with the new configuration that you supply in
682
- * the payload of the request.
683
- *
684
- * @param promotionId The ID of the promotion you want to update.
685
- * @param body This type defines the fields that describe an item price markdown promotion.
686
- */
687
295
  updateItemPriceMarkdownPromotion(promotionId, body) {
688
296
  promotionId = encodeURIComponent(promotionId);
689
297
  return this.put(`/item_price_markdown/${promotionId}`, body);
690
298
  }
691
- /**
692
- * This method deletes the item price markdown promotion specified by the promotion_id path parameter.
693
- *
694
- * @param promotionId The ID of the promotion you want to delete.
695
- */
696
299
  deleteItemPriceMarkdownPromotion(promotionId) {
697
300
  promotionId = encodeURIComponent(promotionId);
698
301
  return this.delete(`/item_price_markdown/${promotionId}`);
699
302
  }
700
- /**
701
- * This method returns the complete details of the item price markdown promotion that's indicated by the
702
- * promotion_id path parameter.
703
- *
704
- * @param promotionId The ID of the promotion you want to retrieve.
705
- */
706
303
  getItemPriceMarkdownPromotion(promotionId) {
707
304
  promotionId = encodeURIComponent(promotionId);
708
305
  return this.get(`/item_price_markdown/${promotionId}`);
709
306
  }
710
- /**
711
- * This method creates an item promotion (known casually as a &quot;threshold promotion&quot;) where the buyer
712
- * receives a discount when they meet the buying criteria that's set for the promotion.
713
- *
714
- * @param body This type defines the fields that describe an item promotion.
715
- */
716
307
  createItemPromotion(body) {
717
308
  return this.post(`/item_promotion`, body);
718
309
  }
719
- /**
720
- * This method updates the specified threshold promotion with the new configuration that you supply in the request.
721
- *
722
- * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
723
- * value that's generated when the promotion is created.
724
- * @param body type defines the fields that describe an item promotion.
725
- */
726
310
  updateItemPromotion(promotionId, body) {
727
311
  promotionId = encodeURIComponent(promotionId);
728
312
  return this.put(`/item_promotion/${promotionId}`, body);
729
313
  }
730
- /**
731
- * This method deletes the threshold promotion specified by the promotion_id path parameter.
732
- *
733
- * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
734
- * value that's generated when the promotion is created.
735
- */
736
314
  deleteItemPromotion(promotionId) {
737
315
  promotionId = encodeURIComponent(promotionId);
738
316
  return this.delete(`/item_promotion/${promotionId}`);
739
317
  }
740
- /**
741
- * This method returns the complete details of the threshold promotion specified by the promotion_id path
742
- * parameter.
743
- *
744
- * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
745
- * value that's generated when the promotion is created.
746
- */
747
318
  getItemPromotion(promotionId) {
748
319
  promotionId = encodeURIComponent(promotionId);
749
320
  return this.get(`/item_promotion/${promotionId}`);
750
321
  }
751
- /**
752
- * This method returns the set of listings associated with the promotion_id specified in the path parameter.
753
- *
754
- * @param promotionId The ID of the promotion whose associated listings you want to retrieve.
755
- * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
756
- * Maximum: 200
757
- * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
758
- * in the paginated response.
759
- * @param q Reserved for future use.
760
- * @param sort Specifies the order in which to sort the associated listings in the response.
761
- * @param status This query parameter applies only to markdown promotions.
762
- */
763
322
  getListingSet(promotionId, { limit, offset, q, sort, status } = {}) {
764
323
  promotionId = encodeURIComponent(promotionId);
765
324
  return this.get(`/promotion/${promotionId}/get_listing_set`, {
@@ -772,19 +331,6 @@ class Marketing extends Restful {
772
331
  }
773
332
  });
774
333
  }
775
- /**
776
- * This method returns a list of a seller's undeleted promotions.
777
- *
778
- * @param marketplaceId The eBay marketplace ID of the site where the promotion is hosted.
779
- * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
780
- * Maximum: 200
781
- * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
782
- * in the paginated response.
783
- * @param promotionStatus Specifies the promotion state by which you want to filter the results.
784
- * @param promotionType Filters the returned promotions based on the their campaign promotion type.
785
- * @param q A string consisting of one or more keywords.
786
- * @param sort Specifies the order for how to sort the response.
787
- */
788
334
  getPromotions(marketplaceId, { limit, offset, promotionStatus, promotionType, q, sort } = {}) {
789
335
  return this.get(`/promotion`, {
790
336
  params: {
@@ -798,42 +344,14 @@ class Marketing extends Restful {
798
344
  }
799
345
  });
800
346
  }
801
- /**
802
- * This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from
803
- * RUNNING to PAUSED.
804
- *
805
- * @param promotionId Identifier of the promotion you want to pause.
806
- */
807
347
  pausePromotion(promotionId) {
808
348
  const id = encodeURIComponent(promotionId);
809
349
  return this.post(`/promotion/${id}/pause`);
810
350
  }
811
- /**
812
- * This method restarts a threshold promotion that was previously paused and changes the state of the promotion
813
- * from PAUSED to RUNNING.
814
- *
815
- * @param promotionId Identifier of the promotion you want to make active. The ID is a unique eBay-assigned value
816
- * that's generated when the promotion is created.
817
- */
818
351
  resumePromotion(promotionId) {
819
352
  const id = encodeURIComponent(promotionId);
820
353
  return this.post(`/promotion/${id}/resume`);
821
354
  }
822
- /**
823
- * This method generates a report that lists the seller's running, paused, and ended promotions for the specified
824
- * eBay marketplace.
825
- *
826
- * @param marketplaceId The eBay marketplace ID of the siteId for which you want the promotions report.
827
- * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
828
- * Maximum: 200
829
- * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
830
- * in the paginated response.
831
- * @param promotionStatus Limits the results to the promotions that are in the state specified by this query
832
- * parameter.
833
- * @param promotionType Filters the returned promotions in the report based on the their campaign promotion type.
834
- * @param q A string consisting of one or more keywords. eBay filters the response by returning only the promotions
835
- * that contain the supplied keywords in the promotion title.
836
- */
837
355
  getPromotionReports(marketplaceId, { limit, offset, promotionStatus, promotionType, q } = {}) {
838
356
  return this.get(`/promotion_report`, {
839
357
  params: {
@@ -846,11 +364,6 @@ class Marketing extends Restful {
846
364
  }
847
365
  });
848
366
  }
849
- /**
850
- * This method generates a report that summarizes the seller's promotions for the specified eBay marketplace.
851
- *
852
- * @param marketplaceId The eBay marketplace ID of the siteId you for which you want a promotion summary report.
853
- */
854
367
  getPromotionSummaryReport(marketplaceId) {
855
368
  return this.get(`/promotion_summary_report`, {
856
369
  params: {
@@ -858,6 +371,47 @@ class Marketing extends Restful {
858
371
  }
859
372
  });
860
373
  }
374
+ getEmailCampaign(emailCampaignId) {
375
+ emailCampaignId = encodeURIComponent(emailCampaignId);
376
+ return this.get(`/email_campaign/${emailCampaignId}`);
377
+ }
378
+ getEmailCampaigns({ limit, q, offset, sort } = {}) {
379
+ return this.get(`/email_campaign`, {
380
+ params: {
381
+ limit,
382
+ offset,
383
+ q,
384
+ sort
385
+ }
386
+ });
387
+ }
388
+ createEmailCampaign(body) {
389
+ return this.post(`/email_campaign`, body);
390
+ }
391
+ updateEmailCampaign(emailCampaignId, body) {
392
+ emailCampaignId = encodeURIComponent(emailCampaignId);
393
+ return this.put(`/email_campaign/${emailCampaignId}`, body);
394
+ }
395
+ deleteEmailCampaign(emailCampaignId) {
396
+ emailCampaignId = encodeURIComponent(emailCampaignId);
397
+ return this.delete(`/email_campaign/${emailCampaignId}`);
398
+ }
399
+ getEmailPreview(emailCampaignId) {
400
+ emailCampaignId = encodeURIComponent(emailCampaignId);
401
+ return this.get(`/email_campaign/${emailCampaignId}/email_preview`);
402
+ }
403
+ getAudiences() {
404
+ return this.get(`/email_campaign/audience`);
405
+ }
406
+ ;
407
+ getEmailReport(startDate, endDate) {
408
+ return this.get(`/email_campaign/report`, {
409
+ params: {
410
+ startDate,
411
+ endDate
412
+ }
413
+ });
414
+ }
861
415
  }
862
416
  Marketing.id = 'Marketing';
863
417
  export default Marketing;