@unchainedshop/api 5.0.0-alpha.2 → 5.0.0-alpha.4

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.
Files changed (113) hide show
  1. package/README.md +8 -6
  2. package/lib/adminUiPlugins.d.ts +97 -0
  3. package/lib/adminUiPlugins.js +164 -0
  4. package/lib/auth.d.ts +0 -8
  5. package/lib/auth.js +0 -20
  6. package/lib/chat/generateImageHandler.d.ts +273 -7
  7. package/lib/chat/utils.d.ts +8 -0
  8. package/lib/chat/utils.js +54 -2
  9. package/lib/createGraphQLServer.js +6 -0
  10. package/lib/express/chatHandler.js +63 -61
  11. package/lib/express/createMCPMiddleware.js +19 -78
  12. package/lib/express/index.d.ts +6 -2
  13. package/lib/express/index.js +67 -7
  14. package/lib/fastify/chatHandler.js +61 -61
  15. package/lib/fastify/index.d.ts +5 -1
  16. package/lib/fastify/index.js +70 -11
  17. package/lib/fastify/mcpHandler.js +24 -75
  18. package/lib/loaders/assortmentLinksLoader.js +24 -22
  19. package/lib/loaders/assortmentMediaTextLoader.js +1 -0
  20. package/lib/loaders/assortmentProductLoader.js +7 -4
  21. package/lib/loaders/assortmentTextLoader.js +1 -0
  22. package/lib/loaders/cartLoader.d.ts +13 -0
  23. package/lib/loaders/cartLoader.js +8 -0
  24. package/lib/loaders/filterTextLoader.js +1 -0
  25. package/lib/loaders/index.d.ts +9 -0
  26. package/lib/loaders/index.js +2 -0
  27. package/lib/loaders/productMediaTextLoader.js +1 -0
  28. package/lib/loaders/productTextLoader.js +1 -0
  29. package/lib/loaders/productVariationTextLoader.js +1 -0
  30. package/lib/locale-context.d.ts +2 -4
  31. package/lib/locale-context.js +2 -1
  32. package/lib/mcp/handleMcpHttpRequest.d.ts +2 -0
  33. package/lib/mcp/handleMcpHttpRequest.js +83 -0
  34. package/lib/mcp/index.d.ts +1 -1
  35. package/lib/mcp/nodeHttpBridge.d.ts +3 -0
  36. package/lib/mcp/nodeHttpBridge.js +64 -0
  37. package/lib/mcp/resources/localization.d.ts +5 -1
  38. package/lib/mcp/resources/localization.js +93 -69
  39. package/lib/mcp/tools/assortment/handlers/getAssortmentFilters.js +1 -1
  40. package/lib/mcp/tools/assortment/handlers/getAssortmentProducts.js +1 -1
  41. package/lib/mcp/tools/assortment/index.d.ts +1 -1
  42. package/lib/mcp/tools/assortment/index.js +4 -1
  43. package/lib/mcp/tools/assortment/schemas.d.ts +2 -2
  44. package/lib/mcp/tools/filter/handlers/createFilter.js +2 -4
  45. package/lib/mcp/tools/filter/handlers/createFilterOption.js +2 -4
  46. package/lib/mcp/tools/filter/handlers/removeFilterOption.js +2 -4
  47. package/lib/mcp/tools/filter/handlers/updateFilter.js +2 -2
  48. package/lib/mcp/tools/filter/index.d.ts +1 -1
  49. package/lib/mcp/tools/filter/index.js +4 -1
  50. package/lib/mcp/tools/filter/schemas.d.ts +2 -2
  51. package/lib/mcp/tools/localization/index.d.ts +1 -1
  52. package/lib/mcp/tools/localization/index.js +4 -1
  53. package/lib/mcp/tools/localization/schemas.d.ts +2 -2
  54. package/lib/mcp/tools/order/index.d.ts +1 -1
  55. package/lib/mcp/tools/order/index.js +4 -1
  56. package/lib/mcp/tools/order/schemas.d.ts +2 -2
  57. package/lib/mcp/tools/product/index.d.ts +1 -1
  58. package/lib/mcp/tools/product/index.js +4 -1
  59. package/lib/mcp/tools/product/schemas.d.ts +7 -7
  60. package/lib/mcp/tools/product/schemas.js +3 -2
  61. package/lib/mcp/tools/provider/index.d.ts +1 -1
  62. package/lib/mcp/tools/provider/index.js +4 -1
  63. package/lib/mcp/tools/provider/schemas.d.ts +2 -2
  64. package/lib/mcp/tools/quotation/index.d.ts +1 -1
  65. package/lib/mcp/tools/quotation/index.js +4 -1
  66. package/lib/mcp/tools/quotation/schemas.d.ts +2 -2
  67. package/lib/mcp/tools/system/index.d.ts +1 -1
  68. package/lib/mcp/tools/system/index.js +4 -1
  69. package/lib/mcp/tools/users/handlers/getUserPaymentCredentials.js +1 -0
  70. package/lib/mcp/tools/users/index.d.ts +1 -1
  71. package/lib/mcp/tools/users/index.js +4 -1
  72. package/lib/mcp/tools/users/schemas.d.ts +2 -2
  73. package/lib/mcp/utils/getNormalizedAssortmentDetails.js +2 -2
  74. package/lib/mcp/utils/getNormalizedUserDetails.js +1 -0
  75. package/lib/mcp/utils/sharedSchemas.d.ts +1 -0
  76. package/lib/mcp/utils/sharedSchemas.js +1 -0
  77. package/lib/middleware/createAuthMiddleware.js +2 -39
  78. package/lib/resolvers/index.js +2 -1
  79. package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts +1 -1
  80. package/lib/resolvers/mutations/bookmarks/createBookmark.js +4 -3
  81. package/lib/resolvers/mutations/filters/createFilter.js +3 -4
  82. package/lib/resolvers/mutations/filters/createFilterOption.d.ts +1 -1
  83. package/lib/resolvers/mutations/filters/createFilterOption.js +3 -4
  84. package/lib/resolvers/mutations/filters/removeFilterOption.d.ts +1 -1
  85. package/lib/resolvers/mutations/filters/removeFilterOption.js +2 -8
  86. package/lib/resolvers/mutations/filters/updateFilter.d.ts +1 -1
  87. package/lib/resolvers/mutations/filters/updateFilter.js +2 -5
  88. package/lib/resolvers/mutations/index.js +3 -3
  89. package/lib/resolvers/mutations/orders/checkoutCart.js +1 -1
  90. package/lib/resolvers/mutations/products/updateProductCommerce.js +10 -1
  91. package/lib/resolvers/scalars/LowerCaseString.d.ts +1 -1
  92. package/lib/resolvers/scalars/index.d.ts +1 -1
  93. package/lib/resolvers/type/assortment/assortment-types.js +2 -2
  94. package/lib/resolvers/type/filter/loaded-filter-types.d.ts +1 -1
  95. package/lib/resolvers/type/filter/loaded-filter-types.js +1 -1
  96. package/lib/resolvers/type/index.d.ts +9 -5
  97. package/lib/resolvers/type/product/product-bundle-types.d.ts +1 -1
  98. package/lib/resolvers/type/product/product-plan-types.d.ts +1 -1
  99. package/lib/resolvers/type/product/product-simple-types.d.ts +1 -1
  100. package/lib/resolvers/type/product/product-tokenized-types.d.ts +1 -1
  101. package/lib/resolvers/type/quotation-types.d.ts +4 -0
  102. package/lib/resolvers/type/quotation-types.js +1 -0
  103. package/lib/resolvers/type/user-types.js +3 -2
  104. package/lib/roles/index.js +2 -0
  105. package/lib/roles/loggedIn.js +11 -0
  106. package/lib/schema/inputTypes.js +3 -3
  107. package/lib/schema/scalars.js +1 -0
  108. package/lib/schema/types/filter.js +2 -2
  109. package/lib/schema/types/product/product.js +1 -1
  110. package/lib/schema/types/quotation.js +5 -0
  111. package/lib/utils/optionalPeerError.d.ts +1 -0
  112. package/lib/utils/optionalPeerError.js +6 -0
  113. package/package.json +44 -15
