ebay-api 1.13.5 → 6.1.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 (218) hide show
  1. package/LICENSE +18 -19
  2. package/README.md +512 -118
  3. package/lib/api/apiFactory.d.ts +27 -0
  4. package/lib/api/apiFactory.js +100 -0
  5. package/lib/api/apiFactory.js.map +1 -0
  6. package/lib/api/base.d.ts +13 -0
  7. package/lib/api/base.js +25 -0
  8. package/lib/api/base.js.map +1 -0
  9. package/lib/api/index.d.ts +11 -0
  10. package/lib/api/index.js +18 -0
  11. package/lib/api/index.js.map +1 -0
  12. package/lib/api/restful/buy/browse/index.d.ts +84 -0
  13. package/lib/api/restful/buy/browse/index.js +142 -0
  14. package/lib/api/restful/buy/browse/index.js.map +1 -0
  15. package/lib/api/restful/buy/deal/index.d.ts +55 -0
  16. package/lib/api/restful/buy/deal/index.js +80 -0
  17. package/lib/api/restful/buy/deal/index.js.map +1 -0
  18. package/lib/api/restful/buy/feed/index.d.ts +43 -0
  19. package/lib/api/restful/buy/feed/index.js +85 -0
  20. package/lib/api/restful/buy/feed/index.js.map +1 -0
  21. package/lib/api/restful/buy/index.d.ts +17 -0
  22. package/lib/api/restful/buy/index.js +21 -0
  23. package/lib/api/restful/buy/index.js.map +1 -0
  24. package/lib/api/restful/buy/marketing/index.d.ts +27 -0
  25. package/lib/api/restful/buy/marketing/index.js +51 -0
  26. package/lib/api/restful/buy/marketing/index.js.map +1 -0
  27. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +28 -0
  28. package/lib/api/restful/buy/marketplaceInsights/index.js +51 -0
  29. package/lib/api/restful/buy/marketplaceInsights/index.js.map +1 -0
  30. package/lib/api/restful/buy/offer/index.d.ts +23 -0
  31. package/lib/api/restful/buy/offer/index.js +37 -0
  32. package/lib/api/restful/buy/offer/index.js.map +1 -0
  33. package/lib/api/restful/buy/order/index.d.ts +264 -0
  34. package/lib/api/restful/buy/order/index.js +369 -0
  35. package/lib/api/restful/buy/order/index.js.map +1 -0
  36. package/lib/api/restful/commerce/catalog/index.d.ts +73 -0
  37. package/lib/api/restful/commerce/catalog/index.js +108 -0
  38. package/lib/api/restful/commerce/catalog/index.js.map +1 -0
  39. package/lib/api/restful/commerce/charity/index.d.ts +34 -0
  40. package/lib/api/restful/commerce/charity/index.js +56 -0
  41. package/lib/api/restful/commerce/charity/index.js.map +1 -0
  42. package/lib/api/restful/commerce/identity/index.d.ts +14 -0
  43. package/lib/api/restful/commerce/identity/index.js +27 -0
  44. package/lib/api/restful/commerce/identity/index.js.map +1 -0
  45. package/lib/api/restful/commerce/index.d.ts +15 -0
  46. package/lib/api/restful/commerce/index.js +19 -0
  47. package/lib/api/restful/commerce/index.js.map +1 -0
  48. package/lib/api/restful/commerce/notification/index.d.ts +117 -0
  49. package/lib/api/restful/commerce/notification/index.js +187 -0
  50. package/lib/api/restful/commerce/notification/index.js.map +1 -0
  51. package/lib/api/restful/commerce/taxonomy/index.d.ts +78 -0
  52. package/lib/api/restful/commerce/taxonomy/index.js +135 -0
  53. package/lib/api/restful/commerce/taxonomy/index.js.map +1 -0
  54. package/lib/api/restful/commerce/translation/index.d.ts +15 -0
  55. package/lib/api/restful/commerce/translation/index.js +25 -0
  56. package/lib/api/restful/commerce/translation/index.js.map +1 -0
  57. package/lib/api/restful/developer/analytics/index.d.ts +22 -0
  58. package/lib/api/restful/developer/analytics/index.js +45 -0
  59. package/lib/api/restful/developer/analytics/index.js.map +1 -0
  60. package/lib/api/restful/developer/index.d.ts +5 -0
  61. package/lib/api/restful/developer/index.js +9 -0
  62. package/lib/api/restful/developer/index.js.map +1 -0
  63. package/lib/api/restful/index.d.ts +63 -0
  64. package/lib/api/restful/index.js +165 -0
  65. package/lib/api/restful/index.js.map +1 -0
  66. package/lib/api/restful/postOrder/cancellation/index.d.ts +57 -0
  67. package/lib/api/restful/postOrder/cancellation/index.js +95 -0
  68. package/lib/api/restful/postOrder/cancellation/index.js.map +1 -0
  69. package/lib/api/restful/postOrder/case/index.d.ts +63 -0
  70. package/lib/api/restful/postOrder/case/index.js +97 -0
  71. package/lib/api/restful/postOrder/case/index.js.map +1 -0
  72. package/lib/api/restful/postOrder/index.d.ts +11 -0
  73. package/lib/api/restful/postOrder/index.js +15 -0
  74. package/lib/api/restful/postOrder/index.js.map +1 -0
  75. package/lib/api/restful/postOrder/inquiry/index.d.ts +82 -0
  76. package/lib/api/restful/postOrder/inquiry/index.js +131 -0
  77. package/lib/api/restful/postOrder/inquiry/index.js.map +1 -0
  78. package/lib/api/restful/postOrder/return/index.d.ts +231 -0
  79. package/lib/api/restful/postOrder/return/index.js +361 -0
  80. package/lib/api/restful/postOrder/return/index.js.map +1 -0
  81. package/lib/api/restful/sell/account/index.d.ts +217 -0
  82. package/lib/api/restful/sell/account/index.js +337 -0
  83. package/lib/api/restful/sell/account/index.js.map +1 -0
  84. package/lib/api/restful/sell/analytics/index.d.ts +41 -0
  85. package/lib/api/restful/sell/analytics/index.js +61 -0
  86. package/lib/api/restful/sell/analytics/index.js.map +1 -0
  87. package/lib/api/restful/sell/compliance/index.d.ts +37 -0
  88. package/lib/api/restful/sell/compliance/index.js +57 -0
  89. package/lib/api/restful/sell/compliance/index.js.map +1 -0
  90. package/lib/api/restful/sell/feed/index.d.ts +151 -0
  91. package/lib/api/restful/sell/feed/index.js +255 -0
  92. package/lib/api/restful/sell/feed/index.js.map +1 -0
  93. package/lib/api/restful/sell/finances/index.d.ts +74 -0
  94. package/lib/api/restful/sell/finances/index.js +105 -0
  95. package/lib/api/restful/sell/finances/index.js.map +1 -0
  96. package/lib/api/restful/sell/fulfillment/index.d.ts +137 -0
  97. package/lib/api/restful/sell/fulfillment/index.js +199 -0
  98. package/lib/api/restful/sell/fulfillment/index.js.map +1 -0
  99. package/lib/api/restful/sell/index.d.ts +29 -0
  100. package/lib/api/restful/sell/index.js +33 -0
  101. package/lib/api/restful/sell/index.js.map +1 -0
  102. package/lib/api/restful/sell/inventory/index.d.ts +248 -0
  103. package/lib/api/restful/sell/inventory/index.js +346 -0
  104. package/lib/api/restful/sell/inventory/index.js.map +1 -0
  105. package/lib/api/restful/sell/listing/index.d.ts +14 -0
  106. package/lib/api/restful/sell/listing/index.js +25 -0
  107. package/lib/api/restful/sell/listing/index.js.map +1 -0
  108. package/lib/api/restful/sell/logistics/index.d.ts +44 -0
  109. package/lib/api/restful/sell/logistics/index.js +66 -0
  110. package/lib/api/restful/sell/logistics/index.js.map +1 -0
  111. package/lib/api/restful/sell/marketing/index.d.ts +443 -0
  112. package/lib/api/restful/sell/marketing/index.js +609 -0
  113. package/lib/api/restful/sell/marketing/index.js.map +1 -0
  114. package/lib/api/restful/sell/metadata/index.d.ts +77 -0
  115. package/lib/api/restful/sell/metadata/index.js +131 -0
  116. package/lib/api/restful/sell/metadata/index.js.map +1 -0
  117. package/lib/api/restful/sell/negotiation/index.d.ts +24 -0
  118. package/lib/api/restful/sell/negotiation/index.js +39 -0
  119. package/lib/api/restful/sell/negotiation/index.js.map +1 -0
  120. package/lib/api/restful/sell/recommendation/index.d.ts +26 -0
  121. package/lib/api/restful/sell/recommendation/index.js +39 -0
  122. package/lib/api/restful/sell/recommendation/index.js.map +1 -0
  123. package/lib/api/traditional/XMLRequest.d.ts +98 -0
  124. package/lib/api/traditional/XMLRequest.js +191 -0
  125. package/lib/api/traditional/XMLRequest.js.map +1 -0
  126. package/lib/api/traditional/clientAlerts/index.d.ts +9 -0
  127. package/lib/api/traditional/clientAlerts/index.js +15 -0
  128. package/lib/api/traditional/clientAlerts/index.js.map +1 -0
  129. package/lib/api/traditional/clientAlerts/types.d.ts +31 -0
  130. package/lib/api/traditional/clientAlerts/types.js +36 -0
  131. package/lib/api/traditional/clientAlerts/types.js.map +1 -0
  132. package/lib/api/traditional/fields.d.ts +1948 -0
  133. package/lib/api/traditional/fields.js +1949 -0
  134. package/lib/api/traditional/fields.js.map +1 -0
  135. package/lib/api/traditional/finding/index.d.ts +12 -0
  136. package/lib/api/traditional/finding/index.js +16 -0
  137. package/lib/api/traditional/finding/index.js.map +1 -0
  138. package/lib/api/traditional/index.d.ts +17 -0
  139. package/lib/api/traditional/index.js +207 -0
  140. package/lib/api/traditional/index.js.map +1 -0
  141. package/lib/api/traditional/merchandising/index.d.ts +7 -0
  142. package/lib/api/traditional/merchandising/index.js +11 -0
  143. package/lib/api/traditional/merchandising/index.js.map +1 -0
  144. package/lib/api/traditional/shopping/index.d.ts +11 -0
  145. package/lib/api/traditional/shopping/index.js +16 -0
  146. package/lib/api/traditional/shopping/index.js.map +1 -0
  147. package/lib/api/traditional/trading/index.d.ts +142 -0
  148. package/lib/api/traditional/trading/index.js +146 -0
  149. package/lib/api/traditional/trading/index.js.map +1 -0
  150. package/lib/auth/authNAuth.d.ts +49 -0
  151. package/lib/auth/authNAuth.js +122 -0
  152. package/lib/auth/authNAuth.js.map +1 -0
  153. package/lib/auth/index.d.ts +17 -0
  154. package/lib/auth/index.js +32 -0
  155. package/lib/auth/index.js.map +1 -0
  156. package/lib/auth/oAuth2.d.ts +90 -0
  157. package/lib/auth/oAuth2.js +258 -0
  158. package/lib/auth/oAuth2.js.map +1 -0
  159. package/lib/ebay-api.min.js +2 -0
  160. package/lib/ebay-api.min.js.map +1 -0
  161. package/lib/enums/apiEnums.d.ts +49 -0
  162. package/lib/enums/apiEnums.js +55 -0
  163. package/lib/enums/apiEnums.js.map +1 -0
  164. package/lib/enums/index.d.ts +2 -0
  165. package/lib/enums/index.js +15 -0
  166. package/lib/enums/index.js.map +1 -0
  167. package/lib/enums/restfulEnums.d.ts +672 -0
  168. package/lib/enums/restfulEnums.js +714 -0
  169. package/lib/enums/restfulEnums.js.map +1 -0
  170. package/lib/errors/index.d.ts +66 -0
  171. package/lib/errors/index.js +208 -0
  172. package/lib/errors/index.js.map +1 -0
  173. package/lib/index.d.ts +55 -0
  174. package/lib/index.js +98 -0
  175. package/lib/index.js.map +1 -0
  176. package/lib/request.d.ts +26 -0
  177. package/lib/request.js +51 -0
  178. package/lib/request.js.map +1 -0
  179. package/lib/types/apiTypes.d.ts +28 -0
  180. package/lib/types/apiTypes.js +3 -0
  181. package/lib/types/apiTypes.js.map +1 -0
  182. package/lib/types/index.d.ts +3 -0
  183. package/lib/types/index.js +16 -0
  184. package/lib/types/index.js.map +1 -0
  185. package/lib/types/restfulTypes.d.ts +1067 -0
  186. package/lib/types/restfulTypes.js +3 -0
  187. package/lib/types/restfulTypes.js.map +1 -0
  188. package/lib/types/traditonalTypes.d.ts +34 -0
  189. package/lib/types/traditonalTypes.js +3 -0
  190. package/lib/types/traditonalTypes.js.map +1 -0
  191. package/package.json +115 -21
  192. package/.npmignore +0 -17
  193. package/.travis.yml +0 -7
  194. package/examples/Finding-FindItemsByKeywords.js +0 -46
  195. package/examples/Merchandising-GetMostWatchedItemsRequest.js +0 -16
  196. package/examples/Shopping-GetSingleItem.js +0 -18
  197. package/examples/Trading-GetOrders.js +0 -26
  198. package/index.js +0 -10
  199. package/lib/deep-to-array.js +0 -42
  200. package/lib/defaults.js +0 -69
  201. package/lib/errors.js +0 -44
  202. package/lib/json-parser.js +0 -336
  203. package/lib/key-lists.js +0 -64
  204. package/lib/urls.js +0 -64
  205. package/lib/versions.js +0 -35
  206. package/lib/xml-converter.js +0 -21
  207. package/lib/xml-request.js +0 -207
  208. package/scripts/parse-input-xml.js +0 -41
  209. package/test/deep-to-array.test.js +0 -100
  210. package/test/errors.test.js +0 -75
  211. package/test/helpers.js +0 -22
  212. package/test/mocha.opts +0 -1
  213. package/test/mocks/GetMultipleItems.xml +0 -115
  214. package/test/mocks/GetOrders-empty.xml +0 -17
  215. package/test/mocks/GetOrders.xml +0 -463
  216. package/test/pagination.test.js +0 -5
  217. package/test/parsing.test.js +0 -248
  218. package/test/xml-request.test.js +0 -447
