@hed-hog/core 0.0.163 → 0.0.165
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/dashboard/dashboard/dashboard.controller.d.ts +13 -1
- package/dist/dashboard/dashboard/dashboard.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard/dashboard.controller.js +3 -4
- package/dist/dashboard/dashboard/dashboard.controller.js.map +1 -1
- package/dist/dashboard/dashboard/dashboard.service.d.ts +14 -4
- package/dist/dashboard/dashboard/dashboard.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard/dashboard.service.js +20 -10
- package/dist/dashboard/dashboard/dashboard.service.js.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +15 -0
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +15 -2
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dashboard-component.service.js +25 -2
- package/dist/dashboard/dashboard-component/dashboard-component.service.js.map +1 -1
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts +4 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dto/create.dto.js +15 -0
- package/dist/dashboard/dashboard-component/dto/create.dto.js.map +1 -1
- package/dist/dashboard/dashboard-component/dto/update.dto.d.ts +4 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dto/update.dto.js +15 -0
- package/dist/dashboard/dashboard-component/dto/update.dto.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +27 -8
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js +8 -6
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +27 -8
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.js +98 -46
- package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -1
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +3 -0
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts.map +1 -1
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +3 -0
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts.map +1 -1
- package/dist/dashboard/dashboard-item/dto/index.d.ts +2 -0
- package/dist/dashboard/dashboard-item/dto/index.d.ts.map +1 -1
- package/dist/dashboard/dashboard-item/dto/index.js +4 -1
- package/dist/dashboard/dashboard-item/dto/index.js.map +1 -1
- package/dist/dashboard/dashboard-item/dto/update-layout.dto.d.ts +12 -0
- package/dist/dashboard/dashboard-item/dto/update-layout.dto.d.ts.map +1 -0
- package/dist/dashboard/dashboard-item/dto/update-layout.dto.js +52 -0
- package/dist/dashboard/dashboard-item/dto/update-layout.dto.js.map +1 -0
- package/hedhog/data/menu.yaml +28 -4
- package/hedhog/query/add-description-to-dashboard-component-locale.sql +99 -0
- package/hedhog/query/add-widget-metadata.sql +21 -0
- package/hedhog/query/fix-dashboard-stat-keys.sql +82 -0
- package/package.json +4 -4
- package/src/dashboard/dashboard/dashboard.controller.ts +2 -2
- package/src/dashboard/dashboard/dashboard.service.ts +25 -9
- package/src/dashboard/dashboard-component/dashboard-component.service.ts +30 -3
- package/src/dashboard/dashboard-component/dto/create.dto.ts +13 -1
- package/src/dashboard/dashboard-component/dto/update.dto.ts +13 -1
- package/src/dashboard/dashboard-core/dashboard-core.controller.ts +4 -2
- package/src/dashboard/dashboard-core/dashboard-core.service.ts +103 -49
- package/src/dashboard/dashboard-item/dashboard-item.service.ts +4 -4
- package/src/dashboard/dashboard-item/dto/index.ts +2 -0
- package/src/dashboard/dashboard-item/dto/update-layout.dto.ts +30 -0
|
@@ -3,7 +3,7 @@ import { CreateDashboardDTO, UpdateDashboardDTO } from './dto';
|
|
|
3
3
|
export declare class DashboardController {
|
|
4
4
|
private readonly dashboardService;
|
|
5
5
|
constructor(dashboardService: DashboardService);
|
|
6
|
-
getAllDashboards(paginationParams: any
|
|
6
|
+
getAllDashboards(paginationParams: any): Promise<{
|
|
7
7
|
total: any;
|
|
8
8
|
lastPage: number;
|
|
9
9
|
page: number;
|
|
@@ -28,6 +28,7 @@ export declare class DashboardController {
|
|
|
28
28
|
} & {
|
|
29
29
|
name: string;
|
|
30
30
|
id: number;
|
|
31
|
+
description: string | null;
|
|
31
32
|
created_at: Date;
|
|
32
33
|
updated_at: Date;
|
|
33
34
|
locale_id: number;
|
|
@@ -40,12 +41,15 @@ export declare class DashboardController {
|
|
|
40
41
|
created_at: Date;
|
|
41
42
|
updated_at: Date;
|
|
42
43
|
slug: string;
|
|
44
|
+
icon: string | null;
|
|
45
|
+
color: string | null;
|
|
43
46
|
min_width: number;
|
|
44
47
|
max_width: number | null;
|
|
45
48
|
min_height: number;
|
|
46
49
|
max_height: number | null;
|
|
47
50
|
height: number;
|
|
48
51
|
is_resizable: boolean;
|
|
52
|
+
stat_key: string | null;
|
|
49
53
|
};
|
|
50
54
|
} & {
|
|
51
55
|
width: number;
|
|
@@ -98,6 +102,7 @@ export declare class DashboardController {
|
|
|
98
102
|
} & {
|
|
99
103
|
name: string;
|
|
100
104
|
id: number;
|
|
105
|
+
description: string | null;
|
|
101
106
|
created_at: Date;
|
|
102
107
|
updated_at: Date;
|
|
103
108
|
locale_id: number;
|
|
@@ -110,12 +115,15 @@ export declare class DashboardController {
|
|
|
110
115
|
created_at: Date;
|
|
111
116
|
updated_at: Date;
|
|
112
117
|
slug: string;
|
|
118
|
+
icon: string | null;
|
|
119
|
+
color: string | null;
|
|
113
120
|
min_width: number;
|
|
114
121
|
max_width: number | null;
|
|
115
122
|
min_height: number;
|
|
116
123
|
max_height: number | null;
|
|
117
124
|
height: number;
|
|
118
125
|
is_resizable: boolean;
|
|
126
|
+
stat_key: string | null;
|
|
119
127
|
};
|
|
120
128
|
} & {
|
|
121
129
|
width: number;
|
|
@@ -168,6 +176,7 @@ export declare class DashboardController {
|
|
|
168
176
|
} & {
|
|
169
177
|
name: string;
|
|
170
178
|
id: number;
|
|
179
|
+
description: string | null;
|
|
171
180
|
created_at: Date;
|
|
172
181
|
updated_at: Date;
|
|
173
182
|
locale_id: number;
|
|
@@ -180,12 +189,15 @@ export declare class DashboardController {
|
|
|
180
189
|
created_at: Date;
|
|
181
190
|
updated_at: Date;
|
|
182
191
|
slug: string;
|
|
192
|
+
icon: string | null;
|
|
193
|
+
color: string | null;
|
|
183
194
|
min_width: number;
|
|
184
195
|
max_width: number | null;
|
|
185
196
|
min_height: number;
|
|
186
197
|
max_height: number | null;
|
|
187
198
|
height: number;
|
|
188
199
|
is_resizable: boolean;
|
|
200
|
+
stat_key: string | null;
|
|
189
201
|
};
|
|
190
202
|
} & {
|
|
191
203
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,qBAEa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAG/D,gBAAgB,CAAe,gBAAgB,KAAA
|
|
1
|
+
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,qBAEa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAG/D,gBAAgB,CAAe,gBAAgB,KAAA;;;;;;;;;IAK/C,YAAY,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5E,eAAe,CAAS,IAAI,EAAE,kBAAkB,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK1E,eAAe,CACc,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,kBAAkB,EACtB,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM1B,eAAe,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;CAGhF"}
|
|
@@ -23,8 +23,8 @@ let DashboardController = class DashboardController {
|
|
|
23
23
|
constructor(dashboardService) {
|
|
24
24
|
this.dashboardService = dashboardService;
|
|
25
25
|
}
|
|
26
|
-
getAllDashboards(paginationParams
|
|
27
|
-
return this.dashboardService.getAllDashboards(paginationParams
|
|
26
|
+
getAllDashboards(paginationParams) {
|
|
27
|
+
return this.dashboardService.getAllDashboards(paginationParams);
|
|
28
28
|
}
|
|
29
29
|
getDashboard(id, locale) {
|
|
30
30
|
return this.dashboardService.getDashboard(id, locale);
|
|
@@ -43,9 +43,8 @@ exports.DashboardController = DashboardController;
|
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, common_1.Get)(),
|
|
45
45
|
__param(0, (0, api_pagination_1.Pagination)()),
|
|
46
|
-
__param(1, (0, api_locale_1.Locale)()),
|
|
47
46
|
__metadata("design:type", Function),
|
|
48
|
-
__metadata("design:paramtypes", [Object
|
|
47
|
+
__metadata("design:paramtypes", [Object]),
|
|
49
48
|
__metadata("design:returntype", void 0)
|
|
50
49
|
], DashboardController.prototype, "getAllDashboards", null);
|
|
51
50
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,oDAA6C;AAC7C,4DAAqD;AACrD,2CASwB;AACxB,2DAAuD;AACvD,+BAGe;AAGR,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAGnE,gBAAgB,CAAe,gBAAgB
|
|
1
|
+
{"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,oDAA6C;AAC7C,4DAAqD;AACrD,2CASwB;AACxB,2DAAuD;AACvD,+BAGe;AAGR,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAGnE,gBAAgB,CAAe,gBAAgB;QAC7C,OAAO,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAGD,YAAY,CAA4B,EAAU,EAAY,MAAc;QAC1E,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAGD,eAAe,CAAS,IAAwB,EAAY,MAAc;QACxE,OAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAGD,eAAe,CACc,EAAU,EAC7B,IAAw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aService } from '@hed-hog/api-prisma';
|
|
4
3
|
import { CreateDashboardDTO, UpdateDashboardDTO } from './dto';
|
|
5
4
|
export declare class DashboardService {
|
|
6
5
|
private readonly prismaService;
|
|
7
6
|
private readonly paginationService;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
getAllDashboards(paginationParams: any, locale: string): Promise<{
|
|
7
|
+
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
8
|
+
getAllDashboards(paginationParams: any): Promise<{
|
|
11
9
|
total: any;
|
|
12
10
|
lastPage: number;
|
|
13
11
|
page: number;
|
|
@@ -32,6 +30,7 @@ export declare class DashboardService {
|
|
|
32
30
|
} & {
|
|
33
31
|
name: string;
|
|
34
32
|
id: number;
|
|
33
|
+
description: string | null;
|
|
35
34
|
created_at: Date;
|
|
36
35
|
updated_at: Date;
|
|
37
36
|
locale_id: number;
|
|
@@ -44,12 +43,15 @@ export declare class DashboardService {
|
|
|
44
43
|
created_at: Date;
|
|
45
44
|
updated_at: Date;
|
|
46
45
|
slug: string;
|
|
46
|
+
icon: string | null;
|
|
47
|
+
color: string | null;
|
|
47
48
|
min_width: number;
|
|
48
49
|
max_width: number | null;
|
|
49
50
|
min_height: number;
|
|
50
51
|
max_height: number | null;
|
|
51
52
|
height: number;
|
|
52
53
|
is_resizable: boolean;
|
|
54
|
+
stat_key: string | null;
|
|
53
55
|
};
|
|
54
56
|
} & {
|
|
55
57
|
width: number;
|
|
@@ -102,6 +104,7 @@ export declare class DashboardService {
|
|
|
102
104
|
} & {
|
|
103
105
|
name: string;
|
|
104
106
|
id: number;
|
|
107
|
+
description: string | null;
|
|
105
108
|
created_at: Date;
|
|
106
109
|
updated_at: Date;
|
|
107
110
|
locale_id: number;
|
|
@@ -114,12 +117,15 @@ export declare class DashboardService {
|
|
|
114
117
|
created_at: Date;
|
|
115
118
|
updated_at: Date;
|
|
116
119
|
slug: string;
|
|
120
|
+
icon: string | null;
|
|
121
|
+
color: string | null;
|
|
117
122
|
min_width: number;
|
|
118
123
|
max_width: number | null;
|
|
119
124
|
min_height: number;
|
|
120
125
|
max_height: number | null;
|
|
121
126
|
height: number;
|
|
122
127
|
is_resizable: boolean;
|
|
128
|
+
stat_key: string | null;
|
|
123
129
|
};
|
|
124
130
|
} & {
|
|
125
131
|
width: number;
|
|
@@ -172,6 +178,7 @@ export declare class DashboardService {
|
|
|
172
178
|
} & {
|
|
173
179
|
name: string;
|
|
174
180
|
id: number;
|
|
181
|
+
description: string | null;
|
|
175
182
|
created_at: Date;
|
|
176
183
|
updated_at: Date;
|
|
177
184
|
locale_id: number;
|
|
@@ -184,12 +191,15 @@ export declare class DashboardService {
|
|
|
184
191
|
created_at: Date;
|
|
185
192
|
updated_at: Date;
|
|
186
193
|
slug: string;
|
|
194
|
+
icon: string | null;
|
|
195
|
+
color: string | null;
|
|
187
196
|
min_width: number;
|
|
188
197
|
max_width: number | null;
|
|
189
198
|
min_height: number;
|
|
190
199
|
max_height: number | null;
|
|
191
200
|
height: number;
|
|
192
201
|
is_resizable: boolean;
|
|
202
|
+
stat_key: string | null;
|
|
193
203
|
};
|
|
194
204
|
} & {
|
|
195
205
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dashboard.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE/D,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAEjD,gBAAgB,CAAC,gBAAgB,KAAA;;;;;;;;;IA0CjC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkCvC,eAAe,CAAC,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BxD,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCpE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;CAgBjD"}
|
|
@@ -18,12 +18,25 @@ const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
|
18
18
|
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
19
19
|
const common_1 = require("@nestjs/common");
|
|
20
20
|
let DashboardService = class DashboardService {
|
|
21
|
-
constructor(prismaService, paginationService
|
|
21
|
+
constructor(prismaService, paginationService) {
|
|
22
22
|
this.prismaService = prismaService;
|
|
23
23
|
this.paginationService = paginationService;
|
|
24
|
-
this.localeService = localeService;
|
|
25
24
|
}
|
|
26
|
-
async getAllDashboards(paginationParams
|
|
25
|
+
async getAllDashboards(paginationParams) {
|
|
26
|
+
const fields = ['slug'];
|
|
27
|
+
const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
|
|
28
|
+
if (paginationParams.search) {
|
|
29
|
+
OR.push({
|
|
30
|
+
dashboard_locale: {
|
|
31
|
+
some: {
|
|
32
|
+
name: {
|
|
33
|
+
contains: paginationParams.search,
|
|
34
|
+
mode: 'insensitive',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
}
|
|
27
40
|
return this.paginationService.paginate(this.prismaService.dashboard, paginationParams, {
|
|
28
41
|
include: {
|
|
29
42
|
dashboard_locale: {
|
|
@@ -32,6 +45,9 @@ let DashboardService = class DashboardService {
|
|
|
32
45
|
},
|
|
33
46
|
},
|
|
34
47
|
},
|
|
48
|
+
where: {
|
|
49
|
+
OR
|
|
50
|
+
},
|
|
35
51
|
orderBy: {
|
|
36
52
|
id: 'desc',
|
|
37
53
|
},
|
|
@@ -72,7 +88,6 @@ let DashboardService = class DashboardService {
|
|
|
72
88
|
slug: data.slug,
|
|
73
89
|
},
|
|
74
90
|
});
|
|
75
|
-
// Criar locales se fornecidos
|
|
76
91
|
if (data.locale) {
|
|
77
92
|
for (const [localeCode, localeData] of Object.entries(data.locale)) {
|
|
78
93
|
const localeRecord = await this.prismaService.locale.findFirst({
|
|
@@ -98,13 +113,10 @@ let DashboardService = class DashboardService {
|
|
|
98
113
|
slug: data.slug,
|
|
99
114
|
},
|
|
100
115
|
});
|
|
101
|
-
// Atualizar locales se fornecidos
|
|
102
116
|
if (data.locale) {
|
|
103
|
-
// Remove locales existentes
|
|
104
117
|
await this.prismaService.dashboard_locale.deleteMany({
|
|
105
118
|
where: { dashboard_id: id },
|
|
106
119
|
});
|
|
107
|
-
// Criar novos locales
|
|
108
120
|
for (const [localeCode, localeData] of Object.entries(data.locale)) {
|
|
109
121
|
const localeRecord = await this.prismaService.locale.findFirst({
|
|
110
122
|
where: { code: localeCode },
|
|
@@ -140,9 +152,7 @@ exports.DashboardService = DashboardService = __decorate([
|
|
|
140
152
|
(0, common_1.Injectable)(),
|
|
141
153
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_prisma_1.PrismaService))),
|
|
142
154
|
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_pagination_1.PaginationService))),
|
|
143
|
-
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => api_locale_1.LocaleService))),
|
|
144
155
|
__metadata("design:paramtypes", [api_prisma_1.PrismaService,
|
|
145
|
-
api_pagination_1.PaginationService
|
|
146
|
-
api_locale_1.LocaleService])
|
|
156
|
+
api_pagination_1.PaginationService])
|
|
147
157
|
], DashboardService);
|
|
148
158
|
//# sourceMappingURL=dashboard.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"dashboard.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard/dashboard.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4DAA4D;AAC5D,oDAAoD;AACpD,2CAAmF;AAI5E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IACJ,KAAK,CAAC,gBAAgB,CAAC,gBAAgB;QACrC,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,CAAA;QACvB,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,uBAAuB,CACnD,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;YAC5B,EAAE,CAAC,IAAI,CAAC;gBACN,gBAAgB,EAAE;oBAChB,IAAI,EAAE;wBACJ,IAAI,EAAE;4BACJ,QAAQ,EAAE,gBAAgB,CAAC,MAAM;4BACjC,IAAI,EAAE,aAAa;yBACpB;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CACpC,IAAI,CAAC,aAAa,CAAC,SAAS,EAC5B,gB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
|
|
29
|
+
description: string | null;
|
|
29
30
|
created_at: Date;
|
|
30
31
|
updated_at: Date;
|
|
31
32
|
locale_id: number;
|
|
@@ -38,12 +39,15 @@ export declare class DashboardComponentController {
|
|
|
38
39
|
created_at: Date;
|
|
39
40
|
updated_at: Date;
|
|
40
41
|
slug: string;
|
|
42
|
+
icon: string | null;
|
|
43
|
+
color: string | null;
|
|
41
44
|
min_width: number;
|
|
42
45
|
max_width: number | null;
|
|
43
46
|
min_height: number;
|
|
44
47
|
max_height: number | null;
|
|
45
48
|
height: number;
|
|
46
49
|
is_resizable: boolean;
|
|
50
|
+
stat_key: string | null;
|
|
47
51
|
}>;
|
|
48
52
|
createComponent(data: CreateDashboardComponentDTO, locale: string): Promise<{
|
|
49
53
|
dashboard_component_locale: ({
|
|
@@ -59,6 +63,7 @@ export declare class DashboardComponentController {
|
|
|
59
63
|
} & {
|
|
60
64
|
name: string;
|
|
61
65
|
id: number;
|
|
66
|
+
description: string | null;
|
|
62
67
|
created_at: Date;
|
|
63
68
|
updated_at: Date;
|
|
64
69
|
locale_id: number;
|
|
@@ -71,12 +76,15 @@ export declare class DashboardComponentController {
|
|
|
71
76
|
created_at: Date;
|
|
72
77
|
updated_at: Date;
|
|
73
78
|
slug: string;
|
|
79
|
+
icon: string | null;
|
|
80
|
+
color: string | null;
|
|
74
81
|
min_width: number;
|
|
75
82
|
max_width: number | null;
|
|
76
83
|
min_height: number;
|
|
77
84
|
max_height: number | null;
|
|
78
85
|
height: number;
|
|
79
86
|
is_resizable: boolean;
|
|
87
|
+
stat_key: string | null;
|
|
80
88
|
}>;
|
|
81
89
|
updateComponent(id: number, data: UpdateDashboardComponentDTO, locale: string): Promise<{
|
|
82
90
|
dashboard_component_locale: ({
|
|
@@ -92,6 +100,7 @@ export declare class DashboardComponentController {
|
|
|
92
100
|
} & {
|
|
93
101
|
name: string;
|
|
94
102
|
id: number;
|
|
103
|
+
description: string | null;
|
|
95
104
|
created_at: Date;
|
|
96
105
|
updated_at: Date;
|
|
97
106
|
locale_id: number;
|
|
@@ -104,12 +113,15 @@ export declare class DashboardComponentController {
|
|
|
104
113
|
created_at: Date;
|
|
105
114
|
updated_at: Date;
|
|
106
115
|
slug: string;
|
|
116
|
+
icon: string | null;
|
|
117
|
+
color: string | null;
|
|
107
118
|
min_width: number;
|
|
108
119
|
max_width: number | null;
|
|
109
120
|
min_height: number;
|
|
110
121
|
max_height: number | null;
|
|
111
122
|
height: number;
|
|
112
123
|
is_resizable: boolean;
|
|
124
|
+
stat_key: string | null;
|
|
113
125
|
}>;
|
|
114
126
|
deleteComponent(id: number, locale: string): Promise<{
|
|
115
127
|
path: string;
|
|
@@ -118,12 +130,15 @@ export declare class DashboardComponentController {
|
|
|
118
130
|
created_at: Date;
|
|
119
131
|
updated_at: Date;
|
|
120
132
|
slug: string;
|
|
133
|
+
icon: string | null;
|
|
134
|
+
color: string | null;
|
|
121
135
|
min_width: number;
|
|
122
136
|
max_width: number | null;
|
|
123
137
|
min_height: number;
|
|
124
138
|
max_height: number | null;
|
|
125
139
|
height: number;
|
|
126
140
|
is_resizable: boolean;
|
|
141
|
+
stat_key: string | null;
|
|
127
142
|
}>;
|
|
128
143
|
}
|
|
129
144
|
//# sourceMappingURL=dashboard-component.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,OAAO,CAAC;AAEf,qBAEa,4BAA4B;IAGrC,OAAO,CAAC,QAAQ,CAAC,yBAAyB;gBAAzB,yBAAyB,EAAE,yBAAyB;IAIvE,gBAAgB,CAAe,gBAAgB,KAAA;;;;;;;;;IAK/C,YAAY,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"dashboard-component.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,OAAO,CAAC;AAEf,qBAEa,4BAA4B;IAGrC,OAAO,CAAC,QAAQ,CAAC,yBAAyB;gBAAzB,yBAAyB,EAAE,yBAAyB;IAIvE,gBAAgB,CAAe,gBAAgB,KAAA;;;;;;;;;IAK/C,YAAY,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5E,eAAe,CAAS,IAAI,EAAE,2BAA2B,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnF,eAAe,CACc,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,2BAA2B,EAC/B,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM1B,eAAe,CAA4B,EAAE,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;CAGhF"}
|
|
@@ -4,8 +4,6 @@ import { CreateDashboardComponentDTO, UpdateDashboardComponentDTO } from './dto'
|
|
|
4
4
|
export declare class DashboardComponentService {
|
|
5
5
|
private readonly prismaService;
|
|
6
6
|
private readonly paginationService;
|
|
7
|
-
private readonly modelName;
|
|
8
|
-
private readonly foreignKey;
|
|
9
7
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
|
10
8
|
getAllComponents(paginationParams: any): Promise<{
|
|
11
9
|
total: any;
|
|
@@ -30,6 +28,7 @@ export declare class DashboardComponentService {
|
|
|
30
28
|
} & {
|
|
31
29
|
name: string;
|
|
32
30
|
id: number;
|
|
31
|
+
description: string | null;
|
|
33
32
|
created_at: Date;
|
|
34
33
|
updated_at: Date;
|
|
35
34
|
locale_id: number;
|
|
@@ -42,12 +41,15 @@ export declare class DashboardComponentService {
|
|
|
42
41
|
created_at: Date;
|
|
43
42
|
updated_at: Date;
|
|
44
43
|
slug: string;
|
|
44
|
+
icon: string | null;
|
|
45
|
+
color: string | null;
|
|
45
46
|
min_width: number;
|
|
46
47
|
max_width: number | null;
|
|
47
48
|
min_height: number;
|
|
48
49
|
max_height: number | null;
|
|
49
50
|
height: number;
|
|
50
51
|
is_resizable: boolean;
|
|
52
|
+
stat_key: string | null;
|
|
51
53
|
}>;
|
|
52
54
|
createComponent(data: CreateDashboardComponentDTO, locale: string): Promise<{
|
|
53
55
|
dashboard_component_locale: ({
|
|
@@ -63,6 +65,7 @@ export declare class DashboardComponentService {
|
|
|
63
65
|
} & {
|
|
64
66
|
name: string;
|
|
65
67
|
id: number;
|
|
68
|
+
description: string | null;
|
|
66
69
|
created_at: Date;
|
|
67
70
|
updated_at: Date;
|
|
68
71
|
locale_id: number;
|
|
@@ -75,12 +78,15 @@ export declare class DashboardComponentService {
|
|
|
75
78
|
created_at: Date;
|
|
76
79
|
updated_at: Date;
|
|
77
80
|
slug: string;
|
|
81
|
+
icon: string | null;
|
|
82
|
+
color: string | null;
|
|
78
83
|
min_width: number;
|
|
79
84
|
max_width: number | null;
|
|
80
85
|
min_height: number;
|
|
81
86
|
max_height: number | null;
|
|
82
87
|
height: number;
|
|
83
88
|
is_resizable: boolean;
|
|
89
|
+
stat_key: string | null;
|
|
84
90
|
}>;
|
|
85
91
|
updateComponent(id: number, data: UpdateDashboardComponentDTO, locale: string): Promise<{
|
|
86
92
|
dashboard_component_locale: ({
|
|
@@ -96,6 +102,7 @@ export declare class DashboardComponentService {
|
|
|
96
102
|
} & {
|
|
97
103
|
name: string;
|
|
98
104
|
id: number;
|
|
105
|
+
description: string | null;
|
|
99
106
|
created_at: Date;
|
|
100
107
|
updated_at: Date;
|
|
101
108
|
locale_id: number;
|
|
@@ -108,12 +115,15 @@ export declare class DashboardComponentService {
|
|
|
108
115
|
created_at: Date;
|
|
109
116
|
updated_at: Date;
|
|
110
117
|
slug: string;
|
|
118
|
+
icon: string | null;
|
|
119
|
+
color: string | null;
|
|
111
120
|
min_width: number;
|
|
112
121
|
max_width: number | null;
|
|
113
122
|
min_height: number;
|
|
114
123
|
max_height: number | null;
|
|
115
124
|
height: number;
|
|
116
125
|
is_resizable: boolean;
|
|
126
|
+
stat_key: string | null;
|
|
117
127
|
}>;
|
|
118
128
|
deleteComponent(id: number, locale: string): Promise<{
|
|
119
129
|
path: string;
|
|
@@ -122,12 +132,15 @@ export declare class DashboardComponentService {
|
|
|
122
132
|
created_at: Date;
|
|
123
133
|
updated_at: Date;
|
|
124
134
|
slug: string;
|
|
135
|
+
icon: string | null;
|
|
136
|
+
color: string | null;
|
|
125
137
|
min_width: number;
|
|
126
138
|
max_width: number | null;
|
|
127
139
|
min_height: number;
|
|
128
140
|
max_height: number | null;
|
|
129
141
|
height: number;
|
|
130
142
|
is_resizable: boolean;
|
|
143
|
+
stat_key: string | null;
|
|
131
144
|
}>;
|
|
132
145
|
}
|
|
133
146
|
//# sourceMappingURL=dashboard-component.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,OAAO,CAAC;AACf,qBACa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"dashboard-component.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOpD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,OAAO,CAAC;AACf,qBACa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,gBAAgB,CAAC,gBAAgB,KAAA;;;;;;;;;IA0CjC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqBvC,eAAe,CAAC,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwCjE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6C7E,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;CAejD"}
|
|
@@ -21,10 +21,22 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
21
21
|
constructor(prismaService, paginationService) {
|
|
22
22
|
this.prismaService = prismaService;
|
|
23
23
|
this.paginationService = paginationService;
|
|
24
|
-
this.modelName = 'dashboard_component';
|
|
25
|
-
this.foreignKey = 'component_id';
|
|
26
24
|
}
|
|
27
25
|
async getAllComponents(paginationParams) {
|
|
26
|
+
const fields = ['slug'];
|
|
27
|
+
const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
|
|
28
|
+
if (paginationParams.search) {
|
|
29
|
+
OR.push({
|
|
30
|
+
dashboard_component_locale: {
|
|
31
|
+
some: {
|
|
32
|
+
name: {
|
|
33
|
+
contains: paginationParams.search,
|
|
34
|
+
mode: 'insensitive',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
}
|
|
28
40
|
return this.paginationService.paginate(this.prismaService.dashboard_component, paginationParams, {
|
|
29
41
|
include: {
|
|
30
42
|
dashboard_component_locale: {
|
|
@@ -33,6 +45,9 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
33
45
|
},
|
|
34
46
|
},
|
|
35
47
|
},
|
|
48
|
+
where: {
|
|
49
|
+
OR
|
|
50
|
+
},
|
|
36
51
|
orderBy: {
|
|
37
52
|
created_at: 'desc',
|
|
38
53
|
},
|
|
@@ -67,6 +82,9 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
67
82
|
width: data.width,
|
|
68
83
|
height: data.height,
|
|
69
84
|
is_resizable: (_a = data.is_resizable) !== null && _a !== void 0 ? _a : true,
|
|
85
|
+
stat_key: data.stat_key || null,
|
|
86
|
+
icon: data.icon || null,
|
|
87
|
+
color: data.color || null,
|
|
70
88
|
},
|
|
71
89
|
});
|
|
72
90
|
if (data.locale) {
|
|
@@ -80,6 +98,7 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
80
98
|
dashboard_component_id: component.id,
|
|
81
99
|
locale_id: localeRecord.id,
|
|
82
100
|
name: localeData.name,
|
|
101
|
+
description: localeData.description || null,
|
|
83
102
|
},
|
|
84
103
|
});
|
|
85
104
|
}
|
|
@@ -100,6 +119,9 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
100
119
|
width: data.width,
|
|
101
120
|
height: data.height,
|
|
102
121
|
is_resizable: data.is_resizable,
|
|
122
|
+
stat_key: data.stat_key,
|
|
123
|
+
icon: data.icon,
|
|
124
|
+
color: data.color,
|
|
103
125
|
},
|
|
104
126
|
});
|
|
105
127
|
if (data.locale) {
|
|
@@ -116,6 +138,7 @@ let DashboardComponentService = class DashboardComponentService {
|
|
|
116
138
|
dashboard_component_id: id,
|
|
117
139
|
locale_id: localeRecord.id,
|
|
118
140
|
name: localeData.name,
|
|
141
|
+
description: localeData.description || null,
|
|
119
142
|
},
|
|
120
143
|
});
|
|
121
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-component.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4DAA4D;AAC5D,oDAAoD;AACpD,2CAKwB;AAMjB,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;
|
|
1
|
+
{"version":3,"file":"dashboard-component.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-component/dashboard-component.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4DAA4D;AAC5D,oDAAoD;AACpD,2CAKwB;AAMjB,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,gBAAgB,CAAC,gBAAgB;QACrC,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,CAAA;QACvB,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,uBAAuB,CACnD,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;YAC5B,EAAE,CAAC,IAAI,CAAC;gBACN,0BAA0B,EAAE;oBAC1B,IAAI,EAAE;wBACJ,IAAI,EAAE;4BACJ,QAAQ,EAAE,gBAAgB,CAAC,MAAM;4BACjC,IAAI,EAAE,aAAa;yBACpB;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CACpC,IAAI,CAAC,aAAa,CAAC,mBAAmB,EACtC,gBAAgB,EAChB;YACE,OAAO,EAAE;gBACP,0BAA0B,EAAE;oBAC1B,OAAO,E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EAAE,EAAE;SACd,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,0BAAiB,CACzB,IAAA,0BAAa,EAAC,4BAA4B,EAAE,MAAM,EAAE,+BAA+B,CAAC,CACrF,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,MAAM,CAAC;YACnD,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA3KY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC,CAAC,CAAA;qCADZ,0BAAa;QAET,kCAAiB;GAL5C,yBAAyB,CA2KrC"}
|
|
@@ -8,8 +8,12 @@ export declare class CreateDTO {
|
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
10
|
is_resizable?: boolean;
|
|
11
|
+
stat_key?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
color?: string;
|
|
11
14
|
locale: Record<string, {
|
|
12
15
|
name: string;
|
|
16
|
+
description?: string;
|
|
13
17
|
}>;
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=create.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,KAAK,CAAC,EAAE,MAAM,CAAC;IASf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChE"}
|
|
@@ -56,6 +56,21 @@ __decorate([
|
|
|
56
56
|
(0, class_validator_1.IsBoolean)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.booleanRequired', args.value) }),
|
|
57
57
|
__metadata("design:type", Boolean)
|
|
58
58
|
], CreateDTO.prototype, "is_resizable", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CreateDTO.prototype, "stat_key", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateDTO.prototype, "icon", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CreateDTO.prototype, "color", void 0);
|
|
59
74
|
__decorate([
|
|
60
75
|
(0, class_validator_1.IsObject)({
|
|
61
76
|
message: (args) => (0, api_locale_1.getLocaleText)('validation.localeMustBeObject', args.value),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAkG;AAElG,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAkG;AAElG,MAAa,SAAS;CAqDrB;AArDD,8BAqDC;AAnDC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AAGb;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CA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