@medusajs/js-sdk 0.0.2-snapshot-20240925111619 → 0.0.2-snapshot-20240926160837

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. package/dist/admin/api-key.js +5 -1
  2. package/dist/admin/api-key.js.map +1 -1
  3. package/dist/admin/campaign.js +5 -1
  4. package/dist/admin/campaign.js.map +1 -1
  5. package/dist/admin/claim.js +5 -1
  6. package/dist/admin/claim.js.map +1 -1
  7. package/dist/admin/currency.js +5 -1
  8. package/dist/admin/currency.js.map +1 -1
  9. package/dist/admin/customer-group.js +5 -1
  10. package/dist/admin/customer-group.js.map +1 -1
  11. package/dist/admin/customer.d.ts.map +1 -1
  12. package/dist/admin/customer.js +5 -1
  13. package/dist/admin/customer.js.map +1 -1
  14. package/dist/admin/exchange.js +5 -1
  15. package/dist/admin/exchange.js.map +1 -1
  16. package/dist/admin/fulfillment-provider.js +5 -1
  17. package/dist/admin/fulfillment-provider.js.map +1 -1
  18. package/dist/admin/fulfillment-set.js +5 -1
  19. package/dist/admin/fulfillment-set.js.map +1 -1
  20. package/dist/admin/fulfillment.d.ts.map +1 -1
  21. package/dist/admin/fulfillment.js +5 -1
  22. package/dist/admin/fulfillment.js.map +1 -1
  23. package/dist/admin/index.js +90 -83
  24. package/dist/admin/index.js.map +1 -1
  25. package/dist/admin/inventory-item.js +5 -1
  26. package/dist/admin/inventory-item.js.map +1 -1
  27. package/dist/admin/invite.d.ts.map +1 -1
  28. package/dist/admin/invite.js +5 -1
  29. package/dist/admin/invite.js.map +1 -1
  30. package/dist/admin/notification.js +5 -1
  31. package/dist/admin/notification.js.map +1 -1
  32. package/dist/admin/order-edit.js +5 -1
  33. package/dist/admin/order-edit.js.map +1 -1
  34. package/dist/admin/order.d.ts.map +1 -1
  35. package/dist/admin/order.js +5 -1
  36. package/dist/admin/order.js.map +1 -1
  37. package/dist/admin/payment-collection.js +5 -1
  38. package/dist/admin/payment-collection.js.map +1 -1
  39. package/dist/admin/payment.js +5 -1
  40. package/dist/admin/payment.js.map +1 -1
  41. package/dist/admin/price-list.js +5 -1
  42. package/dist/admin/price-list.js.map +1 -1
  43. package/dist/admin/price-preference.js +5 -1
  44. package/dist/admin/price-preference.js.map +1 -1
  45. package/dist/admin/product-category.js +5 -1
  46. package/dist/admin/product-category.js.map +1 -1
  47. package/dist/admin/product-collection.js +5 -1
  48. package/dist/admin/product-collection.js.map +1 -1
  49. package/dist/admin/product-tag.js +5 -1
  50. package/dist/admin/product-tag.js.map +1 -1
  51. package/dist/admin/product-type.js +5 -1
  52. package/dist/admin/product-type.js.map +1 -1
  53. package/dist/admin/product-variant.js +5 -1
  54. package/dist/admin/product-variant.js.map +1 -1
  55. package/dist/admin/product.js +5 -1
  56. package/dist/admin/product.js.map +1 -1
  57. package/dist/admin/promotion.js +5 -1
  58. package/dist/admin/promotion.js.map +1 -1
  59. package/dist/admin/refund-reasons.js +5 -1
  60. package/dist/admin/refund-reasons.js.map +1 -1
  61. package/dist/admin/region.d.ts.map +1 -1
  62. package/dist/admin/region.js +5 -1
  63. package/dist/admin/region.js.map +1 -1
  64. package/dist/admin/reservation.js +3 -1
  65. package/dist/admin/reservation.js.map +1 -1
  66. package/dist/admin/return-reason.js +5 -1
  67. package/dist/admin/return-reason.js.map +1 -1
  68. package/dist/admin/return.js +5 -1
  69. package/dist/admin/return.js.map +1 -1
  70. package/dist/admin/sales-channel.js +5 -1
  71. package/dist/admin/sales-channel.js.map +1 -1
  72. package/dist/admin/shipping-option.js +5 -1
  73. package/dist/admin/shipping-option.js.map +1 -1
  74. package/dist/admin/shipping-profile.js +5 -1
  75. package/dist/admin/shipping-profile.js.map +1 -1
  76. package/dist/admin/stock-location.js +5 -1
  77. package/dist/admin/stock-location.js.map +1 -1
  78. package/dist/admin/store.js +5 -1
  79. package/dist/admin/store.js.map +1 -1
  80. package/dist/admin/tax-rate.js +5 -1
  81. package/dist/admin/tax-rate.js.map +1 -1
  82. package/dist/admin/tax-region.js +5 -1
  83. package/dist/admin/tax-region.js.map +1 -1
  84. package/dist/admin/upload.d.ts.map +1 -1
  85. package/dist/admin/upload.js +5 -1
  86. package/dist/admin/upload.js.map +1 -1
  87. package/dist/admin/user.js +5 -1
  88. package/dist/admin/user.js.map +1 -1
  89. package/dist/admin/workflow-execution.js +5 -1
  90. package/dist/admin/workflow-execution.js.map +1 -1
  91. package/dist/auth/index.d.ts.map +1 -1
  92. package/dist/auth/index.js +5 -1
  93. package/dist/auth/index.js.map +1 -1
  94. package/dist/client.d.ts.map +1 -1
  95. package/dist/client.js +16 -8
  96. package/dist/client.js.map +1 -1
  97. package/dist/esm/admin/api-key.d.ts +15 -0
  98. package/dist/esm/admin/api-key.d.ts.map +1 -0
  99. package/dist/esm/admin/api-key.js +75 -0
  100. package/dist/esm/admin/api-key.js.map +1 -0
  101. package/dist/esm/admin/campaign.d.ts +14 -0
  102. package/dist/esm/admin/campaign.d.ts.map +1 -0
  103. package/dist/esm/admin/campaign.js +66 -0
  104. package/dist/esm/admin/campaign.js.map +1 -0
  105. package/dist/esm/admin/claim.d.ts +30 -0
  106. package/dist/esm/admin/claim.d.ts.map +1 -0
  107. package/dist/esm/admin/claim.js +223 -0
  108. package/dist/esm/admin/claim.js.map +1 -0
  109. package/dist/esm/admin/currency.d.ts +10 -0
  110. package/dist/esm/admin/currency.d.ts.map +1 -0
  111. package/dist/esm/admin/currency.js +31 -0
  112. package/dist/esm/admin/currency.js.map +1 -0
  113. package/dist/esm/admin/customer-group.d.ts +14 -0
  114. package/dist/esm/admin/customer-group.d.ts.map +1 -0
  115. package/dist/esm/admin/customer-group.js +70 -0
  116. package/dist/esm/admin/customer-group.js.map +1 -0
  117. package/dist/esm/admin/customer.d.ts +21 -0
  118. package/dist/esm/admin/customer.d.ts.map +1 -0
  119. package/dist/esm/admin/customer.js +59 -0
  120. package/dist/esm/admin/customer.js.map +1 -0
  121. package/dist/esm/admin/exchange.d.ts +30 -0
  122. package/dist/esm/admin/exchange.d.ts.map +1 -0
  123. package/dist/esm/admin/exchange.js +223 -0
  124. package/dist/esm/admin/exchange.js.map +1 -0
  125. package/dist/esm/admin/fulfillment-provider.d.ts +9 -0
  126. package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -0
  127. package/dist/esm/admin/fulfillment-provider.js +24 -0
  128. package/dist/esm/admin/fulfillment-provider.js.map +1 -0
  129. package/dist/esm/admin/fulfillment-set.d.ts +13 -0
  130. package/dist/esm/admin/fulfillment-set.d.ts.map +1 -0
  131. package/dist/esm/admin/fulfillment-set.js +60 -0
  132. package/dist/esm/admin/fulfillment-set.js.map +1 -0
  133. package/dist/esm/admin/fulfillment.d.ts +11 -0
  134. package/dist/esm/admin/fulfillment.d.ts.map +1 -0
  135. package/dist/esm/admin/fulfillment.js +44 -0
  136. package/dist/esm/admin/fulfillment.js.map +1 -0
  137. package/dist/esm/admin/index.d.ts +87 -0
  138. package/dist/esm/admin/index.d.ts.map +1 -0
  139. package/dist/esm/admin/index.js +87 -0
  140. package/dist/esm/admin/index.js.map +1 -0
  141. package/dist/esm/admin/inventory-item.d.ts +17 -0
  142. package/dist/esm/admin/inventory-item.d.ts.map +1 -0
  143. package/dist/esm/admin/inventory-item.js +95 -0
  144. package/dist/esm/admin/inventory-item.js.map +1 -0
  145. package/dist/esm/admin/invite.d.ts +26 -0
  146. package/dist/esm/admin/invite.d.ts.map +1 -0
  147. package/dist/esm/admin/invite.js +79 -0
  148. package/dist/esm/admin/invite.js.map +1 -0
  149. package/dist/esm/admin/notification.d.ts +10 -0
  150. package/dist/esm/admin/notification.d.ts.map +1 -0
  151. package/dist/esm/admin/notification.js +33 -0
  152. package/dist/esm/admin/notification.js.map +1 -0
  153. package/dist/esm/admin/order-edit.d.ts +16 -0
  154. package/dist/esm/admin/order-edit.d.ts.map +1 -0
  155. package/dist/esm/admin/order-edit.js +91 -0
  156. package/dist/esm/admin/order-edit.js.map +1 -0
  157. package/dist/esm/admin/order.d.ts +32 -0
  158. package/dist/esm/admin/order.d.ts.map +1 -0
  159. package/dist/esm/admin/order.js +94 -0
  160. package/dist/esm/admin/order.js.map +1 -0
  161. package/dist/esm/admin/payment-collection.d.ts +13 -0
  162. package/dist/esm/admin/payment-collection.d.ts.map +1 -0
  163. package/dist/esm/admin/payment-collection.js +59 -0
  164. package/dist/esm/admin/payment-collection.js.map +1 -0
  165. package/dist/esm/admin/payment.d.ts +13 -0
  166. package/dist/esm/admin/payment.d.ts.map +1 -0
  167. package/dist/esm/admin/payment.js +59 -0
  168. package/dist/esm/admin/payment.js.map +1 -0
  169. package/dist/esm/admin/price-list.d.ts +15 -0
  170. package/dist/esm/admin/price-list.d.ts.map +1 -0
  171. package/dist/esm/admin/price-list.js +81 -0
  172. package/dist/esm/admin/price-list.js.map +1 -0
  173. package/dist/esm/admin/price-preference.d.ts +13 -0
  174. package/dist/esm/admin/price-preference.d.ts.map +1 -0
  175. package/dist/esm/admin/price-preference.js +61 -0
  176. package/dist/esm/admin/price-preference.js.map +1 -0
  177. package/dist/esm/admin/product-category.d.ts +14 -0
  178. package/dist/esm/admin/product-category.d.ts.map +1 -0
  179. package/dist/esm/admin/product-category.js +69 -0
  180. package/dist/esm/admin/product-category.js.map +1 -0
  181. package/dist/esm/admin/product-collection.d.ts +14 -0
  182. package/dist/esm/admin/product-collection.d.ts.map +1 -0
  183. package/dist/esm/admin/product-collection.js +68 -0
  184. package/dist/esm/admin/product-collection.js.map +1 -0
  185. package/dist/esm/admin/product-tag.d.ts +13 -0
  186. package/dist/esm/admin/product-tag.d.ts.map +1 -0
  187. package/dist/esm/admin/product-tag.js +59 -0
  188. package/dist/esm/admin/product-tag.js.map +1 -0
  189. package/dist/esm/admin/product-type.d.ts +13 -0
  190. package/dist/esm/admin/product-type.d.ts.map +1 -0
  191. package/dist/esm/admin/product-type.js +59 -0
  192. package/dist/esm/admin/product-type.js.map +1 -0
  193. package/dist/esm/admin/product-variant.d.ts +9 -0
  194. package/dist/esm/admin/product-variant.d.ts.map +1 -0
  195. package/dist/esm/admin/product-variant.js +23 -0
  196. package/dist/esm/admin/product-variant.js.map +1 -0
  197. package/dist/esm/admin/product.d.ts +29 -0
  198. package/dist/esm/admin/product.d.ts.map +1 -0
  199. package/dist/esm/admin/product.js +211 -0
  200. package/dist/esm/admin/product.js.map +1 -0
  201. package/dist/esm/admin/promotion.d.ts +19 -0
  202. package/dist/esm/admin/promotion.d.ts.map +1 -0
  203. package/dist/esm/admin/promotion.js +110 -0
  204. package/dist/esm/admin/promotion.js.map +1 -0
  205. package/dist/esm/admin/refund-reasons.d.ts +9 -0
  206. package/dist/esm/admin/refund-reasons.d.ts.map +1 -0
  207. package/dist/esm/admin/refund-reasons.js +23 -0
  208. package/dist/esm/admin/refund-reasons.js.map +1 -0
  209. package/dist/esm/admin/region.d.ts +21 -0
  210. package/dist/esm/admin/region.d.ts.map +1 -0
  211. package/dist/esm/admin/region.js +59 -0
  212. package/dist/esm/admin/region.js.map +1 -0
  213. package/dist/esm/admin/reservation.d.ts +14 -0
  214. package/dist/esm/admin/reservation.d.ts.map +1 -0
  215. package/dist/esm/admin/reservation.js +62 -0
  216. package/dist/esm/admin/reservation.js.map +1 -0
  217. package/dist/esm/admin/return-reason.d.ts +13 -0
  218. package/dist/esm/admin/return-reason.d.ts.map +1 -0
  219. package/dist/esm/admin/return-reason.js +60 -0
  220. package/dist/esm/admin/return-reason.js.map +1 -0
  221. package/dist/esm/admin/return.d.ts +30 -0
  222. package/dist/esm/admin/return.d.ts.map +1 -0
  223. package/dist/esm/admin/return.js +224 -0
  224. package/dist/esm/admin/return.js.map +1 -0
  225. package/dist/esm/admin/sales-channel.d.ts +15 -0
  226. package/dist/esm/admin/sales-channel.d.ts.map +1 -0
  227. package/dist/esm/admin/sales-channel.js +79 -0
  228. package/dist/esm/admin/sales-channel.js.map +1 -0
  229. package/dist/esm/admin/shipping-option.d.ts +13 -0
  230. package/dist/esm/admin/shipping-option.d.ts.map +1 -0
  231. package/dist/esm/admin/shipping-option.js +61 -0
  232. package/dist/esm/admin/shipping-option.js.map +1 -0
  233. package/dist/esm/admin/shipping-profile.d.ts +13 -0
  234. package/dist/esm/admin/shipping-profile.d.ts.map +1 -0
  235. package/dist/esm/admin/shipping-profile.js +61 -0
  236. package/dist/esm/admin/shipping-profile.js.map +1 -0
  237. package/dist/esm/admin/stock-location.d.ts +16 -0
  238. package/dist/esm/admin/stock-location.d.ts.map +1 -0
  239. package/dist/esm/admin/stock-location.js +88 -0
  240. package/dist/esm/admin/stock-location.js.map +1 -0
  241. package/dist/esm/admin/store.d.ts +11 -0
  242. package/dist/esm/admin/store.d.ts.map +1 -0
  243. package/dist/esm/admin/store.js +43 -0
  244. package/dist/esm/admin/store.js.map +1 -0
  245. package/dist/esm/admin/tax-rate.d.ts +13 -0
  246. package/dist/esm/admin/tax-rate.d.ts.map +1 -0
  247. package/dist/esm/admin/tax-rate.js +62 -0
  248. package/dist/esm/admin/tax-rate.js.map +1 -0
  249. package/dist/esm/admin/tax-region.d.ts +12 -0
  250. package/dist/esm/admin/tax-region.d.ts.map +1 -0
  251. package/dist/esm/admin/tax-region.js +53 -0
  252. package/dist/esm/admin/tax-region.js.map +1 -0
  253. package/dist/esm/admin/upload.d.ts +15 -0
  254. package/dist/esm/admin/upload.d.ts.map +1 -0
  255. package/dist/esm/admin/upload.js +59 -0
  256. package/dist/esm/admin/upload.js.map +1 -0
  257. package/dist/esm/admin/user.d.ts +14 -0
  258. package/dist/esm/admin/user.d.ts.map +1 -0
  259. package/dist/esm/admin/user.js +67 -0
  260. package/dist/esm/admin/user.js.map +1 -0
  261. package/dist/esm/admin/workflow-execution.d.ts +10 -0
  262. package/dist/esm/admin/workflow-execution.d.ts.map +1 -0
  263. package/dist/esm/admin/workflow-execution.js +30 -0
  264. package/dist/esm/admin/workflow-execution.js.map +1 -0
  265. package/dist/esm/auth/index.d.ts +17 -0
  266. package/dist/esm/auth/index.d.ts.map +1 -0
  267. package/dist/esm/auth/index.js +78 -0
  268. package/dist/esm/auth/index.js.map +1 -0
  269. package/dist/esm/client.d.ts +59 -0
  270. package/dist/esm/client.d.ts.map +1 -0
  271. package/dist/esm/client.js +229 -0
  272. package/dist/esm/client.js.map +1 -0
  273. package/dist/esm/index.d.ts +15 -0
  274. package/dist/esm/index.d.ts.map +1 -0
  275. package/dist/esm/index.js +15 -0
  276. package/dist/esm/index.js.map +1 -0
  277. package/dist/esm/store/index.d.ts +116 -0
  278. package/dist/esm/store/index.d.ts.map +1 -0
  279. package/dist/esm/store/index.js +240 -0
  280. package/dist/esm/store/index.js.map +1 -0
  281. package/dist/esm/types.d.ts +47 -0
  282. package/dist/esm/types.d.ts.map +1 -0
  283. package/dist/esm/types.js +2 -0
  284. package/dist/esm/types.js.map +1 -0
  285. package/dist/index.js +14 -10
  286. package/dist/index.js.map +1 -1
  287. package/dist/store/index.d.ts.map +1 -1
  288. package/dist/store/index.js +5 -1
  289. package/dist/store/index.js.map +1 -1
  290. package/dist/types.js +2 -1
  291. package/package.json +15 -7