@@ -4,7 +4,7 @@ export const LoadedFilter = {
4
4
  return filter;
5
5
  },
6
6
  isSelected: ({ searchQuery, filter }) => {
7
- return searchQuery?.filterQuery?.some((q) => q.key === filter.key);
7
+ return Boolean(searchQuery?.filterQuery?.some((q) => q.key === filter.key));
8
8
  },
9
9
  filteredProductsCount: async ({ filteredByOtherFiltersSet, filteredByThisFilterSet, searchQuery }, _, context) => {
10
10
  const filterActions = await FilterDirector.actions({ searchQuery }, context);
@@ -64,7 +64,7 @@ declare const types: {
64
64
  currencyCode?: string;
65
65
  }, requestContext: import("../../context.ts").Context): Promise<{
66
66
  minQuantity: number;
67
- maxQuantity: number;
67
+ maxQuantity: number | null;
68
68
  price: import("@unchainedshop/core-products").ProductPrice;
69
69
  }[]>;
70
70
  salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string | null;
@@ -279,7 +279,7 @@ declare const types: {
279
279
  Language: import("./language-types.ts").LanguageHelperTypes;
280
280
  LoadedFilter: {
281
281
  definition: ({ filter }: import("./filter/loaded-filter-types.ts").LoadedFilterData) => import("@unchainedshop/core-filters").Filter;
282
- isSelected: ({ searchQuery, filter }: import("./filter/loaded-filter-types.ts").LoadedFilterData) => boolean | undefined;
282
+ isSelected: ({ searchQuery, filter }: import("./filter/loaded-filter-types.ts").LoadedFilterData) => boolean;
283
283
  filteredProductsCount: ({ filteredByOtherFiltersSet, filteredByThisFilterSet, searchQuery }: import("./filter/loaded-filter-types.ts").LoadedFilterData, _: never, context: import("../../context.ts").Context) => Promise<number>;
284
284
  productsCount: ({ examinedProductIdSet, searchQuery }: import("./filter/loaded-filter-types.ts").LoadedFilterData, _: never, context: import("../../context.ts").Context) => Promise<number>;
285
285
  options: ({ filter, filteredByOtherFiltersSet, forceLiveCollection, searchQuery }: import("./filter/loaded-filter-types.ts").LoadedFilterData, _: never, context: import("../../context.ts").Context) => Promise<({
@@ -498,7 +498,7 @@ declare const types: {
498
498
  currencyCode?: string;
499
499
  }, requestContext: import("../../context.ts").Context): Promise<{
500
500
  minQuantity: number;
501
- maxQuantity: number;
501
+ maxQuantity: number | null;
502
502
  price: import("@unchainedshop/core-products").ProductPrice;
503
503
  }[]>;
504
504
  salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string | null;
@@ -622,6 +622,10 @@ declare const types: {
622
622
  isExpired: (obj: import("@unchainedshop/core-quotations").Quotation, { referenceDate }: {
623
623
  referenceDate: Date;
624
624
  }, { modules }: import("../../context.ts").Context) => boolean;
625
+ price: (obj: import("@unchainedshop/core-quotations").Quotation) => {
626
+ amount: number;
627
+ currencyCode: string;
628
+ } | null;
625
629
  product: (obj: import("@unchainedshop/core-quotations").Quotation, _: never, { loaders }: import("../../context.ts").Context) => Promise<import("@unchainedshop/core-products").Product>;
626
630
  status: (obj: import("@unchainedshop/core-quotations").Quotation, _: never, { modules }: import("../../context.ts").Context) => import("@unchainedshop/core-quotations").QuotationStatus;
627
631
  user: (obj: import("@unchainedshop/core-quotations").Quotation, _: never, { loaders }: import("../../context.ts").Context) => Promise<import("@unchainedshop/core-users").User>;
@@ -669,7 +673,7 @@ declare const types: {
669
673
  currencyCode?: string;
670
674
  }, requestContext: import("../../context.ts").Context): Promise<{
671
675
  minQuantity: number;
672
- maxQuantity: number;
676
+ maxQuantity: number | null;
673
677
  price: import("@unchainedshop/core-products").ProductPrice;
674
678
  }[]>;
675
679
  salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string | null;
@@ -734,7 +738,7 @@ declare const types: {
734
738
  currencyCode?: string;
735
739
  }, requestContext: import("../../context.ts").Context): Promise<{
736
740
  minQuantity: number;
737
- maxQuantity: number;
741
+ maxQuantity: number | null;
738
742
  price: import("@unchainedshop/core-products").ProductPrice;
739
743
  }[]>;
740
744
  salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string | null;
@@ -15,7 +15,7 @@ export declare const BundleProduct: {
15
15
  currencyCode?: string;
16
16
  }, requestContext: import("../../../context.ts").Context): Promise<{
17
17
  minQuantity: number;
18
- maxQuantity: number;
18
+ maxQuantity: number | null;
19
19
  price: import("@unchainedshop/core-products").ProductPrice;
20
20
  }[]>;
21
21
  salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string | null;
@@ -15,7 +15,7 @@ export declare const PlanProduct: {
15
15
  currencyCode?: string;
16
16
  }, requestContext: Context): Promise<{
17
17
  minQuantity: number;
18
- maxQuantity: number;
18
+ maxQuantity: number | null;
19
19
  price: ProductPrice;
20
20
  }[]>;
