@drax/dashboard-back 0.37.5 → 0.38.1
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/package.json +4 -4
- package/src/controllers/DashboardController.ts +1 -1
- package/src/index.ts +1 -2
- package/src/interfaces/IDashboardRepository.ts +1 -1
- package/src/models/DashboardModel.ts +1 -1
- package/src/repository/DashboardRepository.ts +1 -1
- package/src/services/DashboardService.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/controllers/DashboardController.d.ts +1 -1
- package/types/controllers/DashboardController.d.ts.map +1 -1
- package/types/index.d.ts +1 -2
- package/types/index.d.ts.map +1 -1
- package/types/interfaces/IDashboardRepository.d.ts +1 -1
- package/types/interfaces/IDashboardRepository.d.ts.map +1 -1
- package/types/models/DashboardModel.d.ts +1 -1
- package/types/models/DashboardModel.d.ts.map +1 -1
- package/types/repository/DashboardRepository.d.ts +1 -1
- package/types/repository/DashboardRepository.d.ts.map +1 -1
- package/types/services/DashboardService.d.ts +1 -1
- package/types/services/DashboardService.d.ts.map +1 -1
- package/src/interfaces/IDashboard.ts +0 -75
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.38.1",
|
|
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.
|
|
26
|
-
"@drax/crud-share": "^0.
|
|
25
|
+
"@drax/crud-back": "^0.38.1",
|
|
26
|
+
"@drax/crud-share": "^0.38.0",
|
|
27
27
|
"mongoose": "^8.6.3",
|
|
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": "
|
|
42
|
+
"gitHead": "33404c9f1b3df6a3f86624389916d1cae0c56904"
|
|
43
43
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import DashboardServiceFactory from "../factory/services/DashboardServiceFactory.js";
|
|
3
3
|
import {AbstractFastifyController} from "@drax/crud-back";
|
|
4
4
|
import DashboardPermissions from "../permissions/DashboardPermissions.js";
|
|
5
|
-
import type {IDashboard, IDashboardBase} from "
|
|
5
|
+
import type {IDashboard, IDashboardBase} from "@drax/dashboard-share";
|
|
6
6
|
|
|
7
7
|
class DashboardController extends AbstractFastifyController<IDashboard, IDashboardBase, IDashboardBase> {
|
|
8
8
|
|
package/src/index.ts
CHANGED
|
@@ -6,11 +6,10 @@ import DashboardService from './services/DashboardService.js'
|
|
|
6
6
|
import DashboardServiceFactory from './factory/services/DashboardServiceFactory.js'
|
|
7
7
|
import DashboardController from './controllers/DashboardController.js'
|
|
8
8
|
import DashboardRoutes from './routes/DashboardRoutes.js'
|
|
9
|
-
import type {IDashboard, IDashboardBase} from './interfaces/IDashboard'
|
|
10
9
|
import type {IDashboardRepository} from './interfaces/IDashboardRepository'
|
|
11
10
|
|
|
12
11
|
export type{
|
|
13
|
-
|
|
12
|
+
IDashboardRepository
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import type {IDashboard, IDashboardBase} from '
|
|
2
|
+
import type {IDashboard, IDashboardBase} from '@drax/dashboard-share'
|
|
3
3
|
import {IDraxCrudRepository} from "@drax/crud-share";
|
|
4
4
|
|
|
5
5
|
interface IDashboardRepository extends IDraxCrudRepository<IDashboard, IDashboardBase, IDashboardBase>{
|
|
@@ -2,7 +2,7 @@ import {mongoose} from '@drax/common-back';
|
|
|
2
2
|
import {PaginateModel} from "mongoose";
|
|
3
3
|
import uniqueValidator from 'mongoose-unique-validator';
|
|
4
4
|
import mongoosePaginate from 'mongoose-paginate-v2'
|
|
5
|
-
import type {IDashboard} from '
|
|
5
|
+
import type {IDashboard} from '@drax/dashboard-share'
|
|
6
6
|
|
|
7
7
|
const DashboardSchema = new mongoose.Schema<IDashboard>({
|
|
8
8
|
identifier: {type: String, required: true, index: true, unique: true},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {AbstractMongoRepository} from "@drax/crud-back";
|
|
3
3
|
import {DashboardModel} from "../models/DashboardModel.js";
|
|
4
4
|
import type {IDashboardRepository} from '../interfaces/IDashboardRepository'
|
|
5
|
-
import type {IDashboard, IDashboardBase} from "
|
|
5
|
+
import type {IDashboard, IDashboardBase} from "@drax/dashboard-share";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class DashboardMongoRepository extends AbstractMongoRepository<IDashboard, IDashboardBase, IDashboardBase> implements IDashboardRepository {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import type{IDashboardRepository} from "../interfaces/IDashboardRepository";
|
|
3
|
-
import type {IDashboardBase, IDashboard} from "
|
|
3
|
+
import type {IDashboardBase, IDashboard} from "@drax/dashboard-share";
|
|
4
4
|
import {AbstractService} from "@drax/crud-back";
|
|
5
5
|
import type {ZodObject, ZodRawShape} from "zod";
|
|
6
6
|
|