@hed-hog/core 0.0.174 → 0.0.176

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,8 +3,107 @@ import { CreateDashboardRoleDTO } from './dto';
3
3
  export declare class DashboardRoleController {
4
4
  private readonly service;
5
5
  constructor(service: DashboardRoleService);
6
- getAll(paginationParams: any, dashboardId?: string): Promise<any>;
7
- create(data: CreateDashboardRoleDTO, locale: string): Promise<any>;
6
+ getAll(paginationParams: any, dashboardId?: string): Promise<{
7
+ total: any;
8
+ lastPage: number;
9
+ page: number;
10
+ pageSize: number;
11
+ prev: number;
12
+ next: number;
13
+ data: any[];
14
+ }> | Promise<({
15
+ role: {
16
+ role_locale: ({
17
+ locale: {
18
+ code: string;
19
+ name: string;
20
+ region: string;
21
+ id: number;
22
+ created_at: Date;
23
+ updated_at: Date;
24
+ enabled: boolean;
25
+ };
26
+ } & {
27
+ name: string;
28
+ id: number;
29
+ description: string | null;
30
+ created_at: Date;
31
+ updated_at: Date;
32
+ locale_id: number;
33
+ role_id: number;
34
+ })[];
35
+ } & {
36
+ id: number;
37
+ created_at: Date;
38
+ updated_at: Date;
39
+ slug: string;
40
+ };
41
+ } & {
42
+ id: number;
43
+ created_at: Date;
44
+ updated_at: Date;
45
+ role_id: number;
46
+ dashboard_id: number;
47
+ })[]>;
48
+ create(data: CreateDashboardRoleDTO, locale: string): Promise<{
49
+ dashboard: {
50
+ dashboard_locale: ({
51
+ locale: {
52
+ code: string;
53
+ name: string;
54
+ region: string;
55
+ id: number;
56
+ created_at: Date;
57
+ updated_at: Date;
58
+ enabled: boolean;
59
+ };
60
+ } & {
61
+ name: string;
62
+ id: number;
63
+ created_at: Date;
64
+ updated_at: Date;
65
+ locale_id: number;
66
+ dashboard_id: number;
67
+ })[];
68
+ } & {
69
+ id: number;
70
+ created_at: Date;
71
+ updated_at: Date;
72
+ slug: string;
73
+ };
74
+ role: {
75
+ role_locale: ({
76
+ locale: {
77
+ code: string;
78
+ name: string;
79
+ region: string;
80
+ id: number;
81
+ created_at: Date;
82
+ updated_at: Date;
83
+ enabled: boolean;
84
+ };
85
+ } & {
86
+ name: string;
87
+ id: number;
88
+ description: string | null;
89
+ created_at: Date;
90
+ updated_at: Date;
91
+ locale_id: number;
92
+ role_id: number;
93
+ })[];
94
+ } & {
95
+ id: number;
96
+ created_at: Date;
97
+ updated_at: Date;
98
+ slug: string;
99
+ };
100
+ } & {
101
+ id: number;
102
+ created_at: Date;
103
+ updated_at: Date;
104
+ role_id: number;
105
+ dashboard_id: number;
106
+ }>;
8
107
  delete(id: number, locale: string): Promise<{
9
108
  success: boolean;
10
109
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-role.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-role/dashboard-role.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAE/C,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAIhD,MAAM,CACU,gBAAgB,KAAA,EACR,WAAW,CAAC,EAAE,MAAM;IAO5C,MAAM,CAAS,IAAI,EAAE,sBAAsB,EAAY,MAAM,EAAE,MAAM;IAKrE,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;IAKtE,wBAAwB,CACc,WAAW,EAAE,MAAM,EACxB,MAAM,EAAE,MAAM,EACnC,MAAM,EAAE,MAAM;;;CAI3B"}
1
+ {"version":3,"file":"dashboard-role.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-role/dashboard-role.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAE/C,qBAEa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAIhD,MAAM,CACU,gBAAgB,KAAA,EACR,WAAW,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO5C,MAAM,CAAS,IAAI,EAAE,sBAAsB,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKrE,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;IAKtE,wBAAwB,CACc,WAAW,EAAE,MAAM,EACxB,MAAM,EAAE,MAAM,EACnC,MAAM,EAAE,MAAM;;;CAI3B"}
@@ -14,8 +14,99 @@ export declare class DashboardRoleService {
14
14
  next: number;
15
15
  data: any[];
16
16
  }>;
17
- getAllByDashboard(dashboardId: number): Promise<any>;
18
- create(data: CreateDashboardRoleDTO, locale: string): Promise<any>;
17
+ getAllByDashboard(dashboardId: number): Promise<({
18
+ role: {
19
+ role_locale: ({
20
+ locale: {
21
+ code: string;
22
+ name: string;
23
+ region: string;
24
+ id: number;
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ enabled: boolean;
28
+ };
29
+ } & {
30
+ name: string;
31
+ id: number;
32
+ description: string | null;
33
+ created_at: Date;
34
+ updated_at: Date;
35
+ locale_id: number;
36
+ role_id: number;
37
+ })[];
38
+ } & {
39
+ id: number;
40
+ created_at: Date;
41
+ updated_at: Date;
42
+ slug: string;
43
+ };
44
+ } & {
45
+ id: number;
46
+ created_at: Date;
47
+ updated_at: Date;
48
+ role_id: number;
49
+ dashboard_id: number;
50
+ })[]>;
51
+ create(data: CreateDashboardRoleDTO, locale: string): Promise<{
52
+ dashboard: {
53
+ dashboard_locale: ({
54
+ locale: {
55
+ code: string;
56
+ name: string;
57
+ region: string;
58
+ id: number;
59
+ created_at: Date;
60
+ updated_at: Date;
61
+ enabled: boolean;
62
+ };
63
+ } & {
64
+ name: string;
65
+ id: number;
66
+ created_at: Date;
67
+ updated_at: Date;
68
+ locale_id: number;
69
+ dashboard_id: number;
70
+ })[];
71
+ } & {
72
+ id: number;
73
+ created_at: Date;
74
+ updated_at: Date;
75
+ slug: string;
76
+ };
77
+ role: {
78
+ role_locale: ({
79
+ locale: {
80
+ code: string;
81
+ name: string;
82
+ region: string;
83
+ id: number;
84
+ created_at: Date;
85
+ updated_at: Date;
86
+ enabled: boolean;
87
+ };
88
+ } & {
89
+ name: string;
90
+ id: number;
91
+ description: string | null;
92
+ created_at: Date;
93
+ updated_at: Date;
94
+ locale_id: number;
95
+ role_id: number;
96
+ })[];
97
+ } & {
98
+ id: number;
99
+ created_at: Date;
100
+ updated_at: Date;
101
+ slug: string;
102
+ };
103
+ } & {
104
+ id: number;
105
+ created_at: Date;
106
+ updated_at: Date;
107
+ role_id: number;
108
+ dashboard_id: number;
109
+ }>;
19
110
  delete(id: number, locale: string): Promise<{
20
111
  success: boolean;
21
112
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-role.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-role/dashboard-role.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAE/C,qBACa,oBAAoB;IAG7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,gBAAgB,KAAA;;;;;;;;;IAiCvB,iBAAiB,CAAC,WAAW,EAAE,MAAM;IAmBrC,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM;IA8CnD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;IAiBjC,wBAAwB,CAC5B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;;;CAsBjB"}
1
+ {"version":3,"file":"dashboard-role.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-role/dashboard-role.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAE/C,qBACa,oBAAoB;IAG7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,MAAM,CAAC,gBAAgB,KAAA;;;;;;;;;IAiCvB,iBAAiB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBrC,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8CnD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;IAiBjC,wBAAwB,CAC5B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;;;CAsBjB"}
@@ -722,6 +722,30 @@
722
722
  role:
723
723
  - where:
724
724
  slug: admin
725
+ - url: /dashboard-role
726
+ method: GET
727
+ relations:
728
+ role:
729
+ - where:
730
+ slug: admin
731
+ - url: /dashboard-role
732
+ method: POST
733
+ relations:
734
+ role:
735
+ - where:
736
+ slug: admin
737
+ - url: /dashboard-role/:id
738
+ method: DELETE
739
+ relations:
740
+ role:
741
+ - where:
742
+ slug: admin
743
+ - url: /dashboard-role/dashboard/:dashboardId/role/:roleId
744
+ method: DELETE
745
+ relations:
746
+ role:
747
+ - where:
748
+ slug: admin
725
749
  - url: /dashboard-component-role
726
750
  method: GET
727
751
  relations:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/core",
3
- "version": "0.0.174",
3
+ "version": "0.0.176",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -29,12 +29,12 @@
29
29
  "sharp": "^0.34.2",
30
30
  "speakeasy": "^2.0.0",
31
31
  "uuid": "^11.1.0",
32
+ "@hed-hog/api": "0.0.3",
32
33
  "@hed-hog/api-locale": "0.0.11",
33
- "@hed-hog/types": "0.0.1",
34
34
  "@hed-hog/api-mail": "0.0.7",
35
- "@hed-hog/api-prisma": "0.0.4",
36
- "@hed-hog/api": "0.0.3",
37
- "@hed-hog/api-pagination": "0.0.5"
35
+ "@hed-hog/types": "0.0.1",
36
+ "@hed-hog/api-pagination": "0.0.5",
37
+ "@hed-hog/api-prisma": "0.0.4"
38
38
  },
39
39
  "exports": {
40
40
  ".": {
@@ -1,8 +0,0 @@
1
- - dashboard_id:
2
- where:
3
- slug: default
4
- role_id:
5
- - where:
6
- slug: admin
7
- - where:
8
- slug: admin-access