@drax/dashboard-back 0.50.0 → 1.0.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.
@@ -3,7 +3,7 @@ import { CrudSchemaBuilder } from "@drax/crud-back";
3
3
  import { DashboardSchema, DashboardBaseSchema } from '../schemas/DashboardSchema.js';
4
4
  async function DashboardFastifyRoutes(fastify, options) {
5
5
  const controller = new DashboardController();
6
- const schemas = new CrudSchemaBuilder(DashboardSchema, DashboardBaseSchema, DashboardBaseSchema, 'Dashboard', 'openApi3', ['dashboard']);
6
+ const schemas = new CrudSchemaBuilder(DashboardSchema, DashboardBaseSchema, DashboardBaseSchema, 'Dashboard', 'openapi-3.0', ['dashboard']);
7
7
  fastify.get('/api/dashboard', { schema: schemas.paginateSchema }, (req, rep) => controller.paginate(req, rep));
8
8
  fastify.get('/api/dashboard/find', { schema: schemas.findSchema }, (req, rep) => controller.find(req, rep));
9
9
  fastify.get('/api/dashboard/search', { schema: schemas.searchSchema }, (req, rep) => controller.search(req, rep));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.50.0",
6
+ "version": "1.0.0",
7
7
  "description": "Dahsboard backend",
8
8
  "main": "dist/index.js",
9
9
  "types": "types/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "author": "Cristian Incarnato & Drax Team",
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
- "@drax/crud-back": "^0.50.0",
26
- "@drax/crud-share": "^0.50.0",
25
+ "@drax/crud-back": "^1.0.0",
26
+ "@drax/crud-share": "^1.0.0",
27
27
  "mongoose": "^8.21.0",
28
28
  "mongoose-paginate-v2": "^1.8.3"
29
29
  },
@@ -39,5 +39,5 @@
39
39
  "tsc-alias": "^1.8.10",
40
40
  "typescript": "^5.6.2"
41
41
  },
42
- "gitHead": "92cb8fa7600090791ace14afa4518f3f4c7113e1"
42
+ "gitHead": "8e60f7548448f339e7e9bb665ceacd3e051ef32e"
43
43
  }
@@ -6,16 +6,16 @@ import {DashboardSchema, DashboardBaseSchema} from '../schemas/DashboardSchema.j
6
6
  async function DashboardFastifyRoutes(fastify, options) {
7
7
 
8
8
  const controller: DashboardController = new DashboardController()
9
- const schemas = new CrudSchemaBuilder(DashboardSchema, DashboardBaseSchema,DashboardBaseSchema, 'Dashboard', 'openApi3', ['dashboard']);
9
+ const schemas = new CrudSchemaBuilder(DashboardSchema, DashboardBaseSchema,DashboardBaseSchema, 'Dashboard', 'openapi-3.0', ['dashboard']);
10
10
 
11
11
  fastify.get('/api/dashboard', {schema: schemas.paginateSchema}, (req,rep) => controller.paginate(req,rep))
12
-
12
+
13
13
  fastify.get('/api/dashboard/find', {schema: schemas.findSchema}, (req,rep) => controller.find(req,rep))
14
14
  fastify.get('/api/dashboard/search', {schema: schemas.searchSchema}, (req,rep) => controller.search(req,rep))
15
-
15
+
16
16
  fastify.get('/api/dashboard/:id', {schema: schemas.findByIdSchema}, (req,rep) => controller.findById(req,rep))
17
17
  fastify.get('/api/dashboard/find-one', {schema: schemas.findOneSchema}, (req,rep) => controller.findOne(req,rep))
18
-
18
+
19
19
  fastify.get('/api/dashboard/group-by', {schema: schemas.groupBySchema}, (req,rep) => controller.groupBy(req,rep))
20
20
 
21
21
  fastify.post('/api/dashboard', {schema: schemas.createSchema}, (req,rep) =>controller.create(req,rep))
@@ -23,7 +23,7 @@ async function DashboardFastifyRoutes(fastify, options) {
23
23
  fastify.put('/api/dashboard/:id', {schema: schemas.updateSchema}, (req,rep) =>controller.update(req,rep))
24
24
 
25
25
  fastify.delete('/api/dashboard/:id', {schema: schemas.deleteSchema}, (req,rep) =>controller.delete(req,rep))
26
-
26
+
27
27
  }
28
28
 
29
29
  export default DashboardFastifyRoutes;