@dative-gpi/foundation-core-domain 0.0.69 → 0.0.71
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/dashboardOrganisationTypes/dashboardOrganisationTypeInfos.ts +3 -0
- package/models/dashboardOrganisations/dashboardOrganisationInfos.ts +3 -0
- package/models/folders/folderInfos.ts +3 -0
- package/models/index.ts +2 -1
- package/models/userOrganisationColumns/index.ts +2 -0
- package/models/userOrganisationColumns/userOrganisationColumnDetails.ts +16 -0
- package/models/{tables/columnInfos.ts → userOrganisationColumns/userOrganisationColumnInfos.ts} +4 -4
- package/models/userOrganisationTables/index.ts +2 -0
- package/models/userOrganisationTables/userOrganisationTableDetails.ts +19 -0
- package/models/userOrganisationTables/userOrganisationTableInfos.ts +33 -0
- package/models/userOrganisations/userOrganisationInfos.ts +6 -0
- package/package.json +2 -2
- package/models/tables/columnDetails.ts +0 -16
- package/models/tables/index.ts +0 -6
- package/models/tables/tableDetails.ts +0 -19
- package/models/tables/tableFilter.ts +0 -17
- package/models/tables/tableInfos.ts +0 -31
- package/models/tables/tableOrder.ts +0 -14
|
@@ -11,6 +11,7 @@ export class DashboardOrganisationTypeInfos {
|
|
|
11
11
|
code: string;
|
|
12
12
|
icon: string;
|
|
13
13
|
tags: string[];
|
|
14
|
+
colors: string[];
|
|
14
15
|
|
|
15
16
|
constructor(params: DashboardOrganisationTypeInfosDTO) {
|
|
16
17
|
this.id = params.id;
|
|
@@ -23,6 +24,7 @@ export class DashboardOrganisationTypeInfos {
|
|
|
23
24
|
this.code = params.code;
|
|
24
25
|
this.icon = params.icon;
|
|
25
26
|
this.tags = params.tags.slice();
|
|
27
|
+
this.colors = params.colors.slice();
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
|
|
@@ -37,6 +39,7 @@ export interface DashboardOrganisationTypeInfosDTO {
|
|
|
37
39
|
code: string;
|
|
38
40
|
icon: string;
|
|
39
41
|
tags: string[];
|
|
42
|
+
colors: string[];
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export interface DashboardOrganisationTypeFilters {
|
|
@@ -13,6 +13,7 @@ export class DashboardOrganisationInfos {
|
|
|
13
13
|
code: string;
|
|
14
14
|
icon: string;
|
|
15
15
|
tags: string[];
|
|
16
|
+
colors: string[];
|
|
16
17
|
|
|
17
18
|
constructor(params: DashboardOrganisationInfosDTO) {
|
|
18
19
|
this.id = params.id;
|
|
@@ -27,6 +28,7 @@ export class DashboardOrganisationInfos {
|
|
|
27
28
|
this.code = params.code;
|
|
28
29
|
this.icon = params.icon;
|
|
29
30
|
this.tags = params.tags.slice();
|
|
31
|
+
this.colors = params.colors.slice();
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -43,6 +45,7 @@ export interface DashboardOrganisationInfosDTO {
|
|
|
43
45
|
code: string;
|
|
44
46
|
icon: string;
|
|
45
47
|
tags: string[];
|
|
48
|
+
colors: string[];
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
export interface DashboardOrganisationFilters {
|
|
@@ -10,6 +10,7 @@ export class FolderInfos {
|
|
|
10
10
|
icon: string;
|
|
11
11
|
code: string;
|
|
12
12
|
tags: string[];
|
|
13
|
+
colors: string[];
|
|
13
14
|
imageId?: string;
|
|
14
15
|
imageBlurHash: string;
|
|
15
16
|
imageHeight?: number;
|
|
@@ -26,6 +27,7 @@ export class FolderInfos {
|
|
|
26
27
|
this.icon = params.icon;
|
|
27
28
|
this.code = params.code;
|
|
28
29
|
this.tags = params.tags.slice();
|
|
30
|
+
this.colors = params.colors.slice();
|
|
29
31
|
this.imageId = params.imageId;
|
|
30
32
|
this.imageBlurHash = params.imageBlurHash;
|
|
31
33
|
this.imageHeight = params.imageHeight;
|
|
@@ -44,6 +46,7 @@ export interface FolderInfosDTO {
|
|
|
44
46
|
icon: string;
|
|
45
47
|
code: string;
|
|
46
48
|
tags: string[];
|
|
49
|
+
colors: string[];
|
|
47
50
|
imageId?: string;
|
|
48
51
|
imageBlurHash: string;
|
|
49
52
|
imageHeight?: number;
|
package/models/index.ts
CHANGED
|
@@ -37,7 +37,8 @@ export * from "./scenarioDiffusions";
|
|
|
37
37
|
export * from "./scenarioOrganisations";
|
|
38
38
|
export * from "./scenarioOrganisationTypes";
|
|
39
39
|
export * from "./shared"; // No service
|
|
40
|
-
export * from "./
|
|
40
|
+
export * from "./userOrganisationColumns"; // No service
|
|
41
41
|
export * from "./userOrganisations";
|
|
42
|
+
export * from "./userOrganisationTables";
|
|
42
43
|
export * from "./widgets"; // No service
|
|
43
44
|
export * from "./widgetTemplates";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UserOrganisationColumnInfos, UserOrganisationColumnInfosDTO } from "./userOrganisationColumnInfos";
|
|
2
|
+
|
|
3
|
+
export class UserOrganisationColumnDetails extends UserOrganisationColumnInfos {
|
|
4
|
+
constructor(dto: UserOrganisationColumnInfosDTO) {
|
|
5
|
+
super(dto);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface UserOrganisationColumnDetailsDTO extends UserOrganisationColumnInfosDTO {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface UpdateUserOrganisationColumnDTO {
|
|
13
|
+
columnId: string;
|
|
14
|
+
index: number;
|
|
15
|
+
hidden: boolean;
|
|
16
|
+
}
|
package/models/{tables/columnInfos.ts → userOrganisationColumns/userOrganisationColumnInfos.ts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export class
|
|
1
|
+
export class UserOrganisationColumnInfos {
|
|
2
2
|
columnId: string;
|
|
3
3
|
text: string;
|
|
4
4
|
value: string;
|
|
5
5
|
sortable: boolean;
|
|
6
6
|
filterable: boolean;
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
// Depends on [OrganisationType, UserOrganisation]
|
|
9
9
|
index: number;
|
|
10
10
|
hidden: boolean;
|
|
11
11
|
|
|
12
|
-
constructor(dto:
|
|
12
|
+
constructor(dto: UserOrganisationColumnInfosDTO) {
|
|
13
13
|
this.columnId = dto.columnId;
|
|
14
14
|
this.text = dto.text;
|
|
15
15
|
this.value = dto.value;
|
|
@@ -20,7 +20,7 @@ export class ColumnInfos {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface
|
|
23
|
+
export interface UserOrganisationColumnInfosDTO {
|
|
24
24
|
columnId: string;
|
|
25
25
|
text: string;
|
|
26
26
|
value: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UserOrganisationTableInfos, UserOrganisationTableInfosDTO } from "./userOrganisationTableInfos";
|
|
2
|
+
import { UpdateUserOrganisationColumnDTO } from "../userOrganisationColumns/userOrganisationColumnDetails";
|
|
3
|
+
|
|
4
|
+
export class UserOrganisationTableDetails extends UserOrganisationTableInfos {
|
|
5
|
+
constructor(dto: UserOrganisationTableDetailsDTO) {
|
|
6
|
+
super(dto);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface UserOrganisationTableDetailsDTO extends UserOrganisationTableInfosDTO {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface UpdateUserOrganisationTableDTO {
|
|
14
|
+
mode: "table" | "iterator";
|
|
15
|
+
rowsPerPage: number;
|
|
16
|
+
sortByKey?: string;
|
|
17
|
+
sortByOrder?: string;
|
|
18
|
+
columns: UpdateUserOrganisationColumnDTO[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UserOrganisationColumnInfos, UserOrganisationColumnInfosDTO } from "../userOrganisationColumns/userOrganisationColumnInfos";
|
|
2
|
+
|
|
3
|
+
export class UserOrganisationTableInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
code: string;
|
|
6
|
+
columns: UserOrganisationColumnInfos[];
|
|
7
|
+
|
|
8
|
+
// Depends on [OrganisationType, UserOrganisation]
|
|
9
|
+
mode: "table" | "iterator";
|
|
10
|
+
rowsPerPage: number;
|
|
11
|
+
sortByKey?: string;
|
|
12
|
+
sortByOrder?: string;
|
|
13
|
+
|
|
14
|
+
constructor(dto: UserOrganisationTableInfosDTO) {
|
|
15
|
+
this.id = dto.id;
|
|
16
|
+
this.code = dto.code;
|
|
17
|
+
this.mode = dto.mode;
|
|
18
|
+
this.rowsPerPage = dto.rowsPerPage;
|
|
19
|
+
this.sortByKey = dto.sortByKey;
|
|
20
|
+
this.sortByOrder = dto.sortByOrder;
|
|
21
|
+
this.columns = dto.columns?.map(dto => new UserOrganisationColumnInfos(dto)) ?? [];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UserOrganisationTableInfosDTO {
|
|
26
|
+
id: string;
|
|
27
|
+
code: string;
|
|
28
|
+
mode: "table" | "iterator";
|
|
29
|
+
rowsPerPage: number;
|
|
30
|
+
sortByKey?: string;
|
|
31
|
+
sortByOrder?: string;
|
|
32
|
+
columns: UserOrganisationColumnInfosDTO[];
|
|
33
|
+
}
|
|
@@ -8,6 +8,8 @@ export class UserOrganisationInfos {
|
|
|
8
8
|
roleType: RoleType;
|
|
9
9
|
roleId?: string;
|
|
10
10
|
roleLabel: string;
|
|
11
|
+
roleIcon: string;
|
|
12
|
+
admin: boolean;
|
|
11
13
|
imageId?: string;
|
|
12
14
|
imageBlurHash?: string;
|
|
13
15
|
imageHeight?: number;
|
|
@@ -32,6 +34,8 @@ export class UserOrganisationInfos {
|
|
|
32
34
|
this.roleType = params.roleType;
|
|
33
35
|
this.roleId = params.roleId;
|
|
34
36
|
this.roleLabel = params.roleLabel;
|
|
37
|
+
this.roleIcon = params.roleIcon;
|
|
38
|
+
this.admin = params.admin;
|
|
35
39
|
this.imageId = params.imageId;
|
|
36
40
|
this.imageBlurHash = params.imageBlurHash;
|
|
37
41
|
this.imageHeight = params.imageHeight;
|
|
@@ -58,6 +62,8 @@ export interface UserOrganisationInfosDTO {
|
|
|
58
62
|
roleType: RoleType;
|
|
59
63
|
roleId?: string;
|
|
60
64
|
roleLabel: string;
|
|
65
|
+
roleIcon: string;
|
|
66
|
+
admin: boolean;
|
|
61
67
|
imageId?: string;
|
|
62
68
|
imageBlurHash?: string;
|
|
63
69
|
imageHeight?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.71",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"main": "index.ts",
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
|
-
"gitHead": "
|
|
12
|
+
"gitHead": "72097470e9163b0da5e7ab5d67496ac5c403f918"
|
|
13
13
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ColumnInfos, ColumnInfosDTO } from "./columnInfos";
|
|
2
|
-
|
|
3
|
-
export class ColumnDetails extends ColumnInfos {
|
|
4
|
-
constructor(dto: ColumnInfosDTO) {
|
|
5
|
-
super(dto);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface ColumnDetailsDTO extends ColumnInfosDTO {
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface UpdateColumnDTO {
|
|
13
|
-
columnId: string;
|
|
14
|
-
index: number;
|
|
15
|
-
hidden: boolean;
|
|
16
|
-
}
|
package/models/tables/index.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TableInfos, TableInfosDTO } from "./tableInfos";
|
|
2
|
-
import { UpdateColumnDTO } from "./columnDetails";
|
|
3
|
-
import { TableOrderDTO } from "./tableOrder";
|
|
4
|
-
|
|
5
|
-
export class TableDetails extends TableInfos {
|
|
6
|
-
constructor(dto: TableDetailsDTO) {
|
|
7
|
-
super(dto);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface TableDetailsDTO extends TableInfosDTO {
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface UpdateTableDTO {
|
|
15
|
-
mode: "table" | "iterator";
|
|
16
|
-
rowsPerPage: number;
|
|
17
|
-
columns: UpdateColumnDTO[];
|
|
18
|
-
sortBy: TableOrderDTO | undefined;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class TableFilter {
|
|
2
|
-
key: string;
|
|
3
|
-
value: string;
|
|
4
|
-
hidden: boolean;
|
|
5
|
-
|
|
6
|
-
constructor(dto: TableFilterDTO) {
|
|
7
|
-
this.key = dto.key;
|
|
8
|
-
this.value = dto.value;
|
|
9
|
-
this.hidden = dto.hidden;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface TableFilterDTO {
|
|
14
|
-
key: string;
|
|
15
|
-
value: string;
|
|
16
|
-
hidden: boolean;
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ColumnInfos, ColumnInfosDTO } from "./columnInfos";
|
|
2
|
-
import { TableOrder, TableOrderDTO } from "./tableOrder";
|
|
3
|
-
|
|
4
|
-
export class TableInfos {
|
|
5
|
-
id: string;
|
|
6
|
-
code: string;
|
|
7
|
-
columns: ColumnInfos[];
|
|
8
|
-
|
|
9
|
-
// Depends on [OrganisationType, UserOrganisation]
|
|
10
|
-
mode: "table" | "iterator";
|
|
11
|
-
sortBy: TableOrder | undefined;
|
|
12
|
-
rowsPerPage: number;
|
|
13
|
-
|
|
14
|
-
constructor(dto: TableInfosDTO) {
|
|
15
|
-
this.id = dto.id;
|
|
16
|
-
this.code = dto.code;
|
|
17
|
-
this.columns = dto.columns?.map(dto => new ColumnInfos(dto)) ?? [];
|
|
18
|
-
this.mode = dto.mode;
|
|
19
|
-
this.sortBy = dto.sortBy ? new TableOrder(dto.sortBy) : undefined;
|
|
20
|
-
this.rowsPerPage = dto.rowsPerPage;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface TableInfosDTO {
|
|
25
|
-
id: string;
|
|
26
|
-
code: string;
|
|
27
|
-
columns: ColumnInfosDTO[];
|
|
28
|
-
mode: "table" | "iterator";
|
|
29
|
-
sortBy: TableOrderDTO | undefined;
|
|
30
|
-
rowsPerPage: number;
|
|
31
|
-
}
|