@medusajs/draft-order 0.0.14 → 2.10.0-snapshot-20250825072447

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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  </a>
9
9
  </p>
10
10
  <h1 align="center">
11
- Medusa Plugin Starter
11
+ Draft Order Plugin
12
12
  </h1>
13
13
 
14
14
  <h4 align="center">
@@ -17,7 +17,7 @@
17
17
  </h4>
18
18
 
19
19
  <p align="center">
20
- Building blocks for digital commerce
20
+ Create and manage draft orders on behalf of customers in Medusa
21
21
  </p>
22
22
  <p align="center">
23
23
  <a href="https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md">
@@ -32,23 +32,45 @@
32
32
  </a>
33
33
  </p>
34
34
 
35
- ## Compatibility
36
-
37
- This starter is compatible with versions >= 2.4.0 of `@medusajs/medusa`.
38
-
39
- ## Getting Started
40
-
41
- Visit the [Quickstart Guide](https://docs.medusajs.com/learn/installation) to set up a server.
42
-
43
- Visit the [Plugins documentation](https://docs.medusajs.com/learn/fundamentals/plugins) to learn more about plugins and how to create them.
44
-
45
- Visit the [Docs](https://docs.medusajs.com/learn/installation#get-started) to learn more about our system requirements.
46
-
47
- ## What is Medusa
48
-
49
- Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.
50
-
51
- Learn more about [Medusa’s architecture](https://docs.medusajs.com/learn/introduction/architecture) and [commerce modules](https://docs.medusajs.com/learn/fundamentals/modules/commerce-modules) in the Docs.
35
+ ## Overview
36
+
37
+ The Draft Order Plugin enables admin users to create and manage orders on behalf of customers. This is particularly useful for customer support scenarios or when customers place orders offline.
38
+
39
+ ## Features
40
+
41
+ - **Create draft orders** from the Medusa Admin dashboard
42
+ - **Manage items** in draft orders (add, update, remove)
43
+ - **Add shipping methods** to draft orders
44
+ - **Associate customers** with draft orders
45
+ - **Convert draft orders** to regular orders for purchase completion
46
+
47
+
48
+ ## Installation
49
+
50
+ 1. Install the Draft Order plugin
51
+ ```
52
+ yarn add @medusajs/draft-order
53
+ ```
54
+ 2. Configure the plugin in your medusa-config.ts
55
+ ```
56
+ module.exports = defineConfig({
57
+ projectConfig: {
58
+ ...
59
+ },
60
+ plugins: [
61
+ {
62
+ resolve: "@medusajs/draft-order",
63
+ options: {},
64
+ },
65
+ ],
66
+ })
67
+ ```
68
+ 3. Start your server
69
+
70
+ ## Requirements
71
+ - Medusa application version >= 2.4.0
72
+
73
+ ## Support
52
74
 
53
75
  ## Community & Contributions
54
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/draft-order",
3
- "version": "0.0.14",
3
+ "version": "2.10.0-snapshot-20250825072447",
4
4
  "description": "A starter for Medusa plugins.",
5
5
  "author": "Medusa (https://medusajs.com)",
6
6
  "license": "MIT",
@@ -27,19 +27,13 @@
27
27
  "medusa-plugin",
28
28
  "medusa-v2"
29
29
  ],
30
- "scripts": {
31
- "build": "medusa plugin:build",
32
- "dev": "medusa plugin:develop",
33
- "publish": "medusa plugin:publish",
34
- "link:watch": "medusa plugin:publish && medusa plugin:develop"
35
- },
36
30
  "publishConfig": {
37
31
  "access": "restricted"
38
32
  },
39
33
  "dependencies": {
40
34
  "@ariakit/react": "^0.4.15",
41
35
  "@hookform/resolvers": "3.4.2",
42
- "@medusajs/js-sdk": "2.9.0",
36
+ "@medusajs/js-sdk": "2.10.0-snapshot-20250825072447",
43
37
  "@tanstack/react-query": "5.64.2",
44
38
  "@uiw/react-json-view": "^2.0.0-alpha.17",
45
39
  "date-fns": "^3.6.0",
@@ -48,15 +42,15 @@
48
42
  "react-hook-form": "7.49.1"
49
43
  },
50
44
  "devDependencies": {
51
- "@medusajs/admin-sdk": "2.9.0",
52
- "@medusajs/cli": "2.9.0",
53
- "@medusajs/framework": "2.9.0",
54
- "@medusajs/icons": "2.9.0",
55
- "@medusajs/medusa": "2.9.0",
56
- "@medusajs/test-utils": "2.9.0",
57
- "@medusajs/types": "2.9.0",
58
- "@medusajs/ui": "4.0.19",
59
- "@medusajs/ui-preset": "2.9.0",
45
+ "@medusajs/admin-sdk": "2.10.0-snapshot-20250825072447",
46
+ "@medusajs/cli": "2.10.0-snapshot-20250825072447",
47
+ "@medusajs/framework": "2.10.0-snapshot-20250825072447",
48
+ "@medusajs/icons": "2.10.0-snapshot-20250825072447",
49
+ "@medusajs/medusa": "2.10.0-snapshot-20250825072447",
50
+ "@medusajs/test-utils": "2.10.0-snapshot-20250825072447",
51
+ "@medusajs/types": "2.10.0-snapshot-20250825072447",
52
+ "@medusajs/ui": "4.0.20-snapshot-20250825072447",
53
+ "@medusajs/ui-preset": "2.10.0-snapshot-20250825072447",
60
54
  "@mikro-orm/cli": "6.4.3",
61
55
  "@mikro-orm/core": "6.4.3",
62
56
  "@mikro-orm/knex": "6.4.3",
@@ -80,13 +74,13 @@
80
74
  "yalc": "^1.0.0-pre.53"
81
75
  },
82
76
  "peerDependencies": {
83
- "@medusajs/admin-sdk": "2.9.0",
84
- "@medusajs/cli": "2.9.0",
85
- "@medusajs/framework": "2.9.0",
86
- "@medusajs/icons": "2.9.0",
87
- "@medusajs/medusa": "2.9.0",
88
- "@medusajs/test-utils": "2.9.0",
89
- "@medusajs/ui": "4.0.11",
77
+ "@medusajs/admin-sdk": "2.10.0-snapshot-20250825072447",
78
+ "@medusajs/cli": "2.10.0-snapshot-20250825072447",
79
+ "@medusajs/framework": "2.10.0-snapshot-20250825072447",
80
+ "@medusajs/icons": "2.10.0-snapshot-20250825072447",
81
+ "@medusajs/medusa": "2.10.0-snapshot-20250825072447",
82
+ "@medusajs/test-utils": "2.10.0-snapshot-20250825072447",
83
+ "@medusajs/ui": "4.0.20-snapshot-20250825072447",
90
84
  "@mikro-orm/cli": "6.4.3",
91
85
  "@mikro-orm/core": "6.4.3",
92
86
  "@mikro-orm/knex": "6.4.3",
@@ -100,5 +94,10 @@
100
94
  "engines": {
101
95
  "node": ">=20"
102
96
  },
103
- "packageManager": "yarn@3.2.1"
104
- }
97
+ "packageManager": "yarn@3.2.1",
98
+ "scripts": {
99
+ "build": "medusa plugin:build",
100
+ "dev": "medusa plugin:develop",
101
+ "link:watch": "medusa plugin:publish && medusa plugin:develop"
102
+ }
103
+ }