@medusajs/types 1.12.0-snapshot-20240412124109 → 1.12.0-snapshot-20240426112214

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. package/dist/api-key/common/api-key.d.ts +4 -0
  2. package/dist/api-key/common/api-key.d.ts.map +1 -1
  3. package/dist/cart/common.d.ts +185 -5
  4. package/dist/cart/common.d.ts.map +1 -1
  5. package/dist/common/batch.d.ts +26 -0
  6. package/dist/common/batch.d.ts.map +1 -0
  7. package/dist/common/batch.js +3 -0
  8. package/dist/common/batch.js.map +1 -0
  9. package/dist/common/common.d.ts +2 -2
  10. package/dist/common/common.d.ts.map +1 -1
  11. package/dist/common/config-module.d.ts +8 -1
  12. package/dist/common/config-module.d.ts.map +1 -1
  13. package/dist/common/index.d.ts +1 -0
  14. package/dist/common/index.d.ts.map +1 -1
  15. package/dist/common/index.js +1 -0
  16. package/dist/common/index.js.map +1 -1
  17. package/dist/currency/common/currency.d.ts +4 -0
  18. package/dist/currency/common/currency.d.ts.map +1 -1
  19. package/dist/customer/common.d.ts +12 -0
  20. package/dist/customer/common.d.ts.map +1 -1
  21. package/dist/file/common.d.ts +11 -0
  22. package/dist/file/common.d.ts.map +1 -1
  23. package/dist/file/index.d.ts +1 -0
  24. package/dist/file/index.d.ts.map +1 -1
  25. package/dist/file/index.js +1 -0
  26. package/dist/file/index.js.map +1 -1
  27. package/dist/file/mutations.d.ts +2 -2
  28. package/dist/file/mutations.d.ts.map +1 -1
  29. package/dist/file/provider.d.ts +2 -2
  30. package/dist/file/provider.d.ts.map +1 -1
  31. package/dist/file/providers/index.d.ts +3 -0
  32. package/dist/file/providers/index.d.ts.map +1 -0
  33. package/dist/file/providers/index.js +19 -0
  34. package/dist/file/providers/index.js.map +1 -0
  35. package/dist/file/providers/local.d.ts +5 -0
  36. package/dist/file/providers/local.d.ts.map +1 -0
  37. package/dist/file/providers/local.js +3 -0
  38. package/dist/file/providers/local.js.map +1 -0
  39. package/dist/file/providers/s3.d.ts +13 -0
  40. package/dist/file/providers/s3.d.ts.map +1 -0
  41. package/dist/file/providers/s3.js +3 -0
  42. package/dist/file/providers/s3.js.map +1 -0
  43. package/dist/file/service.d.ts +25 -1
  44. package/dist/file/service.d.ts.map +1 -1
  45. package/dist/fulfillment/common/fulfillment-provider.d.ts +10 -0
  46. package/dist/fulfillment/common/fulfillment-provider.d.ts.map +1 -1
  47. package/dist/fulfillment/mutations/fulfillment.d.ts +4 -0
  48. package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
  49. package/dist/fulfillment/service.d.ts +21 -1
  50. package/dist/fulfillment/service.d.ts.map +1 -1
  51. package/dist/http/campaign/admin/campaign.d.ts +32 -0
  52. package/dist/http/campaign/admin/campaign.d.ts.map +1 -0
  53. package/dist/http/campaign/admin/campaign.js +3 -0
  54. package/dist/http/campaign/admin/campaign.js.map +1 -0
  55. package/dist/http/campaign/admin/index.d.ts +2 -0
  56. package/dist/http/campaign/admin/index.d.ts.map +1 -0
  57. package/dist/http/campaign/admin/index.js +18 -0
  58. package/dist/http/campaign/admin/index.js.map +1 -0
  59. package/dist/http/campaign/index.d.ts +2 -0
  60. package/dist/http/campaign/index.d.ts.map +1 -0
  61. package/dist/http/campaign/index.js +18 -0
  62. package/dist/http/campaign/index.js.map +1 -0
  63. package/dist/http/common/deleted-response.d.ts +1 -1
  64. package/dist/http/common/deleted-response.d.ts.map +1 -1
  65. package/dist/http/fulfillment/admin/fulfillment.d.ts +7 -1
  66. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -1
  67. package/dist/http/fulfillment/admin/shipping-option.d.ts +1 -1
  68. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
  69. package/dist/http/fulfillment/admin/shipping-profile.d.ts +6 -1
  70. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -1
  71. package/dist/http/index.d.ts +5 -0
  72. package/dist/http/index.d.ts.map +1 -1
  73. package/dist/http/index.js +5 -0
  74. package/dist/http/index.js.map +1 -1
  75. package/dist/http/order/admin/index.d.ts +268 -0
  76. package/dist/http/order/admin/index.d.ts.map +1 -0
  77. package/dist/http/order/admin/index.js +3 -0
  78. package/dist/http/order/admin/index.js.map +1 -0
  79. package/dist/http/order/index.d.ts +2 -0
  80. package/dist/http/order/index.d.ts.map +1 -0
  81. package/dist/http/order/index.js +18 -0
  82. package/dist/http/order/index.js.map +1 -0
  83. package/dist/http/promotion/admin/index.d.ts +4 -0
  84. package/dist/http/promotion/admin/index.d.ts.map +1 -0
  85. package/dist/http/promotion/admin/index.js +20 -0
  86. package/dist/http/promotion/admin/index.js.map +1 -0
  87. package/dist/http/promotion/admin/promotion-rule.d.ts +23 -0
  88. package/dist/http/promotion/admin/promotion-rule.d.ts.map +1 -0
  89. package/dist/http/promotion/admin/promotion-rule.js +3 -0
  90. package/dist/http/promotion/admin/promotion-rule.js.map +1 -0
  91. package/dist/http/promotion/admin/rule-attribute-options.d.ts +18 -0
  92. package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -0
  93. package/dist/http/promotion/admin/rule-attribute-options.js +3 -0
  94. package/dist/http/promotion/admin/rule-attribute-options.js.map +1 -0
  95. package/dist/http/promotion/admin/rule-operator-options.d.ts +15 -0
  96. package/dist/http/promotion/admin/rule-operator-options.d.ts.map +1 -0
  97. package/dist/http/promotion/admin/rule-operator-options.js +3 -0
  98. package/dist/http/promotion/admin/rule-operator-options.js.map +1 -0
  99. package/dist/http/promotion/index.d.ts +2 -0
  100. package/dist/http/promotion/index.d.ts.map +1 -0
  101. package/dist/http/promotion/index.js +18 -0
  102. package/dist/http/promotion/index.js.map +1 -0
  103. package/dist/http/reservation/admin/index.d.ts +2 -0
  104. package/dist/http/reservation/admin/index.d.ts.map +1 -0
  105. package/dist/http/reservation/admin/index.js +18 -0
  106. package/dist/http/reservation/admin/index.js.map +1 -0
  107. package/dist/http/reservation/admin/reservation.d.ts +33 -0
  108. package/dist/http/reservation/admin/reservation.d.ts.map +1 -0
  109. package/dist/http/reservation/admin/reservation.js +3 -0
  110. package/dist/http/reservation/admin/reservation.js.map +1 -0
  111. package/dist/http/reservation/index.d.ts +2 -0
  112. package/dist/http/reservation/index.d.ts.map +1 -0
  113. package/dist/http/reservation/index.js +18 -0
  114. package/dist/http/reservation/index.js.map +1 -0
  115. package/dist/http/tax/admin/index.d.ts +1 -0
  116. package/dist/http/tax/admin/index.d.ts.map +1 -1
  117. package/dist/http/tax/admin/index.js +1 -0
  118. package/dist/http/tax/admin/index.js.map +1 -1
  119. package/dist/http/tax/admin/tax-rates.d.ts +37 -0
  120. package/dist/http/tax/admin/tax-rates.d.ts.map +1 -0
  121. package/dist/http/tax/admin/tax-rates.js +3 -0
  122. package/dist/http/tax/admin/tax-rates.js.map +1 -0
  123. package/dist/http/tax/admin/tax-regions.d.ts +7 -2
  124. package/dist/http/tax/admin/tax-regions.d.ts.map +1 -1
  125. package/dist/inventory/common/inventory-item.d.ts +4 -4
  126. package/dist/inventory/common/inventory-item.d.ts.map +1 -1
  127. package/dist/modules-sdk/index.d.ts +1 -0
  128. package/dist/modules-sdk/index.d.ts.map +1 -1
  129. package/dist/order/common.d.ts +322 -13
  130. package/dist/order/common.d.ts.map +1 -1
  131. package/dist/order/mutations.d.ts +53 -1
  132. package/dist/order/mutations.d.ts.map +1 -1
  133. package/dist/order/mutations.js +1 -1
  134. package/dist/order/mutations.js.map +1 -1
  135. package/dist/order/service.d.ts +12 -8
  136. package/dist/order/service.d.ts.map +1 -1
  137. package/dist/payment/common.d.ts +4 -0
  138. package/dist/payment/common.d.ts.map +1 -1
  139. package/dist/pricing/common/price-list.d.ts +8 -4
  140. package/dist/pricing/common/price-list.d.ts.map +1 -1
  141. package/dist/pricing/service.d.ts +5 -5
  142. package/dist/pricing/service.d.ts.map +1 -1
  143. package/dist/pricing/workflows.d.ts +23 -10
  144. package/dist/pricing/workflows.d.ts.map +1 -1
  145. package/dist/product/common.d.ts +38 -14
  146. package/dist/product/common.d.ts.map +1 -1
  147. package/dist/promotion/common/campaign.d.ts +4 -0
  148. package/dist/promotion/common/campaign.d.ts.map +1 -1
  149. package/dist/promotion/common/promotion.d.ts +4 -0
  150. package/dist/promotion/common/promotion.d.ts.map +1 -1
  151. package/dist/promotion/http.d.ts +2 -1
  152. package/dist/promotion/http.d.ts.map +1 -1
  153. package/dist/region/common.d.ts +4 -0
  154. package/dist/region/common.d.ts.map +1 -1
  155. package/dist/sales-channel/common.d.ts +4 -0
  156. package/dist/sales-channel/common.d.ts.map +1 -1
  157. package/dist/stock-location/common.d.ts +5 -0
  158. package/dist/stock-location/common.d.ts.map +1 -1
  159. package/dist/store/common/store.d.ts +4 -0
  160. package/dist/store/common/store.d.ts.map +1 -1
  161. package/dist/tax/common.d.ts +8 -0
  162. package/dist/tax/common.d.ts.map +1 -1
  163. package/dist/user/common.d.ts +4 -0
  164. package/dist/user/common.d.ts.map +1 -1
  165. package/dist/workflow/fulfillment/create-fulfillment.d.ts +151 -0
  166. package/dist/workflow/fulfillment/create-fulfillment.d.ts.map +1 -0
  167. package/dist/workflow/fulfillment/create-fulfillment.js +3 -0
  168. package/dist/workflow/fulfillment/create-fulfillment.js.map +1 -0
  169. package/dist/workflow/fulfillment/create-shipment.d.ts +15 -0
  170. package/dist/workflow/fulfillment/create-shipment.d.ts.map +1 -0
  171. package/dist/workflow/fulfillment/create-shipment.js +3 -0
  172. package/dist/workflow/fulfillment/create-shipment.js.map +1 -0
  173. package/dist/workflow/fulfillment/index.d.ts +4 -1
  174. package/dist/workflow/fulfillment/index.d.ts.map +1 -1
  175. package/dist/workflow/fulfillment/index.js +4 -1
  176. package/dist/workflow/fulfillment/index.js.map +1 -1
  177. package/dist/workflow/fulfillment/update-fulfillment.d.ts +34 -0
  178. package/dist/workflow/fulfillment/update-fulfillment.d.ts.map +1 -0
  179. package/dist/workflow/fulfillment/update-fulfillment.js +3 -0
  180. package/dist/workflow/fulfillment/update-fulfillment.js.map +1 -0
  181. package/dist/workflow/index.d.ts +5 -4
  182. package/dist/workflow/index.d.ts.map +1 -1
  183. package/dist/workflow/index.js +6 -5
  184. package/dist/workflow/index.js.map +1 -1
  185. package/dist/workflow/product-category/index.d.ts +12 -0
  186. package/dist/workflow/product-category/index.d.ts.map +1 -0
  187. package/dist/workflow/product-category/index.js +3 -0
  188. package/dist/workflow/product-category/index.js.map +1 -0
  189. package/dist/workflows/index.d.ts +1 -0
  190. package/dist/workflows/index.d.ts.map +1 -1
  191. package/dist/workflows/index.js +1 -0
  192. package/dist/workflows/index.js.map +1 -1
  193. package/dist/workflows/products/index.d.ts +2 -0
  194. package/dist/workflows/products/index.d.ts.map +1 -0
  195. package/dist/workflows/products/index.js +18 -0
  196. package/dist/workflows/products/index.js.map +1 -0
  197. package/dist/workflows/products/mutations.d.ts +19 -0
  198. package/dist/workflows/products/mutations.d.ts.map +1 -0
  199. package/dist/workflows/products/mutations.js +3 -0
  200. package/dist/workflows/products/mutations.js.map +1 -0
  201. package/package.json +1 -1
