@medusajs/medusa 2.7.1-preview-20250416031618 → 2.7.1-preview-20250416090139

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.
@@ -1,4 +1,5 @@
1
1
  import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
2
2
  import { AdminUpdateDraftOrderShippingMethodType } from "../../../../../validators";
3
3
  export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateDraftOrderShippingMethodType>, res: MedusaResponse) => Promise<void>;
4
+ export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
4
5
  //# sourceMappingURL=route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/api/admin/draft-orders/[id]/edit/shipping-methods/method/[method_id]/route.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,uCAAuC,EAAE,MAAM,2BAA2B,CAAA;AAEnF,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,uCAAuC,CAAC,OACnE,cAAc,kBAgBpB,CAAA"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/api/admin/draft-orders/[id]/edit/shipping-methods/method/[method_id]/route.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACf,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,uCAAuC,EAAE,MAAM,2BAA2B,CAAA;AAEnF,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,uCAAuC,CAAC,OACnE,cAAc,kBAgBpB,CAAA;AAED,eAAO,MAAM,MAAM,QACZ,0BAA0B,OAC1B,cAAc,kBAgBpB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POST = void 0;
3
+ exports.DELETE = exports.POST = void 0;
4
4
  const core_flows_1 = require("@medusajs/core-flows");
5
5
  const POST = async (req, res) => {
6
6
  const { id, method_id } = req.params;
@@ -15,4 +15,17 @@ const POST = async (req, res) => {
15
15
  });
16
16
  };
17
17
  exports.POST = POST;
18
+ const DELETE = async (req, res) => {
19
+ const { id, method_id } = req.params;
20
+ const { result } = await (0, core_flows_1.removeDraftOrderShippingMethodWorkflow)(req.scope).run({
21
+ input: {
22
+ order_id: id,
23
+ shipping_method_id: method_id,
24
+ },
25
+ });
26
+ res.json({
27
+ draft_order_preview: result,
28
+ });
29
+ };
30
+ exports.DELETE = DELETE;
18
31
  //# sourceMappingURL=route.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../../../src/api/admin/draft-orders/[id]/edit/shipping-methods/method/[method_id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAA6E;AAQtE,MAAM,IAAI,GAAG,KAAK,EACvB,GAAwE,EACxE,GAAmB,EACnB,EAAE;IACF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IAEpC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,mDAAsC,EAC7D,GAAG,CAAC,KAAK,CACV,CAAC,GAAG,CAAC;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,aAAa,EAAE;YAC7D,QAAQ,EAAE,EAAE;SACb;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,mBAAmB,EAAE,MAAqD;KAC3E,CAAC,CAAA;AACJ,CAAC,CAAA;AAlBY,QAAA,IAAI,QAkBhB"}
