@medusajs/medusa 2.0.5-snapshot-20241121122301 → 2.0.5-snapshot-20241124153140
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/admin/orders/[id]/transfer/cancel/route.d.ts +5 -0
- package/dist/api/admin/orders/[id]/transfer/cancel/route.d.ts.map +1 -0
- package/dist/api/admin/orders/[id]/transfer/cancel/route.js +25 -0
- package/dist/api/admin/orders/[id]/transfer/cancel/route.js.map +1 -0
- package/dist/api/admin/orders/middlewares.d.ts.map +1 -1
- package/dist/api/admin/orders/middlewares.js +9 -1
- package/dist/api/admin/orders/middlewares.js.map +1 -1
- package/dist/api/admin/orders/validators.d.ts +7 -2
- package/dist/api/admin/orders/validators.d.ts.map +1 -1
- package/dist/api/admin/orders/validators.js +4 -3
- package/dist/api/admin/orders/validators.js.map +1 -1
- package/dist/api/store/carts/[id]/customer/route.js +1 -1
- package/dist/api/store/carts/[id]/customer/route.js.map +1 -1
- package/dist/api/store/customers/me/route.js +1 -1
- package/dist/api/store/customers/me/route.js.map +1 -1
- package/dist/api/store/orders/[id]/route.d.ts.map +1 -1
- package/dist/api/store/orders/[id]/route.js +3 -0
- package/dist/api/store/orders/[id]/route.js.map +1 -1
- package/dist/api/store/orders/[id]/transfer/cancel/route.d.ts +5 -0
- package/dist/api/store/orders/[id]/transfer/cancel/route.d.ts.map +1 -0
- package/dist/api/store/orders/[id]/transfer/cancel/route.js +24 -0
- package/dist/api/store/orders/[id]/transfer/cancel/route.js.map +1 -0
- package/dist/api/store/orders/[id]/transfer/decline/route.d.ts +5 -0
- package/dist/api/store/orders/[id]/transfer/decline/route.d.ts.map +1 -0
- package/dist/api/store/orders/[id]/transfer/decline/route.js +21 -0
- package/dist/api/store/orders/[id]/transfer/decline/route.js.map +1 -0
- package/dist/api/store/orders/middlewares.d.ts.map +1 -1
- package/dist/api/store/orders/middlewares.js +18 -1
- package/dist/api/store/orders/middlewares.js.map +1 -1
- package/dist/api/store/orders/route.d.ts.map +1 -1
- package/dist/api/store/orders/route.js +1 -0
- package/dist/api/store/orders/route.js.map +1 -1
- package/dist/api/store/orders/validators.d.ts +11 -1
- package/dist/api/store/orders/validators.d.ts.map +1 -1
- package/dist/api/store/orders/validators.js +5 -1
- package/dist/api/store/orders/validators.js.map +1 -1
- package/dist/api/store/products/middlewares.d.ts.map +1 -1
- package/dist/api/store/products/middlewares.js +8 -2
- package/dist/api/store/products/middlewares.js.map +1 -1
- package/dist/api/utils/middlewares/products/set-pricing-context.d.ts +1 -1
- package/dist/api/utils/middlewares/products/set-pricing-context.d.ts.map +1 -1
- package/dist/api/utils/middlewares/products/set-pricing-context.js +3 -3
- package/dist/api/utils/middlewares/products/set-pricing-context.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -46
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
2
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
3
|
+
import { AdminCancelOrderTransferRequestType } from "../../../validators";
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCancelOrderTransferRequestType>, 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/cancel/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAc,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAA;AAGzE,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,mCAAmC,CAAC,OAC/D,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 utils_1 = require("@medusajs/framework/utils");
|
6
|
+
const POST = async (req, res) => {
|
7
|
+
const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
|
8
|
+
const orderId = req.params.id;
|
9
|
+
const userId = req.auth_context.actor_id;
|
10
|
+
await (0, core_flows_1.cancelOrderTransferRequestWorkflow)(req.scope).run({
|
11
|
+
input: {
|
12
|
+
order_id: orderId,
|
13
|
+
logged_in_user_id: userId,
|
14
|
+
actor_type: req.auth_context.actor_type,
|
15
|
+
},
|
16
|
+
});
|
17
|
+
const result = await query.graph({
|
18
|
+
entity: "order",
|
19
|
+
filters: { id: orderId },
|
20
|
+
fields: req.remoteQueryConfig.fields,
|
21
|
+
});
|
22
|
+
res.status(200).json({ order: result.data[0] });
|
23
|
+
};
|
24
|
+
exports.POST = POST;
|
25
|
+
//# sourceMappingURL=route.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../src/api/admin/orders/[id]/transfer/cancel/route.ts"],"names":[],"mappings":";;;AAAA,qDAAyE;AAOzE,qDAAqE;AAE9D,MAAM,IAAI,GAAG,KAAK,EACvB,GAAoE,EACpE,GAAiD,EACjD,EAAE;IACF,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iCAAyB,CAAC,KAAK,CAAC,CAAA;IAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;IAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAA;IAExC,MAAM,IAAA,+CAAkC,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QACtD,KAAK,EAAE;YACL,QAAQ,EAAE,OAAO;YACjB,iBAAiB,EAAE,MAAM;YACzB,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC,UAAoB;SAClD;KACF,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC;QAC/B,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE;QACxB,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;KACrC,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,CAAC,CAAA;AAC/D,CAAC,CAAA;AAxBY,QAAA,IAAI,QAwBhB"}
|
@@ -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;AAgB1D,eAAO,MAAM,2BAA2B,EAAE,eAAe,EAsJxD,CAAA"}
|
@@ -53,7 +53,7 @@ exports.adminOrderRoutesMiddlewares = [
|
|
53
53
|
method: ["GET"],
|
54
54
|
matcher: "/admin/orders/:id/changes",
|
55
55
|
middlewares: [
|
56
|
-
(0, framework_1.validateAndTransformQuery)(validators_1.
|
56
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.AdminOrderChangesParams, QueryConfig.retrieveOrderChangesTransformQueryConfig),
|
57
57
|
],
|
58
58
|
},
|
59
59
|
{
|
@@ -126,5 +126,13 @@ exports.adminOrderRoutesMiddlewares = [
|
|
126
126
|
(0, framework_1.validateAndTransformQuery)(validators_1.AdminGetOrdersOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
127
127
|
],
|
128
128
|
},
|
129
|
+
{
|
130
|
+
method: ["POST"],
|
131
|
+
matcher: "/admin/orders/:id/transfer/cancel",
|
132
|
+
middlewares: [
|
133
|
+
(0, framework_1.validateAndTransformBody)(validators_1.AdminCancelOrderTransferRequest),
|
134
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.AdminGetOrdersOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
135
|
+
],
|
136
|
+
},
|
129
137
|
];
|
130
138
|
//# 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,6CAYqB;AAER,QAAA,2BAA2B,GAAsB;IAC5D;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE;YACX,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,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,8BAA8B;QACvC,WAAW,EAAE;YACX,IAAA,qCAAyB,EACvB,2CAA8B,EAC9B,WAAW,CAAC,yBAAyB,CACtC;SACF;KACF;IACD;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE;YACX,IAAA,qCA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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;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EAAE;YACX,IAAA,oCAAwB,EAAC,4CAA+B,CAAC;YACzD,IAAA,qCAAyB,EACvB,sCAAyB,EACzB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;CACF,CAAA"}
|
@@ -480,7 +480,8 @@ export declare const AdminOrderCancelFulfillment: (additionalDataValidator?: z.Z
|
|
480
480
|
}, {
|
481
481
|
[x: string]: any;
|
482
482
|
}> | z.ZodEffects<any, any, any>;
|
483
|
-
export declare const
|
483
|
+
export declare const AdminOrderChangesParams: z.ZodObject<{
|
484
|
+
fields: z.ZodOptional<z.ZodString>;
|
484
485
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
485
486
|
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
486
487
|
change_type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
@@ -605,6 +606,7 @@ export declare const AdminOrderChanges: z.ZodObject<{
|
|
605
606
|
$lte?: any;
|
606
607
|
}>]>>;
|
607
608
|
}, "strip", z.ZodTypeAny, {
|
609
|
+
fields?: string | undefined;
|
608
610
|
id?: string | string[] | undefined;
|
609
611
|
status?: string | string[] | undefined;
|
610
612
|
change_type?: string | string[] | undefined;
|
@@ -612,6 +614,7 @@ export declare const AdminOrderChanges: z.ZodObject<{
|
|
612
614
|
updated_at?: any;
|
613
615
|
deleted_at?: any;
|
614
616
|
}, {
|
617
|
+
fields?: string | undefined;
|
615
618
|
id?: string | string[] | undefined;
|
616
619
|
status?: string | string[] | undefined;
|
617
620
|
change_type?: string | string[] | undefined;
|
@@ -619,7 +622,7 @@ export declare const AdminOrderChanges: z.ZodObject<{
|
|
619
622
|
updated_at?: any;
|
620
623
|
deleted_at?: any;
|
621
624
|
}>;
|
622
|
-
export type AdminOrderChangesType = z.infer<typeof
|
625
|
+
export type AdminOrderChangesType = z.infer<typeof AdminOrderChangesParams>;
|
623
626
|
export type AdminMarkOrderFulfillmentDeliveredType = z.infer<typeof AdminMarkOrderFulfillmentDelivered>;
|
624
627
|
export declare const AdminMarkOrderFulfillmentDelivered: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
625
628
|
export type AdminTransferOrderType = z.infer<typeof AdminTransferOrder>;
|
@@ -636,4 +639,6 @@ export declare const AdminTransferOrder: z.ZodObject<{
|
|
636
639
|
description?: string | undefined;
|
637
640
|
internal_note?: string | undefined;
|
638
641
|
}>;
|
642
|
+
export type AdminCancelOrderTransferRequestType = z.infer<typeof AdminCancelOrderTransferRequest>;
|
643
|
+
export declare const AdminCancelOrderTransferRequest: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
639
644
|
//# 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,KA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A;AACD,eAAO,MAAM,+BAA+B,gDAAe,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AdminTransferOrder = exports.AdminMarkOrderFulfillmentDelivered = exports.
|
3
|
+
exports.AdminCancelOrderTransferRequest = exports.AdminTransferOrder = exports.AdminMarkOrderFulfillmentDelivered = exports.AdminOrderChangesParams = 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({
|
@@ -67,18 +67,19 @@ exports.OrderCancelFulfillment = zod_1.z.object({
|
|
67
67
|
no_notification: zod_1.z.boolean().optional(),
|
68
68
|
});
|
69
69
|
exports.AdminOrderCancelFulfillment = (0, validators_1.WithAdditionalData)(exports.OrderCancelFulfillment);
|
70
|
-
exports.
|
70
|
+
exports.AdminOrderChangesParams = (0, validators_1.createSelectParams)().merge(zod_1.z.object({
|
71
71
|
id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
72
72
|
status: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
73
73
|
change_type: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
74
74
|
created_at: (0, validators_1.createOperatorMap)().optional(),
|
75
75
|
updated_at: (0, validators_1.createOperatorMap)().optional(),
|
76
76
|
deleted_at: (0, validators_1.createOperatorMap)().optional(),
|
77
|
-
});
|
77
|
+
}));
|
78
78
|
exports.AdminMarkOrderFulfillmentDelivered = zod_1.z.object({});
|
79
79
|
exports.AdminTransferOrder = zod_1.z.object({
|
80
80
|
customer_id: zod_1.z.string(),
|
81
81
|
description: zod_1.z.string().optional(),
|
82
82
|
internal_note: zod_1.z.string().optional(),
|
83
83
|
});
|
84
|
+
exports.AdminCancelOrderTransferRequest = zod_1.z.object({});
|
84
85
|
//# 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,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7D,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,IAAA,8BAAiB,GAAE,CAAC,QAAQ,EAAE;IAC1C,UAAU,EAAE,IAAA,8BAAiB,GAAE,CAAC,QAAQ,EAAE;IAC1C,UAAU,EAAE,IAAA,8BAAiB,GAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CACH,CAAA;AAMY,QAAA,8BAA8B,GAAG,IAAA,+BAAkB,GAAE,CAAC,KAAK,CACtE,OAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAA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;CACrC,CAAC,CAAA;AAKW,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA"}
|
@@ -4,7 +4,7 @@ exports.POST = void 0;
|
|
4
4
|
const core_flows_1 = require("@medusajs/core-flows");
|
5
5
|
const helpers_1 = require("../../helpers");
|
6
6
|
const POST = async (req, res) => {
|
7
|
-
const workflow = (0, core_flows_1.
|
7
|
+
const workflow = (0, core_flows_1.transferCartCustomerWorkflow)(req.scope);
|
8
8
|
await workflow.run({
|
9
9
|
input: {
|
10
10
|
id: req.params.id,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../src/api/store/carts/[id]/customer/route.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../src/api/store/carts/[id]/customer/route.ts"],"names":[],"mappings":";;;AAAA,qDAAmE;AAOnE,2CAA2C;AAEpC,MAAM,IAAI,GAAG,KAAK,EACvB,GAA+B,EAC/B,GAAgD,EAChD,EAAE;IACF,MAAM,QAAQ,GAAG,IAAA,yCAA4B,EAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAExD,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"}
|
@@ -21,7 +21,7 @@ const POST = async (req, res) => {
|
|
21
21
|
update: req.validatedBody,
|
22
22
|
},
|
23
23
|
});
|
24
|
-
const customer = await (0, helpers_1.refetchCustomer)(
|
24
|
+
const customer = await (0, helpers_1.refetchCustomer)(customerId, req.scope, req.remoteQueryConfig.fields);
|
25
25
|
res.status(200).json({ customer });
|
26
26
|
};
|
27
27
|
exports.POST = POST;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/store/customers/me/route.ts"],"names":[],"mappings":";;;AASA,wCAA4C;AAC5C,qDAAuD;AACvD,qDAA8D;AAGvD,MAAM,GAAG,GAAG,KAAK,EACtB,GAA2D,EAC3D,GAAoD,EACpD,EAAE;IACF,MAAM,EAAE,GAAG,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAA;IACpC,MAAM,QAAQ,GAAG,MAAM,IAAA,yBAAe,EACpC,EAAE,EACF,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAC7B,CAAA;IAED,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,SAAS,EAC3B,qBAAqB,EAAE,gBAAgB,CACxC,CAAA;IACH,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;AACxB,CAAC,CAAA;AAnBY,QAAA,GAAG,OAmBf;AAEM,MAAM,IAAI,GAAG,KAAK,EACvB,GAAwD,EACxD,GAAoD,EACpD,EAAE;IACF,MAAM,UAAU,GAAG,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAA;IAC5C,MAAM,IAAA,oCAAuB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC3C,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,GAAG,CAAC,aAAa;SAC1B;KACF,CAAC,CAAA;IAEF,MAAM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CAAA;AACpC,CAAC,CAAA;AAlBY,QAAA,IAAI,QAkBhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/store/orders/[id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAGrD,eAAO,MAAM,GAAG,QACT,aAAa,OACb,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/store/orders/[id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAGrD,eAAO,MAAM,GAAG,QACT,aAAa,OACb,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAclD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/store/orders/[id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6D;AAI7D,0FAA0F;AACnF,MAAM,GAAG,GAAG,KAAK,EACtB,GAAkB,EAClB,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;
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/store/orders/[id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6D;AAI7D,0FAA0F;AACnF,MAAM,GAAG,GAAG,KAAK,EACtB,GAAkB,EAClB,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;gBACP,cAAc,EAAE,KAAK;aACtB;SACF;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAA8B,EAAE,CAAC,CAAA;AACjE,CAAC,CAAA;AAhBY,QAAA,GAAG,OAgBf"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
2
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
3
|
+
import { StoreCancelOrderTransferRequestType } from "../../../validators";
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<StoreCancelOrderTransferRequestType>, 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/cancel/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,mCAAmC,EAAE,MAAM,qBAAqB,CAAA;AAEzE,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,mCAAmC,CAAC,OAC/D,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAqBlD,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
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.cancelOrderTransferRequestWorkflow)(req.scope).run({
|
9
|
+
input: {
|
10
|
+
order_id: orderId,
|
11
|
+
logged_in_user_id: customerId,
|
12
|
+
actor_type: req.auth_context.actor_type,
|
13
|
+
},
|
14
|
+
});
|
15
|
+
const { result } = await (0, core_flows_1.getOrderDetailWorkflow)(req.scope).run({
|
16
|
+
input: {
|
17
|
+
fields: req.remoteQueryConfig.fields,
|
18
|
+
order_id: orderId,
|
19
|
+
},
|
20
|
+
});
|
21
|
+
res.status(200).json({ order: result });
|
22
|
+
};
|
23
|
+
exports.POST = POST;
|
24
|
+
//# sourceMappingURL=route.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../src/api/store/orders/[id]/transfer/cancel/route.ts"],"names":[],"mappings":";;;AAAA,qDAG6B;AAQtB,MAAM,IAAI,GAAG,KAAK,EACvB,GAAoE,EACpE,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,+CAAkC,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QACtD,KAAK,EAAE;YACL,QAAQ,EAAE,OAAO;YACjB,iBAAiB,EAAE,UAAU;YAC7B,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC,UAAwB;SACtD;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;AAvBY,QAAA,IAAI,QAuBhB"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework";
|
2
|
+
import { HttpTypes } from "@medusajs/framework/types";
|
3
|
+
import { StoreDeclineOrderTransferRequestType } from "../../../validators";
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<StoreDeclineOrderTransferRequestType>, 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/decline/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,oCAAoC,EAAE,MAAM,qBAAqB,CAAA;AAE1E,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,oCAAoC,CAAC,OAChE,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.declineOrderTransferRequestWorkflow)(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/decline/route.ts"],"names":[],"mappings":";;;AAEA,qDAG6B;AAItB,MAAM,IAAI,GAAG,KAAK,EACvB,GAAqE,EACrE,GAAiD,EACjD,EAAE;IACF,MAAM,IAAA,gDAAmC,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QACvD,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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAEhB,MAAM,0BAA0B,CAAA;AAYjC,eAAO,MAAM,2BAA2B,EAAE,eAAe,EAoExD,CAAA"}
|
@@ -24,9 +24,9 @@ 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 framework_1 = require("@medusajs/framework");
|
27
28
|
const http_1 = require("@medusajs/framework/http");
|
28
29
|
const authenticate_middleware_1 = require("../../../utils/middlewares/authenticate-middleware");
|
29
|
-
const framework_1 = require("@medusajs/framework");
|
30
30
|
const QueryConfig = __importStar(require("./query-config"));
|
31
31
|
const validators_1 = require("./validators");
|
32
32
|
exports.storeOrderRoutesMiddlewares = [
|
@@ -54,6 +54,15 @@ exports.storeOrderRoutesMiddlewares = [
|
|
54
54
|
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
55
55
|
],
|
56
56
|
},
|
57
|
+
{
|
58
|
+
method: ["POST"],
|
59
|
+
matcher: "/store/orders/:id/transfer/cancel",
|
60
|
+
middlewares: [
|
61
|
+
(0, authenticate_middleware_1.authenticate)("customer", ["session", "bearer"]),
|
62
|
+
(0, http_1.validateAndTransformBody)(validators_1.StoreCancelOrderTransferRequest),
|
63
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
64
|
+
],
|
65
|
+
},
|
57
66
|
{
|
58
67
|
method: ["POST"],
|
59
68
|
matcher: "/store/orders/:id/transfer/accept",
|
@@ -62,5 +71,13 @@ exports.storeOrderRoutesMiddlewares = [
|
|
62
71
|
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
63
72
|
],
|
64
73
|
},
|
74
|
+
{
|
75
|
+
method: ["POST"],
|
76
|
+
matcher: "/store/orders/:id/transfer/decline",
|
77
|
+
middlewares: [
|
78
|
+
(0, http_1.validateAndTransformBody)(validators_1.StoreDeclineOrderTransferRequest),
|
79
|
+
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetOrderParams, QueryConfig.retrieveTransformQueryConfig),
|
80
|
+
],
|
81
|
+
},
|
65
82
|
];
|
66
83
|
//# sourceMappingURL=middlewares.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAGiC;AACjC,gGAAiF;AACjF,
|
1
|
+
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/orders/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA+D;AAC/D,mDAGiC;AACjC,gGAAiF;AACjF,4DAA6C;AAC7C,6CAOqB;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,sCAAY,EAAC,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAwB,EAAC,4CAA+B,CAAC;YACzD,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;IACD;QACE,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EAAE;YACX,IAAA,+BAAwB,EAAC,6CAAgC,CAAC;YAC1D,IAAA,qCAAyB,EACvB,gCAAmB,EACnB,WAAW,CAAC,4BAA4B,CACzC;SACF;KACF;CACF,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAY,MAAM,2BAA2B,CAAA;AAE/D,eAAO,MAAM,GAAG,QACT,0BAA0B,CAAC,SAAS,CAAC,iBAAiB,CAAC,OACvD,cAAc,CAAC,SAAS,CAAC,sBAAsB,CAAC,
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/api/store/orders/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAY,MAAM,2BAA2B,CAAA;AAE/D,eAAO,MAAM,GAAG,QACT,0BAA0B,CAAC,SAAS,CAAC,iBAAiB,CAAC,OACvD,cAAc,CAAC,SAAS,CAAC,sBAAsB,CAAC,kBA8BtD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/store/orders/route.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAOrD,MAAM,GAAG,GAAG,KAAK,EACtB,GAA4D,EAC5D,GAAqD,EACrD,EAAE;IACF,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE;YACP,GAAG,GAAG,CAAC,gBAAgB;YACvB,WAAW,EAAE,GAAG,CAAC,YAAY,CAAC,QAAQ;SACvC;QACD,GAAG,GAAG,CAAC,iBAAiB,CAAC,UAAU;KACpC,CAAA;IAED,MAAM,QAAQ,GAAG,IAAA,kCAAqB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACjD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC;QACpC,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;YACpC,SAAS;SACV;KACF,CAAC,CAAA;IAEF,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAG1B,CAAA;IAED,GAAG,CAAC,IAAI,CAAC;QACP,MAAM,EAAE,IAAyC;QACjD,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,IAAI;QACrB,KAAK,EAAE,QAAQ,CAAC,IAAI;KACrB,CAAC,CAAA;AACJ,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/store/orders/route.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAOrD,MAAM,GAAG,GAAG,KAAK,EACtB,GAA4D,EAC5D,GAAqD,EACrD,EAAE;IACF,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE;YACP,GAAG,GAAG,CAAC,gBAAgB;YACvB,cAAc,EAAE,KAAK;YACrB,WAAW,EAAE,GAAG,CAAC,YAAY,CAAC,QAAQ;SACvC;QACD,GAAG,GAAG,CAAC,iBAAiB,CAAC,UAAU;KACpC,CAAA;IAED,MAAM,QAAQ,GAAG,IAAA,kCAAqB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACjD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC;QACpC,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;YACpC,SAAS;SACV;KACF,CAAC,CAAA;IAEF,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAG1B,CAAA;IAED,GAAG,CAAC,IAAI,CAAC;QACP,MAAM,EAAE,IAAyC;QACjD,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,IAAI;QACrB,KAAK,EAAE,QAAQ,CAAC,IAAI;KACrB,CAAC,CAAA;AACJ,CAAC,CAAA;AAhCY,QAAA,GAAG,OAgCf"}
|
@@ -53,6 +53,7 @@ export declare const StoreGetOrdersParams: z.ZodObject<{
|
|
53
53
|
}[] | undefined;
|
54
54
|
}>;
|
55
55
|
export type StoreGetOrdersParamsType = z.infer<typeof StoreGetOrdersParams>;
|
56
|
+
export type StoreAcceptOrderTransferType = z.infer<typeof StoreAcceptOrderTransfer>;
|
56
57
|
export declare const StoreAcceptOrderTransfer: z.ZodObject<{
|
57
58
|
token: z.ZodString;
|
58
59
|
}, "strip", z.ZodTypeAny, {
|
@@ -60,7 +61,6 @@ export declare const StoreAcceptOrderTransfer: z.ZodObject<{
|
|
60
61
|
}, {
|
61
62
|
token: string;
|
62
63
|
}>;
|
63
|
-
export type StoreAcceptOrderTransferType = z.infer<typeof StoreAcceptOrderTransfer>;
|
64
64
|
export type StoreRequestOrderTransferType = z.infer<typeof StoreRequestOrderTransfer>;
|
65
65
|
export declare const StoreRequestOrderTransfer: z.ZodObject<{
|
66
66
|
description: z.ZodOptional<z.ZodString>;
|
@@ -69,4 +69,14 @@ export declare const StoreRequestOrderTransfer: z.ZodObject<{
|
|
69
69
|
}, {
|
70
70
|
description?: string | undefined;
|
71
71
|
}>;
|
72
|
+
export type StoreCancelOrderTransferRequestType = z.infer<typeof StoreCancelOrderTransferRequest>;
|
73
|
+
export declare const StoreCancelOrderTransferRequest: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
74
|
+
export type StoreDeclineOrderTransferRequestType = z.infer<typeof StoreDeclineOrderTransferRequest>;
|
75
|
+
export declare const StoreDeclineOrderTransferRequest: z.ZodObject<{
|
76
|
+
token: z.ZodString;
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
78
|
+
token: string;
|
79
|
+
}, {
|
80
|
+
token: string;
|
81
|
+
}>;
|
72
82
|
//# 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;AAE3E,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAA;AAEF,MAAM,MAAM,
|
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,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,wBAAwB,CAChC,CAAA;AACD,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,yBAAyB,CACjC,CAAA;AACD,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAA;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,+BAA+B,CACvC,CAAA;AACD,eAAO,MAAM,+BAA+B,gDAAe,CAAA;AAE3D,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,gCAAgC,CACxC,CAAA;AACD,eAAO,MAAM,gCAAgC;;;;;;EAE3C,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StoreRequestOrderTransfer = exports.StoreAcceptOrderTransfer = exports.StoreGetOrdersParams = exports.StoreGetOrdersParamsFields = exports.StoreGetOrderParams = void 0;
|
3
|
+
exports.StoreDeclineOrderTransferRequest = exports.StoreCancelOrderTransferRequest = 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");
|
@@ -21,4 +21,8 @@ exports.StoreAcceptOrderTransfer = zod_1.z.object({
|
|
21
21
|
exports.StoreRequestOrderTransfer = zod_1.z.object({
|
22
22
|
description: zod_1.z.string().optional(),
|
23
23
|
});
|
24
|
+
exports.StoreCancelOrderTransferRequest = zod_1.z.object({});
|
25
|
+
exports.StoreDeclineOrderTransferRequest = zod_1.z.object({
|
26
|
+
token: zod_1.z.string().min(1),
|
27
|
+
});
|
24
28
|
//# 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,6BAAg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AA+B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAK9C,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/products/middlewares.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../src/api/store/products/middlewares.ts"],"names":[],"mappings":"AACA,OAAO,EAML,eAAe,EAEhB,MAAM,0BAA0B,CAAA;AAYjC,eAAO,MAAM,6BAA6B,EAAE,eAAe,EA8E1D,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.storeProductRoutesMiddlewares = void 0;
|
27
|
-
const
|
27
|
+
const framework_1 = require("@medusajs/framework");
|
28
28
|
const http_1 = require("@medusajs/framework/http");
|
29
|
+
const utils_1 = require("@medusajs/framework/utils");
|
29
30
|
const middlewares_1 = require("../../utils/middlewares");
|
30
|
-
const framework_1 = require("@medusajs/framework");
|
31
31
|
const helpers_1 = require("./helpers");
|
32
32
|
const QueryConfig = __importStar(require("./query-config"));
|
33
33
|
const validators_1 = require("./validators");
|
@@ -36,6 +36,9 @@ exports.storeProductRoutesMiddlewares = [
|
|
36
36
|
method: ["GET"],
|
37
37
|
matcher: "/store/products",
|
38
38
|
middlewares: [
|
39
|
+
(0, http_1.authenticate)("customer", ["session", "bearer"], {
|
40
|
+
allowUnauthenticated: true,
|
41
|
+
}),
|
39
42
|
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetProductsParams, QueryConfig.listProductQueryConfig),
|
40
43
|
(0, middlewares_1.filterByValidSalesChannels)(),
|
41
44
|
(0, http_1.setContext)({
|
@@ -68,6 +71,9 @@ exports.storeProductRoutesMiddlewares = [
|
|
68
71
|
method: ["GET"],
|
69
72
|
matcher: "/store/products/:id",
|
70
73
|
middlewares: [
|
74
|
+
(0, http_1.authenticate)("customer", ["session", "bearer"], {
|
75
|
+
allowUnauthenticated: true,
|
76
|
+
}),
|
71
77
|
(0, framework_1.validateAndTransformQuery)(validators_1.StoreGetProductsParams, QueryConfig.retrieveProductQueryConfig),
|
72
78
|
(0, http_1.applyParamsAsFilters)({ id: "id" }),
|
73
79
|
(0, middlewares_1.filterByValidSalesChannels)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/products/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../src/api/store/products/middlewares.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA+D;AAC/D,mDAQiC;AACjC,qDAAoE;AACpE,yDAKgC;AAChC,uCAAqD;AACrD,4DAA6C;AAC7C,6CAAqD;AAExC,QAAA,6BAA6B,GAAsB;IAC9D;QACE,MAAM,EAAE,CAAC,KAAK,CAAC;QACf,OAAO,EAAE,iBAAiB;QAC1B,WAAW,EAAE;YACX,IAAA,mBAAY,EAAC,UAAU,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE;gBAC9C,oBAAoB,EAAE,IAAI;aAC3B,CAAC;YACF,IAAA,qCAAyB,EACvB,mCAAsB,EACtB,WAAW,CAAC,sBAAsB,CACnC;YACD,IAAA,wCAA0B,GAAE;YAC5B,IAAA,iBAAU,EAAC;gBACT,iBAAiB,EAAE,mCAAyB;aAC7C,CAAC;YACF,IAAA,2BAAoB,EAAC;gBACnB,UAAU,EAAE,uBAAuB;gBACnC,UAAU,EAAE,YAAY;gBACxB,eAAe,EAAE,kBAA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C/B,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAgB,EAAE,EAAE;oBACzC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;wBAC5D,OAAM;oBACR,CAAC;oBAED,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;gBAChD,CAAC;aACF,CAAC;YACF,IAAA,qCAAuB,GAAE;YACzB,IAAA,+BAAiB,GAAE;YACnB,IAAA,2BAAa,GAAE;YACf,IAAA,wBAAiB,EAAC,CAAC,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;SACxE;KACF;CACF,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { NextFunction } from "express";
|
2
1
|
import { AuthenticatedMedusaRequest } from "@medusajs/framework/http";
|
2
|
+
import { NextFunction } from "express";
|
3
3
|
export declare function setPricingContext(): (req: AuthenticatedMedusaRequest, _: any, next: NextFunction) => Promise<void>;
|
4
4
|
//# sourceMappingURL=set-pricing-context.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"set-pricing-context.d.ts","sourceRoot":"","sources":["../../../../../src/api/utils/middlewares/products/set-pricing-context.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"set-pricing-context.d.ts","sourceRoot":"","sources":["../../../../../src/api/utils/middlewares/products/set-pricing-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAG3B,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,wBAAgB,iBAAiB,UACZ,0BAA0B,gBAAW,YAAY,mBA+CrE"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.setPricingContext = setPricingContext;
|
4
|
-
const utils_1 = require("@medusajs/framework/utils");
|
5
4
|
const http_1 = require("@medusajs/framework/http");
|
5
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
6
|
function setPricingContext() {
|
7
7
|
return async (req, _, next) => {
|
8
8
|
const withCalculatedPrice = req.remoteQueryConfig.fields.some((field) => field.startsWith("variants.calculated_price"));
|
@@ -24,8 +24,8 @@ function setPricingContext() {
|
|
24
24
|
currency_code: region.currency_code,
|
25
25
|
};
|
26
26
|
// Find all the customer groups the customer is a part of and set
|
27
|
-
if (req.
|
28
|
-
const customerGroups = await (0, http_1.refetchEntities)("customer_group", {
|
27
|
+
if (req.auth_context?.actor_id) {
|
28
|
+
const customerGroups = await (0, http_1.refetchEntities)("customer_group", { customers: { id: req.auth_context.actor_id } }, req.scope, ["id"]);
|
29
29
|
pricingContext.customer_group_id = customerGroups.map((cg) => cg.id);
|
30
30
|
}
|
31
31
|
req.pricingContext = pricingContext;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"set-pricing-context.js","sourceRoot":"","sources":["../../../../../src/api/utils/middlewares/products/set-pricing-context.ts"],"names":[],"mappings":";;AASA,8CAgDC;
|
1
|
+
{"version":3,"file":"set-pricing-context.js","sourceRoot":"","sources":["../../../../../src/api/utils/middlewares/products/set-pricing-context.ts"],"names":[],"mappings":";;AASA,8CAgDC;AAzDD,mDAIiC;AAEjC,qDAAuD;AAGvD,SAAgB,iBAAiB;IAC/B,OAAO,KAAK,EAAE,GAA+B,EAAE,CAAC,EAAE,IAAkB,EAAE,EAAE;QACtE,MAAM,mBAAmB,GAAG,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CACtE,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAC9C,CAAA;QACD,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,OAAO,IAAI,EAAE,CAAA;QACf,CAAC;QAED,uDAAuD;QACvD,MAAM,MAAM,GAAG,MAAM,IAAA,oBAAa,EAChC,QAAQ,EACR,GAAG,CAAC,gBAAgB,CAAC,SAAU,EAC/B,GAAG,CAAC,KAAK,EACT,CAAC,IAAI,EAAE,eAAe,CAAC,CACxB,CAAA;QAED,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,IAAI,CAAC;gBACH,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,kBAAkB,GAAG,CAAC,gBAAgB,CAAC,SAAS,gDAAgD,CACjG,CAAA;YACH,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,CAAC,CAAC,CAAA;YAChB,CAAC;QACH,CAAC;QAED,MAAM,cAAc,GAAyB;YAC3C,SAAS,EAAE,MAAM,CAAC,EAAE;YACpB,aAAa,EAAE,MAAM,CAAC,aAAa;SACpC,CAAA;QAED,iEAAiE;QACjE,IAAI,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC;YAC/B,MAAM,cAAc,GAAG,MAAM,IAAA,sBAAe,EAC1C,gBAAgB,EAChB,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,EAChD,GAAG,CAAC,KAAK,EACT,CAAC,IAAI,CAAC,CACP,CAAA;YAED,cAAc,CAAC,iBAAiB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;QACtE,CAAC;QAED,GAAG,CAAC,cAAc,GAAG,cAAc,CAAA;QACnC,OAAO,IAAI,EAAE,CAAA;IACf,CAAC,CAAA;AACH,CAAC"}
|
@@ -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/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"}
|
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/orders/[id]/transfer/cancel/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/cancel/route.ts","../src/api/store/orders/[id]/transfer/decline/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-20241124153140",
|
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-20241124153140",
|
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-20241124153140",
|
66
|
+
"@medusajs/api-key": "2.0.5-snapshot-20241124153140",
|
67
|
+
"@medusajs/auth": "2.0.5-snapshot-20241124153140",
|
68
|
+
"@medusajs/auth-emailpass": "2.0.5-snapshot-20241124153140",
|
69
|
+
"@medusajs/auth-github": "2.0.5-snapshot-20241124153140",
|
70
|
+
"@medusajs/auth-google": "2.0.5-snapshot-20241124153140",
|
71
|
+
"@medusajs/cache-inmemory": "2.0.5-snapshot-20241124153140",
|
72
|
+
"@medusajs/cache-redis": "2.0.5-snapshot-20241124153140",
|
73
|
+
"@medusajs/cart": "2.0.5-snapshot-20241124153140",
|
74
|
+
"@medusajs/core-flows": "2.0.5-snapshot-20241124153140",
|
75
|
+
"@medusajs/currency": "2.0.5-snapshot-20241124153140",
|
76
|
+
"@medusajs/customer": "2.0.5-snapshot-20241124153140",
|
77
|
+
"@medusajs/event-bus-local": "2.0.5-snapshot-20241124153140",
|
78
|
+
"@medusajs/event-bus-redis": "2.0.5-snapshot-20241124153140",
|
79
|
+
"@medusajs/file": "2.0.5-snapshot-20241124153140",
|
80
|
+
"@medusajs/file-local": "2.0.5-snapshot-20241124153140",
|
81
|
+
"@medusajs/file-s3": "2.0.5-snapshot-20241124153140",
|
82
|
+
"@medusajs/fulfillment": "2.0.5-snapshot-20241124153140",
|
83
|
+
"@medusajs/fulfillment-manual": "2.0.5-snapshot-20241124153140",
|
84
|
+
"@medusajs/index": "2.0.5-snapshot-20241124153140",
|
85
|
+
"@medusajs/inventory": "2.0.5-snapshot-20241124153140",
|
86
|
+
"@medusajs/link-modules": "2.0.5-snapshot-20241124153140",
|
87
|
+
"@medusajs/locking": "2.0.5-snapshot-20241124153140",
|
88
|
+
"@medusajs/locking-postgres": "2.0.5-snapshot-20241124153140",
|
89
|
+
"@medusajs/locking-redis": "2.0.5-snapshot-20241124153140",
|
90
|
+
"@medusajs/notification": "2.0.5-snapshot-20241124153140",
|
91
|
+
"@medusajs/notification-local": "2.0.5-snapshot-20241124153140",
|
92
|
+
"@medusajs/notification-sendgrid": "2.0.5-snapshot-20241124153140",
|
93
|
+
"@medusajs/order": "2.0.5-snapshot-20241124153140",
|
94
|
+
"@medusajs/payment": "2.0.5-snapshot-20241124153140",
|
95
|
+
"@medusajs/payment-stripe": "2.0.5-snapshot-20241124153140",
|
96
|
+
"@medusajs/pricing": "2.0.5-snapshot-20241124153140",
|
97
|
+
"@medusajs/product": "2.0.5-snapshot-20241124153140",
|
98
|
+
"@medusajs/promotion": "2.0.5-snapshot-20241124153140",
|
99
|
+
"@medusajs/region": "2.0.5-snapshot-20241124153140",
|
100
|
+
"@medusajs/sales-channel": "2.0.5-snapshot-20241124153140",
|
101
|
+
"@medusajs/stock-location": "2.0.5-snapshot-20241124153140",
|
102
|
+
"@medusajs/store": "2.0.5-snapshot-20241124153140",
|
103
|
+
"@medusajs/tax": "2.0.5-snapshot-20241124153140",
|
104
|
+
"@medusajs/telemetry": "2.0.5-snapshot-20241124153140",
|
105
|
+
"@medusajs/user": "2.0.5-snapshot-20241124153140",
|
106
|
+
"@medusajs/workflow-engine-inmemory": "2.0.5-snapshot-20241124153140",
|
107
|
+
"@medusajs/workflow-engine-redis": "2.0.5-snapshot-20241124153140",
|
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-20241124153140",
|
129
129
|
"@mikro-orm/core": "5.9.7",
|
130
130
|
"@mikro-orm/knex": "5.9.7",
|
131
131
|
"@mikro-orm/migrations": "5.9.7",
|