@@ -1,6 +1,9 @@
1
+ export * from "./create-fulfillment";
2
+ export * from "./create-shipment";
1
3
  export * from "./create-shipping-options";
2
- export * from "./service-zones";
3
4
  export * from "./delete-shipping-options";
5
+ export * from "./service-zones";
4
6
  export * from "./shipping-profiles";
7
+ export * from "./update-fulfillment";
5
8
  export * from "./update-shipping-options";
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA"}
@@ -14,9 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-fulfillment"), exports);
18
+ __exportStar(require("./create-shipment"), exports);
17
19
  __exportStar(require("./create-shipping-options"), exports);
18
- __exportStar(require("./service-zones"), exports);
19
20
  __exportStar(require("./delete-shipping-options"), exports);
21
+ __exportStar(require("./service-zones"), exports);
20
22
  __exportStar(require("./shipping-profiles"), exports);
23
+ __exportStar(require("./update-fulfillment"), exports);
21
24
  __exportStar(require("./update-shipping-options"), exports);
22
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,kDAA+B;AAC/B,4DAAyC;AACzC,sDAAmC;AACnC,4DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,oDAAiC;AACjC,4DAAyC;AACzC,4DAAyC;AACzC,kDAA+B;AAC/B,sDAAmC;AACnC,uDAAoC;AACpC,4DAAyC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The attributes to update in the fulfillment.
3
+ */
4
+ export interface UpdateFulfillmentWorkflowInput {
5
+ /**
6
+ * The ID of the fulfillment
7
+ */
8
+ id: string;
9
+ /**
10
+ * The associated location's ID.
11
+ */
12
+ location_id?: string;
13
+ /**
14
+ * The date the fulfillment was packed.
15
+ */
16
+ packed_at?: Date | null;
17
+ /**
18
+ * The date the fulfillment was shipped.
19
+ */
20
+ shipped_at?: Date | null;
21
+ /**
22
+ * The date the fulfillment was delivered.
23
+ */
24
+ delivered_at?: Date | null;
25
+ /**
26
+ * The data necessary for the associated fulfillment provider to process the fulfillment.
27
+ */
28
+ data?: Record<string, unknown> | null;
29
+ /**
30
+ * Holds custom data in key-value pairs.
31
+ */
32
+ metadata?: Record<string, unknown> | null;
33
+ }
34
+ //# sourceMappingURL=update-fulfillment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-fulfillment.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/update-fulfillment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=update-fulfillment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-fulfillment.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/update-fulfillment.ts"],"names":[],"mappings":""}
@@ -1,11 +1,12 @@
1
1
  export * as CartWorkflow from "./cart";
