@unchainedshop/api 4.7.2 → 4.8.0
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/lib/acl.js +1 -29
- package/lib/api-index.d.ts +0 -1
- package/lib/context.d.ts +0 -1
- package/lib/context.js +3 -8
- package/lib/events.d.ts +0 -2
- package/lib/events.js +0 -2
- package/lib/express/index.d.ts +9 -6
- package/lib/express/index.js +125 -52
- package/lib/fastify/index.d.ts +9 -6
- package/lib/fastify/index.js +113 -51
- package/lib/mcp/tools/localization/getLocalizationsConfig.d.ts +1 -1
- package/lib/mcp/tools/localization/schemas.d.ts +0 -34
- package/lib/mcp/tools/order/handlers/getTopCustomers.d.ts +0 -2
- package/lib/mcp/tools/quotation/handlers/getQuotation.d.ts +0 -2
- package/lib/mcp/tools/quotation/handlers/listQuotations.d.ts +0 -2
- package/lib/mcp/tools/quotation/handlers/makeQuotationProposal.d.ts +0 -2
- package/lib/mcp/tools/quotation/handlers/rejectQuotation.d.ts +0 -2
- package/lib/mcp/tools/quotation/handlers/verifyQuotation.d.ts +0 -2
- package/lib/mcp/tools/system/handlers/countEvents.d.ts +1 -8
- package/lib/mcp/tools/system/handlers/countWork.d.ts +1 -10
- package/lib/mcp/tools/system/handlers/countWork.js +0 -1
- package/lib/mcp/tools/system/handlers/index.d.ts +4 -4
- package/lib/mcp/tools/system/handlers/listEvents.d.ts +1 -12
- package/lib/mcp/tools/system/handlers/listWork.d.ts +1 -14
- package/lib/mcp/tools/system/handlers/listWork.js +0 -1
- package/lib/mcp/tools/users/handlers/addUserEmail.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/createUser.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/enrollUser.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/getCurrentUser.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/getUser.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/listUsers.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/setUserTags.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/setUserUsername.d.ts +0 -2
- package/lib/mcp/tools/users/handlers/updateUser.d.ts +0 -2
- package/lib/mcp/utils/getNormalizedQuotationDetails.d.ts +0 -2
- package/lib/mcp/utils/getNormalizedUserDetails.d.ts +0 -2
- package/lib/mcp/utils/normalizeMediaUrl.js +1 -1
- package/lib/mcp/utils/sanitizeLocalizationEntityData.d.ts +1 -1
- package/lib/mcp/utils/validateIsoCode.d.ts +1 -1
- package/lib/resolvers/mutations/index.d.ts +6 -1
- package/lib/resolvers/mutations/index.js +12 -2
- package/lib/resolvers/mutations/orders/updateCart.js +1 -7
- package/lib/resolvers/queries/orders/orders.js +2 -2
- package/lib/resolvers/type/index.d.ts +1 -0
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +1 -0
- package/lib/resolvers/type/order/order-delivery-pickup-types.js +7 -0
- package/lib/roles/index.js +0 -1
- package/lib/roles/loggedIn.js +0 -1
- package/lib/schema/mutation.js +44 -6
- package/lib/schema/types/index.js +2 -2
- package/lib/schema/types/order/delivery.js +2 -0
- package/package.json +17 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/api",
|
|
3
3
|
"description": "GraphQL API layer for the Unchained Engine with Express/Fastify adapters and MCP server",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.8.0",
|
|
5
5
|
"main": "lib/api-index.js",
|
|
6
6
|
"types": "lib/api-index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -63,20 +63,22 @@
|
|
|
63
63
|
"@ai-sdk/mcp": "^1",
|
|
64
64
|
"@fastify/cookie": ">= 11 < 12",
|
|
65
65
|
"@fastify/multipart": ">= 9 < 10",
|
|
66
|
+
"@fastify/session": ">= 11 < 12",
|
|
66
67
|
"@fastify/static": ">= 9 < 10",
|
|
67
68
|
"@modelcontextprotocol/sdk": ">= 1 < 2",
|
|
68
69
|
"ai": ">= 6 < 7",
|
|
69
|
-
"cookie-parser": ">= 1.4 < 2",
|
|
70
70
|
"express": ">= 5 < 6",
|
|
71
|
+
"express-session": ">= 1.18 < 2",
|
|
71
72
|
"fastify": ">= 5.2 < 6",
|
|
72
73
|
"graphql-yoga": ">= 5.9 < 6",
|
|
73
|
-
"multer": ">= 2 < 3"
|
|
74
|
+
"multer": ">= 2 < 3",
|
|
75
|
+
"passport": ">= 0.7 < 1"
|
|
74
76
|
},
|
|
75
77
|
"peerDependenciesMeta": {
|
|
76
78
|
"graphql-yoga": {
|
|
77
79
|
"optional": false
|
|
78
80
|
},
|
|
79
|
-
"
|
|
81
|
+
"express-session": {
|
|
80
82
|
"optional": false
|
|
81
83
|
},
|
|
82
84
|
"@modelcontextprotocol/sdk": {
|
|
@@ -97,6 +99,9 @@
|
|
|
97
99
|
"@fastify/multipart": {
|
|
98
100
|
"optional": true
|
|
99
101
|
},
|
|
102
|
+
"@fastify/session": {
|
|
103
|
+
"optional": true
|
|
104
|
+
},
|
|
100
105
|
"@fastify/static": {
|
|
101
106
|
"optional": true
|
|
102
107
|
},
|
|
@@ -105,6 +110,9 @@
|
|
|
105
110
|
},
|
|
106
111
|
"multer": {
|
|
107
112
|
"optional": true
|
|
113
|
+
},
|
|
114
|
+
"passport": {
|
|
115
|
+
"optional": true
|
|
108
116
|
}
|
|
109
117
|
},
|
|
110
118
|
"dependencies": {
|
|
@@ -113,10 +121,9 @@
|
|
|
113
121
|
"@unchainedshop/logger": "^4.6.0",
|
|
114
122
|
"@unchainedshop/roles": "^4.6.0",
|
|
115
123
|
"@unchainedshop/utils": "^4.6.0",
|
|
116
|
-
"@whatwg-node/server": "^0.10.18",
|
|
117
124
|
"dataloader": "^2.2.3",
|
|
125
|
+
"expiry-map": "^2.0.0",
|
|
118
126
|
"graphql-scalars": "^1.24.2",
|
|
119
|
-
"jose": "^6.0.10",
|
|
120
127
|
"mime": ">= 4 < 5",
|
|
121
128
|
"p-memoize": "^8.0.0",
|
|
122
129
|
"zod": "^3.25.76 || ^4"
|
|
@@ -125,16 +132,18 @@
|
|
|
125
132
|
"@ai-sdk/mcp": "^1.0.5",
|
|
126
133
|
"@fastify/cookie": "^11.0.2",
|
|
127
134
|
"@fastify/multipart": "^9.0.3",
|
|
135
|
+
"@fastify/session": "^11.1.0",
|
|
128
136
|
"@fastify/static": "^9.0.0",
|
|
129
137
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
130
|
-
"@types/cookie-parser": "^1.4.8",
|
|
131
138
|
"@types/express": "^5.0.3",
|
|
139
|
+
"@types/express-session": "^1.18.2",
|
|
132
140
|
"@types/node": "^25.0.0",
|
|
133
141
|
"ai": "^6.0.14",
|
|
134
|
-
"cookie-parser": "^1.4.7",
|
|
135
142
|
"express": "^5.1.0",
|
|
143
|
+
"express-session": "^1.18.1",
|
|
136
144
|
"fastify": "^5.4.0",
|
|
137
145
|
"multer": "^2.0.1",
|
|
146
|
+
"passport": "^0.7.0",
|
|
138
147
|
"typescript": "^5.8.3"
|
|
139
148
|
}
|
|
140
149
|
}
|