@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,693 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Claim = void 0;
4
- class Claim {
5
- /**
6
- * @ignore
7
- */
8
- constructor(client) {
9
- this.client = client;
10
- }
11
- /**
12
- * This method retrieves a paginated list of claims. It sends a request to the
13
- * [List Claims](https://docs.acmekit.com/api/admin#claims_getclaims) API route.
14
- *
15
- * @param query - Filters and pagination configurations.
16
- * @param headers - Headers to pass in the request.
17
- * @returns The paginated list of claims.
18
- *
19
- * @example
20
- * To retrieve the list of claims:
21
- *
22
- * ```ts
23
- * sdk.admin.claim.list()
24
- * .then(({ claims, count, limit, offset }) => {
25
- * console.log(claims)
26
- * })
27
- * ```
28
- *
29
- * To configure the pagination, pass the `limit` and `offset` query parameters.
30
- *
31
- * For example, to retrieve only 10 items and skip 10 items:
32
- *
33
- * ```ts
34
- * sdk.admin.claim.list({
35
- * limit: 10,
36
- * offset: 10
37
- * })
38
- * .then(({ claims, count, limit, offset }) => {
39
- * console.log(claims)
40
- * })
41
- * ```
42
- *
43
- * Using the `fields` query parameter, you can specify the fields and relations to retrieve
44
- * in each claim:
45
- *
46
- * ```ts
47
- * sdk.admin.claim.list({
48
- * fields: "id,*additional_items"
49
- * })
50
- * .then(({ claims, count, limit, offset }) => {
51
- * console.log(claims)
52
- * })
53
- * ```
54
- *
55
- * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
56
- */
57
- async list(query, headers) {
58
- return await this.client.fetch(`/admin/claims`, {
59
- query,
60
- headers,
61
- });
62
- }
63
- /**
64
- * This method retrieves a claim. It sends a request to the
65
- * [Get Claim](https://docs.acmekit.com/api/admin#claims_getclaimsid) API route.
66
- *
67
- * @param id - The claim's ID.
68
- * @param query - Configure the fields to retrieve in the claim.
69
- * @param headers - Headers to pass in the request
70
- * @returns The claim's details.
71
- *
72
- * @example
73
- * To retrieve a claim by its ID:
74
- *
75
- * ```ts
76
- * sdk.admin.claim.retrieve("claim_123")
77
- * .then(({ claim }) => {
78
- * console.log(claim)
79
- * })
80
- * ```
81
- *
82
- * To specify the fields and relations to retrieve:
83
- *
84
- * ```ts
85
- * sdk.admin.claim.retrieve("claim_123", {
86
- * fields: "id,*additional_items"
87
- * })
88
- * .then(({ claim }) => {
89
- * console.log(claim)
90
- * })
91
- * ```
92
- *
93
- * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
94
- */
95
- async retrieve(id, query, headers) {
96
- return await this.client.fetch(`/admin/claims/${id}`, {
97
- query,
98
- headers,
99
- });
100
- }
101
- /**
102
- * This method creates a claim. It sends a request to the
103
- * [Create Claim](https://docs.acmekit.com/api/admin#claims_postclaims) API route.
104
- *
105
- * @param body - The claim's details.
106
- * @param query - Configure the fields to retrieve in the claim.
107
- * @param headers - Headers to pass in the request
108
- * @returns The claim and order's details.
109
- *
110
- * @example
111
- * sdk.admin.claim.create({
112
- * type: "refund",
113
- * order_id: "order_123",
114
- * })
115
- * .then(({ claim }) => {
116
- * console.log(claim)
117
- * })
118
- */
119
- async create(body, query, headers) {
120
- return await this.client.fetch(`/admin/claims`, {
121
- method: "POST",
122
- headers,
123
- body,
124
- query,
125
- });
126
- }
127
- /**
128
- * This method cancels a claim. It sends a request to the
129
- * [Cancel Claim](https://docs.acmekit.com/api/admin#claims_postclaimsidcancel) API route.
130
- *
131
- * @param id - The claim's ID.
132
- * @param query - Configure the fields to retrieve in the claim.
133
- * @param headers - Headers to pass in the request
134
- * @returns The claim's details.
135
- *
136
- * @example
137
- * sdk.admin.claim.cancel("claim_123")
138
- * .then(({ claim }) => {
139
- * console.log(claim)
140
- * })
141
- */
142
- async cancel(id, query, headers) {
143
- return await this.client.fetch(`/admin/claims/${id}/cancel`, {
144
- method: "POST",
145
- headers,
146
- query,
147
- });
148
- }
149
- /**
150
- * This method adds items to the claim. It sends a request to the
151
- * [Add Items](https://docs.acmekit.com/api/admin#claims_postclaimsidclaimitems) API route.
152
- *
153
- * @param id - The ID of the claim to add the items to.
154
- * @param body - The items' details.
155
- * @param query - Configure the fields to retrieve in the claim.
156
- * @param headers - Headers to pass in the request
157
- * @returns The claim's details with a preview of the order when the claim is applied.
158
- *
159
- * @example
160
- * sdk.admin.claim.addItems("claim_123", {
161
- * items: [
162
- * {
163
- * id: "orli_123",
164
- * quantity: 1
165
- * }
166
- * ]
167
- * })
168
- * .then(({ claim }) => {
169
- * console.log(claim)
170
- * })
171
- */
172
- async addItems(id, body, query, headers) {
173
- return await this.client.fetch(`/admin/claims/${id}/claim-items`, {
174
- method: "POST",
175
- headers,
176
- body,
177
- query,
178
- });
179
- }
180
- /**
181
- * This method updates a claim item by the ID of the item's `WRITE_OFF_ITEM` action. It
182
- * sends a request to the [Update Claim Item](https://docs.acmekit.com/api/admin#claims_postclaimsidclaimitemsaction_id) API route.
183
- *
184
- * Every item has an `actions` property, whose value is an array of actions.
185
- * You can check the action's name using its `action` property, and use the value of the `id` property.
186
- *
187
- * @param id - The claim's ID.
188
- * @param actionId - The id of the order item's `WRITE_OFF_ITEM` action.
189
- * @param body - The details to update.
190
- * @param query - Configure the fields to retrieve in the claim.
191
- * @param headers - Headers to pass in the request
192
- * @returns The claim's details with a preview of the order when the claim is applied.
193
- *
194
- * @example
195
- * sdk.admin.claim.updateItem(
196
- * "claim_123",
197
- * "ordchact_123",
198
- * {
199
- * quantity: 1
200
- * }
201
- * )
202
- * .then(({ claim }) => {
203
- * console.log(claim)
204
- * })
205
- */
206
- async updateItem(id, actionId, body, query, headers) {
207
- return await this.client.fetch(`/admin/claims/${id}/claim-items/${actionId}`, {
208
- method: "POST",
209
- headers,
210
- body,
211
- query,
212
- });
213
- }
214
- /**
215
- * This method removes a claim item from a claim by the ID of the item's `WRITE_OFF_ITEM` action.
216
- * It sends a request to the [Remove Claim Item](https://docs.acmekit.com/api/admin#claims_deleteclaimsidclaimitemsaction_id)
217
- * API route.
218
- *
219
- * Every item has an `actions` property, whose value is an array of actions.
220
- * You can check the action's name using its `action` property, and use the value of the `id` property.
221
- *
222
- * @param id - The claim's ID.
223
- * @param actionId - The id of the order item's `WRITE_OFF_ITEM` action.
224
- * @param query - Configure the fields to retrieve in the claim.
225
- * @param headers - Headers to pass in the request
226
- * @returns The claim's details with a preview of the order when the claim is applied.
227
- *
228
- * @example
229
- * sdk.admin.claim.removeItem(
230
- * "claim_123",
231
- * "ordchact_123",
232
- * )
233
- * .then(({ claim }) => {
234
- * console.log(claim)
235
- * })
236
- */
237
- async removeItem(id, actionId, query, headers) {
238
- return await this.client.fetch(`/admin/claims/${id}/claim-items/${actionId}`, {
239
- method: "DELETE",
240
- headers,
241
- query,
242
- });
243
- }
244
- /**
245
- * This method adds inbound (or return) items to the claim. These inbound items will have a `RETURN_ITEM` action.
246
- *
247
- * This method sends a request to the [Add Inbound Items](https://docs.acmekit.com/api/admin#claims_postclaimsidinbounditems)
248
- * API route.
249
- *
250
- * @param id - The ID of the claim to add the inbound items to.
251
- * @param body - The inbound items' details.
252
- * @param query - Configure the fields to retrieve in the return.
253
- * @param headers - Headers to pass in the request
254
- * @returns The details of the return associated with the claim, with a preview of the order when the claim is applied.
255
- *
256
- * @example
257
- * sdk.admin.claim.addInboundItems(
258
- * "claim_123",
259
- * {
260
- * items: [
261
- * {
262
- * id: "orli_123",
263
- * quantity: 1
264
- * }
265
- * ]
266
- * },
267
- * )
268
- * .then(({ return: returnData }) => {
269
- * console.log(returnData)
270
- * })
271
- */
272
- async addInboundItems(id, body, query, headers) {
273
- return await this.client.fetch(`/admin/claims/${id}/inbound/items`, {
274
- method: "POST",
275
- headers,
276
- body,
277
- query,
278
- });
279
- }
280
- /**
281
- * This method updates an inbound (or return) item of a claim using the ID of the item's `RETURN_ITEM` action.
282
- * It sends a request to the [Update Inbound Item](https://docs.acmekit.com/api/admin#claims_postclaimsidinbounditemsaction_id)
283
- * API route.
284
- *
285
- * Every item has an `actions` property, whose value is an array of actions.
286
- * You can check the action's name using its `action` property, and use the value of the `id` property.
287
- *
288
- * @param id - The claim's ID.
289
- * @param actionId - The id of the return item's `RETURN_ITEM` action.
290
- * @param body - The details to update in the inbound item.
291
- * @param query - Configure the fields to retrieve in the return.
292
- * @param headers - Headers to pass in the request
293
- * @returns The details of the return associated wth the claim, with a preview of the order when the claim is applied.
294
- *
295
- * @example
296
- * sdk.admin.claim.updateInboundItem(
297
- * "claim_123",
298
- * "ordchact_123",
299
- * {
300
- * quantity: 1
301
- * },
302
- * )
303
- * .then(({ return: returnData }) => {
304
- * console.log(returnData)
305
- * })
306
- */
307
- async updateInboundItem(id, actionId, body, query, headers) {
308
- return await this.client.fetch(`/admin/claims/${id}/inbound/items/${actionId}`, {
309
- method: "POST",
310
- headers,
311
- body,
312
- query,
313
- });
314
- }
315
- /**
316
- * This method removes an inbound (or return) item from a claim using the ID of the item's `RETURN_ITEM` action.
317
- * It sends a request to the [Remove Inbound Item](https://docs.acmekit.com/api/admin#claims_deleteclaimsidinbounditemsaction_id)
318
- * API route.
319
- *
320
- * Every item has an `actions` property, whose value is an array of actions.
321
- * You can check the action's name using its `action` property, and use the value of the `id` property.
322
- *
323
- * @param id - The claim's ID.
324
- * @param actionId - The ID of the return item's `RETURN_ITEM` action.
325
- * @param query - Configure the fields to retrieve in the return.
326
- * @param headers - Headers to pass in the request
327
- * @returns The details of the return associated wth the claim, with a preview of the order when the claim is applied.
328
- *
329
- * @example
330
- * sdk.admin.claim.removeInboundItem(
331
- * "claim_123",
332
- * "ordchact_123",
333
- * )
334
- * .then(({ return: returnData }) => {
335
- * console.log(returnData)
336
- * })
337
- */
338
- async removeInboundItem(id, actionId, query, headers) {
339
- return await this.client.fetch(`/admin/claims/${id}/inbound/items/${actionId}`, {
340
- method: "DELETE",
341
- headers,
342
- query,
343
- });
344
- }
345
- /**
346
- * This method adds an inbound (or return) shipping method to a claim.
347
- * The inbound shipping method will have a `SHIPPING_ADD` action.
348
- *
349
- * This method sends a request to the [Add Inbound Shipping](https://docs.acmekit.com/api/admin#claims_postclaimsidinboundshippingmethod)
350
- * API route.
351
- *
352
- * @param id - The claim's ID.
353
- * @param body - The shipping method's details.
354
- * @param query - Configure the fields to retrieve in the return.
355
- * @param headers - Headers to pass in the request
356
- * @returns The details of the return associated wth the claim, with a preview of the order when the claim is applied.
357
- *
358
- * @example
359
- * sdk.admin.claim.addInboundShipping(
360
- * "claim_123",
361
- * {
362
- * shipping_option_id: "so_123",
363
- * custom_amount: 10
364
- * },
365
- * )
366
- * .then(({ return: returnData }) => {
367
- * console.log(returnData)
368
- * })
369
- */
370
- async addInboundShipping(id, body, query, headers) {
371
- return await this.client.fetch(`/admin/claims/${id}/inbound/shipping-method`, {
372
- method: "POST",
373
- headers,
374
- body,
375
- query,
376
- });
377
- }
378
- /**
379
- * This method updates a shipping method for returning items in the claim using the ID of the method's `SHIPPING_ADD` action.
380
- * It sends a request to the [Update Inbound Shipping](https://docs.acmekit.com/api/admin#claims_postclaimsidinboundshippingmethodaction_id)
381
- * API route.
382
- *
383
- * Every shipping method has an `actions` property, whose value is an array of actions.
384
- * You can check the action's name using its `action` property, and use the value of the `id` property.
385
- *
386
- * @param id - The claim's ID.
387
- * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
388
- * @param body - The details to update in the shipping method
389
- * @param query - Configure the fields to retrieve in the claim.
390
- * @param headers - Headers to pass in the request
391
- * @returns The details of the claim, with a preview of the order when the claim is applied.
392
- *
393
- * @example
394
- * sdk.admin.claim.updateInboundShipping(
395
- * "claim_123",
396
- * "ordchact_123",
397
- * {
398
- * custom_amount: 10
399
- * },
400
- * )
401
- * .then(({ claim }) => {
402
- * console.log(claim)
403
- * })
404
- */
405
- async updateInboundShipping(id, actionId, body, query, headers) {
406
- return await this.client.fetch(`/admin/claims/${id}/inbound/shipping-method/${actionId}`, {
407
- method: "POST",
408
- headers,
409
- body,
410
- query,
411
- });
412
- }
413
- /**
414
- * This method deletes a shipping method for returning items in the claim using the ID of the method's `SHIPPING_ADD` action.
415
- * It sends a request to the [Remove Inbound Shipping](https://docs.acmekit.com/api/admin#claims_deleteclaimsidinboundshippingmethodaction_id)
416
- * API route.
417
- *
418
- * Every shipping method has an `actions` property, whose value is an array of actions.
419
- * You can check the action's name using its `action` property, and use the value of the `id` property.
420
- *
421
- * @param id - The claim's ID.
422
- * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
423
- * @param query - Configure the fields to retrieve in the return.
424
- * @param headers - Headers to pass in the request
425
- * @returns The details of the return associated wth the claim, with a preview of the order when the claim is applied.
426
- *
427
- * @example
428
- * sdk.admin.claim.deleteInboundShipping(
429
- * "claim_123",
430
- * "ordchact_123",
431
- * )
432
- * .then(({ return: returnData }) => {
433
- * console.log(returnData)
434
- * })
435
- */
436
- async deleteInboundShipping(id, actionId, query, headers) {
437
- return await this.client.fetch(`/admin/claims/${id}/inbound/shipping-method/${actionId}`, {
438
- method: "DELETE",
439
- headers,
440
- query,
441
- });
442
- }
443
- /**
444
- * This method adds outbound (or new) items to a claim. These outbound items will have an `ITEM_ADD` action.
445
- * It sends a request to the [Add Outbound Items](https://docs.acmekit.com/api/admin#claims_postclaimsidoutbounditems)
446
- * API route.
447
- *
448
- * @param id - The ID of the claim to add the outbound items to.
449
- * @param body - The items' details.
450
- * @param query - Configure the fields to retrieve in the claim.
451
- * @param headers - Headers to pass in the request
452
- * @returns The details of the claim, with a preview of the order when the claim is applied.
453
- *
454
- * @example
455
- * sdk.admin.claim.addOutboundItems(
456
- * "claim_123",
457
- * {
458
- * items: [{
459
- * id: "orli_123",
460
- * quantity: 1
461
- * }]
462
- * },
463
- * )
464
- * .then(({ claim }) => {
465
- * console.log(claim)
466
- * })
467
- */
468
- async addOutboundItems(id, body, query, headers) {
469
- return await this.client.fetch(`/admin/claims/${id}/outbound/items`, {
470
- method: "POST",
471
- headers,
472
- body,
473
- query,
474
- });
475
- }
476
- /**
477
- * This method updates an outbound (or new) item of a claim using the ID of the item's `ITEM_ADD` action.
478
- * It sends a request to the [Update Outbound Item](https://docs.acmekit.com/api/admin#claims_postclaimsidoutbounditemsaction_id)
479
- * API route.
480
- *
481
- * Every item has an `actions` property, whose value is an array of actions.
482
- * You can check the action's name using its `action` property, and use the value of the `id` property.
483
- *
484
- * @param id - The claim's ID.
485
- * @param actionId - The id of the new claim item's `ITEM_ADD` action.
486
- * @param body - The item's details.
487
- * @param query - Configure the fields to retrieve in the claim.
488
- * @param headers - Headers to pass in the request
489
- * @returns The details of the claim, with a preview of the order when the claim is applied.
490
- *
491
- * @example
492
- * sdk.admin.claim.updateOutboundItem(
493
- * "claim_123",
494
- * "ordchact_123",
495
- * {
496
- * quantity: 1
497
- * },
498
- * )
499
- * .then(({ claim }) => {
500
- * console.log(claim)
501
- * })
502
- */
503
- async updateOutboundItem(id, actionId, body, query, headers) {
504
- return await this.client.fetch(`/admin/claims/${id}/outbound/items/${actionId}`, {
505
- method: "POST",
506
- headers,
507
- body,
508
- query,
509
- });
510
- }
511
- /**
512
- * This method removes an outbound (or new) item from a claim using the ID of the item's `ITEM_ADD` action.
513
- * It sends a request to the [Remove Outbound Item](https://docs.acmekit.com/api/admin#claims_deleteclaimsidoutbounditemsaction_id)
514
- * API route.
515
- *
516
- * Every item has an `actions` property, whose value is an array of actions.
517
- * You can check the action's name using its `action` property, and use the value of the `id` property.
518
- *
519
- * @param id - The claim's ID.
520
- * @param actionId - The id of the new claim item's `ITEM_ADD` action.
521
- * @param query - Configure the fields to retrieve in the claim.
522
- * @param headers - Headers to pass in the request
523
- * @returns The details of the claim, with a preview of the order when the claim is applied.
524
- *
525
- * @example
526
- * sdk.admin.claim.removeOutboundItem(
527
- * "claim_123",
528
- * "ordchact_123",
529
- * )
530
- * .then(({ claim }) => {
531
- * console.log(claim)
532
- * })
533
- */
534
- async removeOutboundItem(id, actionId, query, headers) {
535
- return await this.client.fetch(`/admin/claims/${id}/outbound/items/${actionId}`, {
536
- method: "DELETE",
537
- headers,
538
- query,
539
- });
540
- }
541
- /**
542
- * This method adds outbound an outbound shipping method to a claim.
543
- * The outbound shipping method will have a `SHIPPING_ADD` action.
544
- *
545
- * This method sends a request to the
546
- * [Add Outbound Shipping](https://docs.acmekit.com/api/admin#claims_postclaimsidoutboundshippingmethod)
547
- * API route.
548
- *
549
- * @param id - The claim's ID.
550
- * @param body - The shipping method's details.
551
- * @param query - Configure the fields to retrieve in the claim.
552
- * @param headers - Headers to pass in the request
553
- * @returns The details of the claim, with a preview of the order when the claim is applied.
554
- *
555
- * @example
556
- * sdk.admin.claim.addOutboundShipping(
557
- * "claim_123",
558
- * {
559
- * shipping_option_id: "so_123",
560
- * custom_amount: 10
561
- * },
562
- * )
563
- * .then(({ claim }) => {
564
- * console.log(claim)
565
- * })
566
- */
567
- async addOutboundShipping(id, body, query, headers) {
568
- return await this.client.fetch(`/admin/claims/${id}/outbound/shipping-method`, {
569
- method: "POST",
570
- headers,
571
- body,
572
- query,
573
- });
574
- }
575
- /**
576
- * This method updates the shipping method for delivering outbound items in a claim using the ID of the method's `SHIPPING_ADD` action.
577
- * It sends a request to the [Update Outbound Shipping](https://docs.acmekit.com/api/admin#claims_postclaimsidoutboundshippingmethodaction_id)
578
- * API route.
579
- *
580
- * Every shipping method has an `actions` property, whose value is an array of actions.
581
- * You can check the action's name using its `action` property, and use the value of the `id` property.
582
- *
583
- * @param id - The claim's ID.
584
- * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
585
- * @param body - The shipping method's details.
586
- * @param query - Configure the fields to retrieve in the claim.
587
- * @param headers - Headers to pass in the request
588
- * @returns The details of the claim, with a preview of the order when the claim is applied.
589
- *
590
- * @example
591
- * sdk.admin.claim.updateOutboundShipping(
592
- * "claim_123",
593
- * "ordchact_123",
594
- * {
595
- * custom_amount: 10
596
- * },
597
- * )
598
- * .then(({ claim }) => {
599
- * console.log(claim)
600
- * })
601
- */
602
- async updateOutboundShipping(id, actionId, body, query, headers) {
603
- return await this.client.fetch(`/admin/claims/${id}/outbound/shipping-method/${actionId}`, {
604
- method: "POST",
605
- headers,
606
- body,
607
- query,
608
- });
609
- }
610
- /**
611
- * This method deletes the shipping method for delivering outbound items in the claim using the ID of the method's `SHIPPING_ADD` action.
612
- *
613
- * Every shipping method has an `actions` property, whose value is an array of actions.
614
- * You can check the action's name using its `action` property, and use the value of the `id` property.
615
- *
616
- * @param id - The claim's ID.
617
- * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
618
- * @param query - Configure the fields to retrieve in the claim.
619
- * @param headers - Headers to pass in the request
620
- * @returns The details of the claim, with a preview of the order when the claim is applied.
621
- *
622
- * @example
623
- * sdk.admin.claim.deleteOutboundShipping(
624
- * "claim_123",
625
- * "ordchact_123",
626
- * )
627
- * .then(({ claim }) => {
628
- * console.log(claim)
629
- * })
630
- */
631
- async deleteOutboundShipping(id, actionId, query, headers) {
632
- return await this.client.fetch(`/admin/claims/${id}/outbound/shipping-method/${actionId}`, {
633
- method: "DELETE",
634
- headers,
635
- query,
636
- });
637
- }
638
- /**
639
- * This method confirms a claim request, applying its changes on the associated order.
640
- * It sends a request to the [Confirm Claim Request](https://docs.acmekit.com/api/admin#claims_postclaimsidrequest)
641
- * API route.
642
- *
643
- * @param id - The claim's ID.
644
- * @param body - The confirmation details.
645
- * @param query - Configure the fields to retrieve in the claim.
646
- * @param headers - Headers to pass in the request
647
- * @returns The details of the claim and its associated return, with a preview of the order when the claim is applied.
648
- *
649
- * @example
650
- * sdk.admin.claim.request(
651
- * "claim_123",
652
- * {},
653
- * )
654
- * .then(({ claim }) => {
655
- * console.log(claim)
656
- * })
657
- */
658
- async request(id, body, query, headers) {
659
- return await this.client.fetch(`/admin/claims/${id}/request`, {
660
- method: "POST",
661
- headers,
662
- body,
663
- query,
664
- });
665
- }
666
- /**
667
- * This method cancels a requested claim. It sends a request to the
668
- * [Cancel Claim Request](https://docs.acmekit.com/api/admin#claims_deleteclaimsidrequest)
669
- * API route.
670
- *
671
- * @param id - The claim's ID.
672
- * @param query - Configure the fields to retrieve in the claim.
673
- * @param headers - Headers to pass in the request
674
- * @returns The cancelation's details.
675
- *
676
- * @example
677
- * sdk.admin.claim.cancelRequest(
678
- * "claim_123",
679
- * )
680
- * .then(({ deleted }) => {
681
- * console.log(deleted)
682
- * })
683
- */
684
- async cancelRequest(id, query, headers) {
685
- return await this.client.fetch(`/admin/claims/${id}/request`, {
686
- method: "DELETE",
687
- headers,
688
- query,
689
- });
690
- }
691
- }
692
- exports.Claim = Claim;
693
- //# sourceMappingURL=claim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claim.js","sourceRoot":"","sources":["../../src/admin/claim.ts"],"names":[],"mappings":";;;AAKA,MAAa,KAAK;IAKhB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,KAAK,CAAC,IAAI,CAAC,KAAsC,EAAE,OAAuB;QACxE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,eAAe,EACf;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CACV,IAAgC,EAChC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,eAAe,EACf;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CACV,EAAU,EACV,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,SAAS,EAC5B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,QAAQ,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