2
2
  export * as CommonWorkflow from "./common";
3
- export * as ProductWorkflow from "./product";
3
+ export * as FulfillmentWorkflow from "./fulfillment";
4
4
  export * as InventoryWorkflow from "./inventory";
5
+ export * as InviteWorkflow from "./invite";
5
6
  export * as PriceListWorkflow from "./price-list";
6
- export * as UserWorkflow from "./user";
7
+ export * as ProductWorkflow from "./product";
8
+ export * as ProductCategoryWorkflow from "./product-category";
7
9
  export * as RegionWorkflow from "./region";
8
- export * as InviteWorkflow from "./invite";
9
- export * as FulfillmentWorkflow from "./fulfillment";
10
10
  export * as ReservationWorkflow from "./reservation";
11
+ export * as UserWorkflow from "./user";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,uBAAuB,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA"}
@@ -23,15 +23,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ReservationWorkflow = exports.FulfillmentWorkflow = exports.InviteWorkflow = exports.RegionWorkflow = exports.UserWorkflow = exports.PriceListWorkflow = exports.InventoryWorkflow = exports.ProductWorkflow = exports.CommonWorkflow = exports.CartWorkflow = void 0;
26
+ exports.UserWorkflow = exports.ReservationWorkflow = exports.RegionWorkflow = exports.ProductCategoryWorkflow = exports.ProductWorkflow = exports.PriceListWorkflow = exports.InviteWorkflow = exports.InventoryWorkflow = exports.FulfillmentWorkflow = exports.CommonWorkflow = exports.CartWorkflow = void 0;
27
27
  exports.CartWorkflow = __importStar(require("./cart"));
