@medusajs/medusa 2.0.5-preview-20241120060154 → 2.0.5-preview-20241120104336
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,5 +2,4 @@ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/
|
|
2
2
|
import { HttpTypes } from "@medusajs/framework/types";
|
3
3
|
import { AdminGetOrdersOrderParamsType } from "../validators";
|
4
4
|
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetOrdersOrderParamsType>, res: MedusaResponse<HttpTypes.AdminOrderResponse>) => Promise<void>;
|
5
|
-
export declare const POST: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderResponse>) => Promise<void>;
|
6
5
|
//# sourceMappingURL=route.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAE7D,eAAO,MAAM,GAAG,QACT,0BAA0B,CAAC,6BAA6B,CAAC,OACzD,cAAc,CAAC,SAAS,CAAC,kBAAkB,CAAC,kBAYlD,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.GET = void 0;
|
4
4
|
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
-
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
const GET = async (req, res) => {
|
7
6
|
const workflow = (0, core_flows_1.getOrderDetailWorkflow)(req.scope);
|
8
7
|
const { result } = await workflow.run({
|
@@ -15,17 +14,4 @@ const GET = async (req, res) => {
|
|
15
14
|
res.status(200).json({ order: result });
|
16
15
|
};
|
17
16
|
exports.GET = GET;
|
18
|
-
const POST = async (req, res) => {
|
19
|
-
const remoteQuery = req.scope.resolve(utils_1.ContainerRegistrationKeys.REMOTE_QUERY);
|
20
|
-
const variables = { id: req.params.id };
|
21
|
-
// TODO: update order
|
22
|
-
const queryObject = (0, utils_1.remoteQueryObjectFromString)({
|
23
|
-
entryPoint: "order",
|
24
|
-
variables,
|
25
|
-
fields: req.remoteQueryConfig.fields,
|
26
|
-
});
|
27
|
-
const [order] = await remoteQuery(queryObject);
|
28
|
-
res.status(200).json({ order });
|
29
|
-
};
|
30
|
-
exports.POST = POST;
|
31
17
|
//# sourceMappingURL=route.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6D;
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/admin/orders/[id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6D;AAQtD,MAAM,GAAG,GAAG,KAAK,EACtB,GAA8D,EAC9D,GAAiD,EACjD,EAAE;IACF,MAAM,QAAQ,GAAG,IAAA,mCAAsB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAClD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC;QACpC,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;YACpC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE;YACvB,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,OAAiB;SAC9C;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAA8B,EAAE,CAAC,CAAA;AACjE,CAAC,CAAA;AAdY,QAAA,GAAG,OAcf"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/medusa",
|
3
|
-
"version": "2.0.5-preview-
|
3
|
+
"version": "2.0.5-preview-20241120104336",
|
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-preview-
|
46
|
+
"@medusajs/framework": "2.0.5-preview-20241120104336",
|
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-preview-
|
66
|
-
"@medusajs/api-key": "2.0.5-preview-
|
67
|
-
"@medusajs/auth": "2.0.5-preview-
|
68
|
-
"@medusajs/auth-emailpass": "2.0.5-preview-
|
69
|
-
"@medusajs/auth-github": "2.0.5-preview-
|
70
|
-
"@medusajs/auth-google": "2.0.5-preview-
|
71
|
-
"@medusajs/cache-inmemory": "2.0.5-preview-
|
72
|
-
"@medusajs/cache-redis": "2.0.5-preview-
|
73
|
-
"@medusajs/cart": "2.0.5-preview-
|
74
|
-
"@medusajs/core-flows": "2.0.5-preview-
|
75
|
-
"@medusajs/currency": "2.0.5-preview-
|
76
|
-
"@medusajs/customer": "2.0.5-preview-
|
77
|
-
"@medusajs/event-bus-local": "2.0.5-preview-
|
78
|
-
"@medusajs/event-bus-redis": "2.0.5-preview-
|
79
|
-
"@medusajs/file": "2.0.5-preview-
|
80
|
-
"@medusajs/file-local": "2.0.5-preview-
|
81
|
-
"@medusajs/file-s3": "2.0.5-preview-
|
82
|
-
"@medusajs/fulfillment": "2.0.5-preview-
|
83
|
-
"@medusajs/fulfillment-manual": "2.0.5-preview-
|
84
|
-
"@medusajs/index": "2.0.5-preview-
|
85
|
-
"@medusajs/inventory": "2.0.5-preview-
|
86
|
-
"@medusajs/link-modules": "2.0.5-preview-
|
87
|
-
"@medusajs/locking": "2.0.5-preview-
|
88
|
-
"@medusajs/locking-postgres": "2.0.5-preview-
|
89
|
-
"@medusajs/locking-redis": "2.0.5-preview-
|
90
|
-
"@medusajs/notification": "2.0.5-preview-
|
91
|
-
"@medusajs/notification-local": "2.0.5-preview-
|
92
|
-
"@medusajs/notification-sendgrid": "2.0.5-preview-
|
93
|
-
"@medusajs/order": "2.0.5-preview-
|
94
|
-
"@medusajs/payment": "2.0.5-preview-
|
95
|
-
"@medusajs/payment-stripe": "2.0.5-preview-
|
96
|
-
"@medusajs/pricing": "2.0.5-preview-
|
97
|
-
"@medusajs/product": "2.0.5-preview-
|
98
|
-
"@medusajs/promotion": "2.0.5-preview-
|
99
|
-
"@medusajs/region": "2.0.5-preview-
|
100
|
-
"@medusajs/sales-channel": "2.0.5-preview-
|
101
|
-
"@medusajs/stock-location": "2.0.5-preview-
|
102
|
-
"@medusajs/store": "2.0.5-preview-
|
103
|
-
"@medusajs/tax": "2.0.5-preview-
|
104
|
-
"@medusajs/telemetry": "2.0.5-preview-
|
105
|
-
"@medusajs/user": "2.0.5-preview-
|
106
|
-
"@medusajs/workflow-engine-inmemory": "2.0.5-preview-
|
107
|
-
"@medusajs/workflow-engine-redis": "2.0.5-preview-
|
65
|
+
"@medusajs/admin-bundler": "2.0.5-preview-20241120104336",
|
66
|
+
"@medusajs/api-key": "2.0.5-preview-20241120104336",
|
67
|
+
"@medusajs/auth": "2.0.5-preview-20241120104336",
|
68
|
+
"@medusajs/auth-emailpass": "2.0.5-preview-20241120104336",
|
69
|
+
"@medusajs/auth-github": "2.0.5-preview-20241120104336",
|
70
|
+
"@medusajs/auth-google": "2.0.5-preview-20241120104336",
|
71
|
+
"@medusajs/cache-inmemory": "2.0.5-preview-20241120104336",
|
72
|
+
"@medusajs/cache-redis": "2.0.5-preview-20241120104336",
|
73
|
+
"@medusajs/cart": "2.0.5-preview-20241120104336",
|
74
|
+
"@medusajs/core-flows": "2.0.5-preview-20241120104336",
|
75
|
+
"@medusajs/currency": "2.0.5-preview-20241120104336",
|
76
|
+
"@medusajs/customer": "2.0.5-preview-20241120104336",
|
77
|
+
"@medusajs/event-bus-local": "2.0.5-preview-20241120104336",
|
78
|
+
"@medusajs/event-bus-redis": "2.0.5-preview-20241120104336",
|
79
|
+
"@medusajs/file": "2.0.5-preview-20241120104336",
|
80
|
+
"@medusajs/file-local": "2.0.5-preview-20241120104336",
|
81
|
+
"@medusajs/file-s3": "2.0.5-preview-20241120104336",
|
82
|
+
"@medusajs/fulfillment": "2.0.5-preview-20241120104336",
|
83
|
+
"@medusajs/fulfillment-manual": "2.0.5-preview-20241120104336",
|
84
|
+
"@medusajs/index": "2.0.5-preview-20241120104336",
|
85
|
+
"@medusajs/inventory": "2.0.5-preview-20241120104336",
|
86
|
+
"@medusajs/link-modules": "2.0.5-preview-20241120104336",
|
87
|
+
"@medusajs/locking": "2.0.5-preview-20241120104336",
|
88
|
+
"@medusajs/locking-postgres": "2.0.5-preview-20241120104336",
|
89
|
+
"@medusajs/locking-redis": "2.0.5-preview-20241120104336",
|
90
|
+
"@medusajs/notification": "2.0.5-preview-20241120104336",
|
91
|
+
"@medusajs/notification-local": "2.0.5-preview-20241120104336",
|
92
|
+
"@medusajs/notification-sendgrid": "2.0.5-preview-20241120104336",
|
93
|
+
"@medusajs/order": "2.0.5-preview-20241120104336",
|
94
|
+
"@medusajs/payment": "2.0.5-preview-20241120104336",
|
95
|
+
"@medusajs/payment-stripe": "2.0.5-preview-20241120104336",
|
96
|
+
"@medusajs/pricing": "2.0.5-preview-20241120104336",
|
97
|
+
"@medusajs/product": "2.0.5-preview-20241120104336",
|
98
|
+
"@medusajs/promotion": "2.0.5-preview-20241120104336",
|
99
|
+
"@medusajs/region": "2.0.5-preview-20241120104336",
|
100
|
+
"@medusajs/sales-channel": "2.0.5-preview-20241120104336",
|
101
|
+
"@medusajs/stock-location": "2.0.5-preview-20241120104336",
|
102
|
+
"@medusajs/store": "2.0.5-preview-20241120104336",
|
103
|
+
"@medusajs/tax": "2.0.5-preview-20241120104336",
|
104
|
+
"@medusajs/telemetry": "2.0.5-preview-20241120104336",
|
105
|
+
"@medusajs/user": "2.0.5-preview-20241120104336",
|
106
|
+
"@medusajs/workflow-engine-inmemory": "2.0.5-preview-20241120104336",
|
107
|
+
"@medusajs/workflow-engine-redis": "2.0.5-preview-20241120104336",
|
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-preview-
|
128
|
+
"@medusajs/framework": "2.0.5-preview-20241120104336",
|
129
129
|
"@mikro-orm/core": "5.9.7",
|
130
130
|
"@mikro-orm/knex": "5.9.7",
|
131
131
|
"@mikro-orm/migrations": "5.9.7",
|