@hed-hog/core 0.0.360 → 0.0.361
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/dist/ai/ai.service.d.ts +1 -1
- package/dist/auth/auth.controller.d.ts +26 -26
- package/dist/auth/auth.service.d.ts +34 -34
- package/dist/challenge/challenge.service.d.ts +12 -12
- package/dist/core/system.controller.d.ts +2 -2
- package/dist/core/system.service.d.ts +2 -2
- package/dist/dashboard/dashboard/dashboard.controller.d.ts +66 -66
- package/dist/dashboard/dashboard/dashboard.service.d.ts +66 -66
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +26 -26
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +26 -26
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +34 -34
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +34 -34
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +8 -8
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +8 -8
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +5 -5
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +5 -5
- package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +25 -25
- package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +25 -25
- package/dist/file/file.controller.d.ts +6 -6
- package/dist/file/file.service.d.ts +50 -24
- package/dist/file/file.service.d.ts.map +1 -1
- package/dist/file/file.service.js +37 -0
- package/dist/file/file.service.js.map +1 -1
- package/dist/integration-profile/integration-profile.controller.d.ts +15 -15
- package/dist/integration-profile/integration-profile.service.d.ts +15 -15
- package/dist/locale/locale.controller.d.ts +4 -4
- package/dist/locale/locale.service.d.ts +4 -4
- package/dist/mail/mail.controller.d.ts +7 -7
- package/dist/mail/mail.service.d.ts +7 -7
- package/dist/mail-sent/mail-sent.controller.d.ts +12 -12
- package/dist/mail-sent/mail-sent.service.d.ts +12 -12
- package/dist/mcp/mcp-api-key.controller.d.ts +2 -2
- package/dist/mcp/mcp-api-key.service.d.ts +2 -2
- package/dist/mcp-chat/mcp-chat.controller.d.ts +8 -8
- package/dist/mcp-chat/mcp-chat.service.d.ts +8 -8
- package/dist/menu/menu.controller.d.ts +10 -10
- package/dist/menu/menu.service.d.ts +10 -10
- package/dist/notification/notification.controller.d.ts +36 -36
- package/dist/notification/notification.service.d.ts +36 -36
- package/dist/profile/profile.controller.d.ts +16 -16
- package/dist/profile/profile.service.d.ts +16 -16
- package/dist/role/role.controller.d.ts +6 -6
- package/dist/role/role.service.d.ts +6 -6
- package/dist/screen/screen.controller.d.ts +3 -3
- package/dist/screen/screen.service.d.ts +3 -3
- package/dist/session/session.controller.d.ts +2 -2
- package/dist/session/session.service.d.ts +6 -6
- package/dist/setting/setting.controller.d.ts +18 -18
- package/dist/setting/setting.service.d.ts +18 -18
- package/dist/setting/setting.service.d.ts.map +1 -1
- package/dist/setting/setting.service.js +0 -1
- package/dist/setting/setting.service.js.map +1 -1
- package/dist/user/user.controller.d.ts +29 -29
- package/dist/user/user.service.d.ts +67 -67
- package/dist/webhook-integration/webhook-integration.controller.d.ts +2 -2
- package/dist/webhook-integration/webhook-integration.service.d.ts +2 -2
- package/hedhog/data/setting_group.yaml +0 -26
- package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +1 -33
- package/hedhog/table/setting_runtime_state.yaml +9 -0
- package/package.json +4 -3
- package/src/file/file.service.ts +88 -0
- package/src/setting/setting.service.ts +0 -1
|
@@ -29,27 +29,25 @@ export declare class DashboardComponentController {
|
|
|
29
29
|
}): Promise<{
|
|
30
30
|
dashboard_component_locale: ({
|
|
31
31
|
locale: {
|
|
32
|
-
code: string;
|
|
33
|
-
name: string;
|
|
34
32
|
id: number;
|
|
35
|
-
region: string;
|
|
36
|
-
enabled: boolean;
|
|
37
33
|
created_at: Date;
|
|
34
|
+
name: string;
|
|
38
35
|
updated_at: Date;
|
|
36
|
+
code: string;
|
|
37
|
+
region: string;
|
|
38
|
+
enabled: boolean;
|
|
39
39
|
};
|
|
40
40
|
} & {
|
|
41
|
-
name: string;
|
|
42
41
|
id: number;
|
|
43
|
-
description: string;
|
|
44
42
|
created_at: Date;
|
|
43
|
+
name: string;
|
|
45
44
|
updated_at: Date;
|
|
46
45
|
locale_id: number;
|
|
46
|
+
description: string;
|
|
47
47
|
dashboard_component_id: number;
|
|
48
48
|
})[];
|
|
49
49
|
} & {
|
|
50
50
|
id: number;
|
|
51
|
-
height: number;
|
|
52
|
-
width: number;
|
|
53
51
|
created_at: Date;
|
|
54
52
|
updated_at: Date;
|
|
55
53
|
slug: string;
|
|
@@ -58,32 +56,32 @@ export declare class DashboardComponentController {
|
|
|
58
56
|
max_width: number | null;
|
|
59
57
|
min_height: number;
|
|
60
58
|
max_height: number | null;
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
61
|
is_resizable: boolean;
|
|
62
62
|
}>;
|
|
63
63
|
createComponent(data: CreateDashboardComponentDTO, locale: string): Promise<{
|
|
64
64
|
dashboard_component_locale: ({
|
|
65
65
|
locale: {
|
|
66
|
-
code: string;
|
|
67
|
-
name: string;
|
|
68
66
|
id: number;
|
|
69
|
-
region: string;
|
|
70
|
-
enabled: boolean;
|
|
71
67
|
created_at: Date;
|
|
68
|
+
name: string;
|
|
72
69
|
updated_at: Date;
|
|
70
|
+
code: string;
|
|
71
|
+
region: string;
|
|
72
|
+
enabled: boolean;
|
|
73
73
|
};
|
|
74
74
|
} & {
|
|
75
|
-
name: string;
|
|
76
75
|
id: number;
|
|
77
|
-
description: string;
|
|
78
76
|
created_at: Date;
|
|
77
|
+
name: string;
|
|
79
78
|
updated_at: Date;
|
|
80
79
|
locale_id: number;
|
|
80
|
+
description: string;
|
|
81
81
|
dashboard_component_id: number;
|
|
82
82
|
})[];
|
|
83
83
|
} & {
|
|
84
84
|
id: number;
|
|
85
|
-
height: number;
|
|
86
|
-
width: number;
|
|
87
85
|
created_at: Date;
|
|
88
86
|
updated_at: Date;
|
|
89
87
|
slug: string;
|
|
@@ -92,32 +90,32 @@ export declare class DashboardComponentController {
|
|
|
92
90
|
max_width: number | null;
|
|
93
91
|
min_height: number;
|
|
94
92
|
max_height: number | null;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
95
|
is_resizable: boolean;
|
|
96
96
|
}>;
|
|
97
97
|
updateComponent(id: number, data: UpdateDashboardComponentDTO, locale: string): Promise<{
|
|
98
98
|
dashboard_component_locale: ({
|
|
99
99
|
locale: {
|
|
100
|
-
code: string;
|
|
101
|
-
name: string;
|
|
102
100
|
id: number;
|
|
103
|
-
region: string;
|
|
104
|
-
enabled: boolean;
|
|
105
101
|
created_at: Date;
|
|
102
|
+
name: string;
|
|
106
103
|
updated_at: Date;
|
|
104
|
+
code: string;
|
|
105
|
+
region: string;
|
|
106
|
+
enabled: boolean;
|
|
107
107
|
};
|
|
108
108
|
} & {
|
|
109
|
-
name: string;
|
|
110
109
|
id: number;
|
|
111
|
-
description: string;
|
|
112
110
|
created_at: Date;
|
|
111
|
+
name: string;
|
|
113
112
|
updated_at: Date;
|
|
114
113
|
locale_id: number;
|
|
114
|
+
description: string;
|
|
115
115
|
dashboard_component_id: number;
|
|
116
116
|
})[];
|
|
117
117
|
} & {
|
|
118
118
|
id: number;
|
|
119
|
-
height: number;
|
|
120
|
-
width: number;
|
|
121
119
|
created_at: Date;
|
|
122
120
|
updated_at: Date;
|
|
123
121
|
slug: string;
|
|
@@ -126,12 +124,12 @@ export declare class DashboardComponentController {
|
|
|
126
124
|
max_width: number | null;
|
|
127
125
|
min_height: number;
|
|
128
126
|
max_height: number | null;
|
|
127
|
+
width: number;
|
|
128
|
+
height: number;
|
|
129
129
|
is_resizable: boolean;
|
|
130
130
|
}>;
|
|
131
131
|
deleteComponent(id: number, locale: string): Promise<{
|
|
132
132
|
id: number;
|
|
133
|
-
height: number;
|
|
134
|
-
width: number;
|
|
135
133
|
created_at: Date;
|
|
136
134
|
updated_at: Date;
|
|
137
135
|
slug: string;
|
|
@@ -140,6 +138,8 @@ export declare class DashboardComponentController {
|
|
|
140
138
|
max_width: number | null;
|
|
141
139
|
min_height: number;
|
|
142
140
|
max_height: number | null;
|
|
141
|
+
width: number;
|
|
142
|
+
height: number;
|
|
143
143
|
is_resizable: boolean;
|
|
144
144
|
}>;
|
|
145
145
|
savePreview(id: number, file: MulterFile, locale: string): Promise<{
|
|
@@ -31,27 +31,25 @@ export declare class DashboardComponentService {
|
|
|
31
31
|
getComponent(id: number, locale: string, userId?: number): Promise<{
|
|
32
32
|
dashboard_component_locale: ({
|
|
33
33
|
locale: {
|
|
34
|
-
code: string;
|
|
35
|
-
name: string;
|
|
36
34
|
id: number;
|
|
37
|
-
region: string;
|
|
38
|
-
enabled: boolean;
|
|
39
35
|
created_at: Date;
|
|
36
|
+
name: string;
|
|
40
37
|
updated_at: Date;
|
|
38
|
+
code: string;
|
|
39
|
+
region: string;
|
|
40
|
+
enabled: boolean;
|
|
41
41
|
};
|
|
42
42
|
} & {
|
|
43
|
-
name: string;
|
|
44
43
|
id: number;
|
|
45
|
-
description: string;
|
|
46
44
|
created_at: Date;
|
|
45
|
+
name: string;
|
|
47
46
|
updated_at: Date;
|
|
48
47
|
locale_id: number;
|
|
48
|
+
description: string;
|
|
49
49
|
dashboard_component_id: number;
|
|
50
50
|
})[];
|
|
51
51
|
} & {
|
|
52
52
|
id: number;
|
|
53
|
-
height: number;
|
|
54
|
-
width: number;
|
|
55
53
|
created_at: Date;
|
|
56
54
|
updated_at: Date;
|
|
57
55
|
slug: string;
|
|
@@ -60,32 +58,32 @@ export declare class DashboardComponentService {
|
|
|
60
58
|
max_width: number | null;
|
|
61
59
|
min_height: number;
|
|
62
60
|
max_height: number | null;
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
63
|
is_resizable: boolean;
|
|
64
64
|
}>;
|
|
65
65
|
createComponent(data: CreateDashboardComponentDTO, locale: string): Promise<{
|
|
66
66
|
dashboard_component_locale: ({
|
|
67
67
|
locale: {
|
|
68
|
-
code: string;
|
|
69
|
-
name: string;
|
|
70
68
|
id: number;
|
|
71
|
-
region: string;
|
|
72
|
-
enabled: boolean;
|
|
73
69
|
created_at: Date;
|
|
70
|
+
name: string;
|
|
74
71
|
updated_at: Date;
|
|
72
|
+
code: string;
|
|
73
|
+
region: string;
|
|
74
|
+
enabled: boolean;
|
|
75
75
|
};
|
|
76
76
|
} & {
|
|
77
|
-
name: string;
|
|
78
77
|
id: number;
|
|
79
|
-
description: string;
|
|
80
78
|
created_at: Date;
|
|
79
|
+
name: string;
|
|
81
80
|
updated_at: Date;
|
|
82
81
|
locale_id: number;
|
|
82
|
+
description: string;
|
|
83
83
|
dashboard_component_id: number;
|
|
84
84
|
})[];
|
|
85
85
|
} & {
|
|
86
86
|
id: number;
|
|
87
|
-
height: number;
|
|
88
|
-
width: number;
|
|
89
87
|
created_at: Date;
|
|
90
88
|
updated_at: Date;
|
|
91
89
|
slug: string;
|
|
@@ -94,32 +92,32 @@ export declare class DashboardComponentService {
|
|
|
94
92
|
max_width: number | null;
|
|
95
93
|
min_height: number;
|
|
96
94
|
max_height: number | null;
|
|
95
|
+
width: number;
|
|
96
|
+
height: number;
|
|
97
97
|
is_resizable: boolean;
|
|
98
98
|
}>;
|
|
99
99
|
updateComponent(id: number, data: UpdateDashboardComponentDTO, locale: string): Promise<{
|
|
100
100
|
dashboard_component_locale: ({
|
|
101
101
|
locale: {
|
|
102
|
-
code: string;
|
|
103
|
-
name: string;
|
|
104
102
|
id: number;
|
|
105
|
-
region: string;
|
|
106
|
-
enabled: boolean;
|
|
107
103
|
created_at: Date;
|
|
104
|
+
name: string;
|
|
108
105
|
updated_at: Date;
|
|
106
|
+
code: string;
|
|
107
|
+
region: string;
|
|
108
|
+
enabled: boolean;
|
|
109
109
|
};
|
|
110
110
|
} & {
|
|
111
|
-
name: string;
|
|
112
111
|
id: number;
|
|
113
|
-
description: string;
|
|
114
112
|
created_at: Date;
|
|
113
|
+
name: string;
|
|
115
114
|
updated_at: Date;
|
|
116
115
|
locale_id: number;
|
|
116
|
+
description: string;
|
|
117
117
|
dashboard_component_id: number;
|
|
118
118
|
})[];
|
|
119
119
|
} & {
|
|
120
120
|
id: number;
|
|
121
|
-
height: number;
|
|
122
|
-
width: number;
|
|
123
121
|
created_at: Date;
|
|
124
122
|
updated_at: Date;
|
|
125
123
|
slug: string;
|
|
@@ -128,12 +126,12 @@ export declare class DashboardComponentService {
|
|
|
128
126
|
max_width: number | null;
|
|
129
127
|
min_height: number;
|
|
130
128
|
max_height: number | null;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
131
|
is_resizable: boolean;
|
|
132
132
|
}>;
|
|
133
133
|
deleteComponent(id: number, locale: string): Promise<{
|
|
134
134
|
id: number;
|
|
135
|
-
height: number;
|
|
136
|
-
width: number;
|
|
137
135
|
created_at: Date;
|
|
138
136
|
updated_at: Date;
|
|
139
137
|
slug: string;
|
|
@@ -142,6 +140,8 @@ export declare class DashboardComponentService {
|
|
|
142
140
|
max_width: number | null;
|
|
143
141
|
min_height: number;
|
|
144
142
|
max_height: number | null;
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
145
|
is_resizable: boolean;
|
|
146
146
|
}>;
|
|
147
147
|
private normalizeComponentIdentity;
|
|
@@ -15,21 +15,21 @@ export declare class DashboardComponentRoleController {
|
|
|
15
15
|
role: {
|
|
16
16
|
role_locale: ({
|
|
17
17
|
locale: {
|
|
18
|
-
code: string;
|
|
19
|
-
name: string;
|
|
20
18
|
id: number;
|
|
21
|
-
region: string;
|
|
22
|
-
enabled: boolean;
|
|
23
19
|
created_at: Date;
|
|
20
|
+
name: string;
|
|
24
21
|
updated_at: Date;
|
|
22
|
+
code: string;
|
|
23
|
+
region: string;
|
|
24
|
+
enabled: boolean;
|
|
25
25
|
};
|
|
26
26
|
} & {
|
|
27
|
-
name: string;
|
|
28
27
|
id: number;
|
|
29
|
-
description: string | null;
|
|
30
28
|
created_at: Date;
|
|
29
|
+
name: string;
|
|
31
30
|
updated_at: Date;
|
|
32
31
|
locale_id: number;
|
|
32
|
+
description: string | null;
|
|
33
33
|
role_id: number;
|
|
34
34
|
})[];
|
|
35
35
|
} & {
|
|
@@ -42,76 +42,76 @@ export declare class DashboardComponentRoleController {
|
|
|
42
42
|
id: number;
|
|
43
43
|
created_at: Date;
|
|
44
44
|
updated_at: Date;
|
|
45
|
-
component_id: number;
|
|
46
45
|
role_id: number;
|
|
46
|
+
component_id: number;
|
|
47
47
|
})[]>;
|
|
48
48
|
create(data: CreateDashboardComponentRoleDTO, locale: string): Promise<{
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
dashboard_component: {
|
|
50
|
+
dashboard_component_locale: ({
|
|
51
51
|
locale: {
|
|
52
|
-
code: string;
|
|
53
|
-
name: string;
|
|
54
52
|
id: number;
|
|
55
|
-
region: string;
|
|
56
|
-
enabled: boolean;
|
|
57
53
|
created_at: Date;
|
|
54
|
+
name: string;
|
|
58
55
|
updated_at: Date;
|
|
56
|
+
code: string;
|
|
57
|
+
region: string;
|
|
58
|
+
enabled: boolean;
|
|
59
59
|
};
|
|
60
60
|
} & {
|
|
61
|
-
name: string;
|
|
62
61
|
id: number;
|
|
63
|
-
description: string | null;
|
|
64
62
|
created_at: Date;
|
|
63
|
+
name: string;
|
|
65
64
|
updated_at: Date;
|
|
66
65
|
locale_id: number;
|
|
67
|
-
|
|
66
|
+
description: string;
|
|
67
|
+
dashboard_component_id: number;
|
|
68
68
|
})[];
|
|
69
69
|
} & {
|
|
70
70
|
id: number;
|
|
71
71
|
created_at: Date;
|
|
72
72
|
updated_at: Date;
|
|
73
73
|
slug: string;
|
|
74
|
+
library_slug: string;
|
|
75
|
+
min_width: number;
|
|
76
|
+
max_width: number | null;
|
|
77
|
+
min_height: number;
|
|
78
|
+
max_height: number | null;
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
is_resizable: boolean;
|
|
74
82
|
};
|
|
75
|
-
|
|
76
|
-
|
|
83
|
+
role: {
|
|
84
|
+
role_locale: ({
|
|
77
85
|
locale: {
|
|
78
|
-
code: string;
|
|
79
|
-
name: string;
|
|
80
86
|
id: number;
|
|
81
|
-
region: string;
|
|
82
|
-
enabled: boolean;
|
|
83
87
|
created_at: Date;
|
|
88
|
+
name: string;
|
|
84
89
|
updated_at: Date;
|
|
90
|
+
code: string;
|
|
91
|
+
region: string;
|
|
92
|
+
enabled: boolean;
|
|
85
93
|
};
|
|
86
94
|
} & {
|
|
87
|
-
name: string;
|
|
88
95
|
id: number;
|
|
89
|
-
description: string;
|
|
90
96
|
created_at: Date;
|
|
97
|
+
name: string;
|
|
91
98
|
updated_at: Date;
|
|
92
99
|
locale_id: number;
|
|
93
|
-
|
|
100
|
+
description: string | null;
|
|
101
|
+
role_id: number;
|
|
94
102
|
})[];
|
|
95
103
|
} & {
|
|
96
104
|
id: number;
|
|
97
|
-
height: number;
|
|
98
|
-
width: number;
|
|
99
105
|
created_at: Date;
|
|
100
106
|
updated_at: Date;
|
|
101
107
|
slug: string;
|
|
102
|
-
library_slug: string;
|
|
103
|
-
min_width: number;
|
|
104
|
-
max_width: number | null;
|
|
105
|
-
min_height: number;
|
|
106
|
-
max_height: number | null;
|
|
107
|
-
is_resizable: boolean;
|
|
108
108
|
};
|
|
109
109
|
} & {
|
|
110
110
|
id: number;
|
|
111
111
|
created_at: Date;
|
|
112
112
|
updated_at: Date;
|
|
113
|
-
component_id: number;
|
|
114
113
|
role_id: number;
|
|
114
|
+
component_id: number;
|
|
115
115
|
}>;
|
|
116
116
|
createBatch(data: CreateDashboardComponentRoleBatchDTO, locale: string): Promise<{
|
|
117
117
|
success: boolean;
|
|
@@ -18,21 +18,21 @@ export declare class DashboardComponentRoleService {
|
|
|
18
18
|
role: {
|
|
19
19
|
role_locale: ({
|
|
20
20
|
locale: {
|
|
21
|
-
code: string;
|
|
22
|
-
name: string;
|
|
23
21
|
id: number;
|
|
24
|
-
region: string;
|
|
25
|
-
enabled: boolean;
|
|
26
22
|
created_at: Date;
|
|
23
|
+
name: string;
|
|
27
24
|
updated_at: Date;
|
|
25
|
+
code: string;
|
|
26
|
+
region: string;
|
|
27
|
+
enabled: boolean;
|
|
28
28
|
};
|
|
29
29
|
} & {
|
|
30
|
-
name: string;
|
|
31
30
|
id: number;
|
|
32
|
-
description: string | null;
|
|
33
31
|
created_at: Date;
|
|
32
|
+
name: string;
|
|
34
33
|
updated_at: Date;
|
|
35
34
|
locale_id: number;
|
|
35
|
+
description: string | null;
|
|
36
36
|
role_id: number;
|
|
37
37
|
})[];
|
|
38
38
|
} & {
|
|
@@ -45,76 +45,76 @@ export declare class DashboardComponentRoleService {
|
|
|
45
45
|
id: number;
|
|
46
46
|
created_at: Date;
|
|
47
47
|
updated_at: Date;
|
|
48
|
-
component_id: number;
|
|
49
48
|
role_id: number;
|
|
49
|
+
component_id: number;
|
|
50
50
|
})[]>;
|
|
51
51
|
create(data: CreateDashboardComponentRoleDTO, locale: string): Promise<{
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
dashboard_component: {
|
|
53
|
+
dashboard_component_locale: ({
|
|
54
54
|
locale: {
|
|
55
|
-
code: string;
|
|
56
|
-
name: string;
|
|
57
55
|
id: number;
|
|
58
|
-
region: string;
|
|
59
|
-
enabled: boolean;
|
|
60
56
|
created_at: Date;
|
|
57
|
+
name: string;
|
|
61
58
|
updated_at: Date;
|
|
59
|
+
code: string;
|
|
60
|
+
region: string;
|
|
61
|
+
enabled: boolean;
|
|
62
62
|
};
|
|
63
63
|
} & {
|
|
64
|
-
name: string;
|
|
65
64
|
id: number;
|
|
66
|
-
description: string | null;
|
|
67
65
|
created_at: Date;
|
|
66
|
+
name: string;
|
|
68
67
|
updated_at: Date;
|
|
69
68
|
locale_id: number;
|
|
70
|
-
|
|
69
|
+
description: string;
|
|
70
|
+
dashboard_component_id: number;
|
|
71
71
|
})[];
|
|
72
72
|
} & {
|
|
73
73
|
id: number;
|
|
74
74
|
created_at: Date;
|
|
75
75
|
updated_at: Date;
|
|
76
76
|
slug: string;
|
|
77
|
+
library_slug: string;
|
|
78
|
+
min_width: number;
|
|
79
|
+
max_width: number | null;
|
|
80
|
+
min_height: number;
|
|
81
|
+
max_height: number | null;
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
is_resizable: boolean;
|
|
77
85
|
};
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
role: {
|
|
87
|
+
role_locale: ({
|
|
80
88
|
locale: {
|
|
81
|
-
code: string;
|
|
82
|
-
name: string;
|
|
83
89
|
id: number;
|
|
84
|
-
region: string;
|
|
85
|
-
enabled: boolean;
|
|
86
90
|
created_at: Date;
|
|
91
|
+
name: string;
|
|
87
92
|
updated_at: Date;
|
|
93
|
+
code: string;
|
|
94
|
+
region: string;
|
|
95
|
+
enabled: boolean;
|
|
88
96
|
};
|
|
89
97
|
} & {
|
|
90
|
-
name: string;
|
|
91
98
|
id: number;
|
|
92
|
-
description: string;
|
|
93
99
|
created_at: Date;
|
|
100
|
+
name: string;
|
|
94
101
|
updated_at: Date;
|
|
95
102
|
locale_id: number;
|
|
96
|
-
|
|
103
|
+
description: string | null;
|
|
104
|
+
role_id: number;
|
|
97
105
|
})[];
|
|
98
106
|
} & {
|
|
99
107
|
id: number;
|
|
100
|
-
height: number;
|
|
101
|
-
width: number;
|
|
102
108
|
created_at: Date;
|
|
103
109
|
updated_at: Date;
|
|
104
110
|
slug: string;
|
|
105
|
-
library_slug: string;
|
|
106
|
-
min_width: number;
|
|
107
|
-
max_width: number | null;
|
|
108
|
-
min_height: number;
|
|
109
|
-
max_height: number | null;
|
|
110
|
-
is_resizable: boolean;
|
|
111
111
|
};
|
|
112
112
|
} & {
|
|
113
113
|
id: number;
|
|
114
114
|
created_at: Date;
|
|
115
115
|
updated_at: Date;
|
|
116
|
-
component_id: number;
|
|
117
116
|
role_id: number;
|
|
117
|
+
component_id: number;
|
|
118
118
|
}>;
|
|
119
119
|
createBatch(data: CreateDashboardComponentRoleBatchDTO, locale: string): Promise<{
|
|
120
120
|
success: boolean;
|
|
@@ -6,10 +6,10 @@ export declare class DashboardCoreController {
|
|
|
6
6
|
id: any;
|
|
7
7
|
}, locale: string): Promise<{
|
|
8
8
|
id: number;
|
|
9
|
-
icon: string | null;
|
|
10
9
|
created_at: Date;
|
|
11
10
|
updated_at: Date;
|
|
12
11
|
slug: string;
|
|
12
|
+
icon: string | null;
|
|
13
13
|
is_template: boolean;
|
|
14
14
|
}>;
|
|
15
15
|
getUserStatistics(): Promise<{
|
|
@@ -145,9 +145,9 @@ export declare class DashboardCoreController {
|
|
|
145
145
|
icon: string;
|
|
146
146
|
is_home: boolean;
|
|
147
147
|
dashboard_locale: {
|
|
148
|
-
name: string;
|
|
149
148
|
id: number;
|
|
150
149
|
created_at: Date;
|
|
150
|
+
name: string;
|
|
151
151
|
updated_at: Date;
|
|
152
152
|
locale_id: number;
|
|
153
153
|
dashboard_id: number;
|
|
@@ -301,18 +301,16 @@ export declare class DashboardCoreController {
|
|
|
301
301
|
fromSlug(slug: string, locale: any): Promise<({
|
|
302
302
|
dashboard_component: {
|
|
303
303
|
dashboard_component_locale: {
|
|
304
|
-
name: string;
|
|
305
304
|
id: number;
|
|
306
|
-
description: string;
|
|
307
305
|
created_at: Date;
|
|
306
|
+
name: string;
|
|
308
307
|
updated_at: Date;
|
|
309
308
|
locale_id: number;
|
|
309
|
+
description: string;
|
|
310
310
|
dashboard_component_id: number;
|
|
311
311
|
}[];
|
|
312
312
|
} & {
|
|
313
313
|
id: number;
|
|
314
|
-
height: number;
|
|
315
|
-
width: number;
|
|
316
314
|
created_at: Date;
|
|
317
315
|
updated_at: Date;
|
|
318
316
|
slug: string;
|
|
@@ -321,15 +319,17 @@ export declare class DashboardCoreController {
|
|
|
321
319
|
max_width: number | null;
|
|
322
320
|
min_height: number;
|
|
323
321
|
max_height: number | null;
|
|
322
|
+
width: number;
|
|
323
|
+
height: number;
|
|
324
324
|
is_resizable: boolean;
|
|
325
325
|
};
|
|
326
326
|
} & {
|
|
327
327
|
id: number;
|
|
328
|
-
height: number;
|
|
329
|
-
width: number;
|
|
330
328
|
created_at: Date;
|
|
331
329
|
updated_at: Date;
|
|
332
330
|
component_id: number;
|
|
331
|
+
width: number;
|
|
332
|
+
height: number;
|
|
333
333
|
dashboard_id: number;
|
|
334
334
|
x_axis: number;
|
|
335
335
|
y_axis: number;
|
|
@@ -159,27 +159,25 @@ export declare class DashboardCoreService {
|
|
|
159
159
|
private getAccessibleTemplateOrThrow;
|
|
160
160
|
getHome(userId: number, locale: string): Promise<{
|
|
161
161
|
id: number;
|
|
162
|
-
icon: string | null;
|
|
163
162
|
created_at: Date;
|
|
164
163
|
updated_at: Date;
|
|
165
164
|
slug: string;
|
|
165
|
+
icon: string | null;
|
|
166
166
|
is_template: boolean;
|
|
167
167
|
}>;
|
|
168
168
|
fromSlug(slug: string, code: string): Promise<({
|
|
169
169
|
dashboard_component: {
|
|
170
170
|
dashboard_component_locale: {
|
|
171
|
-
name: string;
|
|
172
171
|
id: number;
|
|
173
|
-
description: string;
|
|
174
172
|
created_at: Date;
|
|
173
|
+
name: string;
|
|
175
174
|
updated_at: Date;
|
|
176
175
|
locale_id: number;
|
|
176
|
+
description: string;
|
|
177
177
|
dashboard_component_id: number;
|
|
178
178
|
}[];
|
|
179
179
|
} & {
|
|
180
180
|
id: number;
|
|
181
|
-
height: number;
|
|
182
|
-
width: number;
|
|
183
181
|
created_at: Date;
|
|
184
182
|
updated_at: Date;
|
|
185
183
|
slug: string;
|
|
@@ -188,15 +186,17 @@ export declare class DashboardCoreService {
|
|
|
188
186
|
max_width: number | null;
|
|
189
187
|
min_height: number;
|
|
190
188
|
max_height: number | null;
|
|
189
|
+
width: number;
|
|
190
|
+
height: number;
|
|
191
191
|
is_resizable: boolean;
|
|
192
192
|
};
|
|
193
193
|
} & {
|
|
194
194
|
id: number;
|
|
195
|
-
height: number;
|
|
196
|
-
width: number;
|
|
197
195
|
created_at: Date;
|
|
198
196
|
updated_at: Date;
|
|
199
197
|
component_id: number;
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
200
|
dashboard_id: number;
|
|
201
201
|
x_axis: number;
|
|
202
202
|
y_axis: number;
|
|
@@ -324,9 +324,9 @@ export declare class DashboardCoreService {
|
|
|
324
324
|
icon: string;
|
|
325
325
|
is_home: boolean;
|
|
326
326
|
dashboard_locale: {
|
|
327
|
-
name: string;
|
|
328
327
|
id: number;
|
|
329
328
|
created_at: Date;
|
|
329
|
+
name: string;
|
|
330
330
|
updated_at: Date;
|
|
331
331
|
locale_id: number;
|
|
332
332
|
dashboard_id: number;
|
|
@@ -15,16 +15,14 @@ export declare class DashboardItemController {
|
|
|
15
15
|
createDashboardItem(data: CreateDashboardItemDTO, locale: string): Promise<{
|
|
16
16
|
dashboard: {
|
|
17
17
|
id: number;
|
|
18
|
-
icon: string | null;
|
|
19
18
|
created_at: Date;
|
|
20
19
|
updated_at: Date;
|
|
21
20
|
slug: string;
|
|
21
|
+
icon: string | null;
|
|
22
22
|
is_template: boolean;
|
|
23
23
|
};
|
|
24
24
|
dashboard_component: {
|
|
25
25
|
id: number;
|
|
26
|
-
height: number;
|
|
27
|
-
width: number;
|
|
28
26
|
created_at: Date;
|
|
29
27
|
updated_at: Date;
|
|
30
28
|
slug: string;
|
|
@@ -33,15 +31,17 @@ export declare class DashboardItemController {
|
|
|
33
31
|
max_width: number | null;
|
|
34
32
|
min_height: number;
|
|
35
33
|
max_height: number | null;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
36
|
is_resizable: boolean;
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
id: number;
|
|
40
|
-
height: number;
|
|
41
|
-
width: number;
|
|
42
40
|
created_at: Date;
|
|
43
41
|
updated_at: Date;
|
|
44
42
|
component_id: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
45
|
dashboard_id: number;
|
|
46
46
|
x_axis: number;
|
|
47
47
|
y_axis: number;
|