@medusajs/types 1.12.0-snapshot-20240409114424 → 1.12.0-snapshot-20240423083106

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/dist/api-key/common/api-key.d.ts +0 -2
  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/customer/mutations.d.ts +2 -18
  18. package/dist/customer/mutations.d.ts.map +1 -1
  19. package/dist/fulfillment/common/fulfillment-provider.d.ts +10 -0
  20. package/dist/fulfillment/common/fulfillment-provider.d.ts.map +1 -1
  21. package/dist/fulfillment/mutations/geo-zone.d.ts +0 -4
  22. package/dist/fulfillment/mutations/geo-zone.d.ts.map +1 -1
  23. package/dist/fulfillment/service.d.ts +21 -1
  24. package/dist/fulfillment/service.d.ts.map +1 -1
  25. package/dist/http/common/deleted-response.d.ts +18 -0
  26. package/dist/http/common/deleted-response.d.ts.map +1 -0
  27. package/dist/http/common/deleted-response.js +3 -0
  28. package/dist/http/common/deleted-response.js.map +1 -0
  29. package/dist/http/common/index.d.ts +1 -0
  30. package/dist/http/common/index.d.ts.map +1 -1
  31. package/dist/http/common/index.js +1 -0
  32. package/dist/http/common/index.js.map +1 -1
  33. package/dist/http/customer/admin/customer.d.ts +3 -0
  34. package/dist/http/customer/admin/customer.d.ts.map +1 -1
  35. package/dist/http/fulfillment/admin/fulfillment.d.ts +7 -1
  36. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -1
  37. package/dist/http/fulfillment/admin/shipping-option.d.ts +13 -1
  38. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
  39. package/dist/http/fulfillment/admin/shipping-profile.d.ts +6 -1
  40. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -1
  41. package/dist/http/index.d.ts +3 -1
  42. package/dist/http/index.d.ts.map +1 -1
  43. package/dist/http/index.js +3 -1
  44. package/dist/http/index.js.map +1 -1
  45. package/dist/http/inventory/index.d.ts +3 -0
  46. package/dist/http/inventory/index.d.ts.map +1 -0
  47. package/dist/http/inventory/index.js +19 -0
  48. package/dist/http/inventory/index.js.map +1 -0
  49. package/dist/http/inventory/inventory-level.d.ts +26 -0
  50. package/dist/http/inventory/inventory-level.d.ts.map +1 -0
  51. package/dist/http/inventory/inventory-level.js +3 -0
  52. package/dist/http/inventory/inventory-level.js.map +1 -0
  53. package/dist/http/inventory/inventory.d.ts +32 -0
  54. package/dist/http/inventory/inventory.d.ts.map +1 -0
  55. package/dist/http/inventory/inventory.js +3 -0
  56. package/dist/http/inventory/inventory.js.map +1 -0
  57. package/dist/http/order/admin/index.d.ts +268 -0
  58. package/dist/http/order/admin/index.d.ts.map +1 -0
  59. package/dist/http/order/admin/index.js +3 -0
  60. package/dist/http/order/admin/index.js.map +1 -0
  61. package/dist/http/order/index.d.ts +2 -0
  62. package/dist/http/order/index.d.ts.map +1 -0
  63. package/dist/http/order/index.js +18 -0
  64. package/dist/http/order/index.js.map +1 -0
  65. package/dist/http/tax/admin/index.d.ts +1 -0
  66. package/dist/http/tax/admin/index.d.ts.map +1 -1
  67. package/dist/http/tax/admin/index.js +1 -0
  68. package/dist/http/tax/admin/index.js.map +1 -1
  69. package/dist/http/tax/admin/tax-rates.d.ts +37 -0
  70. package/dist/http/tax/admin/tax-rates.d.ts.map +1 -0
  71. package/dist/http/tax/admin/tax-rates.js +3 -0
  72. package/dist/http/tax/admin/tax-rates.js.map +1 -0
  73. package/dist/http/tax/admin/tax-regions.d.ts +7 -2
  74. package/dist/http/tax/admin/tax-regions.d.ts.map +1 -1
  75. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  76. package/dist/inventory/mutations/inventory-level.d.ts +1 -1
  77. package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
  78. package/dist/inventory/service-next.d.ts +31 -0
  79. package/dist/inventory/service-next.d.ts.map +1 -1
  80. package/dist/modules-sdk/index.d.ts +10 -10
  81. package/dist/modules-sdk/index.d.ts.map +1 -1
  82. package/dist/order/common.d.ts +322 -13
  83. package/dist/order/common.d.ts.map +1 -1
  84. package/dist/pricing/service.d.ts +5 -5
  85. package/dist/pricing/service.d.ts.map +1 -1
  86. package/dist/pricing/workflows.d.ts +23 -10
  87. package/dist/pricing/workflows.d.ts.map +1 -1
  88. package/dist/product/common.d.ts +19 -10
  89. package/dist/product/common.d.ts.map +1 -1
  90. package/dist/promotion/common/application-method.d.ts +0 -6
  91. package/dist/promotion/common/application-method.d.ts.map +1 -1
  92. package/dist/promotion/common/campaign-budget.d.ts +0 -2
  93. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  94. package/dist/promotion/common/compute-actions.d.ts +0 -4
  95. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  96. package/dist/promotion/common/promotion-rule.d.ts +0 -2
  97. package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
  98. package/dist/promotion/common/promotion.d.ts +0 -2
  99. package/dist/promotion/common/promotion.d.ts.map +1 -1
  100. package/dist/stock-location/common.d.ts +5 -0
  101. package/dist/stock-location/common.d.ts.map +1 -1
  102. package/dist/tax/provider.d.ts +2 -0
  103. package/dist/tax/provider.d.ts.map +1 -1
  104. package/dist/workflow/fulfillment/delete-shipping-options.d.ts +4 -0
  105. package/dist/workflow/fulfillment/delete-shipping-options.d.ts.map +1 -0
  106. package/dist/workflow/fulfillment/delete-shipping-options.js +3 -0
  107. package/dist/workflow/fulfillment/delete-shipping-options.js.map +1 -0
  108. package/dist/workflow/fulfillment/index.d.ts +1 -0
  109. package/dist/workflow/fulfillment/index.d.ts.map +1 -1
  110. package/dist/workflow/fulfillment/index.js +1 -0
  111. package/dist/workflow/fulfillment/index.js.map +1 -1
  112. package/dist/workflow/fulfillment/update-shipping-options.d.ts +6 -4
  113. package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +1 -1
  114. package/dist/workflow/index.d.ts +6 -4
  115. package/dist/workflow/index.d.ts.map +1 -1
  116. package/dist/workflow/index.js +7 -5
  117. package/dist/workflow/index.js.map +1 -1
  118. package/dist/workflow/product-category/index.d.ts +9 -0
  119. package/dist/workflow/product-category/index.d.ts.map +1 -0
  120. package/dist/workflow/product-category/index.js +3 -0
  121. package/dist/workflow/product-category/index.js.map +1 -0
  122. package/dist/workflow/reservation/create-reservations.d.ts +6 -0
  123. package/dist/workflow/reservation/create-reservations.d.ts.map +1 -0
  124. package/dist/workflow/reservation/create-reservations.js +3 -0
  125. package/dist/workflow/reservation/create-reservations.js.map +1 -0
  126. package/dist/workflow/reservation/index.d.ts +3 -0
  127. package/dist/workflow/reservation/index.d.ts.map +1 -0
  128. package/dist/workflow/reservation/index.js +19 -0
  129. package/dist/workflow/reservation/index.js.map +1 -0
  130. package/dist/workflow/reservation/update-reservations.d.ts +6 -0
  131. package/dist/workflow/reservation/update-reservations.d.ts.map +1 -0
  132. package/dist/workflow/reservation/update-reservations.js +3 -0
  133. package/dist/workflow/reservation/update-reservations.js.map +1 -0
  134. package/dist/workflows/index.d.ts +1 -0
  135. package/dist/workflows/index.d.ts.map +1 -1
  136. package/dist/workflows/index.js +1 -0
  137. package/dist/workflows/index.js.map +1 -1
  138. package/dist/workflows/products/index.d.ts +2 -0
  139. package/dist/workflows/products/index.d.ts.map +1 -0
  140. package/dist/workflows/products/index.js +18 -0
  141. package/dist/workflows/products/index.js.map +1 -0
  142. package/dist/workflows/products/mutations.d.ts +19 -0
  143. package/dist/workflows/products/mutations.d.ts.map +1 -0
  144. package/dist/workflows/products/mutations.js +3 -0
  145. package/dist/workflows/products/mutations.js.map +1 -0
  146. package/package.json +1 -1
@@ -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-20240409114424",
3
+ "version": "1.12.0-snapshot-20240423083106",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",