@medusajs/medusa 2.7.1-snapshot-20250414123336 → 2.7.1-snapshot-20250414161627
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,5 +3,4 @@ import { AdditionalData, HttpTypes } from "@medusajs/framework/types";
|
|
3
3
|
import { AdminCreateDraftOrderType } from "./validators";
|
4
4
|
export declare const GET: (req: MedusaRequest<HttpTypes.AdminOrderFilters>, res: MedusaResponse<HttpTypes.AdminDraftOrderListResponse>) => Promise<void>;
|
5
5
|
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateDraftOrderType & AdditionalData>, res: MedusaResponse<HttpTypes.AdminDraftOrderResponse>) => Promise<void>;
|
6
|
-
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
7
6
|
//# sourceMappingURL=route.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,cAAc,EAEd,SAAS,EAEV,MAAM,2BAA2B,CAAA;AAOlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAExD,eAAO,MAAM,GAAG,QACT,aAAa,CAAC,SAAS,CAAC,iBAAiB,CAAC,OAC1C,cAAc,CAAC,SAAS,CAAC,2BAA2B,CAAC,kBA4B3D,CAAA;AAED,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,yBAAyB,GAAG,cAAc,CAAC,OACtE,cAAc,CAAC,SAAS,CAAC,uBAAuB,CAAC,kBAoEvD,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.POST = exports.GET = void 0;
|
4
4
|
const core_flows_1 = require("@medusajs/core-flows");
|
5
5
|
const utils_1 = require("@medusajs/framework/utils");
|
6
6
|
const helpers_1 = require("./helpers");
|
@@ -85,18 +85,4 @@ const POST = async (req, res) => {
|
|
85
85
|
res.status(200).json({ draft_order: draftOrder });
|
86
86
|
};
|
87
87
|
exports.POST = POST;
|
88
|
-
const DELETE = async (req, res) => {
|
89
|
-
const { id } = req.params;
|
90
|
-
await (0, core_flows_1.deleteDraftOrdersWorkflow)(req.scope).run({
|
91
|
-
input: {
|
92
|
-
order_ids: [id],
|
93
|
-
},
|
94
|
-
});
|
95
|
-
res.status(200).json({
|
96
|
-
id,
|
97
|
-
object: "draft-order",
|
98
|
-
deleted: true,
|
99
|
-
});
|
100
|
-
};
|
101
|
-
exports.DELETE = DELETE;
|
102
88
|
//# sourceMappingURL=route.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":";;;AAAA,qDAG6B;AAY7B,qDAIkC;AAClC,uCAAwC;AAGjC,MAAM,GAAG,GAAG,KAAK,EACtB,GAA+C,EAC/C,GAA0D,EAC1D,EAAE;IACF,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE;YACP,GAAG,GAAG,CAAC,gBAAgB;YACvB,cAAc,EAAE,IAAI;SACrB;QACD,GAAG,GAAG,CAAC,WAAW,CAAC,UAAU;KAC9B,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,E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|
3
|
+
"version": "2.7.1-snapshot-20250414161627",
|
4
4
|
"description": "Building blocks for digital commerce",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"exports": {
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"test:integration": "jest --forceExit -- src/**/integration-tests/**/__tests__/**/*.ts"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
|
-
"@medusajs/framework": "2.7.1-snapshot-
|
47
|
+
"@medusajs/framework": "2.7.1-snapshot-20250414161627",
|
48
48
|
"@opentelemetry/api": "^1.9.0",
|
49
49
|
"@opentelemetry/instrumentation": "^0.53.0",
|
50
50
|
"@opentelemetry/instrumentation-pg": "^0.44.0",
|
@@ -67,49 +67,49 @@
|
|
67
67
|
"dependencies": {
|
68
68
|
"@inquirer/checkbox": "^2.3.11",
|
69
69
|
"@inquirer/input": "^2.2.9",
|
70
|
-
"@medusajs/admin-bundler": "2.7.1-snapshot-
|
71
|
-
"@medusajs/api-key": "2.7.1-snapshot-
|
72
|
-
"@medusajs/auth": "2.7.1-snapshot-
|
73
|
-
"@medusajs/auth-emailpass": "2.7.1-snapshot-
|
74
|
-
"@medusajs/auth-github": "2.7.1-snapshot-
|
75
|
-
"@medusajs/auth-google": "2.7.1-snapshot-
|
76
|
-
"@medusajs/cache-inmemory": "2.7.1-snapshot-
|
77
|
-
"@medusajs/cache-redis": "2.7.1-snapshot-
|
78
|
-
"@medusajs/cart": "2.7.1-snapshot-
|
79
|
-
"@medusajs/core-flows": "2.7.1-snapshot-
|
80
|
-
"@medusajs/currency": "2.7.1-snapshot-
|
81
|
-
"@medusajs/customer": "2.7.1-snapshot-
|
82
|
-
"@medusajs/event-bus-local": "2.7.1-snapshot-
|
83
|
-
"@medusajs/event-bus-redis": "2.7.1-snapshot-
|
84
|
-
"@medusajs/file": "2.7.1-snapshot-
|
85
|
-
"@medusajs/file-local": "2.7.1-snapshot-
|
86
|
-
"@medusajs/file-s3": "2.7.1-snapshot-
|
87
|
-
"@medusajs/fulfillment": "2.7.1-snapshot-
|
88
|
-
"@medusajs/fulfillment-manual": "2.7.1-snapshot-
|
89
|
-
"@medusajs/index": "2.7.1-snapshot-
|
90
|
-
"@medusajs/inventory": "2.7.1-snapshot-
|
91
|
-
"@medusajs/link-modules": "2.7.1-snapshot-
|
92
|
-
"@medusajs/locking": "2.7.1-snapshot-
|
93
|
-
"@medusajs/locking-postgres": "2.7.1-snapshot-
|
94
|
-
"@medusajs/locking-redis": "2.7.1-snapshot-
|
95
|
-
"@medusajs/notification": "2.7.1-snapshot-
|
96
|
-
"@medusajs/notification-local": "2.7.1-snapshot-
|
97
|
-
"@medusajs/notification-sendgrid": "2.7.1-snapshot-
|
98
|
-
"@medusajs/order": "2.7.1-snapshot-
|
99
|
-
"@medusajs/payment": "2.7.1-snapshot-
|
100
|
-
"@medusajs/payment-stripe": "2.7.1-snapshot-
|
101
|
-
"@medusajs/pricing": "2.7.1-snapshot-
|
102
|
-
"@medusajs/product": "2.7.1-snapshot-
|
103
|
-
"@medusajs/promotion": "2.7.1-snapshot-
|
104
|
-
"@medusajs/region": "2.7.1-snapshot-
|
105
|
-
"@medusajs/sales-channel": "2.7.1-snapshot-
|
106
|
-
"@medusajs/stock-location": "2.7.1-snapshot-
|
107
|
-
"@medusajs/store": "2.7.1-snapshot-
|
108
|
-
"@medusajs/tax": "2.7.1-snapshot-
|
109
|
-
"@medusajs/telemetry": "2.7.1-snapshot-
|
110
|
-
"@medusajs/user": "2.7.1-snapshot-
|
111
|
-
"@medusajs/workflow-engine-inmemory": "2.7.1-snapshot-
|
112
|
-
"@medusajs/workflow-engine-redis": "2.7.1-snapshot-
|
70
|
+
"@medusajs/admin-bundler": "2.7.1-snapshot-20250414161627",
|
71
|
+
"@medusajs/api-key": "2.7.1-snapshot-20250414161627",
|
72
|
+
"@medusajs/auth": "2.7.1-snapshot-20250414161627",
|
73
|
+
"@medusajs/auth-emailpass": "2.7.1-snapshot-20250414161627",
|
74
|
+
"@medusajs/auth-github": "2.7.1-snapshot-20250414161627",
|
75
|
+
"@medusajs/auth-google": "2.7.1-snapshot-20250414161627",
|
76
|
+
"@medusajs/cache-inmemory": "2.7.1-snapshot-20250414161627",
|
77
|
+
"@medusajs/cache-redis": "2.7.1-snapshot-20250414161627",
|
78
|
+
"@medusajs/cart": "2.7.1-snapshot-20250414161627",
|
79
|
+
"@medusajs/core-flows": "2.7.1-snapshot-20250414161627",
|
80
|
+
"@medusajs/currency": "2.7.1-snapshot-20250414161627",
|
81
|
+
"@medusajs/customer": "2.7.1-snapshot-20250414161627",
|
82
|
+
"@medusajs/event-bus-local": "2.7.1-snapshot-20250414161627",
|
83
|
+
"@medusajs/event-bus-redis": "2.7.1-snapshot-20250414161627",
|
84
|
+
"@medusajs/file": "2.7.1-snapshot-20250414161627",
|
85
|
+
"@medusajs/file-local": "2.7.1-snapshot-20250414161627",
|
86
|
+
"@medusajs/file-s3": "2.7.1-snapshot-20250414161627",
|
87
|
+
"@medusajs/fulfillment": "2.7.1-snapshot-20250414161627",
|
88
|
+
"@medusajs/fulfillment-manual": "2.7.1-snapshot-20250414161627",
|
89
|
+
"@medusajs/index": "2.7.1-snapshot-20250414161627",
|
90
|
+
"@medusajs/inventory": "2.7.1-snapshot-20250414161627",
|
91
|
+
"@medusajs/link-modules": "2.7.1-snapshot-20250414161627",
|
92
|
+
"@medusajs/locking": "2.7.1-snapshot-20250414161627",
|
93
|
+
"@medusajs/locking-postgres": "2.7.1-snapshot-20250414161627",
|
94
|
+
"@medusajs/locking-redis": "2.7.1-snapshot-20250414161627",
|
95
|
+
"@medusajs/notification": "2.7.1-snapshot-20250414161627",
|
96
|
+
"@medusajs/notification-local": "2.7.1-snapshot-20250414161627",
|
97
|
+
"@medusajs/notification-sendgrid": "2.7.1-snapshot-20250414161627",
|
98
|
+
"@medusajs/order": "2.7.1-snapshot-20250414161627",
|
99
|
+
"@medusajs/payment": "2.7.1-snapshot-20250414161627",
|
100
|
+
"@medusajs/payment-stripe": "2.7.1-snapshot-20250414161627",
|
101
|
+
"@medusajs/pricing": "2.7.1-snapshot-20250414161627",
|
102
|
+
"@medusajs/product": "2.7.1-snapshot-20250414161627",
|
103
|
+
"@medusajs/promotion": "2.7.1-snapshot-20250414161627",
|
104
|
+
"@medusajs/region": "2.7.1-snapshot-20250414161627",
|
105
|
+
"@medusajs/sales-channel": "2.7.1-snapshot-20250414161627",
|
106
|
+
"@medusajs/stock-location": "2.7.1-snapshot-20250414161627",
|
107
|
+
"@medusajs/store": "2.7.1-snapshot-20250414161627",
|
108
|
+
"@medusajs/tax": "2.7.1-snapshot-20250414161627",
|
109
|
+
"@medusajs/telemetry": "2.7.1-snapshot-20250414161627",
|
110
|
+
"@medusajs/user": "2.7.1-snapshot-20250414161627",
|
111
|
+
"@medusajs/workflow-engine-inmemory": "2.7.1-snapshot-20250414161627",
|
112
|
+
"@medusajs/workflow-engine-redis": "2.7.1-snapshot-20250414161627",
|
113
113
|
"boxen": "^5.0.1",
|
114
114
|
"chalk": "^4.0.0",
|
115
115
|
"chokidar": "^3.4.2",
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"zod": "3.22.4"
|
128
128
|
},
|
129
129
|
"peerDependencies": {
|
130
|
-
"@medusajs/framework": "2.7.1-snapshot-
|
130
|
+
"@medusajs/framework": "2.7.1-snapshot-20250414161627",
|
131
131
|
"@mikro-orm/core": "6.4.3",
|
132
132
|
"@mikro-orm/knex": "6.4.3",
|
133
133
|
"@mikro-orm/migrations": "6.4.3",
|