21
21
  salesUnit({ commerce }: ProductType): string | null;
@@ -45,7 +45,7 @@ export declare const SimpleProduct: {
45
45
  currencyCode?: string;
46
46
  }, requestContext: Context): Promise<{
47
47
  minQuantity: number;
48
- maxQuantity: number;
48
+ maxQuantity: number | null;
49
49
  price: import("@unchainedshop/core-products").ProductPrice;
50
50
  }[]>;
51
51
  salesUnit({ commerce }: Product): string | null;
@@ -29,7 +29,7 @@ export declare const TokenizedProduct: {
29
29
  currencyCode?: string;
30
30
  }, requestContext: Context): Promise<{
31
31
  minQuantity: number;
32
- maxQuantity: number;
32
+ maxQuantity: number | null;
33
33
  price: import("@unchainedshop/core-products").ProductPrice;
34
34
  }[]>;
35
35
  salesUnit({ commerce }: Product): string | null;
@@ -6,6 +6,10 @@ export declare const Quotation: {
6
6
  isExpired: (obj: QuotationType, { referenceDate }: {
7
7
  referenceDate: Date;
8
8
  }, { modules }: Context) => boolean;
9
+ price: (obj: QuotationType) => {
10
+ amount: number;
11
+ currencyCode: string;
12
+ } | null;
9
13
  product: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-products").Product>;
10
14
  status: (obj: QuotationType, _: never, { modules }: Context) => import("@unchainedshop/core-quotations").QuotationStatus;
11
15
  user: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-users").User>;
@@ -2,6 +2,7 @@ export const Quotation = {
2
2
  country: async (obj, _, { loaders }) => obj.countryCode ? loaders.countryLoader.load({ isoCode: obj.countryCode }) : null,
3
3
  currency: async (obj, _, { loaders }) => obj.currencyCode ? loaders.currencyLoader.load({ isoCode: obj.currencyCode }) : null,
4
4
  isExpired: (obj, { referenceDate }, { modules }) => modules.quotations.isExpired(obj, { referenceDate }),
5
+ price: (obj) => obj.price != null && obj.currencyCode ? { amount: obj.price, currencyCode: obj.currencyCode } : null,
5
6
  product: async (obj, _, { loaders }) => {
6
7
  const product = await loaders.productLoader.load({
7
8
  productId: obj.productId,
@@ -49,9 +49,9 @@ export const User = {
49
49
  return context.modules.bookmarks.findBookmarksByUserId(user._id);
50
50
  },
51
51
  async cart(user, params, context) {
52
- const { modules, countryCode } = context;
52
+ const { loaders, countryCode } = context;
53
53
  await checkAction(context, viewUserOrders, [user, params]);
54
- return modules.orders.cart({
54
+ return loaders.cartLoader.load({
55
55
  countryCode,
56
56
  orderNumber: params.orderNumber,
57
57
  userId: user._id,
@@ -105,6 +105,7 @@ export const User = {
105
105
  return context.modules.payment.paymentCredentials.findPaymentCredentials({ ...params.selector, userId: user._id }, {
106
106
  sort: {
107
107
  created: -1,
108
+ _id: -1,
108
109
  },
109
110
  });
110
111
  },
@@ -60,6 +60,7 @@ const actions = [
60
60
  'createEnrollment',
61
61
  'updateEnrollment',
62
62
  'updateCart',
63
+ 'addCartQuotation',
63
64
  'checkoutCart',
64
65
  'updateOrder',
65
66
  'updateOrderDelivery',
@@ -84,6 +85,7 @@ const actions = [
84
85
  'manageQuotations',
85
86
  'answerQuotation',
86
87
  'bookmarkProduct',
88
+ 'createBookmark',
87
89
  'manageBookmarks',
88
90
  'search',
89
91
  'manageWorker',
@@ -116,6 +116,14 @@ export const loggedIn = (role, actions) => {
116
116
  return true;
117
117
  return bookmark.userId === userId;
118
118
  };
119
+ const isOwnBookmarkUser = (obj, { userId: bookmarkUserId }, { userId }) => {
120
+ return !bookmarkUserId || bookmarkUserId === userId;
121
+ };
122
+ const isOwnedCartAndQuotation = async (obj, params, context) => {
123
+ if (!(await isOwnedOrderOrCart(obj, params, context)))
124
+ return false;
125
+ return isOwnedQuotation(obj, params, context);
126
+ };
119
127
  const isOwnedPaymentCredential = async (obj, { paymentCredentialsId }, { modules, userId }) => {
120
128
  const credentials = await modules.payment.paymentCredentials.findPaymentCredential({
121
129
  paymentCredentialsId,
@@ -155,6 +163,7 @@ export const loggedIn = (role, actions) => {
155
163
  role.allow(actions.updateOrderPayment, isOwnedOrderPayment);
156
164
  role.allow(actions.checkoutCart, isOwnedOrderOrCart);
157
165
  role.allow(actions.updateCart, isOwnedOrderOrCart);
166
+ role.allow(actions.addCartQuotation, isOwnedCartAndQuotation);
158
167
  role.allow(actions.createCart, () => true);
159
168
  role.allow(actions.viewEnrollment, isOwnedEnrollment);
160
169
  role.allow(actions.updateEnrollment, isOwnedEnrollment);
@@ -163,7 +172,9 @@ export const loggedIn = (role, actions) => {
163
172
  role.allow(actions.updateProductReview, isOwnedProductReview);
164
173
  role.allow(actions.requestQuotation, () => true);
165
174
  role.allow(actions.answerQuotation, isOwnedQuotation);
175
+ role.allow(actions.viewQuotation, isOwnedQuotation);
166
176
  role.allow(actions.manageBookmarks, isOwnedBookmark);
177
+ role.allow(actions.createBookmark, isOwnBookmarkUser);
167
178
  role.allow(actions.bookmarkProduct, () => true);
168
179
  role.allow(actions.voteProductReview, () => true);
169
180
  role.allow(actions.registerPaymentCredentials, () => true);
@@ -8,7 +8,7 @@ export default [
8
8
  input UserProfileInput {
9
9
  displayName: String
10
10
  birthday: Timestamp
11
- phoneMobile: String
11
+ phoneMobile: PhoneNumber
12
12
  gender: String
13
13
  address: AddressInput
14
14
  }
@@ -27,7 +27,7 @@ export default [
27
27
 
28
28
  input ContactInput {
29
29
  emailAddress: String
30
- telNumber: String
30
+ telNumber: PhoneNumber
31
31
  }
32
32
 
33
33
  input CreateLanguageInput {
@@ -105,7 +105,7 @@ export default [
105
105
 
106
106
  input UpdateProductCommercePricingInput {
107
107
  amount: Int!
108
- maxQuantity: Int
108
+ minQuantity: Int
109
109
  isTaxable: Boolean
110
110
  isNetPrice: Boolean
111
111
  currencyCode: String!
@@ -6,5 +6,6 @@ export default [
6
6
  scalar Timestamp
7
7
  scalar LowerCaseString
8
8
  scalar Locale
9
+ scalar PhoneNumber
9
10
  `,
10
11
  ];
@@ -49,14 +49,14 @@ export default [
49
49
  type LoadedFilterOption @cacheControl(maxAge: 180) {
50
50
  filteredProductsCount: Int!
51
51
  definition: FilterOption!
52
- isSelected: Boolean
52
+ isSelected: Boolean!
53
53
  }
54
54
 
55
55
  type LoadedFilter @cacheControl(maxAge: 180) {
56
56
  productsCount: Int!
57
57
  filteredProductsCount: Int!
58
58
  definition: Filter!
59
- isSelected: Boolean
59
+ isSelected: Boolean!
60
60
  options: [LoadedFilterOption!]
61
61
  }
62
62
  `,
@@ -139,7 +139,7 @@ export default [
139
139
  country: Country!
140
140
  currency: Currency!
141
141
  amount: Int!
142
- maxQuantity: Int
142
+ minQuantity: Int
143
143
  }
144
144
 
145
145
  union ConfigurableOrBundleProduct = BundleProduct | ConfigurableProduct
@@ -57,6 +57,11 @@ export default [
57
57
  country: Country
58
58
  currency: Currency
59
59
  configuration: [ProductConfigurationParameter!]
60
+
61
+ """
62
+ Proposed unit price (minor units of the quotation's currency), set when the quotation reaches PROPOSED
63
+ """
64
+ price: Price
60
65
  }
61
66
  `,
62
67
  ];
@@ -0,0 +1 @@
1
+ export declare function isPeerNotInstalledError(packageName: string, error: unknown): boolean;
@@ -0,0 +1,6 @@
1
+ export function isPeerNotInstalledError(packageName, error) {
2
+ if (error?.code !== 'ERR_MODULE_NOT_FOUND')
3
+ return false;
4
+ const match = String(error?.message || '').match(/^Cannot find (?:package|module) '([^']+)'/);
5
+ return !!match && (match[1] === packageName || match[1].startsWith(`${packageName}/`));
6
+ }
package/package.json CHANGED
@@ -1,7 +1,8 @@
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": "5.0.0-alpha.2",
4
+ "mcpName": "io.github.unchainedshop/unchained",
5
+ "version": "5.0.0-alpha.4",
5
6
  "main": "lib/api-index.js",
6
7
  "types": "lib/api-index.d.ts",
7
8
  "type": "module",
@@ -60,26 +61,34 @@
60
61
  },
61
62
  "homepage": "https://github.com/unchainedshop/unchained#readme",
62
63
  "peerDependencies": {
63
- "@ai-sdk/mcp": "^1",
64
+ "@ai-sdk/mcp": "^2.0.29",
64
65
  "@fastify/cookie": ">= 11 < 12",
65
66
  "@fastify/multipart": ">= 10 < 11",
66
- "@fastify/static": ">= 9 < 10",
67
- "@modelcontextprotocol/sdk": ">= 1 < 2",
68
- "ai": ">= 6 < 7",
67
+ "@fastify/static": ">= 10.1.3 < 11",
68
+ "@modelcontextprotocol/server": ">= 2 < 3",
69
+ "@unchainedshop/admin-ui": "^5.0.0-alpha.1",
70
+ "ai": ">= 7 < 8",
69
71
  "cookie-parser": ">= 1.4 < 2",
70
72
  "express": ">= 5 < 6",
71
73
  "fastify": ">= 5.2 < 6",
74
+ "graphql": ">= 16.14 < 18",
72
75
  "graphql-yoga": ">= 5.9 < 6",
73
76
  "multer": ">= 2 < 3"
74
77
  },
75
78
  "peerDependenciesMeta": {
79
+ "graphql": {
80
+ "optional": false
81
+ },
76
82
  "graphql-yoga": {
77
83
  "optional": false
78
84
  },
79
85
  "cookie-parser": {
80
86
  "optional": false
81
87
  },
82
- "@modelcontextprotocol/sdk": {
88
+ "@modelcontextprotocol/server": {
89
+ "optional": true
90
+ },
91
+ "@unchainedshop/admin-ui": {
83
92
  "optional": true
84
93
  },
85
94
  "ai": {
@@ -108,32 +117,52 @@
108
117
  }
109
118
  },
110
119
  "dependencies": {
120
+ "@envelop/core": "^5.6.0",
111
121
  "@unchainedshop/core": "^5.0.0-alpha.1",
122
+ "@unchainedshop/core-assortments": "^5.0.0-alpha.1",
123
+ "@unchainedshop/core-bookmarks": "^5.0.0-alpha.1",
124
+ "@unchainedshop/core-countries": "^5.0.0-alpha.1",
125
+ "@unchainedshop/core-currencies": "^5.0.0-alpha.1",
126
+ "@unchainedshop/core-delivery": "^5.0.0-alpha.1",
127
+ "@unchainedshop/core-enrollments": "^5.0.0-alpha.1",
128
+ "@unchainedshop/core-events": "^5.0.0-alpha.1",
129
+ "@unchainedshop/core-files": "^5.0.0-alpha.1",
130
+ "@unchainedshop/core-filters": "^5.0.0-alpha.1",
131
+ "@unchainedshop/core-languages": "^5.0.0-alpha.1",
132
+ "@unchainedshop/core-orders": "^5.0.0-alpha.1",
133
+ "@unchainedshop/core-payment": "^5.0.0-alpha.1",
134
+ "@unchainedshop/core-products": "^5.0.0-alpha.1",
135
+ "@unchainedshop/core-quotations": "^5.0.0-alpha.1",
136
+ "@unchainedshop/core-users": "^5.0.0-alpha.1",
137
+ "@unchainedshop/core-warehousing": "^5.0.0-alpha.1",
138
+ "@unchainedshop/core-worker": "^5.0.0-alpha.1",
112
139
  "@unchainedshop/events": "^5.0.0-alpha.1",
113
140
  "@unchainedshop/logger": "^5.0.0-alpha.1",
141
+ "@unchainedshop/mongodb": "^5.0.0-alpha.1",
114
142
  "@unchainedshop/roles": "^5.0.0-alpha.1",
115
143
  "@unchainedshop/utils": "^5.0.0-alpha.1",
116
- "@whatwg-node/server": "^0.10.18",
144
+ "@whatwg-node/server": "^0.11.0",
117
145
  "dataloader": "^2.2.3",
118
- "graphql-scalars": "^1.24.2",
146
+ "graphql-scalars": "^2.0.0",
119
147
  "jose": "^6.0.10",
120
148
  "mime": ">= 4 < 5",
121
- "zod": "^3.25.76 || ^4"
149
+ "zod": "^4.2.0"
122
150
  },
123
151
  "devDependencies": {
124
- "@ai-sdk/mcp": "^1.0.5",
152
+ "@ai-sdk/mcp": "^2.0.34",
125
153
  "@fastify/cookie": "^11.0.2",
126
154
  "@fastify/multipart": "^10.0.0",
127
- "@fastify/static": "^9.0.0",
128
- "@modelcontextprotocol/sdk": "^1.15.1",
155
+ "@fastify/static": "^10.1.3",
156
+ "@modelcontextprotocol/server": "^2.0.0",
129
157
  "@types/cookie-parser": "^1.4.8",
130
158
  "@types/express": "^5.0.3",
131
- "@types/node": "^25.0.0",
132
- "ai": "^6.0.14",
159
+ "@types/node": "^26.2.0",
160
+ "ai": "^7.0.73",
133
161
  "cookie-parser": "^1.4.7",
134
162
  "express": "^5.1.0",
135
163
  "fastify": "^5.4.0",
164
+ "graphql": "^17.0.2",
136
165
  "multer": "^2.0.1",
137
- "typescript": "^5.8.3"
166
+ "typescript": "^6.0.3"
138
167
  }
139
168
  }