@dative-gpi/foundation-core-domain 0.0.11 → 0.0.12
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/alerts/alertInfos.ts +1 -1
- package/models/alerts/alertState.ts +1 -1
- package/models/authTokens/authTokenInfos.ts +1 -1
- package/models/comments/commentInfos.ts +1 -1
- package/models/connectivityAlerts/connectivityAlertInfos.ts +2 -2
- package/models/customPropertyValues/customPropertyValueInfos.ts +1 -1
- package/models/deviceConnectivities/deviceConnectivityInfos.ts +1 -1
- package/models/deviceOrganisations/deviceOrganisationAlert.ts +1 -1
- package/models/deviceStatuses/deviceStatusInfos.ts +1 -1
- package/models/tables/columnInfos.ts +1 -0
- package/models/tables/tableInfos.ts +5 -3
- package/package.json +3 -2
- package/index.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
-
import { DatesTools } from "@dative-gpi/foundation-shared-
|
|
2
|
+
import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
4
|
import { AlertDataDefinition, AlertDataDefinitionDTO } from "./alertDataDefinition";
|
|
5
5
|
import { AlertState, AlertStateDTO } from "./alertState";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertStatus } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
-
import { DatesTools } from "@dative-gpi/foundation-shared-
|
|
2
|
+
import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
4
|
import { AlertDataDefinition, AlertDataDefinitionDTO } from "./alertDataDefinition";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AlertStatus } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
|
|
2
3
|
|
|
3
4
|
import { DeviceConnectivityInfos, DeviceConnectivityInfosDTO } from "../deviceConnectivities/deviceConnectivityInfos";
|
|
4
|
-
import { AlertStatus } from "../enums/alertEnums";
|
|
5
5
|
|
|
6
6
|
export class ConnectivityAlertInfos {
|
|
7
7
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConnectivityStatus } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
-
import { DatesTools } from "@dative-gpi/foundation-shared-
|
|
2
|
+
import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
4
|
export class DeviceConnectivityInfos {
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
-
import { DatesTools } from "@dative-gpi/foundation-shared-
|
|
2
|
+
import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
4
|
export class DeviceOrganisationAlert {
|
|
5
5
|
id: string;
|
|
@@ -4,16 +4,18 @@ import { TableOrder, TableOrderDTO } from "./tableOrder";
|
|
|
4
4
|
export class TableInfos {
|
|
5
5
|
id: string;
|
|
6
6
|
code: string;
|
|
7
|
-
mode: "table" | "iterator";
|
|
8
7
|
columns: ColumnInfos[];
|
|
8
|
+
|
|
9
|
+
// Depends on [OrganisationType, UserOrganisation]
|
|
10
|
+
mode: "table" | "iterator";
|
|
9
11
|
sortBy: TableOrder | undefined;
|
|
10
12
|
rowsPerPage: number;
|
|
11
13
|
|
|
12
14
|
constructor(dto: TableInfosDTO) {
|
|
13
15
|
this.id = dto.id;
|
|
14
16
|
this.code = dto.code;
|
|
15
|
-
this.mode = dto.mode;
|
|
16
17
|
this.columns = dto.columns?.map(dto => new ColumnInfos(dto)) ?? [];
|
|
18
|
+
this.mode = dto.mode;
|
|
17
19
|
this.sortBy = dto.sortBy ? new TableOrder(dto.sortBy) : undefined;
|
|
18
20
|
this.rowsPerPage = dto.rowsPerPage;
|
|
19
21
|
}
|
|
@@ -22,8 +24,8 @@ export class TableInfos {
|
|
|
22
24
|
export interface TableInfosDTO {
|
|
23
25
|
id: string;
|
|
24
26
|
code: string;
|
|
25
|
-
mode: "table" | "iterator";
|
|
26
27
|
columns: ColumnInfosDTO[];
|
|
28
|
+
mode: "table" | "iterator";
|
|
27
29
|
sortBy: TableOrderDTO | undefined;
|
|
28
30
|
rowsPerPage: number;
|
|
29
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
|
-
"
|
|
3
|
+
"sideEffects": false,
|
|
4
|
+
"version": "0.0.12",
|
|
4
5
|
"description": "",
|
|
5
6
|
"publishConfig": {
|
|
6
7
|
"access": "public"
|
|
@@ -8,5 +9,5 @@
|
|
|
8
9
|
"main": "index.ts",
|
|
9
10
|
"author": "",
|
|
10
11
|
"license": "ISC",
|
|
11
|
-
"gitHead": "
|
|
12
|
+
"gitHead": "73c686b3b0343ac4b42d34c2aa7cf7604ad0d298"
|
|
12
13
|
}
|
package/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models";
|