@medusajs/core-flows 3.0.0-preview-20250408150145 → 3.0.0-snapshot-20250408093127
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/index.d.ts +0 -1
- package/dist/order/index.d.ts.map +1 -1
- package/dist/order/index.js +0 -1
- package/dist/order/index.js.map +1 -1
- package/dist/order/utils/fetch-shipping-option.d.ts +5 -86
- package/dist/order/utils/fetch-shipping-option.d.ts.map +1 -1
- package/dist/order/utils/fetch-shipping-option.js +4 -67
- package/dist/order/utils/fetch-shipping-option.js.map +1 -1
- package/package.json +3 -3
package/dist/order/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|
package/dist/order/index.js
CHANGED
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./steps"), exports);
|
18
18
|
__exportStar(require("./workflows"), exports);
|
19
|
-
__exportStar(require("./utils/fetch-shipping-option"), exports);
|
20
19
|
//# sourceMappingURL=index.js.map
|
package/dist/order/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,8CAA2B
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/order/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,8CAA2B"}
|
@@ -5,11 +5,11 @@ import { BigNumber } from "@medusajs/framework/utils";
|
|
5
5
|
*/
|
6
6
|
export type FetchShippingOptionForOrderWorkflowInput = {
|
7
7
|
/**
|
8
|
-
* The ID of the shipping option to
|
8
|
+
* The ID of the shipping option to create the shipping method from.
|
9
9
|
*/
|
10
10
|
shipping_option_id: string;
|
11
11
|
/**
|
12
|
-
* The custom amount
|
12
|
+
* The custom amount to create the shipping method with.
|
13
13
|
* If not provided, the shipping option's amount is used.
|
14
14
|
*/
|
15
15
|
custom_amount?: BigNumberInput | null;
|
@@ -22,7 +22,7 @@ export type FetchShippingOptionForOrderWorkflowInput = {
|
|
22
22
|
*/
|
23
23
|
order_id: string;
|
24
24
|
/**
|
25
|
-
* The context of the
|
25
|
+
* The context of the order.
|
26
26
|
*/
|
27
27
|
context: CalculatedRMAShippingContext;
|
28
28
|
};
|
@@ -30,87 +30,15 @@ export type FetchShippingOptionForOrderWorkflowInput = {
|
|
30
30
|
* The output of the fetch shipping option for order workflow.
|
31
31
|
*/
|
32
32
|
export type FetchShippingOptionForOrderWorkflowOutput = ShippingOptionDTO & {
|
33
|
-
/**
|
34
|
-
* The shipping option's price.
|
35
|
-
*/
|
36
33
|
calculated_price: {
|
37
|
-
/**
|
38
|
-
* The shipping option's price based on its type and provided context.
|
39
|
-
*/
|
40
34
|
calculated_amount: BigNumber;
|
41
|
-
/**
|
42
|
-
* Whether the amount includes taxes.
|
43
|
-
*/
|
44
35
|
is_calculated_price_tax_inclusive: boolean;
|
45
36
|
};
|
46
37
|
};
|
47
|
-
export declare const
|
38
|
+
export declare const createOrderEditShippingMethodWorkflowId = "fetch-shipping-option";
|
48
39
|
/**
|
49
|
-
* This
|
50
|
-
* by other workflows, such as {@link createClaimShippingMethodWorkflow}.
|
51
|
-
*
|
52
|
-
* You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around fetching
|
53
|
-
* shipping options for an order.
|
54
|
-
*
|
55
|
-
* @example
|
56
|
-
* const { result } = await fetchShippingOptionForOrderWorkflow(container)
|
57
|
-
* .run({
|
58
|
-
* input: {
|
59
|
-
* shipping_option_id: "so_123",
|
60
|
-
* currency_code: "usd",
|
61
|
-
* order_id: "order_123",
|
62
|
-
* context: {
|
63
|
-
* return_id: "ret_123",
|
64
|
-
* return_items: [
|
65
|
-
* {
|
66
|
-
* id: "orli_123",
|
67
|
-
* quantity: 1,
|
68
|
-
* }
|
69
|
-
* ]
|
70
|
-
* }
|
71
|
-
* }
|
72
|
-
* })
|
73
|
-
*
|
74
|
-
* @summary
|
75
|
-
*
|
76
|
-
* Fetch a shipping option for an order.
|
77
|
-
*
|
78
|
-
* @property hooks.setPricingContext - This hook is executed before the shipping option is fetched. You can consume this hook to set the pricing context for the shipping option. This is useful when you have custom pricing rules that depend on the context of the order.
|
79
|
-
*
|
80
|
-
* For example, assuming you have the following custom pricing rule:
|
81
|
-
*
|
82
|
-
* ```json
|
83
|
-
* {
|
84
|
-
* "attribute": "location_id",
|
85
|
-
* "operator": "eq",
|
86
|
-
* "value": "sloc_123",
|
87
|
-
* }
|
88
|
-
* ```
|
40
|
+
* This workflows fetches a shipping option for an order (used in RMA flows).
|
89
41
|
*
|
90
|
-
* You can consume the `setPricingContext` hook to add the `location_id` context to the prices calculation:
|
91
|
-
*
|
92
|
-
* ```ts
|
93
|
-
* import { fetchShippingOptionForOrderWorkflow } from "@medusajs/medusa/core-flows";
|
94
|
-
* import { StepResponse } from "@medusajs/workflows-sdk";
|
95
|
-
*
|
96
|
-
* fetchShippingOptionForOrderWorkflow.hooks.setPricingContext((
|
97
|
-
* { shipping_option_id, currency_code, order_id, context, additional_data }, { container }
|
98
|
-
* ) => {
|
99
|
-
* return new StepResponse({
|
100
|
-
* location_id: "sloc_123", // Special price for in-store purchases
|
101
|
-
* });
|
102
|
-
* });
|
103
|
-
* ```
|
104
|
-
*
|
105
|
-
* The shipping option's price will now be retrieved using the context you return.
|
106
|
-
*
|
107
|
-
* :::note
|
108
|
-
*
|
109
|
-
* Learn more about prices calculation context in the [Prices Calculation](https://docs.medusajs.com/resources/commerce-modules/pricing/price-calculation) documentation.
|
110
|
-
*
|
111
|
-
* :::
|
112
|
-
*
|
113
|
-
* @privateRemarks
|
114
42
|
* There can be 3 cases:
|
115
43
|
* 1. The shipping option is a flat rate shipping option.
|
116
44
|
* In this case, pricing calculation context is not used.
|
@@ -120,17 +48,8 @@ export declare const fetchShippingOptionsForOrderWorkflowId = "fetch-shipping-op
|
|
120
48
|
* In this case, we don't need to do caluclations above and just return the shipping option with the custom amount.
|
121
49
|
*/
|
122
50
|
export declare const fetchShippingOptionForOrderWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<FetchShippingOptionForOrderWorkflowInput & AdditionalData, ShippingOptionDTO & {
|
123
|
-
/**
|
124
|
-
* The shipping option's price.
|
125
|
-
*/
|
126
51
|
calculated_price: {
|
127
|
-
/**
|
128
|
-
* The shipping option's price based on its type and provided context.
|
129
|
-
*/
|
130
52
|
calculated_amount: BigNumber;
|
131
|
-
/**
|
132
|
-
* Whether the amount includes taxes.
|
133
|
-
*/
|
134
53
|
is_calculated_price_tax_inclusive: boolean;
|
135
54
|
};
|
136
55
|
}, [import("@medusajs/framework/workflows-sdk").Hook<"setPricingContext", FetchShippingOptionForOrderWorkflowInput & AdditionalData, Record<string, any> | undefined>]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fetch-shipping-option.d.ts","sourceRoot":"","sources":["../../../src/order/utils/fetch-shipping-option.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,4BAA4B,EAE5B,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAQlC,OAAO,EAAE,SAAS,EAA2B,MAAM,2BAA2B,CAAA;AA+B9E;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,4BAA4B,CAAA;CACtC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG,iBAAiB,GAAG;IAC1E
|
1
|
+
{"version":3,"file":"fetch-shipping-option.d.ts","sourceRoot":"","sources":["../../../src/order/utils/fetch-shipping-option.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,4BAA4B,EAE5B,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAQlC,OAAO,EAAE,SAAS,EAA2B,MAAM,2BAA2B,CAAA;AA+B9E;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,4BAA4B,CAAA;CACtC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG,iBAAiB,GAAG;IAC1E,gBAAgB,EAAE;QAChB,iBAAiB,EAAE,SAAS,CAAA;QAC5B,iCAAiC,EAAE,OAAO,CAAA;KAC3C,CAAA;CACF,CAAA;AACD,eAAO,MAAM,uCAAuC,0BAA0B,CAAA;AAC9E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mCAAmC;sBAjB5B;QAChB,iBAAiB,EAAE,SAAS,CAAA;QAC5B,iCAAiC,EAAE,OAAO,CAAA;KAC3C;uKAiJF,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.fetchShippingOptionForOrderWorkflow = exports.
|
3
|
+
exports.fetchShippingOptionForOrderWorkflow = exports.createOrderEditShippingMethodWorkflowId = void 0;
|
4
4
|
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
5
5
|
const utils_1 = require("@medusajs/framework/utils");
|
6
6
|
const steps_1 = require("../../fulfillment/steps");
|
@@ -28,73 +28,10 @@ const COMMON_OPTIONS_FIELDS = [
|
|
28
28
|
"rules.value",
|
29
29
|
"rules.operator",
|
30
30
|
];
|
31
|
-
exports.
|
31
|
+
exports.createOrderEditShippingMethodWorkflowId = "fetch-shipping-option";
|
32
32
|
/**
|
33
|
-
* This
|
34
|
-
* by other workflows, such as {@link createClaimShippingMethodWorkflow}.
|
33
|
+
* This workflows fetches a shipping option for an order (used in RMA flows).
|
35
34
|
*
|
36
|
-
* You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around fetching
|
37
|
-
* shipping options for an order.
|
38
|
-
*
|
39
|
-
* @example
|
40
|
-
* const { result } = await fetchShippingOptionForOrderWorkflow(container)
|
41
|
-
* .run({
|
42
|
-
* input: {
|
43
|
-
* shipping_option_id: "so_123",
|
44
|
-
* currency_code: "usd",
|
45
|
-
* order_id: "order_123",
|
46
|
-
* context: {
|
47
|
-
* return_id: "ret_123",
|
48
|
-
* return_items: [
|
49
|
-
* {
|
50
|
-
* id: "orli_123",
|
51
|
-
* quantity: 1,
|
52
|
-
* }
|
53
|
-
* ]
|
54
|
-
* }
|
55
|
-
* }
|
56
|
-
* })
|
57
|
-
*
|
58
|
-
* @summary
|
59
|
-
*
|
60
|
-
* Fetch a shipping option for an order.
|
61
|
-
*
|
62
|
-
* @property hooks.setPricingContext - This hook is executed before the shipping option is fetched. You can consume this hook to set the pricing context for the shipping option. This is useful when you have custom pricing rules that depend on the context of the order.
|
63
|
-
*
|
64
|
-
* For example, assuming you have the following custom pricing rule:
|
65
|
-
*
|
66
|
-
* ```json
|
67
|
-
* {
|
68
|
-
* "attribute": "location_id",
|
69
|
-
* "operator": "eq",
|
70
|
-
* "value": "sloc_123",
|
71
|
-
* }
|
72
|
-
* ```
|
73
|
-
*
|
74
|
-
* You can consume the `setPricingContext` hook to add the `location_id` context to the prices calculation:
|
75
|
-
*
|
76
|
-
* ```ts
|
77
|
-
* import { fetchShippingOptionForOrderWorkflow } from "@medusajs/medusa/core-flows";
|
78
|
-
* import { StepResponse } from "@medusajs/workflows-sdk";
|
79
|
-
*
|
80
|
-
* fetchShippingOptionForOrderWorkflow.hooks.setPricingContext((
|
81
|
-
* { shipping_option_id, currency_code, order_id, context, additional_data }, { container }
|
82
|
-
* ) => {
|
83
|
-
* return new StepResponse({
|
84
|
-
* location_id: "sloc_123", // Special price for in-store purchases
|
85
|
-
* });
|
86
|
-
* });
|
87
|
-
* ```
|
88
|
-
*
|
89
|
-
* The shipping option's price will now be retrieved using the context you return.
|
90
|
-
*
|
91
|
-
* :::note
|
92
|
-
*
|
93
|
-
* Learn more about prices calculation context in the [Prices Calculation](https://docs.medusajs.com/resources/commerce-modules/pricing/price-calculation) documentation.
|
94
|
-
*
|
95
|
-
* :::
|
96
|
-
*
|
97
|
-
* @privateRemarks
|
98
35
|
* There can be 3 cases:
|
99
36
|
* 1. The shipping option is a flat rate shipping option.
|
100
37
|
* In this case, pricing calculation context is not used.
|
@@ -103,7 +40,7 @@ exports.fetchShippingOptionsForOrderWorkflowId = "fetch-shipping-option";
|
|
103
40
|
* 3. The shipping option is a custom shipping option. -- TODO
|
104
41
|
* In this case, we don't need to do caluclations above and just return the shipping option with the custom amount.
|
105
42
|
*/
|
106
|
-
exports.fetchShippingOptionForOrderWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.
|
43
|
+
exports.fetchShippingOptionForOrderWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.createOrderEditShippingMethodWorkflowId, function (input) {
|
107
44
|
const initialOption = (0, common_1.useRemoteQueryStep)({
|
108
45
|
entry_point: "shipping_option",
|
109
46
|
variables: { id: input.shipping_option_id },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fetch-shipping-option.js","sourceRoot":"","sources":["../../../src/order/utils/fetch-shipping-option.ts"],"names":[],"mappings":";;;AAOA,qEAM0C;AAC1C,qDAA8E;AAC9E,mDAA4E;AAC5E,yCAAiD;AACjD,sDAA+D;AAE/D,MAAM,qBAAqB,GAAG;IAC5B,IAAI;IACJ,MAAM;IACN,YAAY;IACZ,iBAAiB;IACjB,iCAAiC;IACjC,mCAAmC;IACnC,yCAAyC;IACzC,iDAAiD;IACjD,qBAAqB;IACrB,aAAa;IACb,MAAM;IAEN,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,WAAW;IAEX,aAAa;IACb,qBAAqB;IAErB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;CACjB,CAAA;
|
1
|
+
{"version":3,"file":"fetch-shipping-option.js","sourceRoot":"","sources":["../../../src/order/utils/fetch-shipping-option.ts"],"names":[],"mappings":";;;AAOA,qEAM0C;AAC1C,qDAA8E;AAC9E,mDAA4E;AAC5E,yCAAiD;AACjD,sDAA+D;AAE/D,MAAM,qBAAqB,GAAG;IAC5B,IAAI;IACJ,MAAM;IACN,YAAY;IACZ,iBAAiB;IACjB,iCAAiC;IACjC,mCAAmC;IACnC,yCAAyC;IACzC,iDAAiD;IACjD,qBAAqB;IACrB,aAAa;IACb,MAAM;IAEN,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,WAAW;IAEX,aAAa;IACb,qBAAqB;IAErB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;CACjB,CAAA;AAsCY,QAAA,uCAAuC,GAAG,uBAAuB,CAAA;AAC9E;;;;;;;;;;GAUG;AACU,QAAA,mCAAmC,GAAG,IAAA,8BAAc,EAC/D,+CAAuC,EACvC,UAAU,KAAgE;IACxE,MAAM,aAAa,GAAG,IAAA,2BAAkB,EAAC;QACvC,WAAW,EAAE,iBAAiB;QAC9B,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,kBAAkB,EAAE;QAC3C,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC;QAC5B,IAA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,EAAE,+BAA+B,EAAE,EAAE,EAAE,CAAC,CAAC,+BAA+B,CAC1E,CAAC,IAAI,CAAC,GAAG,EAAE;QACV,MAAM,cAAc,GAAG,IAAA,2BAAkB,EAAC;YACxC,WAAW,EAAE,iBAAiB;YAC9B,MAAM,EAAE;gBACN,IAAI;gBACJ,MAAM;gBACN,oCAAoC;gBACpC,oDAAoD;aACrD;YACD,SAAS,EAAE;gBACT,EAAE,EAAE,KAAK,CAAC,kBAAkB;gBAC5B,gBAAgB,EAAE;oBAChB,OAAO,EAAE,cAAc;iBACxB;aACF;YACD,IAAI,EAAE,KAAK;SACZ,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAA;QAExC,OAAO,cAAc,CAAA;IACvB,CAAC,CAAC,CAAA;IAEF,MAAM,MAAM,GAA8C,IAAA,yBAAS,EACjE;QACE,6BAA6B;QAC7B,sBAAsB;KACvB,EACD,CAAC,EAAE,6BAA6B,EAAE,sBAAsB,EAAE,EAAE,EAAE;QAC5D,OAAO,6BAA6B,IAAI,sBAAsB,CAAA;IAChE,CAAC,CACF,CAAA;IAED,OAAO,IAAI,gCAAgB,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,iBAAiB,CAAU,EAAE,CAAC,CAAA;AAC9E,CAAC,CACF,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/core-flows",
|
3
|
-
"version": "3.0.0-
|
3
|
+
"version": "3.0.0-snapshot-20250408093127",
|
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-
|
29
|
+
"@medusajs/framework": "3.0.0-snapshot-20250408093127",
|
30
30
|
"@mikro-orm/core": "6.4.3",
|
31
31
|
"@mikro-orm/knex": "6.4.3",
|
32
32
|
"@mikro-orm/migrations": "6.4.3",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"json-2-csv": "^5.5.4"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
|
-
"@medusajs/framework": "3.0.0-
|
47
|
+
"@medusajs/framework": "3.0.0-snapshot-20250408093127",
|
48
48
|
"awilix": "^8.0.1"
|
49
49
|
},
|
50
50
|
"scripts": {
|