@acmekit/js-sdk 2.13.2 → 2.13.4

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 (297) hide show
  1. package/dist/admin/index.d.ts +2 -177
  2. package/dist/admin/index.d.ts.map +1 -1
  3. package/dist/admin/index.js +3 -76
  4. package/dist/admin/index.js.map +1 -1
  5. package/dist/esm/admin/index.d.ts +2 -177
  6. package/dist/esm/admin/index.d.ts.map +1 -1
  7. package/dist/esm/admin/index.js +3 -73
  8. package/dist/esm/admin/index.js.map +1 -1
  9. package/dist/esm/store/index.d.ts +5 -1193
  10. package/dist/esm/store/index.d.ts.map +1 -1
  11. package/dist/esm/store/index.js +6 -1418
  12. package/dist/esm/store/index.js.map +1 -1
  13. package/dist/store/index.d.ts +5 -1193
  14. package/dist/store/index.d.ts.map +1 -1
  15. package/dist/store/index.js +6 -1408
  16. package/dist/store/index.js.map +1 -1
  17. package/package.json +2 -2
  18. package/dist/admin/campaign.d.ts +0 -164
  19. package/dist/admin/campaign.d.ts.map +0 -1
  20. package/dist/admin/campaign.js +0 -196
  21. package/dist/admin/campaign.js.map +0 -1
  22. package/dist/admin/claim.d.ts +0 -558
  23. package/dist/admin/claim.d.ts.map +0 -1
  24. package/dist/admin/claim.js +0 -693
  25. package/dist/admin/claim.js.map +0 -1
  26. package/dist/admin/currency.d.ts +0 -95
  27. package/dist/admin/currency.d.ts.map +0 -1
  28. package/dist/admin/currency.js +0 -104
  29. package/dist/admin/currency.js.map +0 -1
  30. package/dist/admin/draft-order.d.ts +0 -430
  31. package/dist/admin/draft-order.d.ts.map +0 -1
  32. package/dist/admin/draft-order.js +0 -547
  33. package/dist/admin/draft-order.js.map +0 -1
  34. package/dist/admin/exchange.d.ts +0 -487
  35. package/dist/admin/exchange.d.ts.map +0 -1
  36. package/dist/admin/exchange.js +0 -602
  37. package/dist/admin/exchange.js.map +0 -1
  38. package/dist/admin/fulfillment-provider.d.ts +0 -78
  39. package/dist/admin/fulfillment-provider.d.ts.map +0 -1
  40. package/dist/admin/fulfillment-provider.js +0 -88
  41. package/dist/admin/fulfillment-provider.js.map +0 -1
  42. package/dist/admin/fulfillment-set.d.ts +0 -141
  43. package/dist/admin/fulfillment-set.d.ts.map +0 -1
  44. package/dist/admin/fulfillment-set.js +0 -170
  45. package/dist/admin/fulfillment-set.js.map +0 -1
  46. package/dist/admin/fulfillment.d.ts +0 -91
  47. package/dist/admin/fulfillment.d.ts.map +0 -1
  48. package/dist/admin/fulfillment.js +0 -111
  49. package/dist/admin/fulfillment.js.map +0 -1
  50. package/dist/admin/inventory-item.d.ts +0 -320
  51. package/dist/admin/inventory-item.d.ts.map +0 -1
  52. package/dist/admin/inventory-item.js +0 -384
  53. package/dist/admin/inventory-item.js.map +0 -1
  54. package/dist/admin/order-edit.d.ts +0 -189
  55. package/dist/admin/order-edit.d.ts.map +0 -1
  56. package/dist/admin/order-edit.js +0 -240
  57. package/dist/admin/order-edit.js.map +0 -1
  58. package/dist/admin/order.d.ts +0 -452
  59. package/dist/admin/order.d.ts.map +0 -1
  60. package/dist/admin/order.js +0 -560
  61. package/dist/admin/order.js.map +0 -1
  62. package/dist/admin/payment-collection.d.ts +0 -72
  63. package/dist/admin/payment-collection.d.ts.map +0 -1
  64. package/dist/admin/payment-collection.js +0 -90
  65. package/dist/admin/payment-collection.js.map +0 -1
  66. package/dist/admin/payment.d.ts +0 -180
  67. package/dist/admin/payment.d.ts.map +0 -1
  68. package/dist/admin/payment.js +0 -208
  69. package/dist/admin/payment.js.map +0 -1
  70. package/dist/admin/price-list.d.ts +0 -234
  71. package/dist/admin/price-list.d.ts.map +0 -1
  72. package/dist/admin/price-list.js +0 -284
  73. package/dist/admin/price-list.js.map +0 -1
  74. package/dist/admin/price-preference.d.ts +0 -152
  75. package/dist/admin/price-preference.d.ts.map +0 -1
  76. package/dist/admin/price-preference.js +0 -182
  77. package/dist/admin/price-preference.js.map +0 -1
  78. package/dist/admin/product-category.d.ts +0 -170
  79. package/dist/admin/product-category.d.ts.map +0 -1
  80. package/dist/admin/product-category.js +0 -205
  81. package/dist/admin/product-category.js.map +0 -1
  82. package/dist/admin/product-collection.d.ts +0 -169
  83. package/dist/admin/product-collection.d.ts.map +0 -1
  84. package/dist/admin/product-collection.js +0 -203
  85. package/dist/admin/product-collection.js.map +0 -1
  86. package/dist/admin/product-tag.d.ts +0 -149
  87. package/dist/admin/product-tag.d.ts.map +0 -1
  88. package/dist/admin/product-tag.js +0 -177
  89. package/dist/admin/product-tag.js.map +0 -1
  90. package/dist/admin/product-type.d.ts +0 -150
  91. package/dist/admin/product-type.d.ts.map +0 -1
  92. package/dist/admin/product-type.js +0 -178
  93. package/dist/admin/product-type.js.map +0 -1
  94. package/dist/admin/product-variant.d.ts +0 -62
  95. package/dist/admin/product-variant.d.ts.map +0 -1
  96. package/dist/admin/product-variant.js +0 -66
  97. package/dist/admin/product-variant.js.map +0 -1
  98. package/dist/admin/product.d.ts +0 -740
  99. package/dist/admin/product.d.ts.map +0 -1
  100. package/dist/admin/product.js +0 -948
  101. package/dist/admin/product.js.map +0 -1
  102. package/dist/admin/promotion.d.ts +0 -310
  103. package/dist/admin/promotion.d.ts.map +0 -1
  104. package/dist/admin/promotion.js +0 -374
  105. package/dist/admin/promotion.js.map +0 -1
  106. package/dist/admin/refund-reasons.d.ts +0 -163
  107. package/dist/admin/refund-reasons.d.ts.map +0 -1
  108. package/dist/admin/refund-reasons.js +0 -192
  109. package/dist/admin/refund-reasons.js.map +0 -1
  110. package/dist/admin/region.d.ts +0 -152
  111. package/dist/admin/region.d.ts.map +0 -1
  112. package/dist/admin/region.js +0 -180
  113. package/dist/admin/region.js.map +0 -1
  114. package/dist/admin/reservation.d.ts +0 -154
  115. package/dist/admin/reservation.d.ts.map +0 -1
  116. package/dist/admin/reservation.js +0 -182
  117. package/dist/admin/reservation.js.map +0 -1
  118. package/dist/admin/return-reason.d.ts +0 -154
  119. package/dist/admin/return-reason.d.ts.map +0 -1
  120. package/dist/admin/return-reason.js +0 -183
  121. package/dist/admin/return-reason.js.map +0 -1
  122. package/dist/admin/return.d.ts +0 -558
  123. package/dist/admin/return.d.ts.map +0 -1
  124. package/dist/admin/return.js +0 -700
  125. package/dist/admin/return.js.map +0 -1
  126. package/dist/admin/sales-channel.d.ts +0 -196
  127. package/dist/admin/sales-channel.d.ts.map +0 -1
  128. package/dist/admin/sales-channel.js +0 -238
  129. package/dist/admin/sales-channel.js.map +0 -1
  130. package/dist/admin/shipping-option-type.d.ts +0 -152
  131. package/dist/admin/shipping-option-type.d.ts.map +0 -1
  132. package/dist/admin/shipping-option-type.js +0 -180
  133. package/dist/admin/shipping-option-type.js.map +0 -1
  134. package/dist/admin/shipping-option.d.ts +0 -171
  135. package/dist/admin/shipping-option.d.ts.map +0 -1
  136. package/dist/admin/shipping-option.js +0 -207
  137. package/dist/admin/shipping-option.js.map +0 -1
  138. package/dist/admin/shipping-profile.d.ts +0 -151
  139. package/dist/admin/shipping-profile.d.ts.map +0 -1
  140. package/dist/admin/shipping-profile.js +0 -181
  141. package/dist/admin/shipping-profile.js.map +0 -1
  142. package/dist/admin/stock-location.d.ts +0 -212
  143. package/dist/admin/stock-location.d.ts.map +0 -1
  144. package/dist/admin/stock-location.js +0 -260
  145. package/dist/admin/stock-location.js.map +0 -1
  146. package/dist/admin/tax-provider.d.ts +0 -64
  147. package/dist/admin/tax-provider.d.ts.map +0 -1
  148. package/dist/admin/tax-provider.js +0 -70
  149. package/dist/admin/tax-provider.js.map +0 -1
  150. package/dist/admin/tax-rate.d.ts +0 -155
  151. package/dist/admin/tax-rate.d.ts.map +0 -1
  152. package/dist/admin/tax-rate.js +0 -186
  153. package/dist/admin/tax-rate.js.map +0 -1
  154. package/dist/admin/tax-region.d.ts +0 -165
  155. package/dist/admin/tax-region.d.ts.map +0 -1
  156. package/dist/admin/tax-region.js +0 -196
  157. package/dist/admin/tax-region.js.map +0 -1
  158. package/dist/esm/admin/campaign.d.ts +0 -164
  159. package/dist/esm/admin/campaign.d.ts.map +0 -1
  160. package/dist/esm/admin/campaign.js +0 -213
  161. package/dist/esm/admin/campaign.js.map +0 -1
  162. package/dist/esm/admin/claim.d.ts +0 -558
  163. package/dist/esm/admin/claim.d.ts.map +0 -1
  164. package/dist/esm/admin/claim.js +0 -740
  165. package/dist/esm/admin/claim.js.map +0 -1
  166. package/dist/esm/admin/currency.d.ts +0 -95
  167. package/dist/esm/admin/currency.d.ts.map +0 -1
  168. package/dist/esm/admin/currency.js +0 -113
  169. package/dist/esm/admin/currency.js.map +0 -1
  170. package/dist/esm/admin/draft-order.d.ts +0 -430
  171. package/dist/esm/admin/draft-order.d.ts.map +0 -1
  172. package/dist/esm/admin/draft-order.js +0 -594
  173. package/dist/esm/admin/draft-order.js.map +0 -1
  174. package/dist/esm/admin/exchange.d.ts +0 -487
  175. package/dist/esm/admin/exchange.d.ts.map +0 -1
  176. package/dist/esm/admin/exchange.js +0 -643
  177. package/dist/esm/admin/exchange.js.map +0 -1
  178. package/dist/esm/admin/fulfillment-provider.d.ts +0 -78
  179. package/dist/esm/admin/fulfillment-provider.d.ts.map +0 -1
  180. package/dist/esm/admin/fulfillment-provider.js +0 -97
  181. package/dist/esm/admin/fulfillment-provider.js.map +0 -1
  182. package/dist/esm/admin/fulfillment-set.d.ts +0 -141
  183. package/dist/esm/admin/fulfillment-set.d.ts.map +0 -1
  184. package/dist/esm/admin/fulfillment-set.js +0 -185
  185. package/dist/esm/admin/fulfillment-set.js.map +0 -1
  186. package/dist/esm/admin/fulfillment.d.ts +0 -91
  187. package/dist/esm/admin/fulfillment.d.ts.map +0 -1
  188. package/dist/esm/admin/fulfillment.js +0 -122
  189. package/dist/esm/admin/fulfillment.js.map +0 -1
  190. package/dist/esm/admin/inventory-item.d.ts +0 -320
  191. package/dist/esm/admin/inventory-item.d.ts.map +0 -1
  192. package/dist/esm/admin/inventory-item.js +0 -411
  193. package/dist/esm/admin/inventory-item.js.map +0 -1
  194. package/dist/esm/admin/order-edit.d.ts +0 -189
  195. package/dist/esm/admin/order-edit.d.ts.map +0 -1
  196. package/dist/esm/admin/order-edit.js +0 -261
  197. package/dist/esm/admin/order-edit.js.map +0 -1
  198. package/dist/esm/admin/order.d.ts +0 -452
  199. package/dist/esm/admin/order.d.ts.map +0 -1
  200. package/dist/esm/admin/order.js +0 -603
  201. package/dist/esm/admin/order.js.map +0 -1
  202. package/dist/esm/admin/payment-collection.d.ts +0 -72
  203. package/dist/esm/admin/payment-collection.d.ts.map +0 -1
  204. package/dist/esm/admin/payment-collection.js +0 -101
  205. package/dist/esm/admin/payment-collection.js.map +0 -1
  206. package/dist/esm/admin/payment.d.ts +0 -180
  207. package/dist/esm/admin/payment.d.ts.map +0 -1
  208. package/dist/esm/admin/payment.js +0 -223
  209. package/dist/esm/admin/payment.js.map +0 -1
  210. package/dist/esm/admin/price-list.d.ts +0 -234
  211. package/dist/esm/admin/price-list.d.ts.map +0 -1
  212. package/dist/esm/admin/price-list.js +0 -305
  213. package/dist/esm/admin/price-list.js.map +0 -1
  214. package/dist/esm/admin/price-preference.d.ts +0 -152
  215. package/dist/esm/admin/price-preference.d.ts.map +0 -1
  216. package/dist/esm/admin/price-preference.js +0 -197
  217. package/dist/esm/admin/price-preference.js.map +0 -1
  218. package/dist/esm/admin/product-category.d.ts +0 -170
  219. package/dist/esm/admin/product-category.d.ts.map +0 -1
  220. package/dist/esm/admin/product-category.js +0 -222
  221. package/dist/esm/admin/product-category.js.map +0 -1
  222. package/dist/esm/admin/product-collection.d.ts +0 -169
  223. package/dist/esm/admin/product-collection.d.ts.map +0 -1
  224. package/dist/esm/admin/product-collection.js +0 -220
  225. package/dist/esm/admin/product-collection.js.map +0 -1
  226. package/dist/esm/admin/product-tag.d.ts +0 -149
  227. package/dist/esm/admin/product-tag.d.ts.map +0 -1
  228. package/dist/esm/admin/product-tag.js +0 -192
  229. package/dist/esm/admin/product-tag.js.map +0 -1
  230. package/dist/esm/admin/product-type.d.ts +0 -150
  231. package/dist/esm/admin/product-type.d.ts.map +0 -1
  232. package/dist/esm/admin/product-type.js +0 -193
  233. package/dist/esm/admin/product-type.js.map +0 -1
  234. package/dist/esm/admin/product-variant.d.ts +0 -62
  235. package/dist/esm/admin/product-variant.d.ts.map +0 -1
  236. package/dist/esm/admin/product-variant.js +0 -73
  237. package/dist/esm/admin/product-variant.js.map +0 -1
  238. package/dist/esm/admin/product.d.ts +0 -740
  239. package/dist/esm/admin/product.d.ts.map +0 -1
  240. package/dist/esm/admin/product.js +0 -995
  241. package/dist/esm/admin/product.js.map +0 -1
  242. package/dist/esm/admin/promotion.d.ts +0 -310
  243. package/dist/esm/admin/promotion.d.ts.map +0 -1
  244. package/dist/esm/admin/promotion.js +0 -401
  245. package/dist/esm/admin/promotion.js.map +0 -1
  246. package/dist/esm/admin/refund-reasons.d.ts +0 -163
  247. package/dist/esm/admin/refund-reasons.d.ts.map +0 -1
  248. package/dist/esm/admin/refund-reasons.js +0 -207
  249. package/dist/esm/admin/refund-reasons.js.map +0 -1
  250. package/dist/esm/admin/region.d.ts +0 -152
  251. package/dist/esm/admin/region.d.ts.map +0 -1
  252. package/dist/esm/admin/region.js +0 -195
  253. package/dist/esm/admin/region.js.map +0 -1
  254. package/dist/esm/admin/reservation.d.ts +0 -154
  255. package/dist/esm/admin/reservation.d.ts.map +0 -1
  256. package/dist/esm/admin/reservation.js +0 -199
  257. package/dist/esm/admin/reservation.js.map +0 -1
  258. package/dist/esm/admin/return-reason.d.ts +0 -154
  259. package/dist/esm/admin/return-reason.d.ts.map +0 -1
  260. package/dist/esm/admin/return-reason.js +0 -198
  261. package/dist/esm/admin/return-reason.js.map +0 -1
  262. package/dist/esm/admin/return.d.ts +0 -558
  263. package/dist/esm/admin/return.d.ts.map +0 -1
  264. package/dist/esm/admin/return.js +0 -749
  265. package/dist/esm/admin/return.js.map +0 -1
  266. package/dist/esm/admin/sales-channel.d.ts +0 -196
  267. package/dist/esm/admin/sales-channel.d.ts.map +0 -1
  268. package/dist/esm/admin/sales-channel.js +0 -257
  269. package/dist/esm/admin/sales-channel.js.map +0 -1
  270. package/dist/esm/admin/shipping-option-type.d.ts +0 -152
  271. package/dist/esm/admin/shipping-option-type.d.ts.map +0 -1
  272. package/dist/esm/admin/shipping-option-type.js +0 -195
  273. package/dist/esm/admin/shipping-option-type.js.map +0 -1
  274. package/dist/esm/admin/shipping-option.d.ts +0 -171
  275. package/dist/esm/admin/shipping-option.d.ts.map +0 -1
  276. package/dist/esm/admin/shipping-option.js +0 -224
  277. package/dist/esm/admin/shipping-option.js.map +0 -1
  278. package/dist/esm/admin/shipping-profile.d.ts +0 -151
  279. package/dist/esm/admin/shipping-profile.d.ts.map +0 -1
  280. package/dist/esm/admin/shipping-profile.js +0 -196
  281. package/dist/esm/admin/shipping-profile.js.map +0 -1
  282. package/dist/esm/admin/stock-location.d.ts +0 -212
  283. package/dist/esm/admin/stock-location.d.ts.map +0 -1
  284. package/dist/esm/admin/stock-location.js +0 -281
  285. package/dist/esm/admin/stock-location.js.map +0 -1
  286. package/dist/esm/admin/tax-provider.d.ts +0 -64
  287. package/dist/esm/admin/tax-provider.d.ts.map +0 -1
  288. package/dist/esm/admin/tax-provider.js +0 -77
  289. package/dist/esm/admin/tax-provider.js.map +0 -1
  290. package/dist/esm/admin/tax-rate.d.ts +0 -155
  291. package/dist/esm/admin/tax-rate.d.ts.map +0 -1
  292. package/dist/esm/admin/tax-rate.js +0 -201
  293. package/dist/esm/admin/tax-rate.js.map +0 -1
  294. package/dist/esm/admin/tax-region.d.ts +0 -165
  295. package/dist/esm/admin/tax-region.d.ts.map +0 -1
  296. package/dist/esm/admin/tax-region.js +0 -211
  297. package/dist/esm/admin/tax-region.js.map +0 -1
