@dative-gpi/foundation-core-domain 1.0.159 → 1.0.161-alert-tile
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/models/folders/folderInfos.ts +6 -0
- package/models/index.ts +1 -0
- package/models/playlists/index.ts +3 -0
- package/models/playlists/playlistDashboard.ts +31 -0
- package/models/playlists/playlistDetails.ts +32 -0
- package/models/playlists/playlistInfos.ts +39 -0
- package/models/userOrganisations/userOrganisationDetails.ts +2 -1
- package/models/userOrganisations/userOrganisationInfos.ts +3 -0
- package/package.json +4 -4
|
@@ -14,6 +14,8 @@ export class FolderInfos {
|
|
|
14
14
|
colors: string[];
|
|
15
15
|
imageId: string | null;
|
|
16
16
|
path: PathCrumb[];
|
|
17
|
+
recursiveFoldersIds: string[];
|
|
18
|
+
recursiveDashboardsIds: string[];
|
|
17
19
|
|
|
18
20
|
constructor(params: FolderInfosDTO) {
|
|
19
21
|
this.id = params.id;
|
|
@@ -28,6 +30,8 @@ export class FolderInfos {
|
|
|
28
30
|
this.colors = params.colors.slice();
|
|
29
31
|
this.imageId = params.imageId;
|
|
30
32
|
this.path = params.path.map(dto => new PathCrumb(dto)).sort((a, b) => b.index - a.index);
|
|
33
|
+
this.recursiveFoldersIds = params.recursiveFoldersIds ? params.recursiveFoldersIds.slice() : [];
|
|
34
|
+
this.recursiveDashboardsIds = params.recursiveDashboardsIds ? params.recursiveDashboardsIds.slice() : [];
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
|
|
@@ -44,6 +48,8 @@ export interface FolderInfosDTO {
|
|
|
44
48
|
colors: string[];
|
|
45
49
|
imageId: string | null;
|
|
46
50
|
path: PathCrumbDTO[];
|
|
51
|
+
recursiveFoldersIds?: string[];
|
|
52
|
+
recursiveDashboardsIds?: string[];
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
export interface FolderFilters {
|
package/models/index.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from "./models";
|
|
|
38
38
|
export * from "./modelStatuses"; // No service
|
|
39
39
|
export * from "./organisations";
|
|
40
40
|
export * from "./permissionCategories";
|
|
41
|
+
export * from "./playlists";
|
|
41
42
|
export * from "./roleOrganisations";
|
|
42
43
|
export * from "./roleOrganisationTypes";
|
|
43
44
|
export * from "./roles";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DashboardType } from '@dative-gpi/foundation-shared-domain/enums';
|
|
2
|
+
|
|
3
|
+
export class PlaylistDashboard
|
|
4
|
+
{
|
|
5
|
+
id: string;
|
|
6
|
+
dashboardScopedId: string;
|
|
7
|
+
dashboardType: DashboardType;
|
|
8
|
+
index: number;
|
|
9
|
+
|
|
10
|
+
constructor(params: PlaylistDashboardDTO)
|
|
11
|
+
{
|
|
12
|
+
this.id = params.id;
|
|
13
|
+
this.dashboardScopedId = params.dashboardScopedId;
|
|
14
|
+
this.dashboardType = params.dashboardType as DashboardType;
|
|
15
|
+
this.index = params.index;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface PlaylistDashboardDTO
|
|
20
|
+
{
|
|
21
|
+
id: string;
|
|
22
|
+
dashboardScopedId: string;
|
|
23
|
+
dashboardType: number;
|
|
24
|
+
index: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface CreatePlaylistDashboardDTO {
|
|
28
|
+
dashboardScopedId: string;
|
|
29
|
+
dashboardType: number;
|
|
30
|
+
index: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PlaylistInfos, type PlaylistInfosDTO } from "./playlistInfos";
|
|
2
|
+
import type { CreatePlaylistDashboardDTO } from "./playlistDashboard";
|
|
3
|
+
|
|
4
|
+
export class PlaylistDetails extends PlaylistInfos {
|
|
5
|
+
|
|
6
|
+
constructor(params: PlaylistDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PlaylistDetailsDTO extends PlaylistInfosDTO {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CreatePlaylistDTO {
|
|
15
|
+
label: string;
|
|
16
|
+
description: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
code: string;
|
|
19
|
+
looped: boolean;
|
|
20
|
+
delay: number;
|
|
21
|
+
dashboards: CreatePlaylistDashboardDTO[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface UpdatePlaylistDTO {
|
|
25
|
+
label: string;
|
|
26
|
+
description: string;
|
|
27
|
+
icon: string;
|
|
28
|
+
code: string;
|
|
29
|
+
looped: boolean;
|
|
30
|
+
delay: number;
|
|
31
|
+
dashboards: CreatePlaylistDashboardDTO[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PlaylistDashboard, type PlaylistDashboardDTO } from './playlistDashboard';
|
|
2
|
+
|
|
3
|
+
export class PlaylistInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
code: string;
|
|
9
|
+
looped: boolean;
|
|
10
|
+
delay: number;
|
|
11
|
+
dashboards: PlaylistDashboard[];
|
|
12
|
+
|
|
13
|
+
constructor(params: PlaylistInfosDTO) {
|
|
14
|
+
this.id = params.id;
|
|
15
|
+
this.label = params.label;
|
|
16
|
+
this.description = params.description;
|
|
17
|
+
this.icon = params.icon;
|
|
18
|
+
this.code = params.code;
|
|
19
|
+
this.looped = params.looped;
|
|
20
|
+
this.delay = params.delay;
|
|
21
|
+
this.dashboards = params.dashboards.map((d: PlaylistDashboardDTO) => new PlaylistDashboard(d));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface PlaylistInfosDTO {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
description: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
code: string;
|
|
31
|
+
looped: boolean;
|
|
32
|
+
delay: number;
|
|
33
|
+
dashboards: PlaylistDashboardDTO[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PlaylistFilters {
|
|
37
|
+
playlistsIds?: string[] | null;
|
|
38
|
+
search?: string | null;
|
|
39
|
+
}
|
|
@@ -15,7 +15,7 @@ export class UserOrganisationDetails extends UserOrganisationInfos {
|
|
|
15
15
|
|
|
16
16
|
constructor(params: UserOrganisationDetailsDTO) {
|
|
17
17
|
super(params);
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
this.mainDashboardType = params.mainDashboardType as DashboardType;
|
|
20
20
|
this.mainDashboardId = params.mainDashboardId;
|
|
21
21
|
this.mainDashboardLabel = params.mainDashboardLabel;
|
|
@@ -52,6 +52,7 @@ export interface UpdateUserOrganisationDTO {
|
|
|
52
52
|
roleId: string | null;
|
|
53
53
|
mainDashboardType: DashboardType;
|
|
54
54
|
mainDashboardId: string | null;
|
|
55
|
+
startOnKioskMode: boolean;
|
|
55
56
|
tags: string[];
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -21,6 +21,7 @@ export class UserOrganisationInfos {
|
|
|
21
21
|
firstName: string;
|
|
22
22
|
lastName: string;
|
|
23
23
|
name: string;
|
|
24
|
+
startOnKioskMode: boolean;
|
|
24
25
|
tags: string[];
|
|
25
26
|
|
|
26
27
|
constructor(params: UserOrganisationInfosDTO) {
|
|
@@ -43,6 +44,7 @@ export class UserOrganisationInfos {
|
|
|
43
44
|
this.firstName = params.firstName;
|
|
44
45
|
this.lastName = params.lastName;
|
|
45
46
|
this.name = params.name;
|
|
47
|
+
this.startOnKioskMode = params.startOnKioskMode;
|
|
46
48
|
this.tags = params.tags && params.tags.slice() || [];
|
|
47
49
|
}
|
|
48
50
|
}
|
|
@@ -67,6 +69,7 @@ export interface UserOrganisationInfosDTO {
|
|
|
67
69
|
firstName: string;
|
|
68
70
|
lastName: string;
|
|
69
71
|
name: string;
|
|
72
|
+
startOnKioskMode: boolean;
|
|
70
73
|
tags: string[] | null;
|
|
71
74
|
}
|
|
72
75
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.161-alert-tile",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.161-alert-tile",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.161-alert-tile"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "21e74ffda11147c0413a3424fe0df561560bcab3"
|
|
17
17
|
}
|