@medusajs/core-flows 3.0.0-snapshot-20251201170954 → 3.0.0-snapshot-20251202134037
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/order/steps/list-order-change-actions-by-type.d.ts +1 -1
- package/dist/order/steps/list-order-change-actions-by-type.js +1 -1
- package/dist/order/workflows/compute-adjustments-for-preview.d.ts +1 -1
- package/dist/order/workflows/compute-adjustments-for-preview.js +1 -1
- package/dist/order/workflows/on-carry-promotions-flag-set.d.ts +2 -2
- package/dist/order/workflows/on-carry-promotions-flag-set.js +2 -2
- package/dist/order/workflows/update-order-change.d.ts +1 -1
- package/dist/order/workflows/update-order-change.js +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { ChangeActionType } from "@medusajs/framework/utils";
|
|
|
2
2
|
/**
|
|
3
3
|
* This step lists order change actions filtered by action type.
|
|
4
4
|
*
|
|
5
|
-
* @since
|
|
5
|
+
* @since 2.12.0
|
|
6
6
|
*/
|
|
7
7
|
export declare const listOrderChangeActionsByTypeStep: import("@medusajs/framework/workflows-sdk").StepFunction<{
|
|
8
8
|
order_change_id: string;
|
|
@@ -6,7 +6,7 @@ const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
|
6
6
|
/**
|
|
7
7
|
* This step lists order change actions filtered by action type.
|
|
8
8
|
*
|
|
9
|
-
* @since
|
|
9
|
+
* @since 2.12.0
|
|
10
10
|
*/
|
|
11
11
|
exports.listOrderChangeActionsByTypeStep = (0, workflows_sdk_1.createStep)("list-order-change-actions-by-type", async function ({ order_change_id, action_type, }, { container }) {
|
|
12
12
|
const service = container.resolve(utils_1.Modules.ORDER);
|
|
@@ -28,7 +28,7 @@ export declare const computeAdjustmentsForPreviewWorkflowId = "compute-adjustmen
|
|
|
28
28
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to compute adjustments
|
|
29
29
|
* in your custom flows.
|
|
30
30
|
*
|
|
31
|
-
* @since
|
|
31
|
+
* @since 2.12.0
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* const { result } = await computeAdjustmentsForPreviewWorkflow(container)
|
|
@@ -18,7 +18,7 @@ exports.computeAdjustmentsForPreviewWorkflowId = "compute-adjustments-for-previe
|
|
|
18
18
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to compute adjustments
|
|
19
19
|
* in your custom flows.
|
|
20
20
|
*
|
|
21
|
-
* @since
|
|
21
|
+
* @since 2.12.0
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* const { result } = await computeAdjustmentsForPreviewWorkflow(container)
|
|
@@ -23,7 +23,7 @@ export type OnCarryPromotionsFlagSetWorkflowInput = {
|
|
|
23
23
|
*
|
|
24
24
|
* :::
|
|
25
25
|
*
|
|
26
|
-
* @since
|
|
26
|
+
* @since 2.12.0
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* const data = validateCarryPromotionsFlagStep({
|
|
@@ -60,7 +60,7 @@ export declare const onCarryPromotionsFlagSetId = "on-carry-promotions-flag-set"
|
|
|
60
60
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
61
61
|
* set the carry over promotions flag for an order change in your custom flows.
|
|
62
62
|
*
|
|
63
|
-
* @since
|
|
63
|
+
* @since 2.12.0
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* const { result } = await onCarryPromotionsFlagSet(container)
|
|
@@ -17,7 +17,7 @@ const compute_adjustments_for_preview_1 = require("./compute-adjustments-for-pre
|
|
|
17
17
|
*
|
|
18
18
|
* :::
|
|
19
19
|
*
|
|
20
|
-
* @since
|
|
20
|
+
* @since 2.12.0
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* const data = validateCarryPromotionsFlagStep({
|
|
@@ -85,7 +85,7 @@ exports.onCarryPromotionsFlagSetId = "on-carry-promotions-flag-set";
|
|
|
85
85
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to
|
|
86
86
|
* set the carry over promotions flag for an order change in your custom flows.
|
|
87
87
|
*
|
|
88
|
-
* @since
|
|
88
|
+
* @since 2.12.0
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* const { result } = await onCarryPromotionsFlagSet(container)
|
|
@@ -8,7 +8,7 @@ export declare const updateOrderChangeWorkflowId = "update-order-change-workflow
|
|
|
8
8
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around
|
|
9
9
|
* updating an order change and conditionally handling promotion carry-over.
|
|
10
10
|
*
|
|
11
|
-
* @since
|
|
11
|
+
* @since 2.12.0
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* const { result } = await updateOrderChangeWorkflow(container)
|
|
@@ -13,7 +13,7 @@ exports.updateOrderChangeWorkflowId = "update-order-change-workflow";
|
|
|
13
13
|
* You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around
|
|
14
14
|
* updating an order change and conditionally handling promotion carry-over.
|
|
15
15
|
*
|
|
16
|
-
* @since
|
|
16
|
+
* @since 2.12.0
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* const { result } = await updateOrderChangeWorkflow(container)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/core-flows",
|
|
3
|
-
"version": "3.0.0-snapshot-
|
|
3
|
+
"version": "3.0.0-snapshot-20251202134037",
|
|
4
4
|
"description": "Set of workflow definitions for Medusa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "Medusa",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@medusajs/framework": "3.0.0-snapshot-
|
|
29
|
+
"@medusajs/framework": "3.0.0-snapshot-20251202134037"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"csv-parse": "^5.6.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"zod": "3.25.76"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@medusajs/framework": "3.0.0-snapshot-
|
|
37
|
+
"@medusajs/framework": "3.0.0-snapshot-20251202134037"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
|