ebay-api 7.1.3 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/README.md +59 -53
  2. package/dist/api/apiFactory.d.ts +27 -0
  3. package/dist/api/apiFactory.js +94 -0
  4. package/dist/api/base.d.ts +10 -0
  5. package/dist/api/base.js +10 -0
  6. package/dist/api/index.d.ts +11 -0
  7. package/dist/api/index.js +11 -0
  8. package/dist/api/restful/buy/browse/index.d.ts +84 -0
  9. package/dist/api/restful/buy/browse/index.js +135 -0
  10. package/dist/api/restful/buy/deal/index.d.ts +55 -0
  11. package/dist/api/restful/buy/deal/index.js +73 -0
  12. package/dist/api/restful/buy/feed/index.d.ts +43 -0
  13. package/dist/api/restful/buy/feed/index.js +78 -0
  14. package/dist/api/restful/buy/index.d.ts +17 -0
  15. package/dist/api/restful/buy/index.js +8 -0
  16. package/dist/api/restful/buy/marketing/index.d.ts +27 -0
  17. package/dist/api/restful/buy/marketing/index.js +44 -0
  18. package/dist/api/restful/buy/marketplaceInsights/index.d.ts +28 -0
  19. package/dist/api/restful/buy/marketplaceInsights/index.js +44 -0
  20. package/dist/api/restful/buy/offer/index.d.ts +23 -0
  21. package/dist/api/restful/buy/offer/index.js +30 -0
  22. package/dist/api/restful/buy/order/index.d.ts +264 -0
  23. package/dist/api/restful/buy/order/index.js +362 -0
  24. package/dist/api/restful/commerce/catalog/index.d.ts +73 -0
  25. package/dist/api/restful/commerce/catalog/index.js +101 -0
  26. package/dist/api/restful/commerce/charity/index.d.ts +34 -0
  27. package/dist/api/restful/commerce/charity/index.js +49 -0
  28. package/dist/api/restful/commerce/identity/index.d.ts +14 -0
  29. package/dist/api/restful/commerce/identity/index.js +20 -0
  30. package/dist/api/restful/commerce/index.d.ts +15 -0
  31. package/dist/api/restful/commerce/index.js +7 -0
  32. package/dist/api/restful/commerce/notification/index.d.ts +117 -0
  33. package/dist/api/restful/commerce/notification/index.js +180 -0
  34. package/dist/api/restful/commerce/taxonomy/index.d.ts +78 -0
  35. package/dist/api/restful/commerce/taxonomy/index.js +128 -0
  36. package/dist/api/restful/commerce/translation/index.d.ts +15 -0
  37. package/dist/api/restful/commerce/translation/index.js +18 -0
  38. package/dist/api/restful/developer/analytics/index.d.ts +22 -0
  39. package/dist/api/restful/developer/analytics/index.js +38 -0
  40. package/dist/api/restful/developer/index.d.ts +7 -0
  41. package/dist/api/restful/developer/index.js +3 -0
  42. package/dist/api/restful/developer/keyManagement/index.d.ts +26 -0
  43. package/dist/api/restful/developer/keyManagement/index.js +34 -0
  44. package/dist/api/restful/index.d.ts +62 -0
  45. package/dist/api/restful/index.js +164 -0
  46. package/dist/api/restful/postOrder/cancellation/index.d.ts +57 -0
  47. package/dist/api/restful/postOrder/cancellation/index.js +88 -0
  48. package/dist/api/restful/postOrder/case/index.d.ts +63 -0
  49. package/dist/api/restful/postOrder/case/index.js +88 -0
  50. package/dist/api/restful/postOrder/index.d.ts +11 -0
  51. package/dist/api/restful/postOrder/index.js +5 -0
  52. package/dist/api/restful/postOrder/inquiry/index.d.ts +82 -0
  53. package/dist/api/restful/postOrder/inquiry/index.js +124 -0
  54. package/dist/api/restful/postOrder/return/index.d.ts +231 -0
  55. package/dist/api/restful/postOrder/return/index.js +354 -0
  56. package/dist/api/restful/sell/account/index.d.ts +217 -0
  57. package/dist/api/restful/sell/account/index.js +330 -0
  58. package/dist/api/restful/sell/analytics/index.d.ts +41 -0
  59. package/dist/api/restful/sell/analytics/index.js +54 -0
  60. package/dist/api/restful/sell/compliance/index.d.ts +37 -0
  61. package/dist/api/restful/sell/compliance/index.js +50 -0
  62. package/dist/api/restful/sell/feed/index.d.ts +151 -0
  63. package/dist/api/restful/sell/feed/index.js +248 -0
  64. package/dist/api/restful/sell/finances/index.d.ts +78 -0
  65. package/dist/api/restful/sell/finances/index.js +102 -0
  66. package/dist/api/restful/sell/fulfillment/index.d.ts +137 -0
  67. package/dist/api/restful/sell/fulfillment/index.js +192 -0
  68. package/dist/api/restful/sell/index.d.ts +29 -0
  69. package/dist/api/restful/sell/index.js +14 -0
  70. package/dist/api/restful/sell/inventory/index.d.ts +248 -0
  71. package/dist/api/restful/sell/inventory/index.js +339 -0
  72. package/dist/api/restful/sell/listing/index.d.ts +14 -0
  73. package/dist/api/restful/sell/listing/index.js +18 -0
  74. package/dist/api/restful/sell/logistics/index.d.ts +44 -0
  75. package/dist/api/restful/sell/logistics/index.js +59 -0
  76. package/dist/api/restful/sell/marketing/index.d.ts +443 -0
  77. package/dist/api/restful/sell/marketing/index.js +602 -0
  78. package/dist/api/restful/sell/metadata/index.d.ts +77 -0
  79. package/dist/api/restful/sell/metadata/index.js +124 -0
  80. package/dist/api/restful/sell/negotiation/index.d.ts +24 -0
  81. package/dist/api/restful/sell/negotiation/index.js +32 -0
  82. package/dist/api/restful/sell/recommendation/index.d.ts +26 -0
  83. package/dist/api/restful/sell/recommendation/index.js +32 -0
  84. package/dist/api/traditional/XMLRequest.d.ts +107 -0
  85. package/dist/api/traditional/XMLRequest.js +173 -0
  86. package/dist/api/traditional/clientAlerts/index.d.ts +9 -0
  87. package/dist/api/traditional/clientAlerts/index.js +11 -0
  88. package/dist/api/traditional/clientAlerts/types.d.ts +31 -0
  89. package/dist/api/traditional/clientAlerts/types.js +32 -0
  90. package/dist/api/traditional/fields.d.ts +1948 -0
  91. package/dist/api/traditional/fields.js +1946 -0
  92. package/dist/api/traditional/finding/index.d.ts +12 -0
  93. package/dist/api/traditional/finding/index.js +13 -0
  94. package/dist/api/traditional/index.d.ts +17 -0
  95. package/dist/api/traditional/index.js +181 -0
  96. package/dist/api/traditional/merchandising/index.d.ts +7 -0
  97. package/dist/api/traditional/merchandising/index.js +8 -0
  98. package/dist/api/traditional/shopping/index.d.ts +11 -0
  99. package/dist/api/traditional/shopping/index.js +13 -0
  100. package/dist/api/traditional/trading/index.d.ts +142 -0
  101. package/dist/api/traditional/trading/index.js +143 -0
  102. package/dist/auth/authNAuth.d.ts +49 -0
  103. package/dist/auth/authNAuth.js +116 -0
  104. package/dist/auth/index.d.ts +17 -0
  105. package/dist/auth/index.js +25 -0
  106. package/dist/auth/oAuth2.d.ts +95 -0
  107. package/dist/auth/oAuth2.js +259 -0
  108. package/dist/eBayApi.d.ts +58 -0
  109. package/dist/eBayApi.js +93 -0
  110. package/dist/ebay-api.min.mjs +1 -0
  111. package/dist/enums/apiEnums.d.ts +49 -0
  112. package/dist/enums/apiEnums.js +51 -0
  113. package/dist/enums/index.d.ts +2 -0
  114. package/dist/enums/index.js +2 -0
  115. package/dist/enums/restfulEnums.d.ts +970 -0
  116. package/dist/enums/restfulEnums.js +1013 -0
  117. package/dist/errors/index.d.ts +66 -0
  118. package/dist/errors/index.js +184 -0
  119. package/dist/nanoevents.d.ts +6 -0
  120. package/dist/nanoevents.js +20 -0
  121. package/dist/request.d.ts +26 -0
  122. package/dist/request.js +43 -0
  123. package/dist/types/apiTypes.d.ts +33 -0
  124. package/dist/types/apiTypes.js +1 -0
  125. package/dist/types/index.d.ts +3 -0
  126. package/dist/types/index.js +3 -0
  127. package/dist/types/restfulTypes.d.ts +1082 -0
  128. package/dist/types/restfulTypes.js +1 -0
  129. package/dist/types/traditonalTypes.d.ts +34 -0
  130. package/dist/types/traditonalTypes.js +1 -0
  131. package/lib/api/apiFactory.d.ts +8 -8
  132. package/lib/api/apiFactory.js +41 -42
  133. package/lib/api/base.d.ts +3 -6
  134. package/lib/api/base.js +3 -15
  135. package/lib/api/index.d.ts +4 -4
  136. package/lib/api/index.js +4 -5
  137. package/lib/api/restful/buy/browse/index.d.ts +2 -2
  138. package/lib/api/restful/buy/browse/index.js +2 -3
  139. package/lib/api/restful/buy/deal/index.d.ts +1 -1
  140. package/lib/api/restful/buy/deal/index.js +2 -3
  141. package/lib/api/restful/buy/feed/index.d.ts +2 -2
  142. package/lib/api/restful/buy/feed/index.js +2 -3
  143. package/lib/api/restful/buy/index.d.ts +8 -8
  144. package/lib/api/restful/buy/index.js +14 -15
  145. package/lib/api/restful/buy/marketing/index.d.ts +2 -2
  146. package/lib/api/restful/buy/marketing/index.js +2 -3
  147. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +2 -2
  148. package/lib/api/restful/buy/marketplaceInsights/index.js +2 -3
  149. package/lib/api/restful/buy/offer/index.d.ts +2 -2
  150. package/lib/api/restful/buy/offer/index.js +2 -3
  151. package/lib/api/restful/buy/order/index.d.ts +3 -3
  152. package/lib/api/restful/buy/order/index.js +3 -4
  153. package/lib/api/restful/commerce/catalog/index.d.ts +2 -2
  154. package/lib/api/restful/commerce/catalog/index.js +2 -3
  155. package/lib/api/restful/commerce/charity/index.d.ts +1 -1
  156. package/lib/api/restful/commerce/charity/index.js +2 -3
  157. package/lib/api/restful/commerce/identity/index.d.ts +1 -1
  158. package/lib/api/restful/commerce/identity/index.js +2 -3
  159. package/lib/api/restful/commerce/index.d.ts +7 -7
  160. package/lib/api/restful/commerce/index.js +12 -13
  161. package/lib/api/restful/commerce/notification/index.d.ts +2 -2
  162. package/lib/api/restful/commerce/notification/index.js +2 -3
  163. package/lib/api/restful/commerce/taxonomy/index.d.ts +1 -1
  164. package/lib/api/restful/commerce/taxonomy/index.js +2 -3
  165. package/lib/api/restful/commerce/translation/index.d.ts +2 -2
  166. package/lib/api/restful/commerce/translation/index.js +2 -3
  167. package/lib/api/restful/developer/analytics/index.d.ts +1 -1
  168. package/lib/api/restful/developer/analytics/index.js +2 -3
  169. package/lib/api/restful/developer/index.d.ts +3 -3
  170. package/lib/api/restful/developer/index.js +4 -5
  171. package/lib/api/restful/developer/keyManagement/index.d.ts +1 -1
  172. package/lib/api/restful/developer/keyManagement/index.js +2 -3
  173. package/lib/api/restful/index.d.ts +6 -6
  174. package/lib/api/restful/index.js +5 -6
  175. package/lib/api/restful/postOrder/cancellation/index.d.ts +2 -2
  176. package/lib/api/restful/postOrder/cancellation/index.js +2 -3
  177. package/lib/api/restful/postOrder/case/index.d.ts +2 -2
  178. package/lib/api/restful/postOrder/case/index.js +2 -3
  179. package/lib/api/restful/postOrder/index.d.ts +5 -5
  180. package/lib/api/restful/postOrder/index.js +8 -9
  181. package/lib/api/restful/postOrder/inquiry/index.d.ts +2 -2
  182. package/lib/api/restful/postOrder/inquiry/index.js +2 -3
  183. package/lib/api/restful/postOrder/return/index.d.ts +3 -3
  184. package/lib/api/restful/postOrder/return/index.js +2 -3
  185. package/lib/api/restful/sell/account/index.d.ts +3 -3
  186. package/lib/api/restful/sell/account/index.js +2 -3
  187. package/lib/api/restful/sell/analytics/index.d.ts +2 -2
  188. package/lib/api/restful/sell/analytics/index.js +2 -3
  189. package/lib/api/restful/sell/compliance/index.d.ts +2 -2
  190. package/lib/api/restful/sell/compliance/index.js +2 -3
  191. package/lib/api/restful/sell/feed/index.d.ts +2 -2
  192. package/lib/api/restful/sell/feed/index.js +4 -5
  193. package/lib/api/restful/sell/finances/index.d.ts +1 -1
  194. package/lib/api/restful/sell/finances/index.js +2 -3
  195. package/lib/api/restful/sell/fulfillment/index.d.ts +2 -2
  196. package/lib/api/restful/sell/fulfillment/index.js +4 -5
  197. package/lib/api/restful/sell/index.d.ts +14 -14
  198. package/lib/api/restful/sell/index.js +26 -27
  199. package/lib/api/restful/sell/inventory/index.d.ts +2 -2
  200. package/lib/api/restful/sell/inventory/index.js +2 -3
  201. package/lib/api/restful/sell/listing/index.d.ts +1 -1
  202. package/lib/api/restful/sell/listing/index.js +2 -3
  203. package/lib/api/restful/sell/logistics/index.d.ts +1 -1
  204. package/lib/api/restful/sell/logistics/index.js +2 -3
  205. package/lib/api/restful/sell/marketing/index.d.ts +2 -2
  206. package/lib/api/restful/sell/marketing/index.js +2 -3
  207. package/lib/api/restful/sell/metadata/index.d.ts +1 -1
  208. package/lib/api/restful/sell/metadata/index.js +2 -3
  209. package/lib/api/restful/sell/negotiation/index.d.ts +1 -1
  210. package/lib/api/restful/sell/negotiation/index.js +2 -3
  211. package/lib/api/restful/sell/recommendation/index.d.ts +2 -2
  212. package/lib/api/restful/sell/recommendation/index.js +2 -3
  213. package/lib/api/traditional/XMLRequest.d.ts +15 -11
  214. package/lib/api/traditional/XMLRequest.js +17 -33
  215. package/lib/api/traditional/clientAlerts/index.d.ts +1 -1
  216. package/lib/api/traditional/clientAlerts/index.js +2 -3
  217. package/lib/api/traditional/clientAlerts/types.js +0 -1
  218. package/lib/api/traditional/fields.d.ts +1 -1
  219. package/lib/api/traditional/fields.js +0 -1
  220. package/lib/api/traditional/finding/index.js +0 -1
  221. package/lib/api/traditional/index.d.ts +2 -2
  222. package/lib/api/traditional/index.js +26 -21
  223. package/lib/api/traditional/merchandising/index.js +0 -1
  224. package/lib/api/traditional/shopping/index.js +0 -1
  225. package/lib/api/traditional/trading/index.js +0 -1
  226. package/lib/auth/authNAuth.d.ts +4 -4
  227. package/lib/auth/authNAuth.js +12 -13
  228. package/lib/auth/index.d.ts +5 -5
  229. package/lib/auth/index.js +6 -7
  230. package/lib/auth/oAuth2.d.ts +11 -6
  231. package/lib/auth/oAuth2.js +11 -7
  232. package/lib/eBayApi.d.ts +58 -0
  233. package/lib/eBayApi.js +130 -0
  234. package/lib/ebay-api.min.js +1 -2
  235. package/lib/enums/apiEnums.js +0 -1
  236. package/lib/enums/index.d.ts +2 -2
  237. package/lib/enums/index.js +7 -4
  238. package/lib/enums/restfulEnums.js +0 -1
  239. package/lib/errors/index.js +0 -1
  240. package/lib/index.d.ts +1 -55
  241. package/lib/index.js +2 -92
  242. package/lib/nanoevents.d.ts +6 -0
  243. package/lib/nanoevents.js +24 -0
  244. package/lib/package.json +3 -0
  245. package/lib/request.d.ts +6 -6
  246. package/lib/request.js +2 -3
  247. package/lib/types/apiTypes.d.ts +10 -10
  248. package/lib/types/apiTypes.js +0 -1
  249. package/lib/types/index.d.ts +3 -3
  250. package/lib/types/index.js +8 -5
  251. package/lib/types/restfulTypes.d.ts +191 -191
  252. package/lib/types/restfulTypes.js +0 -1
  253. package/lib/types/traditonalTypes.d.ts +15 -15
  254. package/lib/types/traditonalTypes.js +0 -1
  255. package/package.json +98 -33
  256. package/lib/api/apiFactory.js.map +0 -1
  257. package/lib/api/base.js.map +0 -1
  258. package/lib/api/index.js.map +0 -1
  259. package/lib/api/restful/buy/browse/index.js.map +0 -1
  260. package/lib/api/restful/buy/deal/index.js.map +0 -1
  261. package/lib/api/restful/buy/feed/index.js.map +0 -1
  262. package/lib/api/restful/buy/index.js.map +0 -1
  263. package/lib/api/restful/buy/marketing/index.js.map +0 -1
  264. package/lib/api/restful/buy/marketplaceInsights/index.js.map +0 -1
  265. package/lib/api/restful/buy/offer/index.js.map +0 -1
  266. package/lib/api/restful/buy/order/index.js.map +0 -1
  267. package/lib/api/restful/commerce/catalog/index.js.map +0 -1
  268. package/lib/api/restful/commerce/charity/index.js.map +0 -1
  269. package/lib/api/restful/commerce/identity/index.js.map +0 -1
  270. package/lib/api/restful/commerce/index.js.map +0 -1
  271. package/lib/api/restful/commerce/notification/index.js.map +0 -1
  272. package/lib/api/restful/commerce/taxonomy/index.js.map +0 -1
  273. package/lib/api/restful/commerce/translation/index.js.map +0 -1
  274. package/lib/api/restful/developer/analytics/index.js.map +0 -1
  275. package/lib/api/restful/developer/index.js.map +0 -1
  276. package/lib/api/restful/developer/keyManagement/index.js.map +0 -1
  277. package/lib/api/restful/index.js.map +0 -1
  278. package/lib/api/restful/postOrder/cancellation/index.js.map +0 -1
  279. package/lib/api/restful/postOrder/case/index.js.map +0 -1
  280. package/lib/api/restful/postOrder/index.js.map +0 -1
  281. package/lib/api/restful/postOrder/inquiry/index.js.map +0 -1
  282. package/lib/api/restful/postOrder/return/index.js.map +0 -1
  283. package/lib/api/restful/sell/account/index.js.map +0 -1
  284. package/lib/api/restful/sell/analytics/index.js.map +0 -1
  285. package/lib/api/restful/sell/compliance/index.js.map +0 -1
  286. package/lib/api/restful/sell/feed/index.js.map +0 -1
  287. package/lib/api/restful/sell/finances/index.js.map +0 -1
  288. package/lib/api/restful/sell/fulfillment/index.js.map +0 -1
  289. package/lib/api/restful/sell/index.js.map +0 -1
  290. package/lib/api/restful/sell/inventory/index.js.map +0 -1
  291. package/lib/api/restful/sell/listing/index.js.map +0 -1
  292. package/lib/api/restful/sell/logistics/index.js.map +0 -1
  293. package/lib/api/restful/sell/marketing/index.js.map +0 -1
  294. package/lib/api/restful/sell/metadata/index.js.map +0 -1
  295. package/lib/api/restful/sell/negotiation/index.js.map +0 -1
  296. package/lib/api/restful/sell/recommendation/index.js.map +0 -1
  297. package/lib/api/traditional/XMLRequest.js.map +0 -1
  298. package/lib/api/traditional/clientAlerts/index.js.map +0 -1
  299. package/lib/api/traditional/clientAlerts/types.js.map +0 -1
  300. package/lib/api/traditional/fields.js.map +0 -1
  301. package/lib/api/traditional/finding/index.js.map +0 -1
  302. package/lib/api/traditional/index.js.map +0 -1
  303. package/lib/api/traditional/merchandising/index.js.map +0 -1
  304. package/lib/api/traditional/shopping/index.js.map +0 -1
  305. package/lib/api/traditional/trading/index.js.map +0 -1
  306. package/lib/auth/authNAuth.js.map +0 -1
  307. package/lib/auth/index.js.map +0 -1
  308. package/lib/auth/oAuth2.js.map +0 -1
  309. package/lib/ebay-api.min.js.map +0 -1
  310. package/lib/enums/apiEnums.js.map +0 -1
  311. package/lib/enums/index.js.map +0 -1
  312. package/lib/enums/restfulEnums.js.map +0 -1
  313. package/lib/errors/index.js.map +0 -1
  314. package/lib/index.js.map +0 -1
  315. package/lib/request.js.map +0 -1
  316. package/lib/types/apiTypes.js.map +0 -1
  317. package/lib/types/index.js.map +0 -1
  318. package/lib/types/restfulTypes.js.map +0 -1
  319. package/lib/types/traditonalTypes.js.map +0 -1