28
28
  exports.CommonWorkflow = __importStar(require("./common"));
29
- exports.ProductWorkflow = __importStar(require("./product"));
29
+ exports.FulfillmentWorkflow = __importStar(require("./fulfillment"));
30
30
  exports.InventoryWorkflow = __importStar(require("./inventory"));
31
+ exports.InviteWorkflow = __importStar(require("./invite"));
31
32
  exports.PriceListWorkflow = __importStar(require("./price-list"));
32
- exports.UserWorkflow = __importStar(require("./user"));
33
+ exports.ProductWorkflow = __importStar(require("./product"));
34
+ exports.ProductCategoryWorkflow = __importStar(require("./product-category"));
33
35
  exports.RegionWorkflow = __importStar(require("./region"));
34
- exports.InviteWorkflow = __importStar(require("./invite"));
35
- exports.FulfillmentWorkflow = __importStar(require("./fulfillment"));
36
36
  exports.ReservationWorkflow = __importStar(require("./reservation"));
37
+ exports.UserWorkflow = __importStar(require("./user"));
37
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2DAA0C;AAC1C,6DAA4C;AAC5C,iEAAgD;AAChD,kEAAiD;AACjD,uDAAsC;AACtC,2DAA0C;AAC1C,2DAA0C;AAC1C,qEAAoD;AACpD,qEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2DAA0C;AAC1C,qEAAoD;AACpD,iEAAgD;AAChD,2DAA0C;AAC1C,kEAAiD;AACjD,6DAA4C;AAC5C,8EAA6D;AAC7D,2DAA0C;AAC1C,qEAAoD;AACpD,uDAAsC"}
@@ -0,0 +1,12 @@
1
+ import { LinkWorkflowInput } from "../../common";
2
+ import { CreateProductCategoryDTO, UpdateProductCategoryDTO } from "../../product";
3
+ export interface CreateProductCategoryWorkflowInput {
4
+ product_category: CreateProductCategoryDTO;
5
+ }
6
+ export interface UpdateProductCategoryWorkflowInput {
7
+ id: string;
8
+ data: UpdateProductCategoryDTO;
9
+ }
10
+ export interface BatchUpdateProductsOnCategoryWorkflowInput extends LinkWorkflowInput {
11
+ }
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/product-category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,kCAAkC;IACjD,gBAAgB,EAAE,wBAAwB,CAAA;CAC3C;AAGD,MAAM,WAAW,kCAAkC;IAGjD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,wBAAwB,CAAA;CAC/B;AAED,MAAM,WAAW,0CACf,SAAQ,iBAAiB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/product-category/index.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  export * from "./stock-locations";
2
+ export * from "./products";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./stock-locations"), exports);
18
+ __exportStar(require("./products"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,6CAA0B"}
@@ -0,0 +1,2 @@
1
+ export * from "./mutations";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflows/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./mutations"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflows/products/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
@@ -0,0 +1,19 @@
1
+ import { PricingTypes, ProductTypes } from "../../bundles";
2
+ export type CreateProductVariantWorkflowInputDTO = ProductTypes.CreateProductVariantDTO & {
3
+ prices?: PricingTypes.CreateMoneyAmountDTO[];
4
+ };
5
+ export type UpdateProductVariantWorkflowInputDTO = (ProductTypes.UpsertProductVariantDTO & {
6
+ prices?: PricingTypes.CreateMoneyAmountDTO[];
7
+ })[];
8
+ export type CreateProductWorkflowInputDTO = Omit<ProductTypes.CreateProductDTO, "variants"> & {
9
+ sales_channels?: {
10
+ id: string;
11
+ }[];
12
+ variants?: CreateProductVariantWorkflowInputDTO[];
13
+ };
14
+ export type UpdateProductWorkflowInputDTO = ProductTypes.UpsertProductDTO & {
15
+ sales_channels?: {
16
+ id: string;
17
+ }[];
18
+ };
19
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/workflows/products/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE1D,MAAM,MAAM,oCAAoC,GAC9C,YAAY,CAAC,uBAAuB,GAAG;IACrC,MAAM,CAAC,EAAE,YAAY,CAAC,oBAAoB,EAAE,CAAA;CAC7C,CAAA;AAEH,MAAM,MAAM,oCAAoC,GAC9C,CAAC,YAAY,CAAC,uBAAuB,GAAG;IACtC,MAAM,CAAC,EAAE,YAAY,CAAC,oBAAoB,EAAE,CAAA;CAC7C,CAAC,EAAE,CAAA;AAEN,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,YAAY,CAAC,gBAAgB,EAC7B,UAAU,CACX,GAAG;IACF,cAAc,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACjC,QAAQ,CAAC,EAAE,oCAAoC,EAAE,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC,gBAAgB,GAAG;IAC1E,cAAc,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAClC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/workflows/products/mutations.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240412124109",
3
+ "version": "1.12.0-snapshot-20240426112214",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",