@agilo/medusa-analytics-plugin 1.2.0 → 1.3.2
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 +5 -1
- package/package.json +39 -39
- package/.medusa/server/src/admin/index.js +0 -2100
- package/.medusa/server/src/admin/index.mjs +0 -2084
- package/.medusa/server/src/api/admin/agilo-analytics/customers/route.js +0 -178
- package/.medusa/server/src/api/admin/agilo-analytics/orders/route.js +0 -177
- package/.medusa/server/src/api/admin/agilo-analytics/products/route.js +0 -106
- package/.medusa/server/src/utils/orders.js +0 -184
package/README.md
CHANGED
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
The Medusa Analytics Plugin is a lightweight analytics extension for the Medusa Admin dashboard. It provides store admins with a clear view of sales and product performance using focused KPIs, charts, and tables, all accessible directly within the Medusa Admin panel.
|
|
17
17
|
|
|
18
|
-
✅ Compatible with Medusa v2
|
|
18
|
+
✅ Compatible with Medusa v2.11.0 and above
|
|
19
|
+
|
|
20
|
+
### Requirements
|
|
21
|
+
|
|
22
|
+
- **Medusa v2.11.0+** - This plugin requires Medusa v2.11.0 or later due to its dependency on the [Caching Module](https://docs.medusajs.com/resources/infrastructure-modules/caching), which was introduced in that version.
|
|
19
23
|
|
|
20
24
|
## Features
|
|
21
25
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilo/medusa-analytics-plugin",
|
|
3
|
-
"version": "1.2
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "A simple analytics plugin for Medusa",
|
|
5
5
|
"author": "Ante Primorac <ante@agilo.com>",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
|
+
"packageManager": "yarn@4.12.0",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Agilo/medusa-analytics-plugin.git"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/Agilo/medusa-analytics-plugin#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/Agilo/medusa-analytics-plugin/issues"
|
|
18
|
+
},
|
|
10
19
|
"files": [
|
|
11
20
|
".medusa/server"
|
|
12
21
|
],
|
|
@@ -34,32 +43,27 @@
|
|
|
34
43
|
"build": "medusa plugin:build",
|
|
35
44
|
"dev": "medusa plugin:develop",
|
|
36
45
|
"prepublishOnly": "medusa plugin:build",
|
|
37
|
-
"test": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --
|
|
38
|
-
"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent=false --
|
|
46
|
+
"test": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --forceExit",
|
|
47
|
+
"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent=false --forceExit"
|
|
39
48
|
},
|
|
40
49
|
"devDependencies": {
|
|
41
|
-
"@medusajs/admin-sdk": "2.
|
|
42
|
-
"@medusajs/cli": "2.
|
|
43
|
-
"@medusajs/framework": "2.
|
|
44
|
-
"@medusajs/icons": "2.
|
|
45
|
-
"@medusajs/medusa": "2.
|
|
46
|
-
"@medusajs/test-utils": "
|
|
47
|
-
"@medusajs/ui": "
|
|
48
|
-
"@
|
|
49
|
-
"@mikro-orm/core": "6.4.3",
|
|
50
|
-
"@mikro-orm/knex": "6.4.3",
|
|
51
|
-
"@mikro-orm/migrations": "6.4.3",
|
|
52
|
-
"@mikro-orm/postgresql": "6.4.3",
|
|
53
|
-
"@swc/core": "1.5.7",
|
|
50
|
+
"@medusajs/admin-sdk": "2.13.1",
|
|
51
|
+
"@medusajs/cli": "2.13.1",
|
|
52
|
+
"@medusajs/framework": "2.13.1",
|
|
53
|
+
"@medusajs/icons": "2.13.1",
|
|
54
|
+
"@medusajs/medusa": "2.13.1",
|
|
55
|
+
"@medusajs/test-utils": "2.13.1",
|
|
56
|
+
"@medusajs/ui": "4.1.1",
|
|
57
|
+
"@swc/core": "1.12.2",
|
|
54
58
|
"@swc/jest": "^0.2.38",
|
|
55
|
-
"@types/jest": "^
|
|
59
|
+
"@types/jest": "^29.5.13",
|
|
56
60
|
"@types/jsonwebtoken": "^9.0.10",
|
|
57
61
|
"@types/luxon": "^3.6.2",
|
|
58
62
|
"@types/node": "^22.15.29",
|
|
59
|
-
"@types/react": "^
|
|
60
|
-
"@types/react-dom": "^
|
|
63
|
+
"@types/react": "^18.3.2",
|
|
64
|
+
"@types/react-dom": "^18.2.25",
|
|
61
65
|
"awilix": "^8.0.1",
|
|
62
|
-
"jest": "^
|
|
66
|
+
"jest": "^29.7.0",
|
|
63
67
|
"pg": "^8.16.0",
|
|
64
68
|
"pg-god": "^1.0.12",
|
|
65
69
|
"prop-types": "^15.8.1",
|
|
@@ -72,20 +76,11 @@
|
|
|
72
76
|
"yalc": "^1.0.0-pre.53"
|
|
73
77
|
},
|
|
74
78
|
"peerDependencies": {
|
|
75
|
-
"@medusajs/admin-sdk": "2.
|
|
76
|
-
"@medusajs/
|
|
77
|
-
"@medusajs/
|
|
78
|
-
"@medusajs/
|
|
79
|
-
"@medusajs/
|
|
80
|
-
"@medusajs/test-utils": "2.8.3",
|
|
81
|
-
"@medusajs/ui": "^4.0.13",
|
|
82
|
-
"@mikro-orm/cli": "6.4.3",
|
|
83
|
-
"@mikro-orm/core": "6.4.3",
|
|
84
|
-
"@mikro-orm/knex": "6.4.3",
|
|
85
|
-
"@mikro-orm/migrations": "6.4.3",
|
|
86
|
-
"@mikro-orm/postgresql": "6.4.3",
|
|
87
|
-
"awilix": "^8.0.1",
|
|
88
|
-
"pg": "^8.13.0"
|
|
79
|
+
"@medusajs/admin-sdk": ">=2.11.0 <3.0.0",
|
|
80
|
+
"@medusajs/framework": ">=2.11.0 <3.0.0",
|
|
81
|
+
"@medusajs/icons": ">=2.11.0 <3.0.0",
|
|
82
|
+
"@medusajs/medusa": ">=2.11.0 <3.0.0",
|
|
83
|
+
"@medusajs/ui": ">=4.0.0 <5.0.0"
|
|
89
84
|
},
|
|
90
85
|
"engines": {
|
|
91
86
|
"node": ">=20"
|
|
@@ -96,13 +91,18 @@
|
|
|
96
91
|
"class-variance-authority": "^0.7.1",
|
|
97
92
|
"clsx": "^2.1.1",
|
|
98
93
|
"date-fns": "^4.1.0",
|
|
99
|
-
"lucide-react": "^0.
|
|
94
|
+
"lucide-react": "^0.563.0",
|
|
100
95
|
"luxon": "^3.6.1",
|
|
101
96
|
"react-aria-components": "^1.10.1",
|
|
102
|
-
"react-day-picker": "^9.
|
|
103
|
-
"recharts": "^3.
|
|
104
|
-
"tailwind-merge": "^3.
|
|
97
|
+
"react-day-picker": "^9.13.2",
|
|
98
|
+
"recharts": "^3.7.0",
|
|
99
|
+
"tailwind-merge": "^3.4.0",
|
|
105
100
|
"tailwindcss": "^4.1.8",
|
|
106
101
|
"tw-animate-css": "^1.3.4"
|
|
102
|
+
},
|
|
103
|
+
"overrides": {
|
|
104
|
+
"@opentelemetry/resources": "^2.0.0",
|
|
105
|
+
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
106
|
+
"@opentelemetry/sdk-trace-node": "^2.0.0"
|
|
107
107
|
}
|
|
108
|
-
}
|
|
108
|
+
}
|