@dative-gpi/foundation-core-domain 1.0.158 → 1.0.159-kiosk
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/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
|
+
dashboardScopeId: string;
|
|
7
|
+
dashboardType: DashboardType;
|
|
8
|
+
index: number;
|
|
9
|
+
|
|
10
|
+
constructor(params: PlaylistDashboardDTO)
|
|
11
|
+
{
|
|
12
|
+
this.id = params.id;
|
|
13
|
+
this.dashboardScopeId = params.dashboardScopeId;
|
|
14
|
+
this.dashboardType = params.dashboardType as DashboardType;
|
|
15
|
+
this.index = params.index;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface PlaylistDashboardDTO
|
|
20
|
+
{
|
|
21
|
+
id: string;
|
|
22
|
+
dashboardScopeId: string;
|
|
23
|
+
dashboardType: number;
|
|
24
|
+
index: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface CreatePlaylistDashboardDTO {
|
|
28
|
+
dashboardScopeId: 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
|
+
dashboard: 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.dashboard = params.dashboard.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
|
+
dashboard: PlaylistDashboardDTO[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PlaylistFilters {
|
|
37
|
+
playlistsIds?: string[] | null;
|
|
38
|
+
search?: string | null;
|
|
39
|
+
}
|
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.159-kiosk",
|
|
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.159-kiosk",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.159-kiosk"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "23ad4df99de67168e08d72cdba94acd9d95441e0"
|
|
17
17
|
}
|