@@ -0,0 +1,59 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class Payment {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ list(query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return yield this.client.fetch(`/admin/payments`, {
17
+ query,
18
+ headers,
19
+ });
20
+ });
21
+ }
22
+ listPaymentProviders(query, headers) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ return yield this.client.fetch(`/admin/payments/payment-providers`, {
25
+ query,
26
+ headers,
27
+ });
28
+ });
29
+ }
30
+ retrieve(id, query, headers) {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ return yield this.client.fetch(`/admin/payments/${id}`, {
33
+ query,
34
+ headers,
35
+ });
36
+ });
37
+ }
38
+ capture(id, body, query, headers) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ return yield this.client.fetch(`/admin/payments/${id}/capture`, {
41
+ method: "POST",
42
+ headers,
43
+ body,
44
+ query,
45
+ });
46
+ });
47
+ }
48
+ refund(id, body, query, headers) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ return yield this.client.fetch(`/admin/payments/${id}/refund`, {
51
+ method: "POST",
52
+ headers,
53
+ body,
54
+ query,
55
+ });
56
+ });
57
+ }
58
+ }
59
+ //# sourceMappingURL=payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/admin/payment.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,OAAO;IAElB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,IAAI,CAAC,KAAqC,EAAE,OAAuB;;YACvE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EACjB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,oBAAoB,CACxB,KAAgD,EAChD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mCAAmC,EACnC;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAqC,EACrC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,EAAE,EAAE,EACvB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,OAAO,CACX,EAAU,EACV,IAAmC,EACnC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,EAAE,UAAU,EAC/B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAkC,EAClC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,EAAE,SAAS,EAC9B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,15 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class PriceList {
5
+ private client;
6
+ constructor(client: Client);
7
+ retrieve(id: string, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
8
+ list(query?: HttpTypes.AdminPriceListListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListListResponse>;
9
+ create(body: HttpTypes.AdminCreatePriceList, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
10
+ update(id: string, body: HttpTypes.AdminUpdatePriceList, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
11
+ delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListDeleteResponse>;
12
+ batchPrices(id: string, body: HttpTypes.AdminBatchPriceListPrice, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
13
+ linkProducts(id: string, body: HttpTypes.AdminLinkPriceListProducts, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
14
+ }
15
+ //# sourceMappingURL=price-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-list.d.ts","sourceRoot":"","sources":["../../../src/admin/price-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM;IAIpB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,oBAAoB,EACtC,OAAO,CAAC,EAAE,aAAa;IAYnB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,wBAAwB,EAC1C,OAAO,CAAC,EAAE,aAAa;IAYnB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,oBAAoB,EACpC,KAAK,CAAC,EAAE,SAAS,CAAC,oBAAoB,EACtC,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,oBAAoB,EACpC,KAAK,CAAC,EAAE,SAAS,CAAC,oBAAoB,EACtC,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,WAAW,CACf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,SAAS,CAAC,oBAAoB,EACtC,OAAO,CAAC,EAAE,aAAa;IAanB,YAAY,CAChB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,oBAAoB,EACtC,OAAO,CAAC,EAAE,aAAa;CAY1B"}
@@ -0,0 +1,81 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class PriceList {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ retrieve(id, query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return this.client.fetch(`/admin/price-lists/${id}`, {
17
+ method: "GET",
18
+ headers,
19
+ query,
20
+ });
21
+ });
22
+ }
23
+ list(query, headers) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ return this.client.fetch(`/admin/price-lists`, {
26
+ method: "GET",
27
+ headers,
28
+ query,
29
+ });
30
+ });
31
+ }
32
+ create(body, query, headers) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return this.client.fetch(`/admin/price-lists`, {
35
+ method: "POST",
36
+ headers,
37
+ body,
38
+ query,
39
+ });
40
+ });
41
+ }
42
+ update(id, body, query, headers) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.client.fetch(`/admin/price-lists/${id}`, {
45
+ method: "POST",
46
+ headers,
47
+ body,
48
+ query,
49
+ });
50
+ });
51
+ }
52
+ delete(id, headers) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return this.client.fetch(`/admin/price-lists/${id}`, {
55
+ method: "DELETE",
56
+ headers,
57
+ });
58
+ });
59
+ }
60
+ batchPrices(id, body, query, headers) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ return this.client.fetch(`/admin/price-lists/${id}/prices/batch`, {
63
+ method: "POST",
64
+ headers,
65
+ body,
66
+ query,
67
+ });
68
+ });
69
+ }
70
+ linkProducts(id, body, query, headers) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ return this.client.fetch(`/admin/price-lists/${id}/products`, {
73
+ method: "POST",
74
+ headers,
75
+ body,
76
+ query,
77
+ });
78
+ });
79
+ }
80
+ }
81
+ //# sourceMappingURL=price-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-list.js","sourceRoot":"","sources":["../../../src/admin/price-list.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,SAAS;IAGpB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,QAAQ,CACZ,EAAU,EACV,KAAsC,EACtC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA0C,EAC1C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,IAAoC,EACpC,KAAsC,EACtC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAoC,EACpC,KAAsC,EACtC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,WAAW,CACf,EAAU,EACV,IAAwC,EACxC,KAAsC,EACtC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,eAAe,EACvC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,YAAY,CAChB,EAAU,EACV,IAA0C,EAC1C,KAAsC,EACtC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,WAAW,EACnC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,13 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class PricePreference {
5
+ private client;
6
+ constructor(client: Client);
7
+ retrieve(id: string, query?: HttpTypes.AdminPricePreferenceParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPricePreferenceResponse>;
8
+ list(query?: HttpTypes.AdminPricePreferenceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPricePreferenceListResponse>;
9
+ create(body: HttpTypes.AdminCreatePricePreference, query?: HttpTypes.AdminPricePreferenceParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPricePreferenceResponse>;
10
+ update(id: string, body: HttpTypes.AdminUpdatePricePreference, query?: HttpTypes.AdminPricePreferenceParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPricePreferenceResponse>;
11
+ delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminPricePreferenceDeleteResponse>;
12
+ }
13
+ //# sourceMappingURL=price-preference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-preference.d.ts","sourceRoot":"","sources":["../../../src/admin/price-preference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM;IAIpB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAYnB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,8BAA8B,EAChD,OAAO,CAAC,EAAE,aAAa;IAYnB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
@@ -0,0 +1,61 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class PricePreference {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ retrieve(id, query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return this.client.fetch(`/admin/price-preferences/${id}`, {
17
+ method: "GET",
18
+ headers,
19
+ query,
20
+ });
21
+ });
22
+ }
23
+ list(query, headers) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ return this.client.fetch(`/admin/price-preferences`, {
26
+ method: "GET",
27
+ headers,
28
+ query,
29
+ });
30
+ });
31
+ }
32
+ create(body, query, headers) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return this.client.fetch(`/admin/price-preferences`, {
35
+ method: "POST",
36
+ headers,
37
+ body,
38
+ query,
39
+ });
40
+ });
41
+ }
42
+ update(id, body, query, headers) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.client.fetch(`/admin/price-preferences/${id}`, {
45
+ method: "POST",
46
+ headers,
47
+ body,
48
+ query,
49
+ });
50
+ });
51
+ }
52
+ delete(id, headers) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return this.client.fetch(`/admin/price-preferences/${id}`, {
55
+ method: "DELETE",
56
+ headers,
57
+ });
58
+ });
59
+ }
60
+ }
61
+ //# sourceMappingURL=price-preference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-preference.js","sourceRoot":"","sources":["../../../src/admin/price-preference.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,eAAe;IAG1B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,QAAQ,CACZ,EAAU,EACV,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,4BAA4B,EAAE,EAAE,EAChC;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAAgD,EAChD,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,0BAA0B,EAC1B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,IAA0C,EAC1C,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,0BAA0B,EAC1B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAA0C,EAC1C,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,4BAA4B,EAAE,EAAE,EAChC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,4BAA4B,EAAE,EAAE,EAChC;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,14 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class ProductCategory {
5
+ private client;
6
+ constructor(client: Client);
7
+ create(body: HttpTypes.AdminCreateProductCategory, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
8
+ update(id: string, body: HttpTypes.AdminUpdateProductCategory, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
9
+ list(query?: HttpTypes.AdminProductCategoryListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryListResponse>;
10
+ retrieve(id: string, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
11
+ delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryDeleteResponse>;
12
+ updateProducts(id: string, body: HttpTypes.AdminUpdateProductCategoryProducts, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
13
+ }
14
+ //# sourceMappingURL=product-category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../../src/admin/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAanB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,8BAA8B,EAChD,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,kCAAkC,EAClD,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;CAY1B"}
@@ -0,0 +1,69 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class ProductCategory {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ create(body, query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return this.client.fetch(`/admin/product-categories`, {
17
+ method: "POST",
18
+ headers,
19
+ body,
20
+ query,
21
+ });
22
+ });
23
+ }
24
+ update(id, body, query, headers) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.client.fetch(`/admin/product-categories/${id}`, {
27
+ method: "POST",
28
+ headers,
29
+ body,
30
+ query,
31
+ });
32
+ });
33
+ }
34
+ list(query, headers) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return this.client.fetch(`/admin/product-categories`, {
37
+ headers,
38
+ query: query,
39
+ });
40
+ });
41
+ }
42
+ retrieve(id, query, headers) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.client.fetch(`/admin/product-categories/${id}`, {
45
+ query,
46
+ headers,
47
+ });
48
+ });
49
+ }
50
+ delete(id, headers) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return this.client.fetch(`/admin/product-categories/${id}`, {
53
+ method: "DELETE",
54
+ headers,
55
+ });
56
+ });
57
+ }
58
+ updateProducts(id, body, query, headers) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ return this.client.fetch(`/admin/product-categories/${id}/products`, {
61
+ method: "POST",
62
+ headers,
63
+ body,
64
+ query,
65
+ });
66
+ });
67
+ }
68
+ }
69
+ //# sourceMappingURL=product-category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.js","sourceRoot":"","sources":["../../../src/admin/product-category.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,eAAe;IAE1B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAA0C,EAC1C,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,2BAA2B,EAC3B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAA0C,EAC1C,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,EAAE,EACjC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAAgD,EAChD,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,2BAA2B,EAC3B;gBACE,OAAO;gBACP,KAAK,EAAE,KAAK;aACb,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,EAAE,EACjC;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,EAAE,EACjC;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,cAAc,CAClB,EAAU,EACV,IAAkD,EAClD,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,WAAW,EAC1C;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,14 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class ProductCollection {
5
+ private client;
6
+ constructor(client: Client);
7
+ create(body: HttpTypes.AdminCreateCollection, query?: HttpTypes.AdminCollectionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminCollectionResponse>;
8
+ update(id: string, body: HttpTypes.AdminUpdateCollection, query?: HttpTypes.AdminCollectionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminCollectionResponse>;
9
+ list(queryParams?: HttpTypes.AdminCollectionListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminCollectionListResponse>;
10
+ retrieve(id: string, query?: HttpTypes.AdminCollectionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminCollectionResponse>;
11
+ delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminCollectionDeleteResponse>;
12
+ updateProducts(id: string, body: HttpTypes.AdminUpdateCollectionProducts, headers?: ClientHeaders): Promise<HttpTypes.AdminCollectionResponse>;
13
+ }
14
+ //# sourceMappingURL=product-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-collection.d.ts","sourceRoot":"","sources":["../../../src/admin/product-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,qBAAqB,EACrC,KAAK,CAAC,EAAE,SAAS,CAAC,qBAAqB,EACvC,OAAO,CAAC,EAAE,aAAa;IAYnB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,qBAAqB,EACrC,KAAK,CAAC,EAAE,SAAS,CAAC,qBAAqB,EACvC,OAAO,CAAC,EAAE,aAAa;IAanB,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,yBAAyB,EACjD,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,qBAAqB,EACvC,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,6BAA6B,EAC7C,OAAO,CAAC,EAAE,aAAa;CAW1B"}
@@ -0,0 +1,68 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class ProductCollection {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ create(body, query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return this.client.fetch(`/admin/collections`, {
17
+ method: "POST",
18
+ headers,
19
+ body,
20
+ query,
21
+ });
22
+ });
23
+ }
24
+ update(id, body, query, headers) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.client.fetch(`/admin/collections/${id}`, {
27
+ method: "POST",
28
+ headers,
29
+ body,
30
+ query,
31
+ });
32
+ });
33
+ }
34
+ list(queryParams, headers) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return this.client.fetch(`/admin/collections`, {
37
+ headers,
38
+ query: queryParams,
39
+ });
40
+ });
41
+ }
42
+ retrieve(id, query, headers) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.client.fetch(`/admin/collections/${id}`, {
45
+ query,
46
+ headers,
47
+ });
48
+ });
49
+ }
50
+ delete(id, headers) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return this.client.fetch(`/admin/collections/${id}`, {
53
+ method: "DELETE",
54
+ headers,
55
+ });
56
+ });
57
+ }
58
+ updateProducts(id, body, headers) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ return this.client.fetch(`/admin/collections/${id}/products`, {
61
+ method: "POST",
62
+ headers,
63
+ body,
64
+ });
65
+ });
66
+ }
67
+ }
68
+ //# sourceMappingURL=product-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-collection.js","sourceRoot":"","sources":["../../../src/admin/product-collection.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,iBAAiB;IAE5B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAqC,EACrC,KAAuC,EACvC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IACK,MAAM,CACV,EAAU,EACV,IAAqC,EACrC,KAAuC,EACvC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,WAAiD,EACjD,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;gBACE,OAAO;gBACP,KAAK,EAAE,WAAW;aACnB,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAuC,EACvC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,cAAc,CAClB,EAAU,EACV,IAA6C,EAC7C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,WAAW,EACnC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,13 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class ProductTag {
5
+ private client;
6
+ constructor(client: Client);
7
+ create(body: HttpTypes.AdminCreateProductTag, query?: HttpTypes.AdminProductTagParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTagResponse>;
8
+ update(id: string, body: HttpTypes.AdminUpdateProductTag, query?: HttpTypes.AdminProductTagParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTagResponse>;
9
+ list(query?: HttpTypes.AdminProductTagListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTagListResponse>;
10
+ retrieve(id: string, query?: HttpTypes.AdminProductTagParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTagResponse>;
11
+ delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTagDeleteResponse>;
12
+ }
13
+ //# sourceMappingURL=product-tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-tag.d.ts","sourceRoot":"","sources":["../../../src/admin/product-tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,qBAAqB,EACrC,KAAK,CAAC,EAAE,SAAS,CAAC,qBAAqB,EACvC,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,qBAAqB,EACrC,KAAK,CAAC,EAAE,SAAS,CAAC,qBAAqB,EACvC,OAAO,CAAC,EAAE,aAAa;IAanB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAC3C,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,qBAAqB,EACvC,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
@@ -0,0 +1,59 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class ProductTag {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ create(body, query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return this.client.fetch(`/admin/product-tags`, {
17
+ method: "POST",
18
+ headers,
19
+ body,
20
+ query,
21
+ });
22
+ });
23
+ }
24
+ update(id, body, query, headers) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.client.fetch(`/admin/product-tags/${id}`, {
27
+ method: "POST",
28
+ headers,
29
+ body,
30
+ query,
31
+ });
32
+ });
33
+ }
34
+ list(query, headers) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return this.client.fetch(`/admin/product-tags`, {
37
+ headers,
38
+ query: query,
39
+ });
40
+ });
41
+ }
42
+ retrieve(id, query, headers) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.client.fetch(`/admin/product-tags/${id}`, {
45
+ query,
46
+ headers,
47
+ });
48
+ });
49
+ }
50
+ delete(id, headers) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return this.client.fetch(`/admin/product-tags/${id}`, {
53
+ method: "DELETE",
54
+ headers,
55
+ });
56
+ });
57
+ }
58
+ }
59
+ //# sourceMappingURL=product-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-tag.js","sourceRoot":"","sources":["../../../src/admin/product-tag.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,UAAU;IAErB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAqC,EACrC,KAAuC,EACvC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,qBAAqB,EACrB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAqC,EACrC,KAAuC,EACvC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,uBAAuB,EAAE,EAAE,EAC3B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA2C,EAC3C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,qBAAqB,EACrB;gBACE,OAAO;gBACP,KAAK,EAAE,KAAK;aACb,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAuC,EACvC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,uBAAuB,EAAE,EAAE,EAC3B;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,uBAAuB,EAAE,EAAE,EAC3B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,13 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class ProductType {
5
+ private client;
6
+ constructor(client: Client);
7
+ create(body: HttpTypes.AdminCreateProductType, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeResponse>;
8
+ update(id: string, body: HttpTypes.AdminUpdateProductType, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeResponse>;
9
+ list(query?: HttpTypes.AdminProductTypeListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeListResponse>;
10
+ retrieve(id: string, query?: HttpTypes.AdminProductTypeParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeResponse>;
11
+ delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeDeleteResponse>;
12
+ }
13
+ //# sourceMappingURL=product-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-type.d.ts","sourceRoot":"","sources":["../../../src/admin/product-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,sBAAsB,EACtC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,sBAAsB,EACtC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,sBAAsB,EACxC,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
@@ -0,0 +1,59 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class ProductType {
11
+ constructor(client) {
12
+ this.client = client;
13
+ }
14
+ create(body, query, headers) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return this.client.fetch(`/admin/product-types`, {
17
+ method: "POST",
18
+ headers,
19
+ body,
20
+ query,
21
+ });
22
+ });
23
+ }
24
+ update(id, body, query, headers) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.client.fetch(`/admin/product-types/${id}`, {
27
+ method: "POST",
28
+ headers,
29
+ body,
30
+ query,
31
+ });
32
+ });
33
+ }
34
+ list(query, headers) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return this.client.fetch(`/admin/product-types`, {
37
+ headers,
38
+ query: query,
39
+ });
40
+ });
41
+ }
42
+ retrieve(id, query, headers) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.client.fetch(`/admin/product-types/${id}`, {
45
+ query,
46
+ headers,
47
+ });
48
+ });
49
+ }
50
+ delete(id, headers) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return this.client.fetch(`/admin/product-types/${id}`, {
53
+ method: "DELETE",
54
+ headers,
55
+ });
56
+ });
57
+ }
58
+ }
59
+ //# sourceMappingURL=product-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-type.js","sourceRoot":"","sources":["../../../src/admin/product-type.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,WAAW;IAEtB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAsC,EACtC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EACtB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAsC,EACtC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EAAE,EAAE,EAC5B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EACtB;gBACE,OAAO;gBACP,KAAK,EAAE,KAAK;aACb,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAwC,EACxC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EAAE,EAAE,EAC5B;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EAAE,EAAE,EAC5B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
@@ -0,0 +1,9 @@
1
+ import { HttpTypes } from "@medusajs/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class ProductVariant {
5
+ private client;
6
+ constructor(client: Client);
7
+ list(queryParams?: HttpTypes.AdminProductVariantParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductVariantListResponse>;
8
+ }
9
+ //# sourceMappingURL=product-variant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant.d.ts","sourceRoot":"","sources":["../../../src/admin/product-variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,yBAAyB,EACjD,OAAO,CAAC,EAAE,aAAa;CAU1B"}