@medusajs/core-flows 0.0.2-next-20231124140416
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.
- package/dist/definition/cart/create-cart.d.ts +9 -0
- package/dist/definition/cart/create-cart.js +148 -0
- package/dist/definition/cart/create-cart.js.map +1 -0
- package/dist/definition/cart/index.d.ts +1 -0
- package/dist/definition/cart/index.js +18 -0
- package/dist/definition/cart/index.js.map +1 -0
- package/dist/definition/index.d.ts +4 -0
- package/dist/definition/index.js +21 -0
- package/dist/definition/index.js.map +1 -0
- package/dist/definition/inventory/create-inventory-item.d.ts +14 -0
- package/dist/definition/inventory/create-inventory-item.js +41 -0
- package/dist/definition/inventory/create-inventory-item.js.map +1 -0
- package/dist/definition/inventory/index.d.ts +1 -0
- package/dist/definition/inventory/index.js +18 -0
- package/dist/definition/inventory/index.js.map +1 -0
- package/dist/definition/price-list/create-price-lists.d.ts +13 -0
- package/dist/definition/price-list/create-price-lists.js +55 -0
- package/dist/definition/price-list/create-price-lists.js.map +1 -0
- package/dist/definition/price-list/index.d.ts +6 -0
- package/dist/definition/price-list/index.js +23 -0
- package/dist/definition/price-list/index.js.map +1 -0
- package/dist/definition/price-list/remove-price-list-prices.d.ts +11 -0
- package/dist/definition/price-list/remove-price-list-prices.js +50 -0
- package/dist/definition/price-list/remove-price-list-prices.js.map +1 -0
- package/dist/definition/price-list/remove-price-lists.d.ts +12 -0
- package/dist/definition/price-list/remove-price-lists.js +40 -0
- package/dist/definition/price-list/remove-price-lists.js.map +1 -0
- package/dist/definition/price-list/remove-product-prices.d.ts +11 -0
- package/dist/definition/price-list/remove-product-prices.js +51 -0
- package/dist/definition/price-list/remove-product-prices.js.map +1 -0
- package/dist/definition/price-list/remove-variant-prices.d.ts +11 -0
- package/dist/definition/price-list/remove-variant-prices.js +51 -0
- package/dist/definition/price-list/remove-variant-prices.js.map +1 -0
- package/dist/definition/price-list/update-price-lists.d.ts +13 -0
- package/dist/definition/price-list/update-price-lists.js +51 -0
- package/dist/definition/price-list/update-price-lists.js.map +1 -0
- package/dist/definition/product/create-product-variants.d.ts +15 -0
- package/dist/definition/product/create-product-variants.js +91 -0
- package/dist/definition/product/create-product-variants.js.map +1 -0
- package/dist/definition/product/create-products.d.ts +18 -0
- package/dist/definition/product/create-products.js +211 -0
- package/dist/definition/product/create-products.js.map +1 -0
- package/dist/definition/product/index.d.ts +4 -0
- package/dist/definition/product/index.js +34 -0
- package/dist/definition/product/index.js.map +1 -0
- package/dist/definition/product/prepare-create-inventory-items.d.ts +23 -0
- package/dist/definition/product/prepare-create-inventory-items.js +28 -0
- package/dist/definition/product/prepare-create-inventory-items.js.map +1 -0
- package/dist/definition/product/update-product-variants.d.ts +15 -0
- package/dist/definition/product/update-product-variants.js +81 -0
- package/dist/definition/product/update-product-variants.js.map +1 -0
- package/dist/definition/product/update-products.d.ts +19 -0
- package/dist/definition/product/update-products.js +328 -0
- package/dist/definition/product/update-products.js.map +1 -0
- package/dist/definitions.d.ts +27 -0
- package/dist/definitions.js +37 -0
- package/dist/definitions.js.map +1 -0
- package/dist/handlers/address/find-or-create-addresses.d.ts +24 -0
- package/dist/handlers/address/find-or-create-addresses.js +66 -0
- package/dist/handlers/address/find-or-create-addresses.js.map +1 -0
- package/dist/handlers/address/index.d.ts +1 -0
- package/dist/handlers/address/index.js +18 -0
- package/dist/handlers/address/index.js.map +1 -0
- package/dist/handlers/cart/attach-line-items-to-cart.d.ts +21 -0
- package/dist/handlers/cart/attach-line-items-to-cart.js +35 -0
- package/dist/handlers/cart/attach-line-items-to-cart.js.map +1 -0
- package/dist/handlers/cart/create-cart.d.ts +36 -0
- package/dist/handlers/cart/create-cart.js +27 -0
- package/dist/handlers/cart/create-cart.js.map +1 -0
- package/dist/handlers/cart/index.d.ts +4 -0
- package/dist/handlers/cart/index.js +21 -0
- package/dist/handlers/cart/index.js.map +1 -0
- package/dist/handlers/cart/remove-cart.d.ts +14 -0
- package/dist/handlers/cart/remove-cart.js +17 -0
- package/dist/handlers/cart/remove-cart.js.map +1 -0
- package/dist/handlers/cart/retrieve-cart.d.ts +22 -0
- package/dist/handlers/cart/retrieve-cart.js +18 -0
- package/dist/handlers/cart/retrieve-cart.js.map +1 -0
- package/dist/handlers/common/index.d.ts +1 -0
- package/dist/handlers/common/index.js +18 -0
- package/dist/handlers/common/index.js.map +1 -0
- package/dist/handlers/common/set-context.d.ts +17 -0
- package/dist/handlers/common/set-context.js +16 -0
- package/dist/handlers/common/set-context.js.map +1 -0
- package/dist/handlers/customer/find-or-create-customer.d.ts +19 -0
- package/dist/handlers/customer/find-or-create-customer.js +38 -0
- package/dist/handlers/customer/find-or-create-customer.js.map +1 -0
- package/dist/handlers/customer/index.d.ts +1 -0
- package/dist/handlers/customer/index.js +18 -0
- package/dist/handlers/customer/index.js.map +1 -0
- package/dist/handlers/index.d.ts +10 -0
- package/dist/handlers/index.js +37 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/inventory/attach-inventory-items.d.ts +16 -0
- package/dist/handlers/inventory/attach-inventory-items.js +23 -0
- package/dist/handlers/inventory/attach-inventory-items.js.map +1 -0
- package/dist/handlers/inventory/create-inventory-items.d.ts +17 -0
- package/dist/handlers/inventory/create-inventory-items.js +31 -0
- package/dist/handlers/inventory/create-inventory-items.js.map +1 -0
- package/dist/handlers/inventory/detach-inventory-items.d.ts +16 -0
- package/dist/handlers/inventory/detach-inventory-items.js +22 -0
- package/dist/handlers/inventory/detach-inventory-items.js.map +1 -0
- package/dist/handlers/inventory/index.d.ts +5 -0
- package/dist/handlers/inventory/index.js +22 -0
- package/dist/handlers/inventory/index.js.map +1 -0
- package/dist/handlers/inventory/remove-inventory-items.d.ts +14 -0
- package/dist/handlers/inventory/remove-inventory-items.js +18 -0
- package/dist/handlers/inventory/remove-inventory-items.js.map +1 -0
- package/dist/handlers/inventory/restore-inventory-items.d.ts +12 -0
- package/dist/handlers/inventory/restore-inventory-items.js +18 -0
- package/dist/handlers/inventory/restore-inventory-items.js.map +1 -0
- package/dist/handlers/middlewares/create-products-prepare-create-prices-compensation.d.ts +26 -0
- package/dist/handlers/middlewares/create-products-prepare-create-prices-compensation.js +31 -0
- package/dist/handlers/middlewares/create-products-prepare-create-prices-compensation.js.map +1 -0
- package/dist/handlers/middlewares/extract-variants.d.ts +18 -0
- package/dist/handlers/middlewares/extract-variants.js +23 -0
- package/dist/handlers/middlewares/extract-variants.js.map +1 -0
- package/dist/handlers/middlewares/index.d.ts +6 -0
- package/dist/handlers/middlewares/index.js +23 -0
- package/dist/handlers/middlewares/index.js.map +1 -0
- package/dist/handlers/middlewares/map-data.d.ts +11 -0
- package/dist/handlers/middlewares/map-data.js +19 -0
- package/dist/handlers/middlewares/map-data.js.map +1 -0
- package/dist/handlers/middlewares/update-products-extract-created-variants.d.ts +19 -0
- package/dist/handlers/middlewares/update-products-extract-created-variants.js +27 -0
- package/dist/handlers/middlewares/update-products-extract-created-variants.js.map +1 -0
- package/dist/handlers/middlewares/update-products-extract-deleted-variants.d.ts +19 -0
- package/dist/handlers/middlewares/update-products-extract-deleted-variants.js +29 -0
- package/dist/handlers/middlewares/update-products-extract-deleted-variants.js.map +1 -0
- package/dist/handlers/middlewares/use-variants-inventory-items.d.ts +24 -0
- package/dist/handlers/middlewares/use-variants-inventory-items.js +31 -0
- package/dist/handlers/middlewares/use-variants-inventory-items.js.map +1 -0
- package/dist/handlers/price-list/create-price-list.d.ts +18 -0
- package/dist/handlers/price-list/create-price-list.js +18 -0
- package/dist/handlers/price-list/create-price-list.js.map +1 -0
- package/dist/handlers/price-list/index.d.ts +10 -0
- package/dist/handlers/price-list/index.js +27 -0
- package/dist/handlers/price-list/index.js.map +1 -0
- package/dist/handlers/price-list/prepare-create-price-list.d.ts +17 -0
- package/dist/handlers/price-list/prepare-create-price-list.js +57 -0
- package/dist/handlers/price-list/prepare-create-price-list.js.map +1 -0
- package/dist/handlers/price-list/prepare-remove-price-list-prices.d.ts +15 -0
- package/dist/handlers/price-list/prepare-remove-price-list-prices.js +23 -0
- package/dist/handlers/price-list/prepare-remove-price-list-prices.js.map +1 -0
- package/dist/handlers/price-list/prepare-remove-product-prices.d.ts +10 -0
- package/dist/handlers/price-list/prepare-remove-product-prices.js +35 -0
- package/dist/handlers/price-list/prepare-remove-product-prices.js.map +1 -0
- package/dist/handlers/price-list/prepare-remove-variant-prices.d.ts +10 -0
- package/dist/handlers/price-list/prepare-remove-variant-prices.js +33 -0
- package/dist/handlers/price-list/prepare-remove-variant-prices.js.map +1 -0
- package/dist/handlers/price-list/prepare-update-price-lists.d.ts +15 -0
- package/dist/handlers/price-list/prepare-update-price-lists.js +58 -0
- package/dist/handlers/price-list/prepare-update-price-lists.js.map +1 -0
- package/dist/handlers/price-list/remove-price-list.d.ts +14 -0
- package/dist/handlers/price-list/remove-price-list.js +14 -0
- package/dist/handlers/price-list/remove-price-list.js.map +1 -0
- package/dist/handlers/price-list/remove-price-set-price-list-prices.d.ts +5 -0
- package/dist/handlers/price-list/remove-price-set-price-list-prices.js +25 -0
- package/dist/handlers/price-list/remove-price-set-price-list-prices.js.map +1 -0
- package/dist/handlers/price-list/remove-prices.d.ts +13 -0
- package/dist/handlers/price-list/remove-prices.js +17 -0
- package/dist/handlers/price-list/remove-prices.js.map +1 -0
- package/dist/handlers/price-list/update-price-lists.d.ts +15 -0
- package/dist/handlers/price-list/update-price-lists.js +38 -0
- package/dist/handlers/price-list/update-price-lists.js.map +1 -0
- package/dist/handlers/product/attach-sales-channel-to-products.d.ts +18 -0
- package/dist/handlers/product/attach-sales-channel-to-products.js +30 -0
- package/dist/handlers/product/attach-sales-channel-to-products.js.map +1 -0
- package/dist/handlers/product/attach-shipping-profile-to-products.d.ts +18 -0
- package/dist/handlers/product/attach-shipping-profile-to-products.js +28 -0
- package/dist/handlers/product/attach-shipping-profile-to-products.js.map +1 -0
- package/dist/handlers/product/create-product-variants-prepare-data.d.ts +21 -0
- package/dist/handlers/product/create-product-variants-prepare-data.js +35 -0
- package/dist/handlers/product/create-product-variants-prepare-data.js.map +1 -0
- package/dist/handlers/product/create-product-variants.d.ts +23 -0
- package/dist/handlers/product/create-product-variants.js +22 -0
- package/dist/handlers/product/create-product-variants.js.map +1 -0
- package/dist/handlers/product/create-products-prepare-data.d.ts +28 -0
- package/dist/handlers/product/create-products-prepare-data.js +77 -0
- package/dist/handlers/product/create-products-prepare-data.js.map +1 -0
- package/dist/handlers/product/create-products.d.ts +12 -0
- package/dist/handlers/product/create-products.js +14 -0
- package/dist/handlers/product/create-products.js.map +1 -0
- package/dist/handlers/product/detach-sales-channel-from-products.d.ts +18 -0
- package/dist/handlers/product/detach-sales-channel-from-products.js +30 -0
- package/dist/handlers/product/detach-sales-channel-from-products.js.map +1 -0
- package/dist/handlers/product/detach-shipping-profile-from-products.d.ts +18 -0
- package/dist/handlers/product/detach-shipping-profile-from-products.js +28 -0
- package/dist/handlers/product/detach-shipping-profile-from-products.js.map +1 -0
- package/dist/handlers/product/index.d.ts +19 -0
- package/dist/handlers/product/index.js +36 -0
- package/dist/handlers/product/index.js.map +1 -0
- package/dist/handlers/product/list-products.d.ts +13 -0
- package/dist/handlers/product/list-products.js +31 -0
- package/dist/handlers/product/list-products.js.map +1 -0
- package/dist/handlers/product/remove-product-variants.d.ts +13 -0
- package/dist/handlers/product/remove-product-variants.js +16 -0
- package/dist/handlers/product/remove-product-variants.js.map +1 -0
- package/dist/handlers/product/remove-products.d.ts +13 -0
- package/dist/handlers/product/remove-products.js +16 -0
- package/dist/handlers/product/remove-products.js.map +1 -0
- package/dist/handlers/product/revert-update-products.d.ts +14 -0
- package/dist/handlers/product/revert-update-products.js +20 -0
- package/dist/handlers/product/revert-update-products.js.map +1 -0
- package/dist/handlers/product/revert-variant-prices.d.ts +14 -0
- package/dist/handlers/product/revert-variant-prices.js +28 -0
- package/dist/handlers/product/revert-variant-prices.js.map +1 -0
- package/dist/handlers/product/update-product-variants-prepare-data.d.ts +21 -0
- package/dist/handlers/product/update-product-variants-prepare-data.js +48 -0
- package/dist/handlers/product/update-product-variants-prepare-data.js.map +1 -0
- package/dist/handlers/product/update-product-variants.d.ts +12 -0
- package/dist/handlers/product/update-product-variants.js +23 -0
- package/dist/handlers/product/update-product-variants.js.map +1 -0
- package/dist/handlers/product/update-products-prepare-data.d.ts +25 -0
- package/dist/handlers/product/update-products-prepare-data.js +65 -0
- package/dist/handlers/product/update-products-prepare-data.js.map +1 -0
- package/dist/handlers/product/update-products-variants-prices.d.ts +18 -0
- package/dist/handlers/product/update-products-variants-prices.js +90 -0
- package/dist/handlers/product/update-products-variants-prices.js.map +1 -0
- package/dist/handlers/product/update-products.d.ts +12 -0
- package/dist/handlers/product/update-products.js +29 -0
- package/dist/handlers/product/update-products.js.map +1 -0
- package/dist/handlers/product/upsert-variant-prices.d.ts +25 -0
- package/dist/handlers/product/upsert-variant-prices.js +122 -0
- package/dist/handlers/product/upsert-variant-prices.js.map +1 -0
- package/dist/handlers/region/find-region.d.ts +17 -0
- package/dist/handlers/region/find-region.js +29 -0
- package/dist/handlers/region/find-region.js.map +1 -0
- package/dist/handlers/region/index.d.ts +1 -0
- package/dist/handlers/region/index.js +18 -0
- package/dist/handlers/region/index.js.map +1 -0
- package/dist/handlers/sales-channel/find-sales-channel.d.ts +20 -0
- package/dist/handlers/sales-channel/find-sales-channel.js +41 -0
- package/dist/handlers/sales-channel/find-sales-channel.js.map +1 -0
- package/dist/handlers/sales-channel/index.d.ts +1 -0
- package/dist/handlers/sales-channel/index.js +18 -0
- package/dist/handlers/sales-channel/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -0
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@medusajs/core-flows",
|
|
3
|
+
"version": "0.0.2-next-20231124140416",
|
|
4
|
+
"description": "Set of workflow definitions for Medusa",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/medusajs/medusa",
|
|
10
|
+
"directory": "packages/core-flows"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"author": "Medusa",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@medusajs/types": "1.11.8-next-20231124140416",
|
|
22
|
+
"cross-env": "^5.2.1",
|
|
23
|
+
"jest": "^29.6.3",
|
|
24
|
+
"rimraf": "^5.0.1",
|
|
25
|
+
"ts-jest": "^29.1.1",
|
|
26
|
+
"typescript": "^5.1.6"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@medusajs/modules-sdk": "1.12.4-next-20231124140416",
|
|
30
|
+
"@medusajs/orchestration": "0.5.0-next-20231124140416",
|
|
31
|
+
"@medusajs/utils": "1.11.1-next-20231124140416",
|
|
32
|
+
"@medusajs/workflows-sdk": "0.2.0-next-20231124140416",
|
|
33
|
+
"awilix": "^8.0.1",
|
|
34
|
+
"ulid": "^2.3.0"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"prepublishOnly": "cross-env NODE_ENV=production tsc --build",
|
|
38
|
+
"build": "rimraf dist && tsc --build",
|
|
39
|
+
"watch": "tsc --build --watch",
|
|
40
|
+
"test": "jest --runInBand --bail --forceExit --passWithNoTests"
|
|
41
|
+
}
|
|
42
|
+
}
|