@drax/dashboard-back 0.37.5 → 0.38.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.
@@ -1,5 +1,5 @@
1
1
  import { AbstractFastifyController } from "@drax/crud-back";
2
- import type { IDashboard, IDashboardBase } from "../interfaces/IDashboard";
2
+ import type { IDashboard, IDashboardBase } from "@drax/dashboard-share";
3
3
  declare class DashboardController extends AbstractFastifyController<IDashboard, IDashboardBase, IDashboardBase> {
4
4
  constructor();
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardController.d.ts","sourceRoot":"","sources":["../../src/controllers/DashboardController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAEzE,cAAM,mBAAoB,SAAQ,yBAAyB,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;;CActG;AAED,eAAe,mBAAmB,CAAC;AACnC,OAAO,EACH,mBAAmB,EACtB,CAAA"}
1
+ {"version":3,"file":"DashboardController.d.ts","sourceRoot":"","sources":["../../src/controllers/DashboardController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAEtE,cAAM,mBAAoB,SAAQ,yBAAyB,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;;CActG;AAED,eAAe,mBAAmB,CAAC;AACnC,OAAO,EACH,mBAAmB,EACtB,CAAA"}
package/types/index.d.ts CHANGED
@@ -6,8 +6,7 @@ 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
- export type { IDashboard, IDashboardBase, IDashboardRepository };
10
+ export type { IDashboardRepository };
12
11
  export { DashboardPermissions, DashboardSchema, DashboardModel, DashboardRepository, DashboardService, DashboardServiceFactory, DashboardController, DashboardRoutes };
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AACxE,OAAO,eAAe,MAAM,8BAA8B,CAAA;AAC1D,OAAO,cAAc,MAAM,4BAA4B,CAAA;AACvD,OAAO,mBAAmB,MAAM,qCAAqC,CAAA;AACrE,OAAO,gBAAgB,MAAM,gCAAgC,CAAA;AAC7D,OAAO,uBAAuB,MAAM,+CAA+C,CAAA;AACnF,OAAO,mBAAmB,MAAM,sCAAsC,CAAA;AACtE,OAAO,eAAe,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAA;AAE3E,YAAW,EACP,UAAU,EAAE,cAAc,EAAC,oBAAoB,EAClD,CAAA;AAED,OAAO,EACH,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EAClB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AACxE,OAAO,eAAe,MAAM,8BAA8B,CAAA;AAC1D,OAAO,cAAc,MAAM,4BAA4B,CAAA;AACvD,OAAO,mBAAmB,MAAM,qCAAqC,CAAA;AACrE,OAAO,gBAAgB,MAAM,gCAAgC,CAAA;AAC7D,OAAO,uBAAuB,MAAM,+CAA+C,CAAA;AACnF,OAAO,mBAAmB,MAAM,sCAAsC,CAAA;AACtE,OAAO,eAAe,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAA;AAE3E,YAAW,EACR,oBAAoB,EACtB,CAAA;AAED,OAAO,EACH,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EAClB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { IDashboard, IDashboardBase } from './IDashboard';
1
+ import type { IDashboard, IDashboardBase } from '@drax/dashboard-share';
2
2
  import { IDraxCrudRepository } from "@drax/crud-share";
3
3
  interface IDashboardRepository extends IDraxCrudRepository<IDashboard, IDashboardBase, IDashboardBase> {
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IDashboardRepository.d.ts","sourceRoot":"","sources":["../../src/interfaces/IDashboardRepository.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAErD,UAAU,oBAAqB,SAAQ,mBAAmB,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;CAErG;AAED,OAAO,EAAC,oBAAoB,EAAC,CAAA"}
1
+ {"version":3,"file":"IDashboardRepository.d.ts","sourceRoot":"","sources":["../../src/interfaces/IDashboardRepository.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAA;AACrE,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAErD,UAAU,oBAAqB,SAAQ,mBAAmB,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;CAErG;AAED,OAAO,EAAC,oBAAoB,EAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { mongoose } from '@drax/common-back';
2
- import type { IDashboard } from '../interfaces/IDashboard';
2
+ import type { IDashboard } from '@drax/dashboard-share';
3
3
  declare const DashboardSchema: mongoose.Schema<IDashboard, mongoose.Model<IDashboard, any, any, any, mongoose.Document<unknown, any, IDashboard> & IDashboard & Required<{
4
4
  _id: string;
5
5
  }> & {
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardModel.d.ts","sourceRoot":"","sources":["../../src/models/DashboardModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAExD,QAAA,MAAM,eAAe;;;;;;;;EAiDC,CAAC;AAgBvB,QAAA,MAAM,cAAc,4CAAsG,CAAC;AAE3H,OAAO,EACH,eAAe,EACf,cAAc,EACjB,CAAA;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"DashboardModel.d.ts","sourceRoot":"","sources":["../../src/models/DashboardModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAErD,QAAA,MAAM,eAAe;;;;;;;;EAiDC,CAAC;AAgBvB,QAAA,MAAM,cAAc,4CAAsG,CAAC;AAE3H,OAAO,EACH,eAAe,EACf,cAAc,EACjB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { AbstractMongoRepository } from "@drax/crud-back";
2
2
  import type { IDashboardRepository } from '../interfaces/IDashboardRepository';
3
- import type { IDashboard, IDashboardBase } from "../interfaces/IDashboard";
3
+ import type { IDashboard, IDashboardBase } from "@drax/dashboard-share";
4
4
  declare class DashboardMongoRepository extends AbstractMongoRepository<IDashboard, IDashboardBase, IDashboardBase> implements IDashboardRepository {
5
5
  constructor();
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardRepository.d.ts","sourceRoot":"","sources":["../../src/repository/DashboardRepository.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AAC5E,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAGzE,cAAM,wBAAyB,SAAQ,uBAAuB,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAE,YAAW,oBAAoB;;CASzI;AAED,eAAe,wBAAwB,CAAA;AACvC,OAAO,EAAC,wBAAwB,EAAC,CAAA"}
1
+ {"version":3,"file":"DashboardRepository.d.ts","sourceRoot":"","sources":["../../src/repository/DashboardRepository.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AAC5E,OAAO,KAAK,EAAC,UAAU,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAGtE,cAAM,wBAAyB,SAAQ,uBAAuB,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAE,YAAW,oBAAoB;;CASzI;AAED,eAAe,wBAAwB,CAAA;AACvC,OAAO,EAAC,wBAAwB,EAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { IDashboardRepository } from "../interfaces/IDashboardRepository";
2
- import type { IDashboardBase, IDashboard } from "../interfaces/IDashboard";
2
+ import type { IDashboardBase, IDashboard } from "@drax/dashboard-share";
3
3
  import { AbstractService } from "@drax/crud-back";
4
4
  import type { ZodObject, ZodRawShape } from "zod";
5
5
  declare class DashboardService extends AbstractService<IDashboard, IDashboardBase, IDashboardBase> {
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardService.d.ts","sourceRoot":"","sources":["../../src/services/DashboardService.ts"],"names":[],"mappings":"AACA,OAAO,KAAI,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,KAAK,CAAC;AAEhD,cAAM,gBAAiB,SAAQ,eAAe,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;gBAE1E,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;CAIzF;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAC,gBAAgB,EAAC,CAAA"}
1
+ {"version":3,"file":"DashboardService.d.ts","sourceRoot":"","sources":["../../src/services/DashboardService.ts"],"names":[],"mappings":"AACA,OAAO,KAAI,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,KAAK,CAAC;AAEhD,cAAM,gBAAiB,SAAQ,eAAe,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC;gBAE1E,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;CAIzF;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAC,gBAAgB,EAAC,CAAA"}
@@ -1,75 +0,0 @@
1
- interface IDashboardBase {
2
- identifier: string
3
- title: string
4
- cards?: Array<{
5
- entity: string
6
- type: string
7
- title: string
8
- filters?: Array<{
9
- field: string
10
- operator: string
11
- value: string
12
- }>
13
- layout?: {
14
- cols: number
15
- sm: number
16
- md: number
17
- lg: number
18
- height: number
19
- cardVariant: string
20
- }
21
- groupBy?: {
22
- fields: Array<string>
23
- dateFormat?: string
24
- render?: string
25
- }
26
- paginate?: {
27
- columns: Array<string>
28
- orderBy?: string
29
- order?: string
30
- }
31
- }>
32
- createdAt?: Date
33
- updatedAt?: Date
34
- }
35
-
36
- interface IDashboard {
37
- _id: string
38
- identifier: string
39
- title: string
40
- cards?: Array<{
41
- entity: string
42
- type: string
43
- title: string
44
- filters?: Array<{
45
- field: string
46
- operator: string
47
- value: string
48
- }>
49
- layout?: {
50
- cols: number
51
- sm: number
52
- md: number
53
- lg: number
54
- height: number
55
- cardVariant: string
56
- }
57
- groupBy?: {
58
- fields: Array<string>
59
- dateFormat?: string
60
- render?: string
61
- }
62
- paginate?: {
63
- columns: Array<string>
64
- orderBy?: string
65
- order?: string
66
- }
67
- }>
68
- createdAt?: Date
69
- updatedAt?: Date
70
- }
71
-
72
- export type {
73
- IDashboardBase,
74
- IDashboard
75
- }