Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

chore: rebuild registry files

vholikfa6f75263122
diff --git a/packages/registry/r/registry.json b/packages/registry/r/registry.json
index e14f056c0..3bcf6e6a6 100644
--- a/packages/registry/r/registry.json
+++ b/packages/registry/r/registry.json
@@ -8,7 +8,7 @@
"description": "A review system with product and seller reviews, ratings, customer/vendor/admin API routes, and workflows.",
"dependencies": [],
"registryDependencies": [],
- "docs": "## Configuration\n\nAdd the review module to your `medusa-config.ts`:\n\n```ts\nmodules: [\n {\n resolve: './modules/reviews',\n },\n]\n```\n\n## Middlewares\n\nAdd the review middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { reviewsMiddlewares } from \"./admin/reviews/middlewares\";\nimport { vendorReviewsMiddlewares } from \"./vendor/reviews/middlewares\";\nimport { storeReviewMiddlewares } from \"./store/reviews/middlewares\";\n\nexport default defineMiddlewares({\n routes: [...reviewsMiddlewares, ...vendorReviewsMiddlewares, ...storeReviewMiddlewares],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the review middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter installing the block and adding the module configuration, generate and run the migrations to create the necessary tables in your database:\n\n```bash\nnpx medusa db:generate reviews\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli codegen\n```",
+ "docs": "## Configuration\n\nAdd the review module to your `medusa-config.ts`:\n\n```ts\nmodules: [\n {\n resolve: './modules/reviews',\n },\n]\n```\n\n## Middlewares\n\nAdd the review middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminReviewsMiddlewares } from \"./admin/reviews/middlewares\";\nimport { vendorReviewsMiddlewares } from \"./vendor/reviews/middlewares\";\nimport { storeReviewMiddlewares } from \"./store/reviews/middlewares\";\n\nexport default defineMiddlewares({\n routes: [...adminReviewsMiddlewares, ...vendorReviewsMiddlewares, ...storeReviewMiddlewares],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the review middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter installing the block and adding the module configuration, generate and run the migrations to create the necessary tables in your database:\n\n```bash\nnpx medusa db:generate reviews\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli codegen\n```",
"files": [
{
"path": "reviews/modules/reviews/index.ts",
diff --git a/packages/registry/r/reviews.json b/packages/registry/r/reviews.json
index 11f8c5d3c..470aa454c 100644
--- a/packages/registry/r/reviews.json
+++ b/packages/registry/r/reviews.json
@@ -4,7 +4,7 @@
"description": "A review system with product and seller reviews, ratings, customer/vendor/admin API routes, and workflows.",
"dependencies": [],
"registryDependencies": [],
- "docs": "## Configuration\n\nAdd the review module to your `medusa-config.ts`:\n\n```ts\nmodules: [\n {\n resolve: './modules/reviews',\n },\n]\n```\n\n## Middlewares\n\nAdd the review middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { reviewsMiddlewares } from \"./admin/reviews/middlewares\";\nimport { vendorReviewsMiddlewares } from \"./vendor/reviews/middlewares\";\nimport { storeReviewMiddlewares } from \"./store/reviews/middlewares\";\n\nexport default defineMiddlewares({\n routes: [...reviewsMiddlewares, ...vendorReviewsMiddlewares, ...storeReviewMiddlewares],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the review middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter installing the block and adding the module configuration, generate and run the migrations to create the necessary tables in your database:\n\n```bash\nnpx medusa db:generate reviews\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli codegen\n```",
+ "docs": "## Configuration\n\nAdd the review module to your `medusa-config.ts`:\n\n```ts\nmodules: [\n {\n resolve: './modules/reviews',\n },\n]\n```\n\n## Middlewares\n\nAdd the review middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminReviewsMiddlewares } from \"./admin/reviews/middlewares\";\nimport { vendorReviewsMiddlewares } from \"./vendor/reviews/middlewares\";\nimport { storeReviewMiddlewares } from \"./store/reviews/middlewares\";\n\nexport default defineMiddlewares({\n routes: [...adminReviewsMiddlewares, ...vendorReviewsMiddlewares, ...storeReviewMiddlewares],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the review middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter installing the block and adding the module configuration, generate and run the migrations to create the necessary tables in your database:\n\n```bash\nnpx medusa db:generate reviews\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli codegen\n```",
"categories": [
"reviews"
],
@@ -116,7 +116,7 @@
},
{
"path": "reviews/api/admin/reviews/middlewares.ts",
- "content": "import { validateAndTransformQuery } from \"@medusajs/framework\";\nimport { MiddlewareRoute } from \"@medusajs/medusa\";\n\nimport { adminReviewsConfig } from \"./query-config\";\nimport { AdminGetReviewsParams } from \"./validators\";\n\nexport const reviewsMiddlewares: MiddlewareRoute[] = [\n {\n method: [\"GET\"],\n matcher: \"/admin/reviews\",\n middlewares: [\n validateAndTransformQuery(AdminGetReviewsParams, adminReviewsConfig.list),\n ],\n },\n {\n method: [\"GET\"],\n matcher: \"/admin/reviews/:id\",\n middlewares: [\n validateAndTransformQuery(\n AdminGetReviewsParams,\n adminReviewsConfig.retrieve\n ),\n ],\n },\n];\n",
+ "content": "import { validateAndTransformQuery } from \"@medusajs/framework\";\nimport { MiddlewareRoute } from \"@medusajs/medusa\";\n\nimport { adminReviewsConfig } from \"./query-config\";\nimport { AdminGetReviewsParams } from \"./validators\";\n\nexport const adminReviewsMiddlewares: MiddlewareRoute[] = [\n {\n method: [\"GET\"],\n matcher: \"/admin/reviews\",\n middlewares: [\n validateAndTransformQuery(AdminGetReviewsParams, adminReviewsConfig.list),\n ],\n },\n {\n method: [\"GET\"],\n matcher: \"/admin/reviews/:id\",\n middlewares: [\n validateAndTransformQuery(\n AdminGetReviewsParams,\n adminReviewsConfig.retrieve\n ),\n ],\n },\n];\n",
"type": "registry:api"
},
{