@@ -0,0 +1,609 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const __1 = __importDefault(require("../../"));
7
+ /**
8
+ * <p>The <i>Marketing API </i> offers two platforms that sellers can use to promote and advertise their products:
9
+ * </p> <ul><li><b>Promoted Listings</b> is an eBay ad service that lets sellers set up <i>ad campaigns </i>
10
+ * for the products they want to promote. eBay displays the ads in search results and in other
11
+ * marketing modules as <b>SPONSORED</b> listings.
12
+ */
13
+ class Marketing extends __1.default {
14
+ get basePath() {
15
+ return '/sell/marketing/v1';
16
+ }
17
+ /**
18
+ * This method creates an ad for each inventory reference ID specified in the request and associates the newly
19
+ * created ads with the specified campaign.
20
+ *
21
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
22
+ * @param body This type defines the fields for the bulkCreateAdsByInventoryReference request.
23
+ */
24
+ bulkCreateAdsByInventoryReference(campaignId, body) {
25
+ campaignId = encodeURIComponent(campaignId);
26
+ return this.post(`/ad_campaign/${campaignId}/bulk_create_ads_by_inventory_reference`, body);
27
+ }
28
+ /**
29
+ * This method creates an ad for each listing ID specified in the request and associates the newly created ads with
30
+ * the specified campaign.
31
+ *
32
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
33
+ * a seller's campaign IDs by calling getCampaigns.
34
+ * @param body The container for the bulk request to create ads for eBay listing IDs. eBay listing IDs are
35
+ * generated when the listing is created on eBay.
36
+ */
37
+ bulkCreateAdsByListingId(campaignId, body) {
38
+ campaignId = encodeURIComponent(campaignId);
39
+ return this.post(`/ad_campaign/${campaignId}/bulk_create_ads_by_listing_id`, body);
40
+ }
41
+ /**
42
+ * This method deletes a set of ads, as specified by a list of inventory reference IDs, from the specified
43
+ * campaign.
44
+ *
45
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
46
+ * a seller's campaign IDs by calling getCampaigns.
47
+ * @param body This type defines the fields for a bulkDeleteAdsByInventoryReference request.
48
+ */
49
+ bulkDeleteAdsByInventoryReference(campaignId, body) {
50
+ campaignId = encodeURIComponent(campaignId);
51
+ return this.post(`/ad_campaign/${campaignId}/bulk_delete_ads_by_inventory_reference`, body);
52
+ }
53
+ /**
54
+ * This method deletes a set of ads, as specified by a list of listing IDs, from the specified campaign.
55
+ *
56
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
57
+ * a seller's campaign IDs by calling getCampaigns.
58
+ * @param body This type defines the fields for the bulkDeleteAdsByListingId request.
59
+ */
60
+ bulkDeleteAdsByListingId(campaignId, body) {
61
+ campaignId = encodeURIComponent(campaignId);
62
+ return this.post(`/ad_campaign/${campaignId}/bulk_delete_ads_by_listing_id`, body);
63
+ }
64
+ /**
65
+ * This method replaces an ad bid based on a list of inventory references IDs associated with the specified
66
+ * campaign.
67
+ *
68
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
69
+ * @param body This type defines the fields for the BulkCreateAdsByInventoryReference request.
70
+ */
71
+ bulkUpdateAdsBidByInventoryReference(campaignId, body) {
72
+ campaignId = encodeURIComponent(campaignId);
73
+ return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_bid_by_inventory_reference`, body);
74
+ }
75
+ /**
76
+ * This method replaces an ad bid based on a supplied list of listing IDs that are associated with the specified
77
+ * campaign.
78
+ *
79
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
80
+ * a seller's campaign IDs by calling getCampaigns.
81
+ * @param body Container for the bulk request to update ads.
82
+ */
83
+ bulkUpdateAdsBidByListingId(campaignId, body) {
84
+ campaignId = encodeURIComponent(campaignId);
85
+ return this.post(`/ad_campaign/${campaignId}/bulk_update_ads_bid_by_listing_id`, body);
86
+ }
87
+ /**
88
+ * This method retrieves all the ads for the specified campaign.
89
+ *
90
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
91
+ * a seller's campaign IDs by calling getCampaigns.
92
+ * @param limit Specifies the maximum number of ads to return on a page in the paginated response. Default: 10
93
+ * Maximum: 500
94
+ * @param listingIds A comma separated list of eBay listing IDs. The response includes only active ads (ads
95
+ * associated with a RUNNING campaign).
96
+ * @param offset Specifies the number of ads to skip in the result set before returning the first ad in the
97
+ * paginated response.
98
+ */
99
+ getAds(campaignId, { limit, listingIds, offset } = {}) {
100
+ campaignId = encodeURIComponent(campaignId);
101
+ return this.get(`/ad_campaign/${campaignId}/ad`, {
102
+ params: {
103
+ limit,
104
+ listing_ids: listingIds,
105
+ offset
106
+ }
107
+ });
108
+ }
109
+ /**
110
+ * This method creates an ad for the specified listing ID, sets the bid percentage for that specific item, and
111
+ * associates the ad with the specified campaign.
112
+ *
113
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
114
+ * a seller's campaign IDs by calling getCampaigns.
115
+ * @param body This type defines the fields for the createAd request.
116
+ */
117
+ createAdByListingId(campaignId, body) {
118
+ campaignId = encodeURIComponent(campaignId);
119
+ return this.post(`/ad_campaign/${campaignId}/ad`, body);
120
+ }
121
+ /**
122
+ * This method creates an ad for the specified inventory reference ID, sets the bid percentage for that specific
123
+ * item, and associates the ad with the specified campaign.
124
+ *
125
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
126
+ * a seller's campaign IDs by calling getCampaigns.
127
+ * @param body This type defines the fields for the createAdsByInventoryReference request.
128
+ */
129
+ createAdsByInventoryReference(campaignId, body) {
130
+ campaignId = encodeURIComponent(campaignId);
131
+ return this.post(`/ad_campaign/${campaignId}/create_ads_by_inventory_reference`, body);
132
+ }
133
+ /**
134
+ * This method retrieves the specified ad from the specified campaign.
135
+ *
136
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
137
+ * a seller's campaign IDs by calling getCampaigns.
138
+ * @param adId Identifier of an ad. This ID was generated when the ad was created.
139
+ */
140
+ getAd(campaignId, adId) {
141
+ campaignId = encodeURIComponent(campaignId);
142
+ adId = encodeURIComponent(adId);
143
+ return this.get(`/ad_campaign/${campaignId}/ad/${adId}`);
144
+ }
145
+ /**
146
+ * This method retrieves the specified ad from the specified campaign.
147
+ *
148
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created.
149
+ * @param adId Identifier of an ad. This ID was generated when the ad was created.
150
+ */
151
+ deleteAd(campaignId, adId) {
152
+ campaignId = encodeURIComponent(campaignId);
153
+ adId = encodeURIComponent(adId);
154
+ return this.delete(`/ad_campaign/${campaignId}/ad/${adId}`);
155
+ }
156
+ /**
157
+ * This method deletes ads using a list of seller inventory reference IDs that are associated with the specified
158
+ * campaign ID.
159
+ *
160
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
161
+ * a seller's campaign IDs by calling getCampaigns.
162
+ */
163
+ deleteAdsByInventoryReference(campaignId) {
164
+ campaignId = encodeURIComponent(campaignId);
165
+ return this.post(`/ad_campaign/${campaignId}/delete_ads_by_inventory_reference`);
166
+ }
167
+ /**
168
+ * This method retrieves ads from the specified campaign using the seller's inventory reference ID and inventory
169
+ * reference type.
170
+ *
171
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
172
+ * a seller's campaign IDs by calling getCampaigns.
173
+ * @param inventoryReferenceId The inventory reference ID associated with the ad you want returned.
174
+ * @param inventoryReferenceType The type of the inventory reference ID. Set this value to either INVENTORY_ITEM (a
175
+ * single listing) or INVENTORY_ITEM_GROUP (a multi-variation listing).
176
+ */
177
+ getAdsByInventoryReference(campaignId, inventoryReferenceId, inventoryReferenceType) {
178
+ campaignId = encodeURIComponent(campaignId);
179
+ return this.get(`/ad_campaign/${campaignId}/get_ads_by_inventory_reference`, {
180
+ params: {
181
+ inventory_reference_id: inventoryReferenceId,
182
+ inventory_reference_type: inventoryReferenceType
183
+ }
184
+ });
185
+ }
186
+ /**
187
+ * This method updates the bid for the specified ad in the specified campaign. In the request, supply the
188
+ * campaign_id and ad_id as a URI parameters.
189
+ *
190
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
191
+ * a seller's campaign IDs by calling getCampaigns.
192
+ * @param adId A unique eBay-assigned ID for an ad that's generated when an ad is created.
193
+ * @param body This type defines the fields for the updateBid request.
194
+ */
195
+ updateBid(campaignId, adId, body) {
196
+ campaignId = encodeURIComponent(campaignId);
197
+ adId = encodeURIComponent(adId);
198
+ return this.post(`/ad_campaign/${campaignId}/ad/${adId}/update_bid`, body);
199
+ }
200
+ /**
201
+ * This method clones (makes a copy of) the specified campaign.
202
+ *
203
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
204
+ * a seller's campaign IDs by calling getCampaigns.
205
+ * @param body This type defines the fields for a clone campaign request.
206
+ */
207
+ cloneCampaign(campaignId, body) {
208
+ campaignId = encodeURIComponent(campaignId);
209
+ return this.post(`/ad_campaign/${campaignId}/clone`, body);
210
+ }
211
+ /**
212
+ * This method retrieves the details for all the campaigns of a seller, including the campaign's the selection
213
+ * rules.
214
+ *
215
+ * @param campaignName Specifies the campaign name. The results are filtered to include only the campaign by the
216
+ * specified name.
217
+ * @param campaignStatus Specifies the campaign status. The results are filtered to include only campaigns that are
218
+ * in the specified states.
219
+ * @param endDateRange Specifies the range of a campaign's end date. The results are filtered to include only
220
+ * campaigns with an end date that is within specified range.
221
+ * @param limit Specifies the maximum number of campaigns to return on a page in the paginated response. Default:
222
+ * 10 Maximum: 500
223
+ * @param offset Specifies the number of campaigns to skip in the result set before returning the first report in
224
+ * the paginated response.
225
+ * @param startDateRange Specifies the range of a campaign's start date in which to filter the results.
226
+ */
227
+ getCampaigns({ campaignName, campaignStatus, endDateRange, limit, offset, startDateRange } = {}) {
228
+ return this.get(`/ad_campaign`, {
229
+ params: {
230
+ campaign_name: campaignName,
231
+ campaign_status: campaignStatus,
232
+ end_date_range: endDateRange,
233
+ limit,
234
+ offset,
235
+ start_date_range: startDateRange
236
+ }
237
+ });
238
+ }
239
+ /**
240
+ * This method retrieves the details of a single campaign, as specified with the campaign_id query parameter.
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
+ */
245
+ getCampaign(campaignId) {
246
+ campaignId = encodeURIComponent(campaignId);
247
+ return this.get(`/ad_campaign/${campaignId}`);
248
+ }
249
+ /**
250
+ * This method creates a Promoted Listings ad campaign.
251
+ *
252
+ * @param body his type defines the fields for the create campaign request.
253
+ */
254
+ createCampaign(body) {
255
+ return this.post(`/ad_campaign`, body);
256
+ }
257
+ /**
258
+ * This method deletes the campaign specified by the campaign_id query parameter.
259
+ *
260
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
261
+ * a seller's campaign IDs by calling getCampaigns.
262
+ */
263
+ deleteCampaign(campaignId) {
264
+ campaignId = encodeURIComponent(campaignId);
265
+ return this.delete(`/ad_campaign/${campaignId}`);
266
+ }
267
+ /**
268
+ * This method ends an active (RUNNINGM) or paused campaign. Specify the campaign you want to end by supplying its
269
+ * campaign ID in a query parameter.
270
+ *
271
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
272
+ * a seller's campaign IDs by calling getCampaigns.
273
+ */
274
+ endCampaign(campaignId) {
275
+ campaignId = encodeURIComponent(campaignId);
276
+ return this.post(`/ad_campaign/${campaignId}/end`);
277
+ }
278
+ /**
279
+ * This method retrieves the campaign containing the listing that is specified using either an eBay listing ID or
280
+ * an inventory reference ID and inventory reference type.
281
+ *
282
+ * @param inventoryReferenceId The seller's inventory reference ID of the listing to be used to find the campaign
283
+ * in which it is associated.
284
+ * @param inventoryReferenceType The type of the seller's inventory reference ID, which is a listing or group of
285
+ * items.
286
+ * @param listingId Identifier of the eBay listing associated with the ad.
287
+ */
288
+ findCampaignByAdReference({ inventoryReferenceId, inventoryReferenceType, listingId } = {}) {
289
+ return this.get(`/ad_campaign/find_campaign_by_ad_reference`, {
290
+ params: {
291
+ inventory_reference_id: inventoryReferenceId,
292
+ inventory_reference_type: inventoryReferenceType,
293
+ listing_id: listingId
294
+ }
295
+ });
296
+ }
297
+ /**
298
+ * This method retrieves the details of a single campaign, as specified with the campaign_name query parameter.
299
+ *
300
+ * @param campaignName Name of the campaign.
301
+ */
302
+ getCampaignByName(campaignName) {
303
+ return this.get(`/ad_campaign/get_campaign_by_name`, {
304
+ params: {
305
+ campaign_name: campaignName
306
+ }
307
+ });
308
+ }
309
+ /**
310
+ * This method pauses an active (RUNNING) campaign. You can restarted by calling resumeCampaign, as long as the
311
+ * campaign's end date is in the future..
312
+ *
313
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
314
+ * a seller's campaign IDs by calling getCampaigns.
315
+ */
316
+ pauseCampaign(campaignId) {
317
+ campaignId = encodeURIComponent(campaignId);
318
+ return this.post(`/ad_campaign/${campaignId}/pause`);
319
+ }
320
+ /**
321
+ * This method resumes a paused campaign, as long as it's end date is in the future.
322
+ *
323
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
324
+ * a seller's campaign IDs by calling getCampaigns.
325
+ */
326
+ resumeCampaign(campaignId) {
327
+ campaignId = encodeURIComponent(campaignId);
328
+ return this.post(`/ad_campaign/${campaignId}/resume`);
329
+ }
330
+ /**
331
+ * This method replaces the name and the start and end dates of a campaign.
332
+ *
333
+ * @param campaignId A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get
334
+ * a seller's campaign IDs by calling getCampaigns.
335
+ * @param body This type defines the fields to updated the campaign name and start and end dates.
336
+ */
337
+ updateCampaignIdentification(campaignId, body) {
338
+ campaignId = encodeURIComponent(campaignId);
339
+ return this.post(`/ad_campaign/${campaignId}/update_campaign_identification`, body);
340
+ }
341
+ /**
342
+ * This call downloads the report as specified by the report_id path parameter.
343
+ *
344
+ * @param reportId The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when
345
+ * you run a report task with a call to createReportTask.
346
+ */
347
+ getReport(reportId) {
348
+ reportId = encodeURIComponent(reportId);
349
+ return this.get(`/ad_report/${reportId}`);
350
+ }
351
+ /**
352
+ * This call retrieves information that details the fields used in each of the Promoted Listings reports.
353
+ */
354
+ getReportMetadata() {
355
+ return this.get(`/ad_report_metadata`);
356
+ }
357
+ /**
358
+ * This call retrieves metadata that details the fields used by the Promoted Listings report type that's specified
359
+ * by the report_type path parameter.
360
+ *
361
+ * @param reportType The name of the report type whose metadata you want to get.
362
+ */
363
+ getReportMetadataForReportType(reportType) {
364
+ reportType = encodeURIComponent(reportType);
365
+ return this.get(`/ad_report_metadata/${reportType}`);
366
+ }
367
+ /**
368
+ * This method returns information on all the existing report tasks related to a seller.
369
+ *
370
+ * @param limit Specifies the maximum number of report tasks to return on a page in the paginated response.
371
+ * Default: 10 Maximum: 500
372
+ * @param offset Specifies the number of report tasks to skip in the result set before returning the first report
373
+ * in the paginated response.
374
+ * @param reportTaskStatuses This parameter filters the returned report tasks by their status. Supply a
375
+ * comma-separated list of the report statuses you want returned.
376
+ */
377
+ getReportTasks({ limit, offset, reportTaskStatuses } = {}) {
378
+ return this.get(`/ad_report_task`, {
379
+ params: {
380
+ limit,
381
+ offset,
382
+ report_task_statuses: reportTaskStatuses
383
+ }
384
+ });
385
+ }
386
+ /**
387
+ * This call returns the details of a specific Promoted Listings report task, as specified by the report_task_id
388
+ * path parameter. T
389
+ *
390
+ * @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
391
+ * created by a call to createReportTask.
392
+ */
393
+ getReportTask(reportTaskId) {
394
+ reportTaskId = encodeURIComponent(reportTaskId);
395
+ return this.get(`/ad_report_task/${reportTaskId}`);
396
+ }
397
+ /**
398
+ * This method creates a report task, which generates a Promoted Listings report based on the values specified in
399
+ * the call.
400
+ *
401
+ * @param body The container for the fields that define the report task.
402
+ */
403
+ createReportTask(body) {
404
+ return this.post(`/ad_report_task`, body);
405
+ }
406
+ /**
407
+ * This call deletes the report task specified by the report_task_id path parameter.
408
+ *
409
+ * @param reportTaskId A unique eBay-assigned ID for the report task that's generated when the report task is
410
+ * created by a call to createReportTask.
411
+ */
412
+ deleteReportTask(reportTaskId) {
413
+ reportTaskId = encodeURIComponent(reportTaskId);
414
+ return this.delete(`/ad_report_task/${reportTaskId}`);
415
+ }
416
+ /**
417
+ * This method creates an item price markdown promotion (know simply as a &quot;markdown promotion&quot;) where a
418
+ * discount amount is applied directly to the items included the promotion.
419
+ *
420
+ * @param body This type defines the fields that describe an item price markdown promotion.
421
+ */
422
+ createItemPriceMarkdownPromotion(body) {
423
+ return this.post(`/item_price_markdown`, body);
424
+ }
425
+ /**
426
+ * This method updates the specified item price markdown promotion with the new configuration that you supply in
427
+ * the payload of the request.
428
+ *
429
+ * @param promotionId The ID of the promotion you want to update.
430
+ * @param body This type defines the fields that describe an item price markdown promotion.
431
+ */
432
+ updateItemPriceMarkdownPromotion(promotionId, body) {
433
+ promotionId = encodeURIComponent(promotionId);
434
+ return this.put(`/item_price_markdown/${promotionId}`, body);
435
+ }
436
+ /**
437
+ * This method deletes the item price markdown promotion specified by the promotion_id path parameter.
438
+ *
439
+ * @param promotionId The ID of the promotion you want to delete.
440
+ */
441
+ deleteItemPriceMarkdownPromotion(promotionId) {
442
+ promotionId = encodeURIComponent(promotionId);
443
+ return this.delete(`/item_price_markdown/${promotionId}`);
444
+ }
445
+ /**
446
+ * This method returns the complete details of the item price markdown promotion that's indicated by the
447
+ * promotion_id path parameter.
448
+ *
449
+ * @param promotionId The ID of the promotion you want to retrieve.
450
+ */
451
+ getItemPriceMarkdownPromotion(promotionId) {
452
+ promotionId = encodeURIComponent(promotionId);
453
+ return this.get(`/item_price_markdown/${promotionId}`);
454
+ }
455
+ /**
456
+ * This method creates an item promotion (known casually as a &quot;threshold promotion&quot;) where the buyer
457
+ * receives a discount when they meet the buying criteria that's set for the promotion.
458
+ *
459
+ * @param body This type defines the fields that describe an item promotion.
460
+ */
461
+ createItemPromotion(body) {
462
+ return this.post(`/item_promotion`, body);
463
+ }
464
+ /**
465
+ * This method updates the specified threshold promotion with the new configuration that you supply in the request.
466
+ *
467
+ * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
468
+ * value that's generated when the promotion is created.
469
+ * @param body type defines the fields that describe an item promotion.
470
+ */
471
+ updateItemPromotion(promotionId, body) {
472
+ promotionId = encodeURIComponent(promotionId);
473
+ return this.put(`/item_promotion/${promotionId}`, body);
474
+ }
475
+ /**
476
+ * This method deletes the threshold promotion specified by the promotion_id path parameter.
477
+ *
478
+ * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
479
+ * value that's generated when the promotion is created.
480
+ */
481
+ deleteItemPromotion(promotionId) {
482
+ promotionId = encodeURIComponent(promotionId);
483
+ return this.delete(`/item_promotion/${promotionId}`);
484
+ }
485
+ /**
486
+ * This method returns the complete details of the threshold promotion specified by the promotion_id path
487
+ * parameter.
488
+ *
489
+ * @param promotionId The ID of the promotion you want to retrieve. The promotion ID is a unique eBay-assigned
490
+ * value that's generated when the promotion is created.
491
+ */
492
+ getItemPromotion(promotionId) {
493
+ promotionId = encodeURIComponent(promotionId);
494
+ return this.get(`/item_promotion/${promotionId}`);
495
+ }
496
+ /**
497
+ * This method returns the set of listings associated with the promotion_id specified in the path parameter.
498
+ *
499
+ * @param promotionId The ID of the promotion whose associated listings you want to retrieve.
500
+ * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
501
+ * Maximum: 200
502
+ * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
503
+ * in the paginated response.
504
+ * @param q Reserved for future use.
505
+ * @param sort Specifies the order in which to sort the associated listings in the response.
506
+ * @param status This query parameter applies only to markdown promotions.
507
+ */
508
+ getListingSet(promotionId, { limit, offset, q, sort, status } = {}) {
509
+ promotionId = encodeURIComponent(promotionId);
510
+ return this.get(`/promotion/${promotionId}/get_listing_set`, {
511
+ params: {
512
+ limit,
513
+ offset,
514
+ q,
515
+ sort,
516
+ status
517
+ }
518
+ });
519
+ }
520
+ /**
521
+ * This method returns a list of a seller's undeleted promotions.
522
+ *
523
+ * @param marketplaceId The eBay marketplace ID of the site where the promotion is hosted.
524
+ * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
525
+ * Maximum: 200
526
+ * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
527
+ * in the paginated response.
528
+ * @param promotionStatus Specifies the promotion state by which you want to filter the results.
529
+ * @param promotionType Filters the returned promotions based on the their campaign promotion type.
530
+ * @param q A string consisting of one or more keywords.
531
+ * @param sort Specifies the order for how to sort the response.
532
+ */
533
+ getPromotions(marketplaceId, { limit, offset, promotionStatus, promotionType, q, sort } = {}) {
534
+ return this.get(`/promotion`, {
535
+ params: {
536
+ marketplace_id: marketplaceId,
537
+ limit,
538
+ offset,
539
+ promotion_status: promotionStatus,
540
+ promotion_type: promotionType,
541
+ q,
542
+ sort
543
+ }
544
+ });
545
+ }
546
+ /**
547
+ * This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from
548
+ * RUNNING to PAUSED.
549
+ *
550
+ * @param promotionId Identifier of the promotion you want to pause.
551
+ */
552
+ pausePromotion(promotionId) {
553
+ const id = encodeURIComponent(promotionId);
554
+ return this.post(`/promotion/${id}/pause`);
555
+ }
556
+ /**
557
+ * This method restarts a threshold promotion that was previously paused and changes the state of the promotion
558
+ * from PAUSED to RUNNING.
559
+ *
560
+ * @param promotionId Identifier of the promotion you want to make active. The ID is a unique eBay-assigned value
561
+ * that's generated when the promotion is created.
562
+ */
563
+ resumePromotion(promotionId) {
564
+ const id = encodeURIComponent(promotionId);
565
+ return this.post(`/promotion/${id}/resume`);
566
+ }
567
+ /**
568
+ * This method generates a report that lists the seller's running, paused, and ended promotions for the specified
569
+ * eBay marketplace.
570
+ *
571
+ * @param marketplaceId The eBay marketplace ID of the siteId for which you want the promotions report.
572
+ * @param limit Specifies the maximum number of promotions returned on a page from the result set. Default: 200
573
+ * Maximum: 200
574
+ * @param offset Specifies the number of promotions to skip in the result set before returning the first promotion
575
+ * in the paginated response.
576
+ * @param promotionStatus Limits the results to the promotions that are in the state specified by this query
577
+ * parameter.
578
+ * @param promotionType Filters the returned promotions in the report based on the their campaign promotion type.
579
+ * @param q A string consisting of one or more keywords. eBay filters the response by returning only the promotions
580
+ * that contain the supplied keywords in the promotion title.
581
+ */
582
+ getPromotionReports(marketplaceId, { limit, offset, promotionStatus, promotionType, q } = {}) {
583
+ return this.get(`/promotion_report`, {
584
+ params: {
585
+ marketplace_id: marketplaceId,
586
+ limit,
587
+ offset,
588
+ promotion_status: promotionStatus,
589
+ promotion_type: promotionType,
590
+ q
591
+ }
592
+ });
593
+ }
594
+ /**
595
+ * This method generates a report that summarizes the seller's promotions for the specified eBay marketplace.
596
+ *
597
+ * @param marketplaceId The eBay marketplace ID of the siteId you for which you want a promotion summary report.
598
+ */
599
+ getPromotionSummaryReport(marketplaceId) {
600
+ return this.get(`/promotion_summary_report`, {
601
+ params: {
602
+ marketplace_id: marketplaceId
603
+ }
604
+ });
605
+ }
606
+ }
607
+ exports.default = Marketing;
608
+ Marketing.id = 'Marketing';
609
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/restful/sell/marketing/index.ts"],"names":[],"mappings":";;;;;AAAA,+CAA6B;AAiB7B;;;;;GAKG;AACH,MAAqB,SAAU,SAAQ,WAAO;IAI5C,IAAI,QAAQ;QACV,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACI,iCAAiC,CAAC,UAAkB,EAAE,IAA8C;QACzG,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,UAAU,yCAAyC,EAAE,IAAI,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;OAQG;IACI,wBAAwB,CAAC,UAAkB,EAAE,IAAyB;QAC3E,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,UAAU,gCAAgC,EAAE,IAAI,CAAC,CAAC;IACrF,C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