@medusajs/medusa 2.0.5-snapshot-20241112130534 → 2.0.5-snapshot-20241120130614
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/admin/draft-orders/route.js +1 -1
- package/dist/api/admin/draft-orders/route.js.map +1 -1
- package/dist/api/admin/orders/[id]/route.d.ts +0 -1
- package/dist/api/admin/orders/[id]/route.d.ts.map +1 -1
- package/dist/api/admin/orders/[id]/route.js +1 -15
- package/dist/api/admin/orders/[id]/route.js.map +1 -1
- package/dist/api/admin/orders/[id]/transfer/route.d.ts +5 -0
- package/dist/api/admin/orders/[id]/transfer/route.d.ts.map +1 -0
- package/dist/api/admin/orders/[id]/transfer/route.js +27 -0
- package/dist/api/admin/orders/[id]/transfer/route.js.map +1 -0
- package/dist/api/admin/orders/middlewares.d.ts.map +1 -1
- package/dist/api/admin/orders/middlewares.js +8 -0
- package/dist/api/admin/orders/middlewares.js.map +1 -1
- package/dist/api/admin/orders/validators.d.ts +14 -0
- package/dist/api/admin/orders/validators.d.ts.map +1 -1
- package/dist/api/admin/orders/validators.js +6 -1
- package/dist/api/admin/orders/validators.js.map +1 -1
- package/dist/api/store/carts/[id]/customer/route.d.ts +4 -0
- package/dist/api/store/carts/[id]/customer/route.d.ts.map +1 -0
- package/dist/api/store/carts/[id]/customer/route.js +18 -0
- package/dist/api/store/carts/[id]/customer/route.js.map +1 -0
- package/dist/api/store/carts/middlewares.d.ts.map +1 -1
- package/dist/api/store/carts/middlewares.js +22 -13
- package/dist/api/store/carts/middlewares.js.map +1 -1
- package/dist/api/store/carts/validators.d.ts +2 -0
- package/dist/api/store/carts/validators.d.ts.map +1 -1
- package/dist/api/store/carts/validators.js +2 -1
- package/dist/api/store/carts/validators.js.map +1 -1
- package/dist/api/store/orders/[id]/transfer/accept/route.d.ts +5 -0
- package/dist/api/store/orders/[id]/transfer/accept/route.d.ts.map +1 -0
- package/dist/api/store/orders/[id]/transfer/accept/route.js +21 -0
- package/dist/api/store/orders/[id]/transfer/accept/route.js.map +1 -0
- package/dist/api/store/orders/[id]/transfer/request/route.d.ts +5 -0
- package/dist/api/store/orders/[id]/transfer/request/route.d.ts.map +1 -0
- package/dist/api/store/orders/[id]/transfer/request/route.js +25 -0
- package/dist/api/store/orders/[id]/transfer/request/route.js.map +1 -0
- package/dist/api/store/orders/middlewares.d.ts.map +1 -1
- package/dist/api/store/orders/middlewares.js +18 -0
- package/dist/api/store/orders/middlewares.js.map +1 -1
- package/dist/api/store/orders/validators.d.ts +16 -0
- package/dist/api/store/orders/validators.d.ts.map +1 -1
- package/dist/api/store/orders/validators.js +7 -1
- package/dist/api/store/orders/validators.js.map +1 -1
- package/dist/commands/db/create.js +1 -1
- package/dist/commands/db/create.js.map +1 -1
- package/dist/subscribers/payment-webhook.d.ts.map +1 -1
- package/dist/subscribers/payment-webhook.js +1 -5
- package/dist/subscribers/payment-webhook.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -46
@@ -57,7 +57,7 @@ const POST = async (req, res) => {
|
|
57
57
|
const [customer] = await remoteQuery(queryObject);
|
58
58
|
input.email = customer?.email;
|
59
59
|
}
|
60
|
-
const { result } = await (0, core_flows_1.
|
60
|
+
const { result } = await (0, core_flows_1.createOrderWorkflow)(req.scope).run({
|
61
61
|
input: workflowInput,
|
62
62
|
});
|
63
63
|
const draftOrder = await (0, helpers_1.refetchOrder)(result.id, req.scope, req.remoteQueryConfig.fields);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":";;;AAAA,qDAA0D;AAC1D,qDAIkC;AAOlC,uCAAwC;AAOjC,MAAM,GAAG,GAAG,KAAK,EACtB,GAA+C,EAC/C,GAA0D,EAC1D,EAAE;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO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,EAAE,CAAC,eAAe,CAAC;SAC1B,CAAC,CAAA;QACF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,CAAA;QAC/C,KAAK,CAAC,aAAa,GAAG,MAAM,EAAE,aAAa,CAAA;IAC7C,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,WAAW,GAAG,IAAA,mCAA2B,EAAC;YAC9C,UAAU,EAAE,UAAU;YACtB,SAAS,EAAE;gBACT,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,WAAW,EAAE;aACnC;YACD,MAAM,EAAE,CAAC,OAAO,CAAC;SAClB,CAAC,CAAA;QACF,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,CAAA;QACjD,KAAK,CAAC,KAAK,GAAG,QAAQ,EAAE,KAAK,CAAA;IAC/B,CAAC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,gCAAmB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC1D,KAAK,EAAE,aAAa;KACrB,CAAC,CAAA;IAEF,MAAM,UAAU,GAAG,MAAM,IAAA,sBAAY,EACnC,MAAM,CAAC,EAAE,EACT,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAC7B,CAAA;IAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAA;AACnD,CAAC,CAAA;AAjDY,QAAA,IAAI,QAiDhB"}
|
@@ -2,5 +2,4 @@ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/
|
|
2
2
|
import { HttpTypes } from "@medusajs/framework/types";
|
3
3
|
import { AdminGetOrdersOrderParamsType } from "../validators";
|
4
4
|
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetOrdersOrderParamsType>, res: MedusaResponse<HttpTypes.AdminOrderResponse>) => Promise<void>;
|
5
|
-
export declare const POST: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderResponse>) => Promise<void>;
|
6
5
|
//# sourceMappingURL=route.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAE7D,eAAO,MAAM,GAAG,QACT,0BAA0B,CAAC,6BAA6B,CAAC,OACzD,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAYlD,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.GET = void 0;
|
4
4
|
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
-
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
const GET = async (req, res) => {
|
7
6
|
const workflow = (0, core_flows_1.getOrderDetailWorkflow)(req.scope);
|
8
7
|
const { result } = await workflow.run({
|
@@ -15,17 +14,4 @@ const GET = async (req, res) => {
|
|
15
14
|
res.status(200).json({ order: result });
|
16
15
|
};
|
17
16
|
exports.GET = GET;
|
18
|
-
const POST = async (req, res) => {
|
19
|
-
const remoteQuery = req.scope.resolve(utils_1.ContainerRegistrationKeys.REMOTE_QUERY);
|
20
|
-
const variables = { id: req.params.id };
|
21
|
-
// TODO: update order
|
22
|
-
const queryObject = (0, utils_1.remoteQueryObjectFromString)({
|
23
|
-
entryPoint: "order",
|
24
|
-
variables,
|
25
|
-
fields: req.remoteQueryConfig.fields,
|
26
|
-
});
|
27
|
-
const [order] = await remoteQuery(queryObject);
|
28
|
-
res.status(200).json({ order });
|
29
|
-
};
|
30
|
-
exports.POST = POST;
|
31
17
|
//# sourceMappingURL=route.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6D;
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6D;AAQtD,MAAM,GAAG,GAAG,KAAK,EACtB,GAA8D,EAC9D,GAAiD,EACjD,EAAE;IACF,MAAM,QAAQ,GAAG,IAAA,mCAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAClD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC;QACpC,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;YACpC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;YACvB,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,OAAiB;SAC9C;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAA8B,EAAE,CAAC,CAAA;AACjE,CAAC,CAAA;AAdY,QAAA,GAAG,OAcf"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
2
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
3
|
+
import { AdminTransferOrderType } from "../../validators";
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminTransferOrderType>, res: MedusaResponse<HttpTypes.AdminOrderResponse>) => Promise<void>;
|
5
|
+
//# sourceMappingURL=route.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/admin/orders/[id]/transfer/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAKrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,sBAAsB,CAAC,OAClD,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAwBlD,CAAA"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.POST = void 0;
|
4
|
+
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
|
+
const POST = async (req, res) => {
|
7
|
+
const remoteQuery = req.scope.resolve(utils_1.ContainerRegistrationKeys.REMOTE_QUERY);
|
8
|
+
const variables = { id: req.params.id };
|
9
|
+
await (0, core_flows_1.requestOrderTransferWorkflow)(req.scope).run({
|
10
|
+
input: {
|
11
|
+
order_id: req.params.id,
|
12
|
+
customer_id: req.validatedBody.customer_id,
|
13
|
+
logged_in_user: req.auth_context.actor_id,
|
14
|
+
description: req.validatedBody.description,
|
15
|
+
internal_note: req.validatedBody.internal_note,
|
16
|
+
},
|
17
|
+
});
|
18
|
+
const queryObject = (0, utils_1.remoteQueryObjectFromString)({
|
19
|
+
entryPoint: "order",
|
20
|
+
variables,
|
21
|
+
fields: req.remoteQueryConfig.fields,
|
22
|
+
});
|
23
|
+
const [order] = await remoteQuery(queryObject);
|
24
|
+
res.status(200).json({ order });
|
25
|
+
};
|
26
|
+
exports.POST = POST;
|
27
|
+
//# sourceMappingURL=route.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../src/api/admin/orders/[id]/transfer/route.ts"],"names":[],"mappings":";;;AAAA,qDAAmE;AAMnE,qDAGkC;AAG3B,MAAM,IAAI,GAAG,KAAK,EACvB,GAAuD,EACvD,GAAiD,EACjD,EAAE;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iCAAyB,CAAC,YAAY,CAAC,CAAA;IAE7E,MAAM,SAAS,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAA;IAEvC,MAAM,IAAA,yCAA4B,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAChD,KAAK,EAAE;YACL,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;YACvB,WAAW,EAAE,GAAG,CAAC,aAAa,CAAC,WAAW;YAC1C,cAAc,EAAE,GAAG,CAAC,YAAY,CAAC,QAAQ;YACzC,WAAW,EAAE,GAAG,CAAC,aAAa,CAAC,WAAW;YAC1C,aAAa,EAAE,GAAG,CAAC,aAAa,CAAC,aAAa;SAC/C;KACF,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,IAAA,mCAA2B,EAAC;QAC9C,UAAU,EAAE,OAAO;QACnB,SAAS;QACT,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;KACrC,CAAC,CAAA;IAEF,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,CAAA;IAC9C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC,CAAA;AA1BY,QAAA,IAAI,QA0BhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/orders/middlewares.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;
|
1
|
+
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/orders/middlewares.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAe1D,eAAO,MAAM,2BAA2B,EAAE,eAAe,EA2IxD,CAAA"}
|
@@ -118,5 +118,13 @@ exports.adminOrderRoutesMiddlewares = [
|
|
118
118
|
(0, framework_1.validateAndTransformQuery)(validators_1.AdminGetOrdersOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
119
119
|
],
|
120
120
|
},
|
121
|
+
{
|
122
|
+
method: ["POST"],
|
123
|
+
matcher: "/admin/orders/:id/transfer",
|
124
|
+
middlewares: [
|
125
|
+
(0, framework_1.validateAndTransformBody)(validators_1.AdminTransferOrder),
|
126
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.AdminGetOrdersOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
127
|
+
],
|
128
|
+
},
|
121
129
|
];
|
122
130
|
//# sourceMappingURL=middlewares.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/admin/orders/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAG4B;AAE5B,4DAA6C;AAC7C,
|
1
|
+
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/admin/orders/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAG4B;AAE5B,4DAA6C;AAC7C,6CAWqB;AAER,QAAA,2BAA2B,GAAsB;IAC5D;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE;YACX,IAAA,qCAAyB,EACvB,i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E,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,wCAA2B,CAAC;YACrD,IAAA,qCAAyB,EACvB,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,uDAAuD;QAChE,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,wCAA2B,CAAC;YACrD,IAAA,qCAAyB,EACvB,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,0DAA0D;QACnE,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,qCAAwB,CAAC;YAClD,IAAA,qCAAyB,EACvB,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,kEAAkE;QAC3E,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,+CAAkC,CAAC;YAC5D,IAAA,qCAAyB,EACvB,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,+BAAkB,CAAC;YAC5C,IAAA,qCAAyB,EACvB,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;CACF,CAAA"}
|
@@ -622,4 +622,18 @@ export declare const AdminOrderChanges: z.ZodObject<{
|
|
622
622
|
export type AdminOrderChangesType = z.infer<typeof AdminOrderChanges>;
|
623
623
|
export type AdminMarkOrderFulfillmentDeliveredType = z.infer<typeof AdminMarkOrderFulfillmentDelivered>;
|
624
624
|
export declare const AdminMarkOrderFulfillmentDelivered: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
625
|
+
export type AdminTransferOrderType = z.infer<typeof AdminTransferOrder>;
|
626
|
+
export declare const AdminTransferOrder: z.ZodObject<{
|
627
|
+
customer_id: z.ZodString;
|
628
|
+
description: z.ZodOptional<z.ZodString>;
|
629
|
+
internal_note: z.ZodOptional<z.ZodString>;
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
631
|
+
customer_id: string;
|
632
|
+
description?: string | undefined;
|
633
|
+
internal_note?: string | undefined;
|
634
|
+
}, {
|
635
|
+
customer_id: string;
|
636
|
+
description?: string | undefined;
|
637
|
+
internal_note?: string | undefined;
|
638
|
+
}>;
|
625
639
|
//# sourceMappingURL=validators.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/orders/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASrC,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,yBAAyB,CACjC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EAM1C,CAAA;AAED,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,yBAAyB,CACjC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9B,CAAA;AACF,eAAO,MAAM,wBAAwB;;;;gCAA0C,CAAA;AAE/E,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,sBAAsB,CAC9B,CAAA;AACD,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAA;AACF,eAAO,MAAM,2BAA2B;;;;gCAEvC,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAErE,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,kCAAkC,CAC1C,CAAA;AACD,eAAO,MAAM,kCAAkC,gDAAe,CAAA;AAE9D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AdminMarkOrderFulfillmentDelivered = exports.AdminOrderChanges = exports.AdminOrderCancelFulfillment = exports.OrderCancelFulfillment = exports.AdminOrderCreateShipment = exports.OrderCreateShipment = exports.AdminOrderCreateFulfillment = exports.OrderCreateFulfillment = exports.AdminCompleteOrder = exports.AdminGetOrdersParams = exports.AdminGetOrdersOrderItemsParams = exports.AdminGetOrdersOrderParams = void 0;
|
3
|
+
exports.AdminTransferOrder = exports.AdminMarkOrderFulfillmentDelivered = exports.AdminOrderChanges = exports.AdminOrderCancelFulfillment = exports.OrderCancelFulfillment = exports.AdminOrderCreateShipment = exports.OrderCreateShipment = exports.AdminOrderCreateFulfillment = exports.OrderCreateFulfillment = exports.AdminCompleteOrder = exports.AdminGetOrdersParams = exports.AdminGetOrdersOrderItemsParams = exports.AdminGetOrdersOrderParams = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const validators_1 = require("../../utils/validators");
|
6
6
|
exports.AdminGetOrdersOrderParams = (0, validators_1.createSelectParams)().merge(zod_1.z.object({
|
@@ -76,4 +76,9 @@ exports.AdminOrderChanges = zod_1.z.object({
|
|
76
76
|
deleted_at: (0, validators_1.createOperatorMap)().optional(),
|
77
77
|
});
|
78
78
|
exports.AdminMarkOrderFulfillmentDelivered = zod_1.z.object({});
|
79
|
+
exports.AdminTransferOrder = zod_1.z.object({
|
80
|
+
customer_id: zod_1.z.string(),
|
81
|
+
description: zod_1.z.string().optional(),
|
82
|
+
internal_note: zod_1.z.string().optional(),
|
83
|
+
});
|
79
84
|
//# sourceMappingURL=validators.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../src/api/admin/orders/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,uDAK+B;AAElB,QAAA,yBAAyB,GAAG,IAAA,+BAAkB,GAAE,CAAC,KAAK,CACjE,OAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAA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AAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
2
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
3
|
+
export declare const POST: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.StoreCartResponse>) => Promise<void>;
|
4
|
+
//# sourceMappingURL=route.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/store/carts/[id]/customer/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AAGjC,eAAO,MAAM,IAAI,QACV,0BAA0B,OAC1B,cAAc,CAAC,SAAS,CAAC,iBAAiB,CAAC,kBAkBjD,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.POST = void 0;
|
4
|
+
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
+
const helpers_1 = require("../../helpers");
|
6
|
+
const POST = async (req, res) => {
|
7
|
+
const workflow = (0, core_flows_1.updateCartCustomerWorkflow)(req.scope);
|
8
|
+
await workflow.run({
|
9
|
+
input: {
|
10
|
+
id: req.params.id,
|
11
|
+
customer_id: req.auth_context?.actor_id,
|
12
|
+
},
|
13
|
+
});
|
14
|
+
const cart = await (0, helpers_1.refetchCart)(req.params.id, req.scope, req.remoteQueryConfig.fields);
|
15
|
+
res.status(200).json({ cart });
|
16
|
+
};
|
17
|
+
exports.POST = POST;
|
18
|
+
//# sourceMappingURL=route.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../src/api/store/carts/[id]/customer/route.ts"],"names":[],"mappings":";;;AAAA,qDAAiE;AAOjE,2CAA2C;AAEpC,MAAM,IAAI,GAAG,KAAK,EACvB,GAA+B,EAC/B,GAAgD,EAChD,EAAE;IACF,MAAM,QAAQ,GAAG,IAAA,uCAA0B,EAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAEtD,MAAM,QAAQ,CAAC,GAAG,CAAC;QACjB,KAAK,EAAE;YACL,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;YACjB,WAAW,EAAE,GAAG,CAAC,YAAY,EAAE,QAAQ;SACxC;KACF,CAAC,CAAA;IAEF,MAAM,IAAI,GAAG,MAAM,IAAA,qBAAW,EAC5B,GAAG,CAAC,MAAM,CAAC,EAAE,EACb,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAC7B,CAAA;IAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;AAChC,CAAC,CAAA;AApBY,QAAA,IAAI,QAoBhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/carts/middlewares.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/carts/middlewares.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAmBxE,eAAO,MAAM,0BAA0B,EAAE,eAAe,EAqIvD,CAAA"}
|
@@ -24,10 +24,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.storeCartRoutesMiddlewares = void 0;
|
27
|
+
const framework_1 = require("@medusajs/framework");
|
28
|
+
const http_1 = require("@medusajs/framework/http");
|
27
29
|
const ensure_pub_key_sales_channel_match_1 = require("../../utils/middlewares/common/ensure-pub-key-sales-channel-match");
|
28
30
|
const maybe_attach_pub_key_scopes_1 = require("../../utils/middlewares/common/maybe-attach-pub-key-scopes");
|
29
|
-
const framework_1 = require("@medusajs/framework");
|
30
|
-
const framework_2 = require("@medusajs/framework");
|
31
31
|
const OrderQueryConfig = __importStar(require("../orders/query-config"));
|
32
32
|
const validators_1 = require("../orders/validators");
|
33
33
|
const QueryConfig = __importStar(require("./query-config"));
|
@@ -37,7 +37,7 @@ exports.storeCartRoutesMiddlewares = [
|
|
37
37
|
method: ["GET"],
|
38
38
|
matcher: "/store/carts/:id",
|
39
39
|
middlewares: [
|
40
|
-
(0,
|
40
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
41
41
|
],
|
42
42
|
},
|
43
43
|
{
|
@@ -45,7 +45,7 @@ exports.storeCartRoutesMiddlewares = [
|
|
45
45
|
matcher: "/store/carts",
|
46
46
|
middlewares: [
|
47
47
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreCreateCart),
|
48
|
-
(0,
|
48
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
49
49
|
maybe_attach_pub_key_scopes_1.maybeAttachPublishableKeyScopes,
|
50
50
|
ensure_pub_key_sales_channel_match_1.ensurePublishableKeyAndSalesChannelMatch,
|
51
51
|
],
|
@@ -55,7 +55,16 @@ exports.storeCartRoutesMiddlewares = [
|
|
55
55
|
matcher: "/store/carts/:id",
|
56
56
|
middlewares: [
|
57
57
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreUpdateCart),
|
58
|
-
(0,
|
58
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
59
|
+
],
|
60
|
+
},
|
61
|
+
{
|
62
|
+
method: ["POST"],
|
63
|
+
matcher: "/store/carts/:id/customer",
|
64
|
+
middlewares: [
|
65
|
+
(0, http_1.authenticate)("customer", ["session", "bearer"]),
|
66
|
+
(0, framework_1.validateAndTransformBody)(validators_2.StoreUpdateCartCustomer),
|
67
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
59
68
|
],
|
60
69
|
},
|
61
70
|
{
|
@@ -63,7 +72,7 @@ exports.storeCartRoutesMiddlewares = [
|
|
63
72
|
matcher: "/store/carts/:id/line-items",
|
64
73
|
middlewares: [
|
65
74
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreAddCartLineItem),
|
66
|
-
(0,
|
75
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
67
76
|
],
|
68
77
|
},
|
69
78
|
{
|
@@ -71,14 +80,14 @@ exports.storeCartRoutesMiddlewares = [
|
|
71
80
|
matcher: "/store/carts/:id/line-items/:line_id",
|
72
81
|
middlewares: [
|
73
82
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreUpdateCartLineItem),
|
74
|
-
(0,
|
83
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
75
84
|
],
|
76
85
|
},
|
77
86
|
{
|
78
87
|
method: ["DELETE"],
|
79
88
|
matcher: "/store/carts/:id/line-items/:line_id",
|
80
89
|
middlewares: [
|
81
|
-
(0,
|
90
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
82
91
|
],
|
83
92
|
},
|
84
93
|
{
|
@@ -86,7 +95,7 @@ exports.storeCartRoutesMiddlewares = [
|
|
86
95
|
matcher: "/store/carts/:id/promotions",
|
87
96
|
middlewares: [
|
88
97
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreAddCartPromotions),
|
89
|
-
(0,
|
98
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
90
99
|
],
|
91
100
|
},
|
92
101
|
{
|
@@ -94,7 +103,7 @@ exports.storeCartRoutesMiddlewares = [
|
|
94
103
|
matcher: "/store/carts/:id/taxes",
|
95
104
|
middlewares: [
|
96
105
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreCalculateCartTaxes),
|
97
|
-
(0,
|
106
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
98
107
|
],
|
99
108
|
},
|
100
109
|
{
|
@@ -102,7 +111,7 @@ exports.storeCartRoutesMiddlewares = [
|
|
102
111
|
matcher: "/store/carts/:id/shipping-methods",
|
103
112
|
middlewares: [
|
104
113
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreAddCartShippingMethods),
|
105
|
-
(0,
|
114
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
106
115
|
],
|
107
116
|
},
|
108
117
|
{
|
@@ -110,14 +119,14 @@ exports.storeCartRoutesMiddlewares = [
|
|
110
119
|
matcher: "/store/carts/:id/promotions",
|
111
120
|
middlewares: [
|
112
121
|
(0, framework_1.validateAndTransformBody)(validators_2.StoreRemoveCartPromotions),
|
113
|
-
(0,
|
122
|
+
(0, framework_1.validateAndTransformQuery)(validators_2.StoreGetCartsCart, QueryConfig.retrieveTransformQueryConfig),
|
114
123
|
],
|
115
124
|
},
|
116
125
|
{
|
117
126
|
method: ["POST"],
|
118
127
|
matcher: "/store/carts/:id/complete",
|
119
128
|
middlewares: [
|
120
|
-
(0,
|
129
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, OrderQueryConfig.retrieveTransformQueryConfig),
|
121
130
|
],
|
122
131
|
},
|
123
132
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/carts/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/carts/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAG4B;AAC5B,mDAAwE;AACxE,0HAA4H;AAC5H,4GAA4G;AAC5G,yEAA0D;AAC1D,qDAA0D;AAC1D,4DAA6C;AAC7C,6CAWqB;AAER,QAAA,0BAA0B,GAAsB;IAC3D;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE;YACX,IAAA,qCAAyB,EACvB,8BAAiB,EACjB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,cAAc;QACvB,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,4BAAe,CAAC;YACzC,IAAA,qCAAyB,EACvB,8BAAiB,EACjB,WAAW,CAAC,4BAA4B,CACzC;YACD,6DAA+B;YAC/B,6EAAwC;SACzC;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,4BAAe,CAAC;YACzC,IAAA,qCAAyB,EACvB,8BAAiB,EACjB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE;YACX,IAAA,mBAAY,EAAC,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC/C,IAAA,oCAAwB,EAAC,oCAAuB,CAAC;YACjD,IAAA,qCAAyB,EACvB,8BAAiB,EACjB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,iCAAoB,CAAC;Y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CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE;YACX,IAAA,qCAAyB,EACvB,gCAAmB,EACnB,gBAAgB,CAAC,4BAA4B,CAC9C;SACF;KACF;CACF,CAAA"}
|
@@ -397,4 +397,6 @@ export declare const StoreAddCartShippingMethods: z.ZodObject<{
|
|
397
397
|
}>;
|
398
398
|
export type StoreCreateCartPaymentCollectionType = z.infer<typeof StoreCreateCartPaymentCollection>;
|
399
399
|
export declare const StoreCreateCartPaymentCollection: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
400
|
+
export type StoreUpdateCartCustomerType = z.infer<typeof StoreUpdateCartCustomer>;
|
401
|
+
export declare const StoreUpdateCartCustomer: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
400
402
|
//# sourceMappingURL=validators.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/store/carts/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AACrE,eAAO,MAAM,iBAAiB;;;;;;EAAuB,CAAA;AAQrD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAC5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYZ,CAAA;AACX,eAAO,MAAM,eAAe;;;;gCAAiC,CAAA;AAE7D,MAAM,MA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,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,uBAAuB,CAC/B,CAAA;AACD,eAAO,MAAM,uBAAuB;;;;;;EAAuB,CAAA;AAE3D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAC3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,uBAAuB,CAC/B,CAAA;AACD,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,2BAA2B,CACnC,CAAA;AACD,eAAO,MAAM,2BAA2B;;;;;;;;;EAK7B,CAAA;AAEX,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,gCAAgC,CACxC,CAAA;AACD,eAAO,MAAM,gCAAgC,iDAAwB,CAAA;AAErE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,uBAAuB,CAC/B,CAAA;AACD,eAAO,MAAM,uBAAuB,iDAAwB,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StoreCreateCartPaymentCollection = exports.StoreAddCartShippingMethods = exports.StoreUpdateCartLineItem = exports.StoreAddCartLineItem = exports.StoreCalculateCartTaxes = exports.StoreUpdateCart = exports.UpdateCart = exports.StoreRemoveCartPromotions = exports.StoreAddCartPromotions = exports.StoreCreateCart = exports.CreateCart = exports.StoreGetCartsCart = void 0;
|
3
|
+
exports.StoreUpdateCartCustomer = exports.StoreCreateCartPaymentCollection = exports.StoreAddCartShippingMethods = exports.StoreUpdateCartLineItem = exports.StoreAddCartLineItem = exports.StoreCalculateCartTaxes = exports.StoreUpdateCart = exports.UpdateCart = exports.StoreRemoveCartPromotions = exports.StoreAddCartPromotions = exports.StoreCreateCart = exports.CreateCart = exports.StoreGetCartsCart = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const common_validators_1 = require("../../utils/common-validators");
|
6
6
|
const validators_1 = require("../../utils/validators");
|
@@ -63,4 +63,5 @@ exports.StoreAddCartShippingMethods = zod_1.z
|
|
63
63
|
})
|
64
64
|
.strict();
|
65
65
|
exports.StoreCreateCartPaymentCollection = zod_1.z.object({}).strict();
|
66
|
+
exports.StoreUpdateCartCustomer = zod_1.z.object({}).strict();
|
66
67
|
//# sourceMappingURL=validators.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../src/api/store/carts/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,qEAA8D;AAC9D,uDAA+E;AAGlE,QAAA,iBAAiB,GAAG,IAAA,+BAAkB,GAAE,CAAA;AAErD,MAAM,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1C,CAAC,CAAA;AAGW,QAAA,UAAU,GAAG,OAAC;KACxB,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,kCAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClE,eAAe,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,kCAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAA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,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1C,CAAC,CAAA;AAKW,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1C,CAAC,CAAA;AAKW,QAAA,2BAA2B,GAAG,OAAC;KACzC,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC;KACD,MAAM,EAAE,CAAA;AAKE,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAA;AAKxD,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework";
|
2
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
3
|
+
import { StoreAcceptOrderTransferType } from "../../../validators";
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<StoreAcceptOrderTransferType>, res: MedusaResponse<HttpTypes.StoreOrderResponse>) => Promise<void>;
|
5
|
+
//# sourceMappingURL=route.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/store/orders/[id]/transfer/accept/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAMrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAElE,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,4BAA4B,CAAC,OACxD,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAiBlD,CAAA"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.POST = void 0;
|
4
|
+
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
+
const POST = async (req, res) => {
|
6
|
+
await (0, core_flows_1.acceptOrderTransferWorkflow)(req.scope).run({
|
7
|
+
input: {
|
8
|
+
order_id: req.params.id,
|
9
|
+
token: req.validatedBody.token,
|
10
|
+
},
|
11
|
+
});
|
12
|
+
const { result } = await (0, core_flows_1.getOrderDetailWorkflow)(req.scope).run({
|
13
|
+
input: {
|
14
|
+
fields: req.remoteQueryConfig.fields,
|
15
|
+
order_id: req.params.id,
|
16
|
+
},
|
17
|
+
});
|
18
|
+
res.status(200).json({ order: result });
|
19
|
+
};
|
20
|
+
exports.POST = POST;
|
21
|
+
//# sourceMappingURL=route.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../src/api/store/orders/[id]/transfer/accept/route.ts"],"names":[],"mappings":";;;AAEA,qDAG6B;AAItB,MAAM,IAAI,GAAG,KAAK,EACvB,GAA6D,EAC7D,GAAiD,EACjD,EAAE;IACF,MAAM,IAAA,wCAA2B,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC/C,KAAK,EAAE;YACL,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;YACvB,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,KAAK;SAC/B;KACF,CAAC,CAAA;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,mCAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC7D,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;YACpC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;SACxB;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAA8B,EAAE,CAAC,CAAA;AACjE,CAAC,CAAA;AAnBY,QAAA,IAAI,QAmBhB"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
2
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
3
|
+
import { StoreRequestOrderTransferType } from "../../../validators";
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<StoreRequestOrderTransferType>, res: MedusaResponse<HttpTypes.StoreOrderResponse>) => Promise<void>;
|
5
|
+
//# sourceMappingURL=route.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/api/store/orders/[id]/transfer/request/route.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAEnE,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,6BAA6B,CAAC,OACzD,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAsBlD,CAAA"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.POST = void 0;
|
4
|
+
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
+
const POST = async (req, res) => {
|
6
|
+
const orderId = req.params.id;
|
7
|
+
const customerId = req.auth_context.actor_id;
|
8
|
+
await (0, core_flows_1.requestOrderTransferWorkflow)(req.scope).run({
|
9
|
+
input: {
|
10
|
+
order_id: orderId,
|
11
|
+
customer_id: customerId,
|
12
|
+
logged_in_user: customerId,
|
13
|
+
description: req.validatedBody.description,
|
14
|
+
},
|
15
|
+
});
|
16
|
+
const { result } = await (0, core_flows_1.getOrderDetailWorkflow)(req.scope).run({
|
17
|
+
input: {
|
18
|
+
fields: req.remoteQueryConfig.fields,
|
19
|
+
order_id: orderId,
|
20
|
+
},
|
21
|
+
});
|
22
|
+
res.status(200).json({ order: result });
|
23
|
+
};
|
24
|
+
exports.POST = POST;
|
25
|
+
//# sourceMappingURL=route.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../src/api/store/orders/[id]/transfer/request/route.ts"],"names":[],"mappings":";;;AAAA,qDAG6B;AAQtB,MAAM,IAAI,GAAG,KAAK,EACvB,GAA8D,EAC9D,GAAiD,EACjD,EAAE;IACF,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;IAC7B,MAAM,UAAU,GAAG,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAA;IAE5C,MAAM,IAAA,yCAA4B,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAChD,KAAK,EAAE;YACL,QAAQ,EAAE,OAAO;YACjB,WAAW,EAAE,UAAU;YACvB,cAAc,EAAE,UAAU;YAC1B,WAAW,EAAE,GAAG,CAAC,aAAa,CAAC,WAAW;SAC3C;KACF,CAAC,CAAA;IAEF,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,mCAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC7D,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;YACpC,QAAQ,EAAE,OAAO;SAClB;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAA8B,EAAE,CAAC,CAAA;AACjE,CAAC,CAAA;AAxBY,QAAA,IAAI,QAwBhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEhB,MAAM,0BAA0B,CAAA;AAWjC,eAAO,MAAM,2BAA2B,EAAE,eAAe,EA6CxD,CAAA"}
|
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.storeOrderRoutesMiddlewares = void 0;
|
27
|
+
const http_1 = require("@medusajs/framework/http");
|
27
28
|
const authenticate_middleware_1 = require("../../../utils/middlewares/authenticate-middleware");
|
28
29
|
const framework_1 = require("@medusajs/framework");
|
29
30
|
const QueryConfig = __importStar(require("./query-config"));
|
@@ -44,5 +45,22 @@ exports.storeOrderRoutesMiddlewares = [
|
|
44
45
|
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
45
46
|
],
|
46
47
|
},
|
48
|
+
{
|
49
|
+
method: ["POST"],
|
50
|
+
matcher: "/store/orders/:id/transfer/request",
|
51
|
+
middlewares: [
|
52
|
+
(0, authenticate_middleware_1.authenticate)("customer", ["session", "bearer"]),
|
53
|
+
(0, http_1.validateAndTransformBody)(validators_1.StoreRequestOrderTransfer),
|
54
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
55
|
+
],
|
56
|
+
},
|
57
|
+
{
|
58
|
+
method: ["POST"],
|
59
|
+
matcher: "/store/orders/:id/transfer/accept",
|
60
|
+
middlewares: [
|
61
|
+
(0, http_1.validateAndTransformBody)(validators_1.StoreAcceptOrderTransfer),
|
62
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
63
|
+
],
|
64
|
+
},
|
47
65
|
];
|
48
66
|
//# sourceMappingURL=middlewares.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAGiC;AACjC,gGAAiF;AACjF,mDAA+D;AAC/D,4DAA6C;AAC7C,6CAKqB;AAER,QAAA,2BAA2B,GAAsB;IAC5D;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE;YACX,IAAA,sCAAY,EAAC,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC/C,IAAA,qCAAyB,EACvB,iCAAoB,EACpB,WAAW,CAAC,wBAAwB,CACrC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE;YACX,IAAA,qCAAyB,EACvB,gCAAmB,EACnB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EAAE;YACX,IAAA,sCAAY,EAAC,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAwB,EAAC,sCAAyB,CAAC;YACnD,IAAA,qCAAyB,EACvB,gCAAmB,EACnB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EAAE;YACX,IAAA,+BAAwB,EAAC,qCAAwB,CAAC;YAClD,IAAA,qCAAyB,EACvB,gCAAmB,EACnB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;CACF,CAAA"}
|
@@ -53,4 +53,20 @@ export declare const StoreGetOrdersParams: z.ZodObject<{
|
|
53
53
|
}[] | undefined;
|
54
54
|
}>;
|
55
55
|
export type StoreGetOrdersParamsType = z.infer<typeof StoreGetOrdersParams>;
|
56
|
+
export declare const StoreAcceptOrderTransfer: z.ZodObject<{
|
57
|
+
token: z.ZodString;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
token: string;
|
60
|
+
}, {
|
61
|
+
token: string;
|
62
|
+
}>;
|
63
|
+
export type StoreAcceptOrderTransferType = z.infer<typeof StoreAcceptOrderTransfer>;
|
64
|
+
export type StoreRequestOrderTransferType = z.infer<typeof StoreRequestOrderTransfer>;
|
65
|
+
export declare const StoreRequestOrderTransfer: z.ZodObject<{
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
68
|
+
description?: string | undefined;
|
69
|
+
}, {
|
70
|
+
description?: string | undefined;
|
71
|
+
}>;
|
56
72
|
//# sourceMappingURL=validators.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,mBAAmB;;;;;;EAAuB,CAAA;AACvD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAEzE,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK2B,CAAA;AAE5D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,mBAAmB;;;;;;EAAuB,CAAA;AACvD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAEzE,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK2B,CAAA;AAE5D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE3E,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,wBAAwB,CAChC,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,yBAAyB,CACjC,CAAA;AACD,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StoreGetOrdersParams = exports.StoreGetOrdersParamsFields = exports.StoreGetOrderParams = void 0;
|
3
|
+
exports.StoreRequestOrderTransfer = exports.StoreAcceptOrderTransfer = exports.StoreGetOrdersParams = exports.StoreGetOrdersParamsFields = exports.StoreGetOrderParams = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const validators_1 = require("../../utils/validators");
|
6
6
|
const common_validators_1 = require("../../utils/common-validators");
|
@@ -15,4 +15,10 @@ exports.StoreGetOrdersParams = (0, validators_1.createFindParams)({
|
|
15
15
|
})
|
16
16
|
.merge(exports.StoreGetOrdersParamsFields)
|
17
17
|
.merge((0, common_validators_1.applyAndAndOrOperators)(exports.StoreGetOrdersParamsFields));
|
18
|
+
exports.StoreAcceptOrderTransfer = zod_1.z.object({
|
19
|
+
token: zod_1.z.string().min(1),
|
20
|
+
});
|
21
|
+
exports.StoreRequestOrderTransfer = zod_1.z.object({
|
22
|
+
description: zod_1.z.string().optional(),
|
23
|
+
});
|
18
24
|
//# sourceMappingURL=validators.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../src/api/store/orders/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,uDAA6E;AAC7E,qEAAsE;AAEzD,QAAA,mBAAmB,GAAG,IAAA,+BAAkB,GAAE,CAAA;AAG1C,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,IAAA,6BAAgB,EAAC;IACnD,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,EAAE;CACV,CAAC;KACC,KAAK,CAAC,kCAA0B,CAAC;KACjC,KAAK,CAAC,IAAA,0CAAsB,EAAC,kCAA0B,CAAC,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../src/api/store/orders/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,uDAA6E;AAC7E,qEAAsE;AAEzD,QAAA,mBAAmB,GAAG,IAAA,+BAAkB,GAAE,CAAA;AAG1C,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,IAAA,6BAAgB,EAAC;IACnD,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,EAAE;CACV,CAAC;KACC,KAAK,CAAC,kCAA0B,CAAC;KACjC,KAAK,CAAC,IAAA,0CAAsB,EAAC,kCAA0B,CAAC,CAAC,CAAA;AAI/C,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAA;AASW,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA"}
|
@@ -114,7 +114,7 @@ async function dbCreate({ db, directory, interactive, }) {
|
|
114
114
|
logger_1.logger.info(`Connection established with the database "${dbName}"`);
|
115
115
|
if (await (0, utils_1.dbExists)(client, dbName)) {
|
116
116
|
logger_1.logger.info(`Database "${dbName}" already exists`);
|
117
|
-
envEditor.set("DB_NAME", dbName);
|
117
|
+
envEditor.set("DB_NAME", dbName, { withEmptyTemplateValue: true });
|
118
118
|
await envEditor.save();
|
119
119
|
logger_1.logger.info(`Updated .env file with "DB_NAME=${dbName}"`);
|
120
120
|
return true;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/db/create.ts"],"names":[],"mappings":";;;;;AAyBA,4BAiIC;AA1JD,sDAA6B;AAC7B,+BAA+B;AAC/B,4DAAmC;AACnC,uDAAmD;AACnD,qDAMkC;AAElC,KAAK,UAAU,aAAa,CAAC,MAAuC;IAClE,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IACzC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACpC,CAAC;AACH,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,QAAQ,CAAC,EAC7B,EAAE,EACF,SAAS,EACT,WAAW,GAKZ;IACC,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf;;;;OAIG;IACH,MAAM,SAAS,GAAG,IAAI,iBAAS,CAAC,SAAS,CAAC,CAAA;IAC1C,MAAM,SAAS,CAAC,IAAI,EAAE,CAAA;IAEtB;;;;;;OAMG;IACH,MAAM,kBAAkB,GAAG,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IACxD,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,eAAM,CAAC,KAAK,CACV,wGAAwG,CACzG,CAAA;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,YAAY,GAChB,SAAS,CAAC,GAAG,C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AI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;AACH,CAAC,CAAA;AAED,kBAAe,IAAI,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-webhook.d.ts","sourceRoot":"","sources":["../../src/subscribers/payment-webhook.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"payment-webhook.d.ts","sourceRoot":"","sources":["../../src/subscribers/payment-webhook.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EACvB,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAOvE,wBAA8B,qBAAqB,CAAC,EAClD,KAAK,EACL,SAAS,GACV,EAAE,cAAc,CAAC,sBAAsB,CAAC,iBA4BxC;AAED,eAAO,MAAM,MAAM,EAAE,gBAKpB,CAAA"}
|
@@ -7,7 +7,7 @@ const utils_1 = require("@medusajs/framework/utils");
|
|
7
7
|
async function paymentWebhookhandler({ event, container, }) {
|
8
8
|
const paymentService = container.resolve(utils_1.Modules.PAYMENT);
|
9
9
|
const input = event.data;
|
10
|
-
if (input.payload
|
10
|
+
if (input.payload?.rawData?.type === "Buffer") {
|
11
11
|
input.payload.rawData = Buffer.from(input.payload.rawData.data);
|
12
12
|
}
|
13
13
|
const processedEvent = await paymentService.getWebhookActionAndData(input);
|
@@ -20,10 +20,6 @@ async function paymentWebhookhandler({ event, container, }) {
|
|
20
20
|
await (0, core_flows_1.processPaymentWorkflow)(container).run({
|
21
21
|
input: processedEvent,
|
22
22
|
});
|
23
|
-
// We process the intended side effects of payment processing separately.
|
24
|
-
await (0, core_flows_1.onPaymentProcessedWorkflow)(container).run({
|
25
|
-
input: processedEvent,
|
26
|
-
});
|
27
23
|
}
|
28
24
|
exports.config = {
|
29
25
|
event: utils_1.PaymentWebhookEvents.WebhookReceived,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-webhook.js","sourceRoot":"","sources":["../../src/subscribers/payment-webhook.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"payment-webhook.js","sourceRoot":"","sources":["../../src/subscribers/payment-webhook.ts"],"names":[],"mappings":";;;AAiBA,wCA+BC;AAhDD,qDAA6D;AAK7D,qDAIkC;AAQnB,KAAK,UAAU,qBAAqB,CAAC,EAClD,KAAK,EACL,SAAS,GAC8B;IACvC,MAAM,cAAc,GAA0B,SAAS,CAAC,OAAO,CAC7D,eAAO,CAAC,OAAO,CAChB,CAAA;IAED,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAA;IAExB,IACG,KAAK,CAAC,OAAO,EAAE,OAAuC,EAAE,IAAI,KAAK,QAAQ,EAC1E,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAChC,KAAK,CAAC,OAAO,CAAC,OAAuC,CAAC,IAAI,CAC5D,CAAA;IACH,CAAC;IAED,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAA;IAE1E,IAAI,cAAc,EAAE,MAAM,KAAK,sBAAc,CAAC,aAAa,EAAE,CAAC;QAC5D,OAAM;IACR,CAAC;IAED,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QACzB,OAAM;IACR,CAAC;IAED,MAAM,IAAA,mCAAsB,EAAC,SAAS,CAAC,CAAC,GAAG,CAAC;QAC1C,KAAK,EAAE,cAAc;KACtB,CAAC,CAAA;AACJ,CAAC;AAEY,QAAA,MAAM,GAAqB;IACtC,KAAK,EAAE,4BAAoB,CAAC,eAAe;IAC3C,OAAO,EAAE;QACP,YAAY,EAAE,yBAAyB;KACxC;CACF,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/index.ts","../src/api/middlewares.ts","../src/api/admin/api-keys/helpers.ts","../src/api/admin/api-keys/middlewares.ts","../src/api/admin/api-keys/query-config.ts","../src/api/admin/api-keys/route.ts","../src/api/admin/api-keys/validators.ts","../src/api/admin/api-keys/[id]/route.ts","../src/api/admin/api-keys/[id]/revoke/route.ts","../src/api/admin/api-keys/[id]/sales-channels/route.ts","../src/api/admin/campaigns/helpers.ts","../src/api/admin/campaigns/middlewares.ts","../src/api/admin/campaigns/query-config.ts","../src/api/admin/campaigns/route.ts","../src/api/admin/campaigns/validators.ts","../src/api/admin/campaigns/[id]/route.ts","../src/api/admin/campaigns/[id]/promotions/route.ts","../src/api/admin/claims/middlewares.ts","../src/api/admin/claims/query-config.ts","../src/api/admin/claims/route.ts","../src/api/admin/claims/validators.ts","../src/api/admin/claims/[id]/route.ts","../src/api/admin/claims/[id]/cancel/route.ts","../src/api/admin/claims/[id]/claim-items/route.ts","../src/api/admin/claims/[id]/claim-items/[action_id]/route.ts","../src/api/admin/claims/[id]/inbound/items/route.ts","../src/api/admin/claims/[id]/inbound/items/[action_id]/route.ts","../src/api/admin/claims/[id]/inbound/shipping-method/route.ts","../src/api/admin/claims/[id]/inbound/shipping-method/[action_id]/route.ts","../src/api/admin/claims/[id]/outbound/items/route.ts","../src/api/admin/claims/[id]/outbound/items/[action_id]/route.ts","../src/api/admin/claims/[id]/outbound/shipping-method/route.ts","../src/api/admin/claims/[id]/outbound/shipping-method/[action_id]/route.ts","../src/api/admin/claims/[id]/request/route.ts","../src/api/admin/collections/helpers.ts","../src/api/admin/collections/middlewares.ts","../src/api/admin/collections/query-config.ts","../src/api/admin/collections/route.ts","../src/api/admin/collections/validators.ts","../src/api/admin/collections/[id]/route.ts","../src/api/admin/collections/[id]/products/route.ts","../src/api/admin/currencies/middlewares.ts","../src/api/admin/currencies/query-config.ts","../src/api/admin/currencies/route.ts","../src/api/admin/currencies/validators.ts","../src/api/admin/currencies/[code]/route.ts","../src/api/admin/customer-groups/helpers.ts","../src/api/admin/customer-groups/middlewares.ts","../src/api/admin/customer-groups/query-config.ts","../src/api/admin/customer-groups/route.ts","../src/api/admin/customer-groups/validators.ts","../src/api/admin/customer-groups/[id]/route.ts","../src/api/admin/customer-groups/[id]/customers/route.ts","../src/api/admin/customers/helpers.ts","../src/api/admin/customers/middlewares.ts","../src/api/admin/customers/query-config.ts","../src/api/admin/customers/route.ts","../src/api/admin/customers/validators.ts","../src/api/admin/customers/[id]/route.ts","../src/api/admin/customers/[id]/addresses/route.ts","../src/api/admin/customers/[id]/addresses/[address_id]/route.ts","../src/api/admin/customers/[id]/customer-groups/route.ts","../src/api/admin/draft-orders/helpers.ts","../src/api/admin/draft-orders/middlewares.ts","../src/api/admin/draft-orders/query-config.ts","../src/api/admin/draft-orders/route.ts","../src/api/admin/draft-orders/validators.ts","../src/api/admin/draft-orders/[id]/route.ts","../src/api/admin/exchanges/middlewares.ts","../src/api/admin/exchanges/query-config.ts","../src/api/admin/exchanges/route.ts","../src/api/admin/exchanges/validators.ts","../src/api/admin/exchanges/[id]/route.ts","../src/api/admin/exchanges/[id]/cancel/route.ts","../src/api/admin/exchanges/[id]/inbound/items/route.ts","../src/api/admin/exchanges/[id]/inbound/items/[action_id]/route.ts","../src/api/admin/exchanges/[id]/inbound/shipping-method/route.ts","../src/api/admin/exchanges/[id]/inbound/shipping-method/[action_id]/route.ts","../src/api/admin/exchanges/[id]/outbound/items/route.ts","../src/api/admin/exchanges/[id]/outbound/items/[action_id]/route.ts","../src/api/admin/exchanges/[id]/outbound/shipping-method/route.ts","../src/api/admin/exchanges/[id]/outbound/shipping-method/[action_id]/route.ts","../src/api/admin/exchanges/[id]/request/route.ts","../src/api/admin/fulfillment-providers/middlewares.ts","../src/api/admin/fulfillment-providers/query-config.ts","../src/api/admin/fulfillment-providers/route.ts","../src/api/admin/fulfillment-providers/validators.ts","../src/api/admin/fulfillment-sets/helpers.ts","../src/api/admin/fulfillment-sets/middlewares.ts","../src/api/admin/fulfillment-sets/query-config.ts","../src/api/admin/fulfillment-sets/validators.ts","../src/api/admin/fulfillment-sets/[id]/route.ts","../src/api/admin/fulfillment-sets/[id]/service-zones/route.ts","../src/api/admin/fulfillment-sets/[id]/service-zones/[zone_id]/route.ts","../src/api/admin/fulfillment-sets/validators/geo-zone.ts","../src/api/admin/fulfillments/helpers.ts","../src/api/admin/fulfillments/middlewares.ts","../src/api/admin/fulfillments/query-config.ts","../src/api/admin/fulfillments/route.ts","../src/api/admin/fulfillments/validators.ts","../src/api/admin/fulfillments/[id]/cancel/route.ts","../src/api/admin/fulfillments/[id]/shipment/route.ts","../src/api/admin/inventory-items/helpers.ts","../src/api/admin/inventory-items/middlewares.ts","../src/api/admin/inventory-items/query-config.ts","../src/api/admin/inventory-items/route.ts","../src/api/admin/inventory-items/validators.ts","../src/api/admin/inventory-items/[id]/route.ts","../src/api/admin/inventory-items/[id]/location-levels/route.ts","../src/api/admin/inventory-items/[id]/location-levels/[location_id]/route.ts","../src/api/admin/inventory-items/[id]/location-levels/batch/route.ts","../src/api/admin/invites/helpers.ts","../src/api/admin/invites/middlewares.ts","../src/api/admin/invites/query-config.ts","../src/api/admin/invites/route.ts","../src/api/admin/invites/validators.ts","../src/api/admin/invites/[id]/route.ts","../src/api/admin/invites/[id]/resend/route.ts","../src/api/admin/invites/accept/route.ts","../src/api/admin/notifications/middlewares.ts","../src/api/admin/notifications/query-config.ts","../src/api/admin/notifications/route.ts","../src/api/admin/notifications/validators.ts","../src/api/admin/notifications/[id]/route.ts","../src/api/admin/order-edits/middlewares.ts","../src/api/admin/order-edits/query-config.ts","../src/api/admin/order-edits/route.ts","../src/api/admin/order-edits/validators.ts","../src/api/admin/order-edits/[id]/route.ts","../src/api/admin/order-edits/[id]/confirm/route.ts","../src/api/admin/order-edits/[id]/items/route.ts","../src/api/admin/order-edits/[id]/items/[action_id]/route.ts","../src/api/admin/order-edits/[id]/items/item/[item_id]/route.ts","../src/api/admin/order-edits/[id]/request/route.ts","../src/api/admin/order-edits/[id]/shipping-method/route.ts","../src/api/admin/order-edits/[id]/shipping-method/[action_id]/route.ts","../src/api/admin/orders/middlewares.ts","../src/api/admin/orders/query-config.ts","../src/api/admin/orders/route.ts","../src/api/admin/orders/validators.ts","../src/api/admin/orders/[id]/route.ts","../src/api/admin/orders/[id]/archive/route.ts","../src/api/admin/orders/[id]/cancel/route.ts","../src/api/admin/orders/[id]/changes/route.ts","../src/api/admin/orders/[id]/complete/route.ts","../src/api/admin/orders/[id]/fulfillments/route.ts","../src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.ts","../src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.ts","../src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.ts","../src/api/admin/orders/[id]/line-items/route.ts","../src/api/admin/orders/[id]/preview/route.ts","../src/api/admin/payment-collections/middlewares.ts","../src/api/admin/payment-collections/query-config.ts","../src/api/admin/payment-collections/route.ts","../src/api/admin/payment-collections/validators.ts","../src/api/admin/payment-collections/[id]/route.ts","../src/api/admin/payment-collections/[id]/mark-as-paid/route.ts","../src/api/admin/payments/helpers.ts","../src/api/admin/payments/middlewares.ts","../src/api/admin/payments/query-config.ts","../src/api/admin/payments/route.ts","../src/api/admin/payments/validators.ts","../src/api/admin/payments/[id]/route.ts","../src/api/admin/payments/[id]/capture/route.ts","../src/api/admin/payments/[id]/refund/route.ts","../src/api/admin/payments/payment-providers/route.ts","../src/api/admin/price-lists/helpers.ts","../src/api/admin/price-lists/middlewares.ts","../src/api/admin/price-lists/query-config.ts","../src/api/admin/price-lists/route.ts","../src/api/admin/price-lists/types.ts","../src/api/admin/price-lists/validators.ts","../src/api/admin/price-lists/[id]/route.ts","../src/api/admin/price-lists/[id]/prices/batch/route.ts","../src/api/admin/price-lists/[id]/products/route.ts","../src/api/admin/price-lists/queries/get-price-list.ts","../src/api/admin/price-lists/queries/index.ts","../src/api/admin/price-lists/queries/list-price-lists.ts","../src/api/admin/price-lists/queries/list-prices.ts","../src/api/admin/price-preferences/middlewares.ts","../src/api/admin/price-preferences/query-config.ts","../src/api/admin/price-preferences/route.ts","../src/api/admin/price-preferences/validators.ts","../src/api/admin/price-preferences/[id]/route.ts","../src/api/admin/product-categories/middlewares.ts","../src/api/admin/product-categories/query-config.ts","../src/api/admin/product-categories/route.ts","../src/api/admin/product-categories/validators.ts","../src/api/admin/product-categories/[id]/route.ts","../src/api/admin/product-categories/[id]/products/route.ts","../src/api/admin/product-tags/middlewares.ts","../src/api/admin/product-tags/query-config.ts","../src/api/admin/product-tags/route.ts","../src/api/admin/product-tags/validators.ts","../src/api/admin/product-tags/[id]/route.ts","../src/api/admin/product-types/helpers.ts","../src/api/admin/product-types/middlewares.ts","../src/api/admin/product-types/query-config.ts","../src/api/admin/product-types/route.ts","../src/api/admin/product-types/validators.ts","../src/api/admin/product-types/[id]/route.ts","../src/api/admin/product-variants/middlewares.ts","../src/api/admin/product-variants/query-config.ts","../src/api/admin/product-variants/route.ts","../src/api/admin/product-variants/validators.ts","../src/api/admin/products/helpers.ts","../src/api/admin/products/middlewares.ts","../src/api/admin/products/query-config.ts","../src/api/admin/products/route.ts","../src/api/admin/products/validators.ts","../src/api/admin/products/[id]/route.ts","../src/api/admin/products/[id]/options/route.ts","../src/api/admin/products/[id]/options/[option_id]/route.ts","../src/api/admin/products/[id]/variants/route.ts","../src/api/admin/products/[id]/variants/[variant_id]/route.ts","../src/api/admin/products/[id]/variants/[variant_id]/inventory-items/route.ts","../src/api/admin/products/[id]/variants/[variant_id]/inventory-items/[inventory_item_id]/route.ts","../src/api/admin/products/[id]/variants/batch/route.ts","../src/api/admin/products/[id]/variants/inventory-items/batch/route.ts","../src/api/admin/products/batch/route.ts","../src/api/admin/products/export/route.ts","../src/api/admin/products/import/route.ts","../src/api/admin/products/import/[transaction_id]/confirm/route.ts","../src/api/admin/products/utils/index.ts","../src/api/admin/products/utils/maybe-apply-price-lists-filter.ts","../src/api/admin/promotions/helpers.ts","../src/api/admin/promotions/middlewares.ts","../src/api/admin/promotions/query-config.ts","../src/api/admin/promotions/route.ts","../src/api/admin/promotions/validators.ts","../src/api/admin/promotions/[id]/route.ts","../src/api/admin/promotions/[id]/[rule_type]/route.ts","../src/api/admin/promotions/[id]/buy-rules/batch/route.ts","../src/api/admin/promotions/[id]/rules/batch/route.ts","../src/api/admin/promotions/[id]/target-rules/batch/route.ts","../src/api/admin/promotions/rule-attribute-options/[rule_type]/route.ts","../src/api/admin/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.ts","../src/api/admin/promotions/utils/index.ts","../src/api/admin/promotions/utils/operators-map.ts","../src/api/admin/promotions/utils/rule-attributes-map.ts","../src/api/admin/promotions/utils/rule-query-configuration.ts","../src/api/admin/promotions/utils/validate-rule-attribute.ts","../src/api/admin/promotions/utils/validate-rule-type.ts","../src/api/admin/refund-reasons/middlewares.ts","../src/api/admin/refund-reasons/query-config.ts","../src/api/admin/refund-reasons/route.ts","../src/api/admin/refund-reasons/validators.ts","../src/api/admin/refund-reasons/[id]/route.ts","../src/api/admin/regions/helpers.ts","../src/api/admin/regions/middlewares.ts","../src/api/admin/regions/query-config.ts","../src/api/admin/regions/route.ts","../src/api/admin/regions/validators.ts","../src/api/admin/regions/[id]/route.ts","../src/api/admin/reservations/helpers.ts","../src/api/admin/reservations/middlewares.ts","../src/api/admin/reservations/query-config.ts","../src/api/admin/reservations/route.ts","../src/api/admin/reservations/validators.ts","../src/api/admin/reservations/[id]/route.ts","../src/api/admin/return-reasons/middlewares.ts","../src/api/admin/return-reasons/query-config.ts","../src/api/admin/return-reasons/route.ts","../src/api/admin/return-reasons/validators.ts","../src/api/admin/return-reasons/[id]/route.ts","../src/api/admin/returns/middlewares.ts","../src/api/admin/returns/query-config.ts","../src/api/admin/returns/route.ts","../src/api/admin/returns/validators.ts","../src/api/admin/returns/[id]/route.ts","../src/api/admin/returns/[id]/cancel/route.ts","../src/api/admin/returns/[id]/dismiss-items/route.ts","../src/api/admin/returns/[id]/dismiss-items/[action_id]/route.ts","../src/api/admin/returns/[id]/receive/route.ts","../src/api/admin/returns/[id]/receive/confirm/route.ts","../src/api/admin/returns/[id]/receive-items/route.ts","../src/api/admin/returns/[id]/receive-items/[action_id]/route.ts","../src/api/admin/returns/[id]/request/route.ts","../src/api/admin/returns/[id]/request-items/route.ts","../src/api/admin/returns/[id]/request-items/[action_id]/route.ts","../src/api/admin/returns/[id]/shipping-method/route.ts","../src/api/admin/returns/[id]/shipping-method/[action_id]/route.ts","../src/api/admin/sales-channels/helpers.ts","../src/api/admin/sales-channels/middlewares.ts","../src/api/admin/sales-channels/query-config.ts","../src/api/admin/sales-channels/route.ts","../src/api/admin/sales-channels/validators.ts","../src/api/admin/sales-channels/[id]/route.ts","../src/api/admin/sales-channels/[id]/products/route.ts","../src/api/admin/shipping-options/helpers.ts","../src/api/admin/shipping-options/middlewares.ts","../src/api/admin/shipping-options/query-config.ts","../src/api/admin/shipping-options/route.ts","../src/api/admin/shipping-options/validators.ts","../src/api/admin/shipping-options/[id]/route.ts","../src/api/admin/shipping-options/[id]/rules/batch/route.ts","../src/api/admin/shipping-profiles/helpers.ts","../src/api/admin/shipping-profiles/middlewares.ts","../src/api/admin/shipping-profiles/query-config.ts","../src/api/admin/shipping-profiles/route.ts","../src/api/admin/shipping-profiles/validators.ts","../src/api/admin/shipping-profiles/[id]/route.ts","../src/api/admin/stock-locations/helpers.ts","../src/api/admin/stock-locations/middlewares.ts","../src/api/admin/stock-locations/query-config.ts","../src/api/admin/stock-locations/route.ts","../src/api/admin/stock-locations/validators.ts","../src/api/admin/stock-locations/[id]/route.ts","../src/api/admin/stock-locations/[id]/fulfillment-providers/route.ts","../src/api/admin/stock-locations/[id]/fulfillment-sets/route.ts","../src/api/admin/stock-locations/[id]/sales-channels/route.ts","../src/api/admin/stores/helpers.ts","../src/api/admin/stores/middlewares.ts","../src/api/admin/stores/query-config.ts","../src/api/admin/stores/route.ts","../src/api/admin/stores/validators.ts","../src/api/admin/stores/[id]/route.ts","../src/api/admin/tax-rates/helpers.ts","../src/api/admin/tax-rates/middlewares.ts","../src/api/admin/tax-rates/query-config.ts","../src/api/admin/tax-rates/route.ts","../src/api/admin/tax-rates/validators.ts","../src/api/admin/tax-rates/[id]/route.ts","../src/api/admin/tax-rates/[id]/rules/route.ts","../src/api/admin/tax-rates/[id]/rules/[rule_id]/route.ts","../src/api/admin/tax-regions/helpers.ts","../src/api/admin/tax-regions/middlewares.ts","../src/api/admin/tax-regions/query-config.ts","../src/api/admin/tax-regions/route.ts","../src/api/admin/tax-regions/validators.ts","../src/api/admin/tax-regions/[id]/route.ts","../src/api/admin/uploads/middlewares.ts","../src/api/admin/uploads/query-config.ts","../src/api/admin/uploads/route.ts","../src/api/admin/uploads/validators.ts","../src/api/admin/uploads/[id]/route.ts","../src/api/admin/users/helpers.ts","../src/api/admin/users/middlewares.ts","../src/api/admin/users/query-config.ts","../src/api/admin/users/route.ts","../src/api/admin/users/validators.ts","../src/api/admin/users/[id]/route.ts","../src/api/admin/users/me/route.ts","../src/api/admin/workflows-executions/middlewares.ts","../src/api/admin/workflows-executions/query-config.ts","../src/api/admin/workflows-executions/route.ts","../src/api/admin/workflows-executions/validators.ts","../src/api/admin/workflows-executions/[id]/route.ts","../src/api/admin/workflows-executions/[workflow_id]/[transaction_id]/route.ts","../src/api/admin/workflows-executions/[workflow_id]/[transaction_id]/[step_id]/subscribe/route.ts","../src/api/admin/workflows-executions/[workflow_id]/run/route.ts","../src/api/admin/workflows-executions/[workflow_id]/steps/failure/route.ts","../src/api/admin/workflows-executions/[workflow_id]/steps/success/route.ts","../src/api/admin/workflows-executions/[workflow_id]/subscribe/route.ts","../src/api/auth/middlewares.ts","../src/api/auth/validators.ts","../src/api/auth/[actor_type]/[auth_provider]/route.ts","../src/api/auth/[actor_type]/[auth_provider]/callback/route.ts","../src/api/auth/[actor_type]/[auth_provider]/register/route.ts","../src/api/auth/[actor_type]/[auth_provider]/reset-password/route.ts","../src/api/auth/[actor_type]/[auth_provider]/update/route.ts","../src/api/auth/session/route.ts","../src/api/auth/token/refresh/route.ts","../src/api/auth/utils/generate-jwt-token.ts","../src/api/auth/utils/validate-scope-provider-association.ts","../src/api/auth/utils/validate-token.ts","../src/api/hooks/middlewares.ts","../src/api/hooks/payment/[provider]/route.ts","../src/api/store/middlewares.ts","../src/api/store/carts/helpers.ts","../src/api/store/carts/middlewares.ts","../src/api/store/carts/query-config.ts","../src/api/store/carts/route.ts","../src/api/store/carts/validators.ts","../src/api/store/carts/[id]/route.ts","../src/api/store/carts/[id]/complete/route.ts","../src/api/store/carts/[id]/line-items/route.ts","../src/api/store/carts/[id]/line-items/[line_id]/route.ts","../src/api/store/carts/[id]/promotions/route.ts","../src/api/store/carts/[id]/shipping-methods/route.ts","../src/api/store/carts/[id]/taxes/route.ts","../src/api/store/collections/helpers.ts","../src/api/store/collections/middlewares.ts","../src/api/store/collections/query-config.ts","../src/api/store/collections/route.ts","../src/api/store/collections/validators.ts","../src/api/store/collections/[id]/route.ts","../src/api/store/currencies/middlewares.ts","../src/api/store/currencies/query-config.ts","../src/api/store/currencies/route.ts","../src/api/store/currencies/validators.ts","../src/api/store/currencies/[code]/route.ts","../src/api/store/customers/helpers.ts","../src/api/store/customers/middlewares.ts","../src/api/store/customers/query-config.ts","../src/api/store/customers/route.ts","../src/api/store/customers/validators.ts","../src/api/store/customers/me/route.ts","../src/api/store/customers/me/addresses/route.ts","../src/api/store/customers/me/addresses/[address_id]/route.ts","../src/api/store/orders/helpers.ts","../src/api/store/orders/middlewares.ts","../src/api/store/orders/query-config.ts","../src/api/store/orders/route.ts","../src/api/store/orders/validators.ts","../src/api/store/orders/[id]/route.ts","../src/api/store/payment-collections/helpers.ts","../src/api/store/payment-collections/middlewares.ts","../src/api/store/payment-collections/query-config.ts","../src/api/store/payment-collections/route.ts","../src/api/store/payment-collections/validators.ts","../src/api/store/payment-collections/[id]/payment-sessions/route.ts","../src/api/store/payment-providers/middlewares.ts","../src/api/store/payment-providers/query-config.ts","../src/api/store/payment-providers/route.ts","../src/api/store/payment-providers/validators.ts","../src/api/store/product-categories/helpers.ts","../src/api/store/product-categories/middlewares.ts","../src/api/store/product-categories/query-config.ts","../src/api/store/product-categories/route.ts","../src/api/store/product-categories/validators.ts","../src/api/store/product-categories/[id]/route.ts","../src/api/store/products/helpers.ts","../src/api/store/products/middlewares.ts","../src/api/store/products/query-config.ts","../src/api/store/products/route.ts","../src/api/store/products/validators.ts","../src/api/store/products/[id]/route.ts","../src/api/store/regions/middlewares.ts","../src/api/store/regions/query-config.ts","../src/api/store/regions/route.ts","../src/api/store/regions/validators.ts","../src/api/store/regions/[id]/route.ts","../src/api/store/return/middlewares.ts","../src/api/store/return/query-config.ts","../src/api/store/return/route.ts","../src/api/store/return/validators.ts","../src/api/store/return-reasons/middlewares.ts","../src/api/store/return-reasons/query-config.ts","../src/api/store/return-reasons/route.ts","../src/api/store/return-reasons/validators.ts","../src/api/store/return-reasons/[id]/route.ts","../src/api/store/shipping-options/middlewares.ts","../src/api/store/shipping-options/query-config.ts","../src/api/store/shipping-options/route.ts","../src/api/store/shipping-options/validators.ts","../src/api/utils/validators.ts","../src/api/utils/common-validators/common.ts","../src/api/utils/common-validators/index.ts","../src/api/utils/common-validators/products/index.ts","../src/api/utils/middlewares/index.ts","../src/api/utils/middlewares/common/ensure-pub-key-sales-channel-match.ts","../src/api/utils/middlewares/common/maybe-attach-pub-key-scopes.ts","../src/api/utils/middlewares/products/filter-by-valid-sales-channels.ts","../src/api/utils/middlewares/products/index.ts","../src/api/utils/middlewares/products/normalize-data-for-context.ts","../src/api/utils/middlewares/products/set-pricing-context.ts","../src/api/utils/middlewares/products/set-tax-context.ts","../src/api/utils/middlewares/products/variant-inventory-quantity.ts","../src/commands/build.ts","../src/commands/develop.ts","../src/commands/exec.ts","../src/commands/index.ts","../src/commands/start.ts","../src/commands/user.ts","../src/commands/__fixtures__/instrumentation.js","../src/commands/__fixtures__/instrumentation-failure/instrumentation.js","../src/commands/__fixtures__/instrumentation-no-register/instrumentation.js","../src/commands/__tests__/start.spec.ts","../src/commands/db/create.ts","../src/commands/db/generate.ts","../src/commands/db/migrate.ts","../src/commands/db/rollback.ts","../src/commands/db/setup.ts","../src/commands/db/sync-links.ts","../src/commands/utils/index.ts","../src/core-flows/index.ts","../src/instrumentation/index.ts","../src/loaders/admin.ts","../src/loaders/api.ts","../src/loaders/index.ts","../src/loaders/feature-flags/analytics.ts","../src/loaders/feature-flags/medusa-v2.ts","../src/loaders/feature-flags/order-editing.ts","../src/loaders/feature-flags/product-categories.ts","../src/loaders/feature-flags/publishable-api-keys.ts","../src/loaders/feature-flags/sales-channels.ts","../src/loaders/feature-flags/tax-inclusive-pricing.ts","../src/loaders/feature-flags/workflows.ts","../src/loaders/helpers/resolve-plugins.ts","../src/modules/api-key.ts","../src/modules/auth-emailpass.ts","../src/modules/auth-github.ts","../src/modules/auth-google.ts","../src/modules/auth.ts","../src/modules/cache-inmemory.ts","../src/modules/cache-redis.ts","../src/modules/cart.ts","../src/modules/currency.ts","../src/modules/customer.ts","../src/modules/event-bus-local.ts","../src/modules/event-bus-redis.ts","../src/modules/file-local.ts","../src/modules/file-s3.ts","../src/modules/file.ts","../src/modules/fulfillment-manual.ts","../src/modules/fulfillment.ts","../src/modules/index-module.ts","../src/modules/inventory.ts","../src/modules/link-modules.ts","../src/modules/locking-postgres.ts","../src/modules/locking-redis.ts","../src/modules/locking.ts","../src/modules/notification-local.ts","../src/modules/notification-sendgrid.ts","../src/modules/notification.ts","../src/modules/order.ts","../src/modules/payment-stripe.ts","../src/modules/payment.ts","../src/modules/pricing.ts","../src/modules/product.ts","../src/modules/promotion.ts","../src/modules/region.ts","../src/modules/sales-channel.ts","../src/modules/stock-location.ts","../src/modules/store.ts","../src/modules/tax.ts","../src/modules/user.ts","../src/modules/workflow-engine-inmemory.ts","../src/modules/workflow-engine-redis.ts","../src/subscribers/configurable-notifications.ts","../src/subscribers/payment-webhook.ts","../src/types/global.ts","../src/types/index.ts","../src/types/middlewares.ts","../src/types/subscribers.ts","../src/utils/admin-consts.ts","../src/utils/clean-response-data.ts","../src/utils/define-middlewares.ts","../src/utils/diff-set.ts","../src/utils/exception-formatter.ts","../src/utils/format-registration-name.ts","../src/utils/index.ts","../src/utils/__tests__/define-routes-config.spec.ts","../src/utils/__tests__/format-registration-name.js","../src/utils/middlewares/authenticate-middleware.ts","../src/utils/middlewares/error-handler.ts","../src/utils/middlewares/index.ts"],"version":"5.6.2"}
|
1
|
+
{"root":["../src/index.ts","../src/api/middlewares.ts","../src/api/admin/api-keys/helpers.ts","../src/api/admin/api-keys/middlewares.ts","../src/api/admin/api-keys/query-config.ts","../src/api/admin/api-keys/route.ts","../src/api/admin/api-keys/validators.ts","../src/api/admin/api-keys/[id]/route.ts","../src/api/admin/api-keys/[id]/revoke/route.ts","../src/api/admin/api-keys/[id]/sales-channels/route.ts","../src/api/admin/campaigns/helpers.ts","../src/api/admin/campaigns/middlewares.ts","../src/api/admin/campaigns/query-config.ts","../src/api/admin/campaigns/route.ts","../src/api/admin/campaigns/validators.ts","../src/api/admin/campaigns/[id]/route.ts","../src/api/admin/campaigns/[id]/promotions/route.ts","../src/api/admin/claims/middlewares.ts","../src/api/admin/claims/query-config.ts","../src/api/admin/claims/route.ts","../src/api/admin/claims/validators.ts","../src/api/admin/claims/[id]/route.ts","../src/api/admin/claims/[id]/cancel/route.ts","../src/api/admin/claims/[id]/claim-items/route.ts","../src/api/admin/claims/[id]/claim-items/[action_id]/route.ts","../src/api/admin/claims/[id]/inbound/items/route.ts","../src/api/admin/claims/[id]/inbound/items/[action_id]/route.ts","../src/api/admin/claims/[id]/inbound/shipping-method/route.ts","../src/api/admin/claims/[id]/inbound/shipping-method/[action_id]/route.ts","../src/api/admin/claims/[id]/outbound/items/route.ts","../src/api/admin/claims/[id]/outbound/items/[action_id]/route.ts","../src/api/admin/claims/[id]/outbound/shipping-method/route.ts","../src/api/admin/claims/[id]/outbound/shipping-method/[action_id]/route.ts","../src/api/admin/claims/[id]/request/route.ts","../src/api/admin/collections/helpers.ts","../src/api/admin/collections/middlewares.ts","../src/api/admin/collections/query-config.ts","../src/api/admin/collections/route.ts","../src/api/admin/collections/validators.ts","../src/api/admin/collections/[id]/route.ts","../src/api/admin/collections/[id]/products/route.ts","../src/api/admin/currencies/middlewares.ts","../src/api/admin/currencies/query-config.ts","../src/api/admin/currencies/route.ts","../src/api/admin/currencies/validators.ts","../src/api/admin/currencies/[code]/route.ts","../src/api/admin/customer-groups/helpers.ts","../src/api/admin/customer-groups/middlewares.ts","../src/api/admin/customer-groups/query-config.ts","../src/api/admin/customer-groups/route.ts","../src/api/admin/customer-groups/validators.ts","../src/api/admin/customer-groups/[id]/route.ts","../src/api/admin/customer-groups/[id]/customers/route.ts","../src/api/admin/customers/helpers.ts","../src/api/admin/customers/middlewares.ts","../src/api/admin/customers/query-config.ts","../src/api/admin/customers/route.ts","../src/api/admin/customers/validators.ts","../src/api/admin/customers/[id]/route.ts","../src/api/admin/customers/[id]/addresses/route.ts","../src/api/admin/customers/[id]/addresses/[address_id]/route.ts","../src/api/admin/customers/[id]/customer-groups/route.ts","../src/api/admin/draft-orders/helpers.ts","../src/api/admin/draft-orders/middlewares.ts","../src/api/admin/draft-orders/query-config.ts","../src/api/admin/draft-orders/route.ts","../src/api/admin/draft-orders/validators.ts","../src/api/admin/draft-orders/[id]/route.ts","../src/api/admin/exchanges/middlewares.ts","../src/api/admin/exchanges/query-config.ts","../src/api/admin/exchanges/route.ts","../src/api/admin/exchanges/validators.ts","../src/api/admin/exchanges/[id]/route.ts","../src/api/admin/exchanges/[id]/cancel/route.ts","../src/api/admin/exchanges/[id]/inbound/items/route.ts","../src/api/admin/exchanges/[id]/inbound/items/[action_id]/route.ts","../src/api/admin/exchanges/[id]/inbound/shipping-method/route.ts","../src/api/admin/exchanges/[id]/inbound/shipping-method/[action_id]/route.ts","../src/api/admin/exchanges/[id]/outbound/items/route.ts","../src/api/admin/exchanges/[id]/outbound/items/[action_id]/route.ts","../src/api/admin/exchanges/[id]/outbound/shipping-method/route.ts","../src/api/admin/exchanges/[id]/outbound/shipping-method/[action_id]/route.ts","../src/api/admin/exchanges/[id]/request/route.ts","../src/api/admin/fulfillment-providers/middlewares.ts","../src/api/admin/fulfillment-providers/query-config.ts","../src/api/admin/fulfillment-providers/route.ts","../src/api/admin/fulfillment-providers/validators.ts","../src/api/admin/fulfillment-sets/helpers.ts","../src/api/admin/fulfillment-sets/middlewares.ts","../src/api/admin/fulfillment-sets/query-config.ts","../src/api/admin/fulfillment-sets/validators.ts","../src/api/admin/fulfillment-sets/[id]/route.ts","../src/api/admin/fulfillment-sets/[id]/service-zones/route.ts","../src/api/admin/fulfillment-sets/[id]/service-zones/[zone_id]/route.ts","../src/api/admin/fulfillment-sets/validators/geo-zone.ts","../src/api/admin/fulfillments/helpers.ts","../src/api/admin/fulfillments/middlewares.ts","../src/api/admin/fulfillments/query-config.ts","../src/api/admin/fulfillments/route.ts","../src/api/admin/fulfillments/validators.ts","../src/api/admin/fulfillments/[id]/cancel/route.ts","../src/api/admin/fulfillments/[id]/shipment/route.ts","../src/api/admin/inventory-items/helpers.ts","../src/api/admin/inventory-items/middlewares.ts","../src/api/admin/inventory-items/query-config.ts","../src/api/admin/inventory-items/route.ts","../src/api/admin/inventory-items/validators.ts","../src/api/admin/inventory-items/[id]/route.ts","../src/api/admin/inventory-items/[id]/location-levels/route.ts","../src/api/admin/inventory-items/[id]/location-levels/[location_id]/route.ts","../src/api/admin/inventory-items/[id]/location-levels/batch/route.ts","../src/api/admin/invites/helpers.ts","../src/api/admin/invites/middlewares.ts","../src/api/admin/invites/query-config.ts","../src/api/admin/invites/route.ts","../src/api/admin/invites/validators.ts","../src/api/admin/invites/[id]/route.ts","../src/api/admin/invites/[id]/resend/route.ts","../src/api/admin/invites/accept/route.ts","../src/api/admin/notifications/middlewares.ts","../src/api/admin/notifications/query-config.ts","../src/api/admin/notifications/route.ts","../src/api/admin/notifications/validators.ts","../src/api/admin/notifications/[id]/route.ts","../src/api/admin/order-edits/middlewares.ts","../src/api/admin/order-edits/query-config.ts","../src/api/admin/order-edits/route.ts","../src/api/admin/order-edits/validators.ts","../src/api/admin/order-edits/[id]/route.ts","../src/api/admin/order-edits/[id]/confirm/route.ts","../src/api/admin/order-edits/[id]/items/route.ts","../src/api/admin/order-edits/[id]/items/[action_id]/route.ts","../src/api/admin/order-edits/[id]/items/item/[item_id]/route.ts","../src/api/admin/order-edits/[id]/request/route.ts","../src/api/admin/order-edits/[id]/shipping-method/route.ts","../src/api/admin/order-edits/[id]/shipping-method/[action_id]/route.ts","../src/api/admin/orders/middlewares.ts","../src/api/admin/orders/query-config.ts","../src/api/admin/orders/route.ts","../src/api/admin/orders/validators.ts","../src/api/admin/orders/[id]/route.ts","../src/api/admin/orders/[id]/archive/route.ts","../src/api/admin/orders/[id]/cancel/route.ts","../src/api/admin/orders/[id]/changes/route.ts","../src/api/admin/orders/[id]/complete/route.ts","../src/api/admin/orders/[id]/fulfillments/route.ts","../src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.ts","../src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.ts","../src/api/admin/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.ts","../src/api/admin/orders/[id]/line-items/route.ts","../src/api/admin/orders/[id]/preview/route.ts","../src/api/admin/orders/[id]/transfer/route.ts","../src/api/admin/payment-collections/middlewares.ts","../src/api/admin/payment-collections/query-config.ts","../src/api/admin/payment-collections/route.ts","../src/api/admin/payment-collections/validators.ts","../src/api/admin/payment-collections/[id]/route.ts","../src/api/admin/payment-collections/[id]/mark-as-paid/route.ts","../src/api/admin/payments/helpers.ts","../src/api/admin/payments/middlewares.ts","../src/api/admin/payments/query-config.ts","../src/api/admin/payments/route.ts","../src/api/admin/payments/validators.ts","../src/api/admin/payments/[id]/route.ts","../src/api/admin/payments/[id]/capture/route.ts","../src/api/admin/payments/[id]/refund/route.ts","../src/api/admin/payments/payment-providers/route.ts","../src/api/admin/price-lists/helpers.ts","../src/api/admin/price-lists/middlewares.ts","../src/api/admin/price-lists/query-config.ts","../src/api/admin/price-lists/route.ts","../src/api/admin/price-lists/types.ts","../src/api/admin/price-lists/validators.ts","../src/api/admin/price-lists/[id]/route.ts","../src/api/admin/price-lists/[id]/prices/batch/route.ts","../src/api/admin/price-lists/[id]/products/route.ts","../src/api/admin/price-lists/queries/get-price-list.ts","../src/api/admin/price-lists/queries/index.ts","../src/api/admin/price-lists/queries/list-price-lists.ts","../src/api/admin/price-lists/queries/list-prices.ts","../src/api/admin/price-preferences/middlewares.ts","../src/api/admin/price-preferences/query-config.ts","../src/api/admin/price-preferences/route.ts","../src/api/admin/price-preferences/validators.ts","../src/api/admin/price-preferences/[id]/route.ts","../src/api/admin/product-categories/middlewares.ts","../src/api/admin/product-categories/query-config.ts","../src/api/admin/product-categories/route.ts","../src/api/admin/product-categories/validators.ts","../src/api/admin/product-categories/[id]/route.ts","../src/api/admin/product-categories/[id]/products/route.ts","../src/api/admin/product-tags/middlewares.ts","../src/api/admin/product-tags/query-config.ts","../src/api/admin/product-tags/route.ts","../src/api/admin/product-tags/validators.ts","../src/api/admin/product-tags/[id]/route.ts","../src/api/admin/product-types/helpers.ts","../src/api/admin/product-types/middlewares.ts","../src/api/admin/product-types/query-config.ts","../src/api/admin/product-types/route.ts","../src/api/admin/product-types/validators.ts","../src/api/admin/product-types/[id]/route.ts","../src/api/admin/product-variants/middlewares.ts","../src/api/admin/product-variants/query-config.ts","../src/api/admin/product-variants/route.ts","../src/api/admin/product-variants/validators.ts","../src/api/admin/products/helpers.ts","../src/api/admin/products/middlewares.ts","../src/api/admin/products/query-config.ts","../src/api/admin/products/route.ts","../src/api/admin/products/validators.ts","../src/api/admin/products/[id]/route.ts","../src/api/admin/products/[id]/options/route.ts","../src/api/admin/products/[id]/options/[option_id]/route.ts","../src/api/admin/products/[id]/variants/route.ts","../src/api/admin/products/[id]/variants/[variant_id]/route.ts","../src/api/admin/products/[id]/variants/[variant_id]/inventory-items/route.ts","../src/api/admin/products/[id]/variants/[variant_id]/inventory-items/[inventory_item_id]/route.ts","../src/api/admin/products/[id]/variants/batch/route.ts","../src/api/admin/products/[id]/variants/inventory-items/batch/route.ts","../src/api/admin/products/batch/route.ts","../src/api/admin/products/export/route.ts","../src/api/admin/products/import/route.ts","../src/api/admin/products/import/[transaction_id]/confirm/route.ts","../src/api/admin/products/utils/index.ts","../src/api/admin/products/utils/maybe-apply-price-lists-filter.ts","../src/api/admin/promotions/helpers.ts","../src/api/admin/promotions/middlewares.ts","../src/api/admin/promotions/query-config.ts","../src/api/admin/promotions/route.ts","../src/api/admin/promotions/validators.ts","../src/api/admin/promotions/[id]/route.ts","../src/api/admin/promotions/[id]/[rule_type]/route.ts","../src/api/admin/promotions/[id]/buy-rules/batch/route.ts","../src/api/admin/promotions/[id]/rules/batch/route.ts","../src/api/admin/promotions/[id]/target-rules/batch/route.ts","../src/api/admin/promotions/rule-attribute-options/[rule_type]/route.ts","../src/api/admin/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.ts","../src/api/admin/promotions/utils/index.ts","../src/api/admin/promotions/utils/operators-map.ts","../src/api/admin/promotions/utils/rule-attributes-map.ts","../src/api/admin/promotions/utils/rule-query-configuration.ts","../src/api/admin/promotions/utils/validate-rule-attribute.ts","../src/api/admin/promotions/utils/validate-rule-type.ts","../src/api/admin/refund-reasons/middlewares.ts","../src/api/admin/refund-reasons/query-config.ts","../src/api/admin/refund-reasons/route.ts","../src/api/admin/refund-reasons/validators.ts","../src/api/admin/refund-reasons/[id]/route.ts","../src/api/admin/regions/helpers.ts","../src/api/admin/regions/middlewares.ts","../src/api/admin/regions/query-config.ts","../src/api/admin/regions/route.ts","../src/api/admin/regions/validators.ts","../src/api/admin/regions/[id]/route.ts","../src/api/admin/reservations/helpers.ts","../src/api/admin/reservations/middlewares.ts","../src/api/admin/reservations/query-config.ts","../src/api/admin/reservations/route.ts","../src/api/admin/reservations/validators.ts","../src/api/admin/reservations/[id]/route.ts","../src/api/admin/return-reasons/middlewares.ts","../src/api/admin/return-reasons/query-config.ts","../src/api/admin/return-reasons/route.ts","../src/api/admin/return-reasons/validators.ts","../src/api/admin/return-reasons/[id]/route.ts","../src/api/admin/returns/middlewares.ts","../src/api/admin/returns/query-config.ts","../src/api/admin/returns/route.ts","../src/api/admin/returns/validators.ts","../src/api/admin/returns/[id]/route.ts","../src/api/admin/returns/[id]/cancel/route.ts","../src/api/admin/returns/[id]/dismiss-items/route.ts","../src/api/admin/returns/[id]/dismiss-items/[action_id]/route.ts","../src/api/admin/returns/[id]/receive/route.ts","../src/api/admin/returns/[id]/receive/confirm/route.ts","../src/api/admin/returns/[id]/receive-items/route.ts","../src/api/admin/returns/[id]/receive-items/[action_id]/route.ts","../src/api/admin/returns/[id]/request/route.ts","../src/api/admin/returns/[id]/request-items/route.ts","../src/api/admin/returns/[id]/request-items/[action_id]/route.ts","../src/api/admin/returns/[id]/shipping-method/route.ts","../src/api/admin/returns/[id]/shipping-method/[action_id]/route.ts","../src/api/admin/sales-channels/helpers.ts","../src/api/admin/sales-channels/middlewares.ts","../src/api/admin/sales-channels/query-config.ts","../src/api/admin/sales-channels/route.ts","../src/api/admin/sales-channels/validators.ts","../src/api/admin/sales-channels/[id]/route.ts","../src/api/admin/sales-channels/[id]/products/route.ts","../src/api/admin/shipping-options/helpers.ts","../src/api/admin/shipping-options/middlewares.ts","../src/api/admin/shipping-options/query-config.ts","../src/api/admin/shipping-options/route.ts","../src/api/admin/shipping-options/validators.ts","../src/api/admin/shipping-options/[id]/route.ts","../src/api/admin/shipping-options/[id]/rules/batch/route.ts","../src/api/admin/shipping-profiles/helpers.ts","../src/api/admin/shipping-profiles/middlewares.ts","../src/api/admin/shipping-profiles/query-config.ts","../src/api/admin/shipping-profiles/route.ts","../src/api/admin/shipping-profiles/validators.ts","../src/api/admin/shipping-profiles/[id]/route.ts","../src/api/admin/stock-locations/helpers.ts","../src/api/admin/stock-locations/middlewares.ts","../src/api/admin/stock-locations/query-config.ts","../src/api/admin/stock-locations/route.ts","../src/api/admin/stock-locations/validators.ts","../src/api/admin/stock-locations/[id]/route.ts","../src/api/admin/stock-locations/[id]/fulfillment-providers/route.ts","../src/api/admin/stock-locations/[id]/fulfillment-sets/route.ts","../src/api/admin/stock-locations/[id]/sales-channels/route.ts","../src/api/admin/stores/helpers.ts","../src/api/admin/stores/middlewares.ts","../src/api/admin/stores/query-config.ts","../src/api/admin/stores/route.ts","../src/api/admin/stores/validators.ts","../src/api/admin/stores/[id]/route.ts","../src/api/admin/tax-rates/helpers.ts","../src/api/admin/tax-rates/middlewares.ts","../src/api/admin/tax-rates/query-config.ts","../src/api/admin/tax-rates/route.ts","../src/api/admin/tax-rates/validators.ts","../src/api/admin/tax-rates/[id]/route.ts","../src/api/admin/tax-rates/[id]/rules/route.ts","../src/api/admin/tax-rates/[id]/rules/[rule_id]/route.ts","../src/api/admin/tax-regions/helpers.ts","../src/api/admin/tax-regions/middlewares.ts","../src/api/admin/tax-regions/query-config.ts","../src/api/admin/tax-regions/route.ts","../src/api/admin/tax-regions/validators.ts","../src/api/admin/tax-regions/[id]/route.ts","../src/api/admin/uploads/middlewares.ts","../src/api/admin/uploads/query-config.ts","../src/api/admin/uploads/route.ts","../src/api/admin/uploads/validators.ts","../src/api/admin/uploads/[id]/route.ts","../src/api/admin/users/helpers.ts","../src/api/admin/users/middlewares.ts","../src/api/admin/users/query-config.ts","../src/api/admin/users/route.ts","../src/api/admin/users/validators.ts","../src/api/admin/users/[id]/route.ts","../src/api/admin/users/me/route.ts","../src/api/admin/workflows-executions/middlewares.ts","../src/api/admin/workflows-executions/query-config.ts","../src/api/admin/workflows-executions/route.ts","../src/api/admin/workflows-executions/validators.ts","../src/api/admin/workflows-executions/[id]/route.ts","../src/api/admin/workflows-executions/[workflow_id]/[transaction_id]/route.ts","../src/api/admin/workflows-executions/[workflow_id]/[transaction_id]/[step_id]/subscribe/route.ts","../src/api/admin/workflows-executions/[workflow_id]/run/route.ts","../src/api/admin/workflows-executions/[workflow_id]/steps/failure/route.ts","../src/api/admin/workflows-executions/[workflow_id]/steps/success/route.ts","../src/api/admin/workflows-executions/[workflow_id]/subscribe/route.ts","../src/api/auth/middlewares.ts","../src/api/auth/validators.ts","../src/api/auth/[actor_type]/[auth_provider]/route.ts","../src/api/auth/[actor_type]/[auth_provider]/callback/route.ts","../src/api/auth/[actor_type]/[auth_provider]/register/route.ts","../src/api/auth/[actor_type]/[auth_provider]/reset-password/route.ts","../src/api/auth/[actor_type]/[auth_provider]/update/route.ts","../src/api/auth/session/route.ts","../src/api/auth/token/refresh/route.ts","../src/api/auth/utils/generate-jwt-token.ts","../src/api/auth/utils/validate-scope-provider-association.ts","../src/api/auth/utils/validate-token.ts","../src/api/hooks/middlewares.ts","../src/api/hooks/payment/[provider]/route.ts","../src/api/store/middlewares.ts","../src/api/store/carts/helpers.ts","../src/api/store/carts/middlewares.ts","../src/api/store/carts/query-config.ts","../src/api/store/carts/route.ts","../src/api/store/carts/validators.ts","../src/api/store/carts/[id]/route.ts","../src/api/store/carts/[id]/complete/route.ts","../src/api/store/carts/[id]/customer/route.ts","../src/api/store/carts/[id]/line-items/route.ts","../src/api/store/carts/[id]/line-items/[line_id]/route.ts","../src/api/store/carts/[id]/promotions/route.ts","../src/api/store/carts/[id]/shipping-methods/route.ts","../src/api/store/carts/[id]/taxes/route.ts","../src/api/store/collections/helpers.ts","../src/api/store/collections/middlewares.ts","../src/api/store/collections/query-config.ts","../src/api/store/collections/route.ts","../src/api/store/collections/validators.ts","../src/api/store/collections/[id]/route.ts","../src/api/store/currencies/middlewares.ts","../src/api/store/currencies/query-config.ts","../src/api/store/currencies/route.ts","../src/api/store/currencies/validators.ts","../src/api/store/currencies/[code]/route.ts","../src/api/store/customers/helpers.ts","../src/api/store/customers/middlewares.ts","../src/api/store/customers/query-config.ts","../src/api/store/customers/route.ts","../src/api/store/customers/validators.ts","../src/api/store/customers/me/route.ts","../src/api/store/customers/me/addresses/route.ts","../src/api/store/customers/me/addresses/[address_id]/route.ts","../src/api/store/orders/helpers.ts","../src/api/store/orders/middlewares.ts","../src/api/store/orders/query-config.ts","../src/api/store/orders/route.ts","../src/api/store/orders/validators.ts","../src/api/store/orders/[id]/route.ts","../src/api/store/orders/[id]/transfer/accept/route.ts","../src/api/store/orders/[id]/transfer/request/route.ts","../src/api/store/payment-collections/helpers.ts","../src/api/store/payment-collections/middlewares.ts","../src/api/store/payment-collections/query-config.ts","../src/api/store/payment-collections/route.ts","../src/api/store/payment-collections/validators.ts","../src/api/store/payment-collections/[id]/payment-sessions/route.ts","../src/api/store/payment-providers/middlewares.ts","../src/api/store/payment-providers/query-config.ts","../src/api/store/payment-providers/route.ts","../src/api/store/payment-providers/validators.ts","../src/api/store/product-categories/helpers.ts","../src/api/store/product-categories/middlewares.ts","../src/api/store/product-categories/query-config.ts","../src/api/store/product-categories/route.ts","../src/api/store/product-categories/validators.ts","../src/api/store/product-categories/[id]/route.ts","../src/api/store/products/helpers.ts","../src/api/store/products/middlewares.ts","../src/api/store/products/query-config.ts","../src/api/store/products/route.ts","../src/api/store/products/validators.ts","../src/api/store/products/[id]/route.ts","../src/api/store/regions/middlewares.ts","../src/api/store/regions/query-config.ts","../src/api/store/regions/route.ts","../src/api/store/regions/validators.ts","../src/api/store/regions/[id]/route.ts","../src/api/store/return/middlewares.ts","../src/api/store/return/query-config.ts","../src/api/store/return/route.ts","../src/api/store/return/validators.ts","../src/api/store/return-reasons/middlewares.ts","../src/api/store/return-reasons/query-config.ts","../src/api/store/return-reasons/route.ts","../src/api/store/return-reasons/validators.ts","../src/api/store/return-reasons/[id]/route.ts","../src/api/store/shipping-options/middlewares.ts","../src/api/store/shipping-options/query-config.ts","../src/api/store/shipping-options/route.ts","../src/api/store/shipping-options/validators.ts","../src/api/utils/validators.ts","../src/api/utils/common-validators/common.ts","../src/api/utils/common-validators/index.ts","../src/api/utils/common-validators/products/index.ts","../src/api/utils/middlewares/index.ts","../src/api/utils/middlewares/common/ensure-pub-key-sales-channel-match.ts","../src/api/utils/middlewares/common/maybe-attach-pub-key-scopes.ts","../src/api/utils/middlewares/products/filter-by-valid-sales-channels.ts","../src/api/utils/middlewares/products/index.ts","../src/api/utils/middlewares/products/normalize-data-for-context.ts","../src/api/utils/middlewares/products/set-pricing-context.ts","../src/api/utils/middlewares/products/set-tax-context.ts","../src/api/utils/middlewares/products/variant-inventory-quantity.ts","../src/commands/build.ts","../src/commands/develop.ts","../src/commands/exec.ts","../src/commands/index.ts","../src/commands/start.ts","../src/commands/user.ts","../src/commands/__fixtures__/instrumentation.js","../src/commands/__fixtures__/instrumentation-failure/instrumentation.js","../src/commands/__fixtures__/instrumentation-no-register/instrumentation.js","../src/commands/__tests__/start.spec.ts","../src/commands/db/create.ts","../src/commands/db/generate.ts","../src/commands/db/migrate.ts","../src/commands/db/rollback.ts","../src/commands/db/setup.ts","../src/commands/db/sync-links.ts","../src/commands/utils/index.ts","../src/core-flows/index.ts","../src/instrumentation/index.ts","../src/loaders/admin.ts","../src/loaders/api.ts","../src/loaders/index.ts","../src/loaders/feature-flags/analytics.ts","../src/loaders/feature-flags/medusa-v2.ts","../src/loaders/feature-flags/order-editing.ts","../src/loaders/feature-flags/product-categories.ts","../src/loaders/feature-flags/publishable-api-keys.ts","../src/loaders/feature-flags/sales-channels.ts","../src/loaders/feature-flags/tax-inclusive-pricing.ts","../src/loaders/feature-flags/workflows.ts","../src/loaders/helpers/resolve-plugins.ts","../src/modules/api-key.ts","../src/modules/auth-emailpass.ts","../src/modules/auth-github.ts","../src/modules/auth-google.ts","../src/modules/auth.ts","../src/modules/cache-inmemory.ts","../src/modules/cache-redis.ts","../src/modules/cart.ts","../src/modules/currency.ts","../src/modules/customer.ts","../src/modules/event-bus-local.ts","../src/modules/event-bus-redis.ts","../src/modules/file-local.ts","../src/modules/file-s3.ts","../src/modules/file.ts","../src/modules/fulfillment-manual.ts","../src/modules/fulfillment.ts","../src/modules/index-module.ts","../src/modules/inventory.ts","../src/modules/link-modules.ts","../src/modules/locking-postgres.ts","../src/modules/locking-redis.ts","../src/modules/locking.ts","../src/modules/notification-local.ts","../src/modules/notification-sendgrid.ts","../src/modules/notification.ts","../src/modules/order.ts","../src/modules/payment-stripe.ts","../src/modules/payment.ts","../src/modules/pricing.ts","../src/modules/product.ts","../src/modules/promotion.ts","../src/modules/region.ts","../src/modules/sales-channel.ts","../src/modules/stock-location.ts","../src/modules/store.ts","../src/modules/tax.ts","../src/modules/user.ts","../src/modules/workflow-engine-inmemory.ts","../src/modules/workflow-engine-redis.ts","../src/subscribers/configurable-notifications.ts","../src/subscribers/payment-webhook.ts","../src/types/global.ts","../src/types/index.ts","../src/types/middlewares.ts","../src/types/subscribers.ts","../src/utils/admin-consts.ts","../src/utils/clean-response-data.ts","../src/utils/define-middlewares.ts","../src/utils/diff-set.ts","../src/utils/exception-formatter.ts","../src/utils/format-registration-name.ts","../src/utils/index.ts","../src/utils/__tests__/define-routes-config.spec.ts","../src/utils/__tests__/format-registration-name.js","../src/utils/middlewares/authenticate-middleware.ts","../src/utils/middlewares/error-handler.ts","../src/utils/middlewares/index.ts"],"version":"5.6.2"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/medusa",
|
3
|
-
"version": "2.0.5-snapshot-
|
3
|
+
"version": "2.0.5-snapshot-20241120130614",
|
4
4
|
"description": "Building blocks for digital commerce",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"exports": {
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"test": "jest --silent --bail --maxWorkers=50% --forceExit"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"@medusajs/framework": "2.0.5-snapshot-
|
46
|
+
"@medusajs/framework": "2.0.5-snapshot-20241120130614",
|
47
47
|
"@opentelemetry/api": "^1.9.0",
|
48
48
|
"@opentelemetry/instrumentation": "^0.53.0",
|
49
49
|
"@opentelemetry/instrumentation-pg": "^0.44.0",
|
@@ -62,49 +62,49 @@
|
|
62
62
|
"dependencies": {
|
63
63
|
"@inquirer/checkbox": "^2.3.11",
|
64
64
|
"@inquirer/input": "^2.2.9",
|
65
|
-
"@medusajs/admin-bundler": "2.0.5-snapshot-
|
66
|
-
"@medusajs/api-key": "2.0.5-snapshot-
|
67
|
-
"@medusajs/auth": "2.0.5-snapshot-
|
68
|
-
"@medusajs/auth-emailpass": "2.0.5-snapshot-
|
69
|
-
"@medusajs/auth-github": "2.0.5-snapshot-
|
70
|
-
"@medusajs/auth-google": "2.0.5-snapshot-
|
71
|
-
"@medusajs/cache-inmemory": "2.0.5-snapshot-
|
72
|
-
"@medusajs/cache-redis": "2.0.5-snapshot-
|
73
|
-
"@medusajs/cart": "2.0.5-snapshot-
|
74
|
-
"@medusajs/core-flows": "2.0.5-snapshot-
|
75
|
-
"@medusajs/currency": "2.0.5-snapshot-
|
76
|
-
"@medusajs/customer": "2.0.5-snapshot-
|
77
|
-
"@medusajs/event-bus-local": "2.0.5-snapshot-
|
78
|
-
"@medusajs/event-bus-redis": "2.0.5-snapshot-
|
79
|
-
"@medusajs/file": "2.0.5-snapshot-
|
80
|
-
"@medusajs/file-local": "2.0.5-snapshot-
|
81
|
-
"@medusajs/file-s3": "2.0.5-snapshot-
|
82
|
-
"@medusajs/fulfillment": "2.0.5-snapshot-
|
83
|
-
"@medusajs/fulfillment-manual": "2.0.5-snapshot-
|
84
|
-
"@medusajs/index": "2.0.5-snapshot-
|
85
|
-
"@medusajs/inventory": "2.0.5-snapshot-
|
86
|
-
"@medusajs/link-modules": "2.0.5-snapshot-
|
87
|
-
"@medusajs/locking": "2.0.5-snapshot-
|
88
|
-
"@medusajs/locking-postgres": "2.0.5-snapshot-
|
89
|
-
"@medusajs/locking-redis": "2.0.5-snapshot-
|
90
|
-
"@medusajs/notification": "2.0.5-snapshot-
|
91
|
-
"@medusajs/notification-local": "2.0.5-snapshot-
|
92
|
-
"@medusajs/notification-sendgrid": "2.0.5-snapshot-
|
93
|
-
"@medusajs/order": "2.0.5-snapshot-
|
94
|
-
"@medusajs/payment": "2.0.5-snapshot-
|
95
|
-
"@medusajs/payment-stripe": "2.0.5-snapshot-
|
96
|
-
"@medusajs/pricing": "2.0.5-snapshot-
|
97
|
-
"@medusajs/product": "2.0.5-snapshot-
|
98
|
-
"@medusajs/promotion": "2.0.5-snapshot-
|
99
|
-
"@medusajs/region": "2.0.5-snapshot-
|
100
|
-
"@medusajs/sales-channel": "2.0.5-snapshot-
|
101
|
-
"@medusajs/stock-location": "2.0.5-snapshot-
|
102
|
-
"@medusajs/store": "2.0.5-snapshot-
|
103
|
-
"@medusajs/tax": "2.0.5-snapshot-
|
104
|
-
"@medusajs/telemetry": "2.0.5-snapshot-
|
105
|
-
"@medusajs/user": "2.0.5-snapshot-
|
106
|
-
"@medusajs/workflow-engine-inmemory": "2.0.5-snapshot-
|
107
|
-
"@medusajs/workflow-engine-redis": "2.0.5-snapshot-
|
65
|
+
"@medusajs/admin-bundler": "2.0.5-snapshot-20241120130614",
|
66
|
+
"@medusajs/api-key": "2.0.5-snapshot-20241120130614",
|
67
|
+
"@medusajs/auth": "2.0.5-snapshot-20241120130614",
|
68
|
+
"@medusajs/auth-emailpass": "2.0.5-snapshot-20241120130614",
|
69
|
+
"@medusajs/auth-github": "2.0.5-snapshot-20241120130614",
|
70
|
+
"@medusajs/auth-google": "2.0.5-snapshot-20241120130614",
|
71
|
+
"@medusajs/cache-inmemory": "2.0.5-snapshot-20241120130614",
|
72
|
+
"@medusajs/cache-redis": "2.0.5-snapshot-20241120130614",
|
73
|
+
"@medusajs/cart": "2.0.5-snapshot-20241120130614",
|
74
|
+
"@medusajs/core-flows": "2.0.5-snapshot-20241120130614",
|
75
|
+
"@medusajs/currency": "2.0.5-snapshot-20241120130614",
|
76
|
+
"@medusajs/customer": "2.0.5-snapshot-20241120130614",
|
77
|
+
"@medusajs/event-bus-local": "2.0.5-snapshot-20241120130614",
|
78
|
+
"@medusajs/event-bus-redis": "2.0.5-snapshot-20241120130614",
|
79
|
+
"@medusajs/file": "2.0.5-snapshot-20241120130614",
|
80
|
+
"@medusajs/file-local": "2.0.5-snapshot-20241120130614",
|
81
|
+
"@medusajs/file-s3": "2.0.5-snapshot-20241120130614",
|
82
|
+
"@medusajs/fulfillment": "2.0.5-snapshot-20241120130614",
|
83
|
+
"@medusajs/fulfillment-manual": "2.0.5-snapshot-20241120130614",
|
84
|
+
"@medusajs/index": "2.0.5-snapshot-20241120130614",
|
85
|
+
"@medusajs/inventory": "2.0.5-snapshot-20241120130614",
|
86
|
+
"@medusajs/link-modules": "2.0.5-snapshot-20241120130614",
|
87
|
+
"@medusajs/locking": "2.0.5-snapshot-20241120130614",
|
88
|
+
"@medusajs/locking-postgres": "2.0.5-snapshot-20241120130614",
|
89
|
+
"@medusajs/locking-redis": "2.0.5-snapshot-20241120130614",
|
90
|
+
"@medusajs/notification": "2.0.5-snapshot-20241120130614",
|
91
|
+
"@medusajs/notification-local": "2.0.5-snapshot-20241120130614",
|
92
|
+
"@medusajs/notification-sendgrid": "2.0.5-snapshot-20241120130614",
|
93
|
+
"@medusajs/order": "2.0.5-snapshot-20241120130614",
|
94
|
+
"@medusajs/payment": "2.0.5-snapshot-20241120130614",
|
95
|
+
"@medusajs/payment-stripe": "2.0.5-snapshot-20241120130614",
|
96
|
+
"@medusajs/pricing": "2.0.5-snapshot-20241120130614",
|
97
|
+
"@medusajs/product": "2.0.5-snapshot-20241120130614",
|
98
|
+
"@medusajs/promotion": "2.0.5-snapshot-20241120130614",
|
99
|
+
"@medusajs/region": "2.0.5-snapshot-20241120130614",
|
100
|
+
"@medusajs/sales-channel": "2.0.5-snapshot-20241120130614",
|
101
|
+
"@medusajs/stock-location": "2.0.5-snapshot-20241120130614",
|
102
|
+
"@medusajs/store": "2.0.5-snapshot-20241120130614",
|
103
|
+
"@medusajs/tax": "2.0.5-snapshot-20241120130614",
|
104
|
+
"@medusajs/telemetry": "2.0.5-snapshot-20241120130614",
|
105
|
+
"@medusajs/user": "2.0.5-snapshot-20241120130614",
|
106
|
+
"@medusajs/workflow-engine-inmemory": "2.0.5-snapshot-20241120130614",
|
107
|
+
"@medusajs/workflow-engine-redis": "2.0.5-snapshot-20241120130614",
|
108
108
|
"@swc/core": "1.5.7",
|
109
109
|
"@swc/helpers": "^0.5.11",
|
110
110
|
"@types/express": "^4.17.17",
|
@@ -125,7 +125,7 @@
|
|
125
125
|
"zod": "3.22.4"
|
126
126
|
},
|
127
127
|
"peerDependencies": {
|
128
|
-
"@medusajs/framework": "2.0.5-snapshot-
|
128
|
+
"@medusajs/framework": "2.0.5-snapshot-20241120130614",
|
129
129
|
"@mikro-orm/core": "5.9.7",
|
130
130
|
"@mikro-orm/knex": "5.9.7",
|
131
131
|
"@mikro-orm/migrations": "5.9.7",
|