@@ -0,0 +1,443 @@
1
+ import Restful from '../../index.js';
2
+ import { BulkCreateAdRequest, BulkCreateAdsByInventoryReferenceRequest, BulkDeleteAdRequest, BulkDeleteAdsByInventoryReferenceRequest, CloneCampaignRequest, CreateAdRequest, CreateAdsByInventoryReferenceRequest, CreateCampaignRequest, CreateReportTask, ItemPriceMarkdown, ItemPromotion, UpdateBidPercentageRequest, UpdateCampaignIdentificationRequest } from '../../../../types/index.js';
3
+ /**
4
+ * <p>The <i>Marketing API </i> offers two platforms that sellers can use to promote and advertise their products:
5
+ * </p> <ul><li><b>Promoted Listings</b> is an eBay ad service that lets sellers set up <i>ad campaigns </i>
6
+ * for the products they want to promote. eBay displays the ads in search results and in other
7
+ * marketing modules as <b>SPONSORED</b> listings.
8
+ */
9
+ export default class Marketing extends Restful {
10
+ static id: string;
11
+ get basePath(): string;
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
+ bulkCreateAdsByInventoryReference(campaignId: string, body: BulkCreateAdsByInventoryReferenceRequest): Promise<any>;
20
+ /**
21
+ * This method creates an ad for each listing ID specified in the request and associates the newly created ads with
22
+ * the specified campaign.
23
+ *
24
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
25
+ * a seller's campaign IDs by calling getCampaigns.
26
+ * @param body The container for the bulk request to create ads for eBay listing IDs. eBay listing IDs are
27
+ * generated when the listing is created on eBay.
28
+ */
29
+ bulkCreateAdsByListingId(campaignId: string, body: BulkCreateAdRequest): Promise<any>;
30
+ /**
31
+ * This method deletes a set of ads, as specified by a list of inventory reference IDs, from the specified
32
+ * campaign.
33
+ *
34
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
35
+ * a seller's campaign IDs by calling getCampaigns.
36
+ * @param body This type defines the fields for a bulkDeleteAdsByInventoryReference request.
37
+ */
38
+ bulkDeleteAdsByInventoryReference(campaignId: string, body: BulkDeleteAdsByInventoryReferenceRequest): Promise<any>;
39
+ /**
40
+ * This method deletes a set of ads, as specified by a list of listing IDs, from the specified campaign.
41
+ *
42
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
43
+ * a seller's campaign IDs by calling getCampaigns.
44
+ * @param body This type defines the fields for the bulkDeleteAdsByListingId request.
45
+ */
46
+ bulkDeleteAdsByListingId(campaignId: string, body: BulkDeleteAdRequest): Promise<any>;
47
+ /**
48
+ * This method replaces an ad bid based on a list of inventory references IDs associated with the specified
49
+ * campaign.
50
+ *
51
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
52
+ * @param body This type defines the fields for the BulkCreateAdsByInventoryReference request.
53
+ */
54
+ bulkUpdateAdsBidByInventoryReference(campaignId: string, body: BulkCreateAdsByInventoryReferenceRequest): Promise<any>;
55
+ /**
56
+ * This method replaces an ad bid based on a supplied list of listing IDs that are associated with the specified
57
+ * campaign.
58
+ *
59
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
60
+ * a seller's campaign IDs by calling getCampaigns.
61
+ * @param body Container for the bulk request to update ads.
62
+ */
63
+ bulkUpdateAdsBidByListingId(campaignId: string, body: BulkCreateAdRequest): Promise<any>;
64
+ /**
65
+ * This method retrieves all the ads for the specified campaign.
66
+ *
67
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
68
+ * a seller's campaign IDs by calling getCampaigns.
69
+ * @param limit Specifies the maximum number of ads to return on a page in the paginated response. Default: 10
70
+ * Maximum: 500
71
+ * @param listingIds A comma separated list of eBay listing IDs. The response includes only active ads (ads
72
+ * associated with a RUNNING campaign).
73
+ * @param offset Specifies the number of ads to skip in the result set before returning the first ad in the
74
+ * paginated response.
75
+ */
76
+ getAds(campaignId: string, { limit, listingIds, offset }?: {
77
+ limit?: number;
78
+ listingIds?: number;
79
+ offset?: number;
80
+ }): Promise<any>;
81
+ /**
82
+ * This method creates an ad for the specified listing ID, sets the bid percentage for that specific item, and
83
+ * associates the ad with the specified campaign.
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 This type defines the fields for the createAd request.
88
+ */
89
+ createAdByListingId(campaignId: string, body: CreateAdRequest): Promise<any>;
90
+ /**
91
+ * This method creates an ad for the specified inventory reference ID, sets the bid percentage for that specific
92
+ * item, and associates the ad with the specified campaign.
93
+ *
94
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
95
+ * a seller's campaign IDs by calling getCampaigns.
96
+ * @param body This type defines the fields for the createAdsByInventoryReference request.
97
+ */
98
+ createAdsByInventoryReference(campaignId: string, body: CreateAdsByInventoryReferenceRequest): Promise<any>;
99
+ /**
100
+ * This method retrieves the specified ad from the specified campaign.
101
+ *
102
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
103
+ * a seller's campaign IDs by calling getCampaigns.
104
+ * @param adId Identifier of an ad. This ID was generated when the ad was created.
105
+ */
106
+ getAd(campaignId: string, adId: string): Promise<any>;
107
+ /**
108
+ * This method retrieves the specified ad from the specified campaign.
109
+ *
110
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
111
+ * @param adId Identifier of an ad. This ID was generated when the ad was created.
112
+ */
113
+ deleteAd(campaignId: string, adId: string): Promise<any>;
114
+ /**
115
+ * This method deletes ads using a list of seller inventory reference IDs that are associated with the specified
116
+ * campaign ID.
117
+ *
118
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
119
+ * a seller's campaign IDs by calling getCampaigns.
120
+ */
121
+ deleteAdsByInventoryReference(campaignId: string): Promise<any>;
122
+ /**
123
+ * This method retrieves ads from the specified campaign using the seller's inventory reference ID and inventory
124
+ * reference type.
125
+ *
126
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
127
+ * a seller's campaign IDs by calling getCampaigns.
128
+ * @param inventoryReferenceId The inventory reference ID associated with the ad you want returned.
129
+ * @param inventoryReferenceType The type of the inventory reference ID. Set this value to either INVENTORY_ITEM (a
130
+ * single listing) or INVENTORY_ITEM_GROUP (a multi-variation listing).
131
+ */
132
+ getAdsByInventoryReference(campaignId: string, inventoryReferenceId: string, inventoryReferenceType: string): Promise<any>;
133
+ /**
134
+ * This method updates the bid for the specified ad in the specified campaign. In the request, supply the
135
+ * campaign_id and ad_id as a URI parameters.
136
+ *
137
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
138
+ * a seller's campaign IDs by calling getCampaigns.
139
+ * @param adId A unique eBay-assigned ID for an ad that's generated when an ad is created.
140
+ * @param body This type defines the fields for the updateBid request.
141
+ */
142
+ updateBid(campaignId: string, adId: string, body: UpdateBidPercentageRequest): Promise<any>;
143
+ /**
144
+ * This method clones (makes a copy of) the specified campaign.
145
+ *
146
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
147
+ * a seller's campaign IDs by calling getCampaigns.
148
+ * @param body This type defines the fields for a clone campaign request.
149
+ */
150
+ cloneCampaign(campaignId: string, body: CloneCampaignRequest): Promise<any>;
151
+ /**
152
+ * This method retrieves the details for all the campaigns of a seller, including the campaign's the selection
153
+ * rules.
154
+ *
155
+ * @param campaignName Specifies the campaign name. The results are filtered to include only the campaign by the
156
+ * specified name.
157
+ * @param campaignStatus Specifies the campaign status. The results are filtered to include only campaigns that are
158
+ * in the specified states.
159
+ * @param endDateRange Specifies the range of a campaign's end date. The results are filtered to include only
160
+ * campaigns with an end date that is within specified range.
161
+ * @param limit Specifies the maximum number of campaigns to return on a page in the paginated response. Default:
162
+ * 10 Maximum: 500
163
+ * @param offset Specifies the number of campaigns to skip in the result set before returning the first report in
164
+ * the paginated response.
165
+ * @param startDateRange Specifies the range of a campaign's start date in which to filter the results.
166
+ */
167
+ getCampaigns({ campaignName, campaignStatus, endDateRange, limit, offset, startDateRange }?: {
168
+ campaignName?: string;
169
+ campaignStatus?: string;
170
+ endDateRange?: string;
171
+ limit?: number;
172
+ offset?: number;
173
+ startDateRange?: string;
174
+ }): Promise<any>;
175
+ /**
176
+ * This method retrieves the details of a single campaign, as specified with the campaign_id query parameter.
177
+ *
178
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
179
+ * a seller's campaign IDs by calling getCampaigns.
180
+ */
181
+ getCampaign(campaignId: string): Promise<any>;
182
+ /**
183
+ * This method creates a Promoted Listings ad campaign.
184
+ *
185
+ * @param body his type defines the fields for the create campaign request.
186
+ */
187
+ createCampaign(body: CreateCampaignRequest): Promise<any>;
188
+ /**
189
+ * This method deletes the campaign specified by the campaign_id query parameter.
190
+ *
191
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
192
+ * a seller's campaign IDs by calling getCampaigns.
193
+ */
194
+ deleteCampaign(campaignId: string): Promise<any>;
195
+ /**
196
+ * This method ends an active (RUNNINGM) or paused campaign. Specify the campaign you want to end by supplying its
197
+ * campaign ID in a query parameter.
198
+ *
199
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
200
+ * a seller's campaign IDs by calling getCampaigns.
201
+ */
202
+ endCampaign(campaignId: string): Promise<any>;
203
+ /**
204
+ * This method retrieves the campaign containing the listing that is specified using either an eBay listing ID or
205
+ * an inventory reference ID and inventory reference type.
206
+ *
207
+ * @param inventoryReferenceId The seller's inventory reference ID of the listing to be used to find the campaign
208
+ * in which it is associated.
209
+ * @param inventoryReferenceType The type of the seller's inventory reference ID, which is a listing or group of
210
+ * items.
211
+ * @param listingId Identifier of the eBay listing associated with the ad.
212
+ */
213
+ findCampaignByAdReference({ inventoryReferenceId, inventoryReferenceType, listingId }?: {
214
+ inventoryReferenceId?: string;
215
+ inventoryReferenceType?: string;
216
+ listingId?: string;
217
+ }): Promise<any>;
218
+ /**
219
+ * This method retrieves the details of a single campaign, as specified with the campaign_name query parameter.
220
+ *
221
+ * @param campaignName Name of the campaign.
222
+ */
223
+ getCampaignByName(campaignName: string): Promise<any>;
224
+ /**
225
+ * This method pauses an active (RUNNING) campaign. You can restarted by calling resumeCampaign, as long as the
226
+ * campaign's end date is in the future..
227
+ *
228
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
229
+ * a seller's campaign IDs by calling getCampaigns.
230
+ */
231
+ pauseCampaign(campaignId: string): Promise<any>;
232
+ /**
233
+ * This method resumes a paused campaign, as long as it's end date is in the future.
234
+ *
235
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
236
+ * a seller's campaign IDs by calling getCampaigns.
237
+ */
238
+ resumeCampaign(campaignId: string): Promise<any>;
239
+ /**
240
+ * This method replaces the name and the start and end dates of a campaign.
241
+ *
242
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
243
+ * a seller's campaign IDs by calling getCampaigns.
244
+ * @param body This type defines the fields to updated the campaign name and start and end dates.
245
+ */
246
+ updateCampaignIdentification(campaignId: string, body: UpdateCampaignIdentificationRequest): Promise<any>;
247
+ /**
248
+ * This call downloads the report as specified by the report_id path parameter.
249
+ *
250
+ * @param reportId The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when
251
+ * you run a report task with a call to createReportTask.
252
+ */
253
+ getReport(reportId: string): Promise<any>;
254
+ /**
255
+ * This call retrieves information that details the fields used in each of the Promoted Listings reports.
256
+ */
257
+ getReportMetadata(): Promise<any>;
258
+ /**
259
+ * This call retrieves metadata that details the fields used by the Promoted Listings report type that's specified
260
+ * by the report_type path parameter.
261
+ *
262
+ * @param reportType The name of the report type whose metadata you want to get.
263
+ */
264
+ getReportMetadataForReportType(reportType: string): Promise<any>;
265
+ /**
266
+ * This method returns information on all the existing report tasks related to a seller.
267
+ *
268
+ * @param limit Specifies the maximum number of report tasks to return on a page in the paginated response.
269
+ * Default: 10 Maximum: 500
270
+ * @param offset Specifies the number of report tasks to skip in the result set before returning the first report
271
+ * in the paginated response.
272
+ * @param reportTaskStatuses This parameter filters the returned report tasks by their status. Supply a
273
+ * comma-separated list of the report statuses you want returned.
274
+ */
275
+ getReportTasks({ limit, offset, reportTaskStatuses }?: {
276
+ limit?: number;
277
+ offset?: number;
278
+ reportTaskStatuses?: string;
279
+ }): Promise<any>;
280
+ /**
281
+ * This call returns the details of a specific Promoted Listings report task, as specified by the report_task_id
282
+ * path parameter. T
283
+ *
284
+ * @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
285
+ * created by a call to createReportTask.
286
+ */
287
+ getReportTask(reportTaskId: string): Promise<any>;
288
+ /**
289
+ * This method creates a report task, which generates a Promoted Listings report based on the values specified in
290
+ * the call.
291
+ *
292
+ * @param body The container for the fields that define the report task.
293
+ */
294
+ createReportTask(body: CreateReportTask): Promise<any>;
295
+ /**
296
+ * This call deletes the report task specified by the report_task_id path parameter.
297
+ *
298
+ * @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
299
+ * created by a call to createReportTask.
300
+ */
301
+ deleteReportTask(reportTaskId: string): Promise<any>;
302
+ /**
303
+ * This method creates an item price markdown promotion (know simply as a &quot;markdown promotion&quot;) where a
304
+ * discount amount is applied directly to the items included the promotion.
305
+ *
306
+ * @param body This type defines the fields that describe an item price markdown promotion.
307
+ */
308
+ createItemPriceMarkdownPromotion(body: ItemPriceMarkdown): Promise<any>;
309
+ /**
310
+ * This method updates the specified item price markdown promotion with the new configuration that you supply in
311
+ * the payload of the request.
312
+ *
313
+ * @param promotionId The ID of the promotion you want to update.
314
+ * @param body This type defines the fields that describe an item price markdown promotion.
315
+ */
316
+ updateItemPriceMarkdownPromotion(promotionId: string, body: ItemPriceMarkdown): Promise<any>;
317
+ /**
318
+ * This method deletes the item price markdown promotion specified by the promotion_id path parameter.
319
+ *
320
+ * @param promotionId The ID of the promotion you want to delete.
321
+ */
322
+ deleteItemPriceMarkdownPromotion(promotionId: string): Promise<any>;
323
+ /**
324
+ * This method returns the complete details of the item price markdown promotion that's indicated by the
325
+ * promotion_id path parameter.
326
+ *
327
+ * @param promotionId The ID of the promotion you want to retrieve.
328
+ */
329
+ getItemPriceMarkdownPromotion(promotionId: string): Promise<any>;
330
+ /**
331
+ * This method creates an item promotion (known casually as a &quot;threshold promotion&quot;) where the buyer
332
+ * receives a discount when they meet the buying criteria that's set for the promotion.
333
+ *
334
+ * @param body This type defines the fields that describe an item promotion.
335
+ */
336
+ createItemPromotion(body: ItemPromotion): Promise<any>;
337
+ /**
338
+ * This method updates the specified threshold promotion with the new configuration that you supply in the request.
339
+ *
340
+ * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
341
+ * value that's generated when the promotion is created.
342
+ * @param body type defines the fields that describe an item promotion.
343
+ */
344
+ updateItemPromotion(promotionId: string, body: ItemPromotion): Promise<any>;
345
+ /**
346
+ * This method deletes the threshold promotion specified by the promotion_id path parameter.
347
+ *
348
+ * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
349
+ * value that's generated when the promotion is created.
350
+ */
351
+ deleteItemPromotion(promotionId: string): Promise<any>;
352
+ /**
353
+ * This method returns the complete details of the threshold promotion specified by the promotion_id path
354
+ * parameter.
355
+ *
356
+ * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
357
+ * value that's generated when the promotion is created.
358
+ */
359
+ getItemPromotion(promotionId: string): Promise<any>;
360
+ /**
361
+ * This method returns the set of listings associated with the promotion_id specified in the path parameter.
362
+ *
363
+ * @param promotionId The ID of the promotion whose associated listings you want to retrieve.
364
+ * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
365
+ * Maximum: 200
366
+ * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
367
+ * in the paginated response.
368
+ * @param q Reserved for future use.
369
+ * @param sort Specifies the order in which to sort the associated listings in the response.
370
+ * @param status This query parameter applies only to markdown promotions.
371
+ */
372
+ getListingSet(promotionId: string, { limit, offset, q, sort, status }?: {
373
+ limit?: number;
374
+ offset?: number;
375
+ q?: string;
376
+ sort?: string;
377
+ status?: string;
378
+ }): Promise<any>;
379
+ /**
380
+ * This method returns a list of a seller's undeleted promotions.
381
+ *
382
+ * @param marketplaceId The eBay marketplace ID of the site where the promotion is hosted.
383
+ * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
384
+ * Maximum: 200
385
+ * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
386
+ * in the paginated response.
387
+ * @param promotionStatus Specifies the promotion state by which you want to filter the results.
388
+ * @param promotionType Filters the returned promotions based on the their campaign promotion type.
389
+ * @param q A string consisting of one or more keywords.
390
+ * @param sort Specifies the order for how to sort the response.
391
+ */
392
+ getPromotions(marketplaceId: string, { limit, offset, promotionStatus, promotionType, q, sort }?: {
393
+ limit?: number;
394
+ offset?: number;
395
+ promotionStatus?: string;
396
+ promotionType?: string;
397
+ q?: string;
398
+ sort?: string;
399
+ }): Promise<any>;
400
+ /**
401
+ * This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from
402
+ * RUNNING to PAUSED.
403
+ *
404
+ * @param promotionId Identifier of the promotion you want to pause.
405
+ */
406
+ pausePromotion(promotionId: string): Promise<any>;
407
+ /**
408
+ * This method restarts a threshold promotion that was previously paused and changes the state of the promotion
409
+ * from PAUSED to RUNNING.
410
+ *
411
+ * @param promotionId Identifier of the promotion you want to make active. The ID is a unique eBay-assigned value
412
+ * that's generated when the promotion is created.
413
+ */
414
+ resumePromotion(promotionId: string): Promise<any>;
415
+ /**
416
+ * This method generates a report that lists the seller's running, paused, and ended promotions for the specified
417
+ * eBay marketplace.
418
+ *
419
+ * @param marketplaceId The eBay marketplace ID of the siteId for which you want the promotions report.
420
+ * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
421
+ * Maximum: 200
422
+ * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
423
+ * in the paginated response.
424
+ * @param promotionStatus Limits the results to the promotions that are in the state specified by this query
425
+ * parameter.
426
+ * @param promotionType Filters the returned promotions in the report based on the their campaign promotion type.
427
+ * @param q A string consisting of one or more keywords. eBay filters the response by returning only the promotions
428
+ * that contain the supplied keywords in the promotion title.
429
+ */
430
+ getPromotionReports(marketplaceId: string, { limit, offset, promotionStatus, promotionType, q }?: {
431
+ limit?: number;
432
+ offset?: number;
433
+ promotionStatus?: string;
434
+ promotionType?: string;
435
+ q?: string;
436
+ }): Promise<any>;
437
+ /**
438
+ * This method generates a report that summarizes the seller's promotions for the specified eBay marketplace.
439
+ *
440
+ * @param marketplaceId The eBay marketplace ID of the siteId you for which you want a promotion summary report.
441
+ */
442
+ getPromotionSummaryReport(marketplaceId: string): Promise<any>;
443
+ }