@@ -1,374 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Promotion = void 0;
4
- class Promotion {
5
- /**
6
- * @ignore
7
- */
8
- constructor(client) {
9
- this.client = client;
10
- }
11
- /**
12
- * This method retrieves a promotion by its ID. It sends a request to the
13
- * [Retrieve Promotion](https://docs.acmekit.com/api/admin#promotions_getpromotionsid)
14
- * API route.
15
- *
16
- * @param id - The promotion's ID.
17
- * @param query - Configure the fields to retrieve in the promotion.
18
- * @param headers - Headers to pass in the request.
19
- * @returns The promotion's details.
20
- *
21
- * @example
22
- * To retrieve a promotion by its ID:
23
- *
24
- * ```ts
25
- * sdk.admin.promotion.retrieve("promo_123")
26
- * .then(({ promotion }) => {
27
- * console.log(promotion)
28
- * })
29
- * ```
30
- *
31
- * To specify the fields and relations to retrieve:
32
- *
33
- * ```ts
34
- * sdk.admin.promotion.retrieve("promo_123", {
35
- * fields: "id,*application_method"
36
- * })
37
- * .then(({ promotion }) => {
38
- * console.log(promotion)
39
- * })
40
- * ```
41
- *
42
- * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/admin#select-fields-and-relations).
43
- */
44
- async retrieve(id, query, headers) {
45
- return await this.client.fetch(`/admin/promotions/${id}`, {
46
- headers,
47
- query,
48
- });
49
- }
50
- /**
51
- * This method retrieves a list of promotions. It sends a request to the
52
- * [List Promotions](https://docs.acmekit.com/api/admin#promotions_getpromotions)
53
- * API route.
54
- *
55
- * @param query - Filters and pagination configurations.
56
- * @param headers - Headers to pass in the request.
57
- * @returns The list of promotions.
58
- *
59
- * @example
60
- * To retrieve the list of promotions:
61
- *
62
- * ```ts
63
- * sdk.admin.promotion.list()
64
- * .then(({ promotions, count, limit, offset }) => {
65
- * console.log(promotions)
66
- * })
67
- * ```
68
- *
69
- * To configure the pagination, pass the `limit` and `offset` query parameters.
70
- *
71
- * For example, to retrieve only 10 items and skip 10 items:
72
- *
73
- * ```ts
74
- * sdk.admin.promotion.list({
75
- * limit: 10,
76
- * offset: 10
77
- * })
78
- * .then(({ promotions, count, limit, offset }) => {
79
- * console.log(promotions)
80
- * })
81
- * ```
82
- *
83
- * Using the `fields` query parameter, you can specify the fields and relations to retrieve
84
- * in each promotion:
85
- *
86
- * ```ts
87
- * sdk.admin.promotion.list({
88
- * fields: "id,*application_method"
89
- * })
90
- * .then(({ promotions, count, limit, offset }) => {
91
- * console.log(promotions)
92
- * })
93
- * ```
94
- *
95
- * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/admin#select-fields-and-relations).
96
- */
97
- async list(query, headers) {
98
- return await this.client.fetch(`/admin/promotions`, {
99
- headers,
100
- query,
101
- });
102
- }
103
- /**
104
- * This method creates a new promotion. It sends a request to the
105
- * [Create Promotion](https://docs.acmekit.com/api/admin#promotions_postpromotions)
106
- * API route.
107
- *
108
- * @param payload - The promotion to create.
109
- * @param headers - Headers to pass in the request.
110
- * @returns The promotion's details.
111
- *
112
- * @example
113
- * sdk.admin.promotion.create({
114
- * name: "My Promotion",
115
- * description: "This is a test promotion",
116
- * code: "PROMO123",
117
- * starts_at: "2021-01-01",
118
- * ends_at: "2021-01-01",
119
- * })
120
- * .then(({ promotion }) => {
121
- * console.log(promotion)
122
- * })
123
- */
124
- async create(payload, headers) {
125
- return await this.client.fetch(`/admin/promotions`, {
126
- method: "POST",
127
- headers,
128
- body: payload,
129
- });
130
- }
131
- /**
132
- * This method updates a promotion. It sends a request to the
133
- * [Update Promotion](https://docs.acmekit.com/api/admin#promotions_postpromotionsid)
134
- * API route.
135
- *
136
- * @param id - The promotion's ID.
137
- * @param payload - The details to update in the promotion.
138
- * @param headers - Headers to pass in the request.
139
- * @returns The promotion's details.
140
- *
141
- * @example
142
- * sdk.admin.promotion.update("promo_123", {
143
- * code: "PROMO123",
144
- * })
145
- * .then(({ promotion }) => {
146
- * console.log(promotion)
147
- * })
148
- */
149
- async update(id, payload, headers) {
150
- return await this.client.fetch(`/admin/promotions/${id}`, {
151
- method: "POST",
152
- headers,
153
- body: payload,
154
- });
155
- }
156
- /**
157
- * This method deletes a promotion. It sends a request to the
158
- * [Delete Promotion](https://docs.acmekit.com/api/admin#promotions_deletepromotionsid)
159
- * API route.
160
- *
161
- * @param id - The promotion's ID.
162
- * @param headers - Headers to pass in the request.
163
- * @returns The deleted promotion's details.
164
- *
165
- * @example
166
- * sdk.admin.promotion.delete("promo_123")
167
- * .then(({ promotion }) => {
168
- * console.log(promotion)
169
- * })
170
- */
171
- async delete(id, headers) {
172
- return await this.client.fetch(`/admin/promotions/${id}`, {
173
- method: "DELETE",
174
- headers,
175
- });
176
- }
177
- /**
178
- * This method creates and adds rules to a promotion. It can be the promotion's rules,
179
- * or its application method's buy or target rules. That depends on the rule type
180
- * you specify as a parameter.
181
- *
182
- * - If you set the `ruleType` to `rules`, the method sends a request to the
183
- * [Manage Promotion's Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidrulesbatch).
184
- * - If you set the `ruleType` to `buy-rules`, the method sends a request to the
185
- * [Manage Promotion's Buy Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidbuyrulesbatch).
186
- * - If you set the `ruleType` to `target-rules`, the method sends a request to the
187
- * [Manage Promotion's Target Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidtargetrulesbatch).
188
- *
189
- * @param id - The promotion's ID.
190
- * @param ruleType - The type of rules to create.
191
- * @param payload - The rules to create.
192
- * @param headers - Headers to pass in the request.
193
- * @returns The promotion's details.
194
- *
195
- * @example
196
- * sdk.admin.promotion.addRules("promo_123", "rules", {
197
- * rules: [
198
- * {
199
- * operator: "eq",
200
- * attribute: "product_id",
201
- * values: ["prod_123"]
202
- * }
203
- * ]
204
- * })
205
- * .then(({ promotion }) => {
206
- * console.log(promotion)
207
- * })
208
- */
209
- async addRules(id, ruleType, payload, headers) {
210
- return await this.client.fetch(`/admin/promotions/${id}/${ruleType}/batch`, {
211
- method: "POST",
212
- headers,
213
- body: { create: payload.rules },
214
- });
215
- }
216
- /**
217
- * This method updates the rules of a promotion. It can be the promotion's rules,
218
- * or its application method's buy or target rules. That depends on the rule type
219
- * you specify as a parameter.
220
- *
221
- * - If you set the `ruleType` to `rules`, the method sends a request to the
222
- * [Manage Promotion's Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidrulesbatch).
223
- * - If you set the `ruleType` to `buy-rules`, the method sends a request to the
224
- * [Manage Promotion's Buy Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidbuyrulesbatch).
225
- * - If you set the `ruleType` to `target-rules`, the method sends a request to the
226
- * [Manage Promotion's Target Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidtargetrulesbatch).
227
- *
228
- * @param id - The promotion's ID.
229
- * @param ruleType - The type of rules to update.
230
- * @param payload - The rules to update.
231
- * @param headers - Headers to pass in the request.
232
- * @returns The promotion's details.
233
- *
234
- * @example
235
- * sdk.admin.promotion.updateRules("promo_123", "rules", {
236
- * rules: [
237
- * {
238
- * id: "rule_123",
239
- * operator: "ne",
240
- * }
241
- * ]
242
- * })
243
- * .then(({ promotion }) => {
244
- * console.log(promotion)
245
- * })
246
- */
247
- async updateRules(id, ruleType, payload, headers) {
248
- return await this.client.fetch(`/admin/promotions/${id}/${ruleType}/batch`, {
249
- method: "POST",
250
- headers,
251
- body: { update: payload.rules },
252
- });
253
- }
254
- /**
255
- * This method removes rules from a promotion. It can be the promotion's rules,
256
- * or its application method's buy or target rules. That depends on the rule type
257
- * you specify as a parameter.
258
- *
259
- * - If you set the `ruleType` to `rules`, the method sends a request to the
260
- * [Manage Promotion's Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidrulesbatch).
261
- * - If you set the `ruleType` to `buy-rules`, the method sends a request to the
262
- * [Manage Promotion's Buy Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidbuyrulesbatch).
263
- * - If you set the `ruleType` to `target-rules`, the method sends a request to the
264
- * [Manage Promotion's Target Rules API Route](https://docs.acmekit.com/api/admin#promotions_postpromotionsidtargetrulesbatch).
265
- *
266
- * @param id - The promotion's ID.
267
- * @param ruleType - The type of rules to remove.
268
- * @param payload - The rules to remove.
269
- * @param headers - Headers to pass in the request.
270
- * @returns The promotion's details.
271
- *
272
- * @example
273
- * sdk.admin.promotion.removeRules("promo_123", "rules", {
274
- * rule_ids: ["rule_123"]
275
- * })
276
- * .then(({ promotion }) => {
277
- * console.log(promotion)
278
- * })
279
- */
280
- async removeRules(id, ruleType, payload, headers) {
281
- return await this.client.fetch(`/admin/promotions/${id}/${ruleType}/batch`, {
282
- method: "POST",
283
- headers,
284
- body: { delete: payload.rule_ids },
285
- });
286
- }
287
- /**
288
- * This method retrieves the rules of a promotion. It can be the promotion's rules,
289
- * or its application method's buy or target rules. That depends on the rule type
290
- * you specify as a parameter.
291
- *
292
- * This method sends a request to the
293
- * [List Rules of a Promotion API Route](https://docs.acmekit.com/api/admin#promotions_getpromotionsidrule_type)
294
- *
295
- * @param id - The promotion's ID.
296
- * @param ruleType - The type of rules to retrieve. Can be `rules`, `buy-rules`, or `target-rules`.
297
- * @param query - Configure the fields to retrieve in the rules.
298
- * @param headers - Headers to pass in the request.
299
- * @returns The promotion's rules.
300
- *
301
- * @example
302
- * sdk.admin.promotion.listRules("promo_123", "rules")
303
- * .then(({ rules }) => {
304
- * console.log(rules)
305
- * })
306
- */
307
- async listRules(id, ruleType, query, headers) {
308
- // eslint-disable-next-line max-len
309
- return await this.client.fetch(`/admin/promotions/${id}/${ruleType}`, {
310
- headers,
311
- query,
312
- });
313
- }
314
- /**
315
- * Retrieve a list of potential rule attributes for the promotion and application method types specified in the query parameters. Only the attributes of the rule type specified in the path parameter are retrieved:
316
- *
317
- * - If `rule_type` is `rules`, the attributes of the promotion's type are retrieved.
318
- * - If `rule_type` is `target-rules`, the target rules' attributes of the application method's type are retrieved.
319
- * - If `rule_type` is `buy-rules`, the buy rules' attributes of the application method's type are retrieved.
320
- *
321
- * This method sends a request to the
322
- * [List Rule Attribute Options API Route](https://docs.acmekit.com/api/admin#promotions_getpromotionsruleattributeoptionsrule_type)
323
- *
324
- * @param ruleType - The type of rules to retrieve the attributes for. Can be `rules`, `buy-rules`, or `target-rules`.
325
- * @param promotionType - The type of promotion to retrieve the attributes for. It can be `standard` or `buyget`.
326
- * @param applicationMethodTargetType - The type of application method to retrieve the attributes for. It can be `order`, `items` (default) or `shipping_methods`.
327
- * @param headers - Headers to pass in the request.
328
- * @returns The list of rule attributes.
329
- *
330
- * @example
331
- * sdk.admin.promotion.listRuleAttributes("rules", "standard")
332
- * .then(({ attributes }) => {
333
- * console.log(attributes)
334
- * })
335
- */
336
- async listRuleAttributes(ruleType, promotionType, applicationMethodTargetType, headers) {
337
- // eslint-disable-next-line max-len
338
- return await this.client.fetch(`/admin/promotions/rule-attribute-options/${ruleType}`, {
339
- headers,
340
- query: {
341
- promotion_type: promotionType,
342
- application_method_target_type: applicationMethodTargetType,
343
- },
344
- });
345
- }
346
- /**
347
- * Retrieve all potential values for promotion rules and target and buy rules based on the specified rule attribute and type.
348
- * For example, if you provide the ID of the `currency_code` rule attribute, and set `rule_type` to rules,
349
- * a list of currencies are retrieved in label-value pairs.
350
- *
351
- * This method sends a request to the
352
- * [List Rule Values API Route](https://docs.acmekit.com/api/admin#promotions_getpromotionsrulevalueoptionsrule_typerule_attribute_id)
353
- *
354
- * @param ruleType - The type of rules to retrieve the values for. Can be `rules`, `buy-rules`, or `target-rules`.
355
- * @param ruleValue - The ID of the rule attribute to retrieve the values for.
356
- * @param query - Configure the fields to retrieve in the rule values.
357
- * @param headers - Headers to pass in the request.
358
- * @returns The list of rule values.
359
- *
360
- * @example
361
- * sdk.admin.promotion.listRuleValues("rules", "attr_123")
362
- * .then(({ values }) => {
363
- * console.log(values)
364
- * })
365
- */
366
- async listRuleValues(ruleType, ruleValue, query, headers) {
367
- return await this.client.fetch(`/admin/promotions/rule-value-options/${ruleType}/${ruleValue}`, {
368
- headers,
369
- query,
370
- });
371
- }
372
- }
373
- exports.Promotion = Promotion;
374
- //# sourceMappingURL=promotion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/admin/promotion.ts"],"names":[],"mappings":"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"}
@@ -1,163 +0,0 @@
1
- import { HttpTypes } from "@acmekit/types";
2
- import { Client } from "../client";
3
- import { ClientHeaders } from "../types";
4
- export declare class RefundReason {
5
- /**
6
- * @ignore
7
- */
8
- private client;
9
- /**
10
- * @ignore
11
- */
12
- constructor(client: Client);
13
- /**
14
- * This method retrieves a list of refund reasons. It sends a request to the
15
- * [List Refund Reasons](https://docs.acmekit.com/api/admin#refund-reasons_getrefundreasons)
16
- * API route.
17
- *
18
- * @param query - Filters and pagination configurations.
19
- * @param headers - Headers to pass in the request.
20
- * @returns The paginated list of refund reasons.
21
- *
22
- * @example
23
- * To retrieve the list of refund reasons:
24
- *
25
- * ```ts
26
- * sdk.admin.refundReason.list()
27
- * .then(({ refund_reasons, count, limit, offset }) => {
28
- * console.log(refund_reasons)
29
- * })
30
- * ```
31
- *
32
- * To configure the pagination, pass the `limit` and `offset` query parameters.
33
- *
34
- * For example, to retrieve only 10 items and skip 10 items:
35
- *
36
- * ```ts
37
- * sdk.admin.refundReason.list({
38
- * limit: 10,
39
- * offset: 10
40
- * })
41
- * .then(({ refund_reasons, count, limit, offset }) => {
42
- * console.log(refund_reasons)
43
- * })
44
- * ```
45
- *
46
- * Using the `fields` query parameter, you can specify the fields and relations to retrieve
47
- * in each refund reason:
48
- *
49
- * ```ts
50
- * sdk.admin.refundReason.list({
51
- * fields: "id,label"
52
- * })
53
- * .then(({ refund_reasons, count, limit, offset }) => {
54
- * console.log(refund_reasons)
55
- * })
56
- * ```
57
- *
58
- * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/admin#select-fields-and-relations).
59
- *
60
- */
61
- list(query?: HttpTypes.AdminRefundReasonListParams, headers?: ClientHeaders): Promise<HttpTypes.RefundReasonsResponse>;
62
- /**
63
- * This method retrieves a refund reason by ID. It sends a request to the
64
- * [Get Refund Reason](https://docs.acmekit.com/api/admin#refund-reasons_getrefundreasonsid)
65
- * API route.
66
- *
67
- * @since 2.11.0
68
- *
69
- * @param id - The refund reason's ID.
70
- * @param query - Configure the fields and relations to retrieve in the refund reason.
71
- * @param headers - Headers to pass in the request.
72
- * @returns The refund reason's details.
73
- *
74
- * @example
75
- * To retrieve a refund reason by its ID:
76
- *
77
- * ```ts
78
- * sdk.admin.refundReason.retrieve("refr_123")
79
- * .then(({ refund_reason }) => {
80
- * console.log(refund_reason)
81
- * })
82
- * ```
83
- *
84
- * To specify the fields and relations to retrieve:
85
- *
86
- * ```ts
87
- * sdk.admin.refundReason.retrieve("refr_123", {
88
- * fields: "id,code"
89
- * })
90
- * .then(({ refund_reason }) => {
91
- * console.log(refund_reason)
92
- * })
93
- * ```
94
- *
95
- * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/admin#select-fields-and-relations).
96
- */
97
- retrieve(id: string, query?: HttpTypes.AdminRefundReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminRefundReasonResponse>;
98
- /**
99
- * This method creates a refund reason. It sends a request to the
100
- * [Create Refund Reason](https://docs.acmekit.com/api/admin#refund-reasons_postrefundreasons)
101
- * API route.
102
- *
103
- * @since 2.11.0
104
- *
105
- * @param body - The details of the refund reason to create.
106
- * @param query - Configure the fields and relations to retrieve in the refund reason.
107
- * @param headers - Headers to pass in the request.
108
- * @returns The refund reason's details.
109
- *
110
- * @example
111
- * sdk.admin.refundReason.create({
112
- * code: "refund",
113
- * label: "Refund",
114
- * })
115
- * .then(({ refund_reason }) => {
116
- * console.log(refund_reason)
117
- * })
118
- */
119
- create(body: HttpTypes.AdminCreateRefundReason, query?: HttpTypes.AdminRefundReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminRefundReasonResponse>;
120
- /**
121
- * This method updates a refund reason. It sends a request to the
122
- * [Update Refund Reason](https://docs.acmekit.com/api/admin#refund-reasons_postrefundreasonsid)
123
- * API route.
124
- *
125
- * @since 2.11.0
126
- *
127
- * @param id - The refund reason's ID.
128
- * @param body - The details of the refund reason to update.
129
- * @param query - Configure the fields and relations to retrieve in the refund reason.
130
- * @param headers - Headers to pass in the request.
131
- * @returns The refund reason's details.
132
- *
133
- * @example
134
- * sdk.admin.refundReason.update("ret_123", {
135
- * code: "refund",
136
- * label: "Refund",
137
- * })
138
- * .then(({ refund_reason }) => {
139
- * console.log(refund_reason)
140
- * })
141
- */
142
- update(id: string, body: HttpTypes.AdminUpdateRefundReason, query?: HttpTypes.AdminRefundReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminRefundReasonResponse>;
143
- /**
144
- * This method deletes a refund reason. It sends a request to the
145
- * [Delete Refund Reason](https://docs.acmekit.com/api/admin#refund-reasons_deleterefundreasonsid)
146
- * API route.
147
- *
148
- * @since 2.11.0
149
- *
150
- * @param id - The refund reason's ID.
151
- * @param query - Query parameters to pass to the request.
152
- * @param headers - Headers to pass in the request.
153
- * @returns The deletion's details.
154
- *
155
- * @example
156
- * sdk.admin.refundReason.delete("ret_123")
157
- * .then(({ deleted }) => {
158
- * console.log(deleted)
159
- * })
160
- */
161
- delete(id: string, query?: HttpTypes.AdminRefundReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminRefundReasonDeleteResponse>;
162
- }
163
- //# sourceMappingURL=refund-reasons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refund-reasons.d.ts","sourceRoot":"","sources":["../../src/admin/refund-reasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,YAAY;IACvB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IACtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACG,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,aAAa;IAWzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACG,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAWzB;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAazB;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;CAW1B"}