@medusajs/draft-order 0.0.14 → 2.10.0-preview-20250827120157
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/.medusa/server/src/admin/index.js +2520 -2509
- package/.medusa/server/src/admin/index.mjs +2521 -2510
- package/README.md +41 -19
- package/package.json +19 -22
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</a>
|
|
9
9
|
</p>
|
|
10
10
|
<h1 align="center">
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
##
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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": "
|
|
3
|
+
"version": "2.10.0-preview-20250827120157",
|
|
4
4
|
"description": "A starter for Medusa plugins.",
|
|
5
5
|
"author": "Medusa (https://medusajs.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,16 +30,13 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "medusa plugin:build",
|
|
32
32
|
"dev": "medusa plugin:develop",
|
|
33
|
-
"
|
|
33
|
+
"prepare": "cross-env NODE_ENV=production yarn run build",
|
|
34
34
|
"link:watch": "medusa plugin:publish && medusa plugin:develop"
|
|
35
35
|
},
|
|
36
|
-
"publishConfig": {
|
|
37
|
-
"access": "restricted"
|
|
38
|
-
},
|
|
39
36
|
"dependencies": {
|
|
40
37
|
"@ariakit/react": "^0.4.15",
|
|
41
38
|
"@hookform/resolvers": "3.4.2",
|
|
42
|
-
"@medusajs/js-sdk": "2.
|
|
39
|
+
"@medusajs/js-sdk": "2.10.0-preview-20250827120157",
|
|
43
40
|
"@tanstack/react-query": "5.64.2",
|
|
44
41
|
"@uiw/react-json-view": "^2.0.0-alpha.17",
|
|
45
42
|
"date-fns": "^3.6.0",
|
|
@@ -48,15 +45,15 @@
|
|
|
48
45
|
"react-hook-form": "7.49.1"
|
|
49
46
|
},
|
|
50
47
|
"devDependencies": {
|
|
51
|
-
"@medusajs/admin-sdk": "2.
|
|
52
|
-
"@medusajs/cli": "2.
|
|
53
|
-
"@medusajs/framework": "2.
|
|
54
|
-
"@medusajs/icons": "2.
|
|
55
|
-
"@medusajs/medusa": "2.
|
|
56
|
-
"@medusajs/test-utils": "2.
|
|
57
|
-
"@medusajs/types": "2.
|
|
58
|
-
"@medusajs/ui": "4.0.
|
|
59
|
-
"@medusajs/ui-preset": "2.
|
|
48
|
+
"@medusajs/admin-sdk": "2.10.0-preview-20250827120157",
|
|
49
|
+
"@medusajs/cli": "2.10.0-preview-20250827120157",
|
|
50
|
+
"@medusajs/framework": "2.10.0-preview-20250827120157",
|
|
51
|
+
"@medusajs/icons": "2.10.0-preview-20250827120157",
|
|
52
|
+
"@medusajs/medusa": "2.10.0-preview-20250827120157",
|
|
53
|
+
"@medusajs/test-utils": "2.10.0-preview-20250827120157",
|
|
54
|
+
"@medusajs/types": "2.10.0-preview-20250827120157",
|
|
55
|
+
"@medusajs/ui": "4.0.20-preview-20250827120157",
|
|
56
|
+
"@medusajs/ui-preset": "2.10.0-preview-20250827120157",
|
|
60
57
|
"@mikro-orm/cli": "6.4.3",
|
|
61
58
|
"@mikro-orm/core": "6.4.3",
|
|
62
59
|
"@mikro-orm/knex": "6.4.3",
|
|
@@ -80,13 +77,13 @@
|
|
|
80
77
|
"yalc": "^1.0.0-pre.53"
|
|
81
78
|
},
|
|
82
79
|
"peerDependencies": {
|
|
83
|
-
"@medusajs/admin-sdk": "2.
|
|
84
|
-
"@medusajs/cli": "2.
|
|
85
|
-
"@medusajs/framework": "2.
|
|
86
|
-
"@medusajs/icons": "2.
|
|
87
|
-
"@medusajs/medusa": "2.
|
|
88
|
-
"@medusajs/test-utils": "2.
|
|
89
|
-
"@medusajs/ui": "4.0.
|
|
80
|
+
"@medusajs/admin-sdk": "2.10.0-preview-20250827120157",
|
|
81
|
+
"@medusajs/cli": "2.10.0-preview-20250827120157",
|
|
82
|
+
"@medusajs/framework": "2.10.0-preview-20250827120157",
|
|
83
|
+
"@medusajs/icons": "2.10.0-preview-20250827120157",
|
|
84
|
+
"@medusajs/medusa": "2.10.0-preview-20250827120157",
|
|
85
|
+
"@medusajs/test-utils": "2.10.0-preview-20250827120157",
|
|
86
|
+
"@medusajs/ui": "4.0.20-preview-20250827120157",
|
|
90
87
|
"@mikro-orm/cli": "6.4.3",
|
|
91
88
|
"@mikro-orm/core": "6.4.3",
|
|
92
89
|
"@mikro-orm/knex": "6.4.3",
|