1
+ {"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../../../src/api/admin/draft-orders/[id]/edit/shipping-methods/method/[method_id]/route.ts"],"names":[],"mappings":";;;AAAA,qDAG6B;AAQtB,MAAM,IAAI,GAAG,KAAK,EACvB,GAAwE,EACxE,GAAmB,EACnB,EAAE;IACF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IAEpC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,mDAAsC,EAC7D,GAAG,CAAC,KAAK,CACV,CAAC,GAAG,CAAC;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,aAAa,EAAE;YAC7D,QAAQ,EAAE,EAAE;SACb;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,mBAAmB,EAAE,MAAqD;KAC3E,CAAC,CAAA;AACJ,CAAC,CAAA;AAlBY,QAAA,IAAI,QAkBhB;AAEM,MAAM,MAAM,GAAG,KAAK,EACzB,GAA+B,EAC/B,GAAmB,EACnB,EAAE;IACF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IAEpC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,mDAAsC,EAC7D,GAAG,CAAC,KAAK,CACV,CAAC,GAAG,CAAC;QACJ,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;YACZ,kBAAkB,EAAE,SAAS;SAC9B;KACF,CAAC,CAAA;IAEF,GAAG,CAAC,IAAI,CAAC;QACP,mBAAmB,EAAE,MAAqD;KAC3E,CAAC,CAAA;AACJ,CAAC,CAAA;AAlBY,QAAA,MAAM,UAkBlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/medusa",
3
- "version": "2.7.1-preview-20250416031618",
3
+ "version": "2.7.1-preview-20250416090139",
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-preview-20250416031618",
47
+ "@medusajs/framework": "2.7.1-preview-20250416090139",
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-preview-20250416031618",
71
- "@medusajs/api-key": "2.7.1-preview-20250416031618",
72
- "@medusajs/auth": "2.7.1-preview-20250416031618",
73
- "@medusajs/auth-emailpass": "2.7.1-preview-20250416031618",
74
- "@medusajs/auth-github": "2.7.1-preview-20250416031618",
75
- "@medusajs/auth-google": "2.7.1-preview-20250416031618",
76
- "@medusajs/cache-inmemory": "2.7.1-preview-20250416031618",
77
- "@medusajs/cache-redis": "2.7.1-preview-20250416031618",
78
- "@medusajs/cart": "2.7.1-preview-20250416031618",
79
- "@medusajs/core-flows": "2.7.1-preview-20250416031618",
80
- "@medusajs/currency": "2.7.1-preview-20250416031618",
81
- "@medusajs/customer": "2.7.1-preview-20250416031618",
82
- "@medusajs/event-bus-local": "2.7.1-preview-20250416031618",
83
- "@medusajs/event-bus-redis": "2.7.1-preview-20250416031618",
84
- "@medusajs/file": "2.7.1-preview-20250416031618",
85
- "@medusajs/file-local": "2.7.1-preview-20250416031618",
86
- "@medusajs/file-s3": "2.7.1-preview-20250416031618",
87
- "@medusajs/fulfillment": "2.7.1-preview-20250416031618",
88
- "@medusajs/fulfillment-manual": "2.7.1-preview-20250416031618",
89
- "@medusajs/index": "2.7.1-preview-20250416031618",
90
- "@medusajs/inventory": "2.7.1-preview-20250416031618",
91
- "@medusajs/link-modules": "2.7.1-preview-20250416031618",
92
- "@medusajs/locking": "2.7.1-preview-20250416031618",
93
- "@medusajs/locking-postgres": "2.7.1-preview-20250416031618",
94
- "@medusajs/locking-redis": "2.7.1-preview-20250416031618",
95
- "@medusajs/notification": "2.7.1-preview-20250416031618",
96
- "@medusajs/notification-local": "2.7.1-preview-20250416031618",
97
- "@medusajs/notification-sendgrid": "2.7.1-preview-20250416031618",
98
- "@medusajs/order": "2.7.1-preview-20250416031618",
99
- "@medusajs/payment": "2.7.1-preview-20250416031618",
100
- "@medusajs/payment-stripe": "2.7.1-preview-20250416031618",
101
- "@medusajs/pricing": "2.7.1-preview-20250416031618",
102
- "@medusajs/product": "2.7.1-preview-20250416031618",
103
- "@medusajs/promotion": "2.7.1-preview-20250416031618",
104
- "@medusajs/region": "2.7.1-preview-20250416031618",
105
- "@medusajs/sales-channel": "2.7.1-preview-20250416031618",
106
- "@medusajs/stock-location": "2.7.1-preview-20250416031618",
107
- "@medusajs/store": "2.7.1-preview-20250416031618",
108
- "@medusajs/tax": "2.7.1-preview-20250416031618",
109
- "@medusajs/telemetry": "2.7.1-preview-20250416031618",
110
- "@medusajs/user": "2.7.1-preview-20250416031618",
111
- "@medusajs/workflow-engine-inmemory": "2.7.1-preview-20250416031618",
112
- "@medusajs/workflow-engine-redis": "2.7.1-preview-20250416031618",
70
+ "@medusajs/admin-bundler": "2.7.1-preview-20250416090139",
71
+ "@medusajs/api-key": "2.7.1-preview-20250416090139",
72
+ "@medusajs/auth": "2.7.1-preview-20250416090139",
73
+ "@medusajs/auth-emailpass": "2.7.1-preview-20250416090139",
74
+ "@medusajs/auth-github": "2.7.1-preview-20250416090139",
75
+ "@medusajs/auth-google": "2.7.1-preview-20250416090139",
76
+ "@medusajs/cache-inmemory": "2.7.1-preview-20250416090139",
77
+ "@medusajs/cache-redis": "2.7.1-preview-20250416090139",
78
+ "@medusajs/cart": "2.7.1-preview-20250416090139",
79
+ "@medusajs/core-flows": "2.7.1-preview-20250416090139",
80
+ "@medusajs/currency": "2.7.1-preview-20250416090139",
81
+ "@medusajs/customer": "2.7.1-preview-20250416090139",
82
+ "@medusajs/event-bus-local": "2.7.1-preview-20250416090139",
83
+ "@medusajs/event-bus-redis": "2.7.1-preview-20250416090139",
84
+ "@medusajs/file": "2.7.1-preview-20250416090139",
85
+ "@medusajs/file-local": "2.7.1-preview-20250416090139",
86
+ "@medusajs/file-s3": "2.7.1-preview-20250416090139",
87
+ "@medusajs/fulfillment": "2.7.1-preview-20250416090139",
88
+ "@medusajs/fulfillment-manual": "2.7.1-preview-20250416090139",
89
+ "@medusajs/index": "2.7.1-preview-20250416090139",
90
+ "@medusajs/inventory": "2.7.1-preview-20250416090139",
91
+ "@medusajs/link-modules": "2.7.1-preview-20250416090139",
92
+ "@medusajs/locking": "2.7.1-preview-20250416090139",
93
+ "@medusajs/locking-postgres": "2.7.1-preview-20250416090139",
94
+ "@medusajs/locking-redis": "2.7.1-preview-20250416090139",
95
+ "@medusajs/notification": "2.7.1-preview-20250416090139",
96
+ "@medusajs/notification-local": "2.7.1-preview-20250416090139",
97
+ "@medusajs/notification-sendgrid": "2.7.1-preview-20250416090139",
98
+ "@medusajs/order": "2.7.1-preview-20250416090139",
99
+ "@medusajs/payment": "2.7.1-preview-20250416090139",
100
+ "@medusajs/payment-stripe": "2.7.1-preview-20250416090139",
101
+ "@medusajs/pricing": "2.7.1-preview-20250416090139",
102
+ "@medusajs/product": "2.7.1-preview-20250416090139",
103
+ "@medusajs/promotion": "2.7.1-preview-20250416090139",
104
+ "@medusajs/region": "2.7.1-preview-20250416090139",
105
+ "@medusajs/sales-channel": "2.7.1-preview-20250416090139",
106
+ "@medusajs/stock-location": "2.7.1-preview-20250416090139",
107
+ "@medusajs/store": "2.7.1-preview-20250416090139",
108
+ "@medusajs/tax": "2.7.1-preview-20250416090139",
109
+ "@medusajs/telemetry": "2.7.1-preview-20250416090139",
110
+ "@medusajs/user": "2.7.1-preview-20250416090139",
111
+ "@medusajs/workflow-engine-inmemory": "2.7.1-preview-20250416090139",
112
+ "@medusajs/workflow-engine-redis": "2.7.1-preview-20250416090139",
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-preview-20250416031618",
130
+ "@medusajs/framework": "2.7.1-preview-20250416090139",
131
131
  "@mikro-orm/core": "6.4.3",
132
132
  "@mikro-orm/knex": "6.4.3",
133
133
  "@mikro-orm/migrations": "6.4.3",