@dative-gpi/foundation-shared-domain 1.0.45 → 1.0.47
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/enums/actions.ts +6 -0
- package/enums/applications.ts +16 -0
- package/enums/charts.ts +115 -0
- package/enums/customProperties.ts +12 -0
- package/enums/datas.ts +7 -0
- package/enums/filters.ts +12 -0
- package/enums/index.ts +16 -0
- package/enums/notifications.ts +6 -0
- package/enums/roles.ts +7 -0
- package/enums/users.ts +12 -0
- package/models/authTokens/authTokenInfos.ts +3 -3
- package/models/index.ts +0 -1
- package/models/organisationTypes/organisationTypeDetails.ts +1 -1
- package/models/organisationTypes/organisationTypeInfos.ts +1 -1
- package/models/organisations/organisationDetails.ts +1 -1
- package/models/terminals/terminalInfos.ts +2 -2
- package/package.json +2 -2
- package/tools/autoRefresh.ts +1 -1
- package/tools/datesTools.ts +1 -1
- package/models/enums/applicationEnums.ts +0 -5
- package/models/enums/index.ts +0 -7
- /package/{models/enums/alertEnums.ts → enums/alerts.ts} +0 -0
- /package/{models/enums/deviceEnums.ts → enums/connectivities.ts} +0 -0
- /package/{models/enums/dashboardEnums.ts → enums/dashboards.ts} +0 -0
- /package/{models/enums/dateEnums.ts → enums/dates.ts} +0 -0
- /package/{models/enums/listEnums.ts → enums/lists.ts} +0 -0
- /package/{models/enums/timeUnit.ts → enums/times.ts} +0 -0
package/enums/actions.ts
ADDED
package/enums/charts.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export enum ChartOrigin {
|
|
2
|
+
None = 0,
|
|
3
|
+
Organisation = 1,
|
|
4
|
+
OrganisationType = 2
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export enum ChartType {
|
|
8
|
+
None = 0,
|
|
9
|
+
XY = 1,
|
|
10
|
+
Pie = 2,
|
|
11
|
+
Heatmap = 3,
|
|
12
|
+
Slider = 4,
|
|
13
|
+
Gauge = 5,
|
|
14
|
+
ScoreCard = 6,
|
|
15
|
+
Table = 7
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ColorSets {
|
|
19
|
+
Default = 0,
|
|
20
|
+
Grafana = 1,
|
|
21
|
+
Kelly = 2,
|
|
22
|
+
Armytage = 3,
|
|
23
|
+
ZeileisHornikMurrell = 4,
|
|
24
|
+
Hash = 5
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum AxisType {
|
|
28
|
+
None = 0,
|
|
29
|
+
Date = 1,
|
|
30
|
+
Value = 2,
|
|
31
|
+
Category = 3
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export enum SerieType {
|
|
35
|
+
None = 0,
|
|
36
|
+
Lines = 1,
|
|
37
|
+
Area = 2,
|
|
38
|
+
Range = 3,
|
|
39
|
+
Histogram = 4,
|
|
40
|
+
Operation = 5,
|
|
41
|
+
Planning = 6,
|
|
42
|
+
ScatterPlot = 7,
|
|
43
|
+
Top = 8,
|
|
44
|
+
Bars = 9,
|
|
45
|
+
StackedBars = 10,
|
|
46
|
+
Pie = 11,
|
|
47
|
+
Heatmap = 12,
|
|
48
|
+
Slider = 13,
|
|
49
|
+
Gauge = 14,
|
|
50
|
+
ScoreCard = 15,
|
|
51
|
+
Table = 16
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export enum PlotPer {
|
|
55
|
+
None = 0,
|
|
56
|
+
SinglePlot = 1,
|
|
57
|
+
Model = 2,
|
|
58
|
+
Group = 3,
|
|
59
|
+
Location = 4,
|
|
60
|
+
Device = 5
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export enum AggregationType {
|
|
64
|
+
None = 0,
|
|
65
|
+
Sum = 1,
|
|
66
|
+
Cardinal = 2,
|
|
67
|
+
Mean = 3,
|
|
68
|
+
Median = 4,
|
|
69
|
+
First = 5,
|
|
70
|
+
Last = 6,
|
|
71
|
+
Difference = 7,
|
|
72
|
+
Minimum = 8,
|
|
73
|
+
Maximum = 9,
|
|
74
|
+
Range = 10
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export enum PlanningType {
|
|
78
|
+
None = 0,
|
|
79
|
+
UntilNext = 1,
|
|
80
|
+
ElapsedTime = 2,
|
|
81
|
+
SinglePoint = 3
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export enum DisplayAs {
|
|
85
|
+
None = 0,
|
|
86
|
+
Bars = 1,
|
|
87
|
+
Lines = 2,
|
|
88
|
+
Points = 3
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export enum OperationOn {
|
|
92
|
+
None = 0,
|
|
93
|
+
SameGroup = 1,
|
|
94
|
+
SameEntity = 2,
|
|
95
|
+
SameGroupAndEntity = 3
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export enum HeatmapRule {
|
|
99
|
+
None = 0,
|
|
100
|
+
Gradient = 1,
|
|
101
|
+
Ranges = 2,
|
|
102
|
+
Fixed = 3
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export enum PieBreakdown {
|
|
106
|
+
Entity = 0,
|
|
107
|
+
Serie = 1,
|
|
108
|
+
Group = 2
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export enum Position {
|
|
112
|
+
None = 0,
|
|
113
|
+
Abscissa = 1,
|
|
114
|
+
Ordinate = 2
|
|
115
|
+
}
|
package/enums/datas.ts
ADDED
package/enums/filters.ts
ADDED
package/enums/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./actions";
|
|
2
|
+
export * from "./alerts";
|
|
3
|
+
export * from "./applications";
|
|
4
|
+
export * from "./charts";
|
|
5
|
+
export * from "./connectivities";
|
|
6
|
+
export * from "./customProperties";
|
|
7
|
+
export * from "./dashboards";
|
|
8
|
+
export * from "./datas";
|
|
9
|
+
export * from "./dates";
|
|
10
|
+
export * from "./filters";
|
|
11
|
+
export * from "./index";
|
|
12
|
+
export * from "./lists";
|
|
13
|
+
export * from "./notifications";
|
|
14
|
+
export * from "./roles";
|
|
15
|
+
export * from "./times";
|
|
16
|
+
export * from "./users";
|
package/enums/roles.ts
ADDED
package/enums/users.ts
ADDED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isoToEpoch } from "../../tools";
|
|
2
2
|
|
|
3
3
|
export class AuthTokenInfos {
|
|
4
4
|
id: string;
|
|
@@ -9,8 +9,8 @@ export class AuthTokenInfos {
|
|
|
9
9
|
constructor(params: AuthTokenInfosDTO) {
|
|
10
10
|
this.id = params.id;
|
|
11
11
|
this.label = params.label;
|
|
12
|
-
this.creationDate =
|
|
13
|
-
this.dateMax =
|
|
12
|
+
this.creationDate = isoToEpoch(params.creationDate);
|
|
13
|
+
this.dateMax = isoToEpoch(params.dateMax);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
package/models/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OrganisationTypeInfosDTO } from "./organisationTypeInfos";
|
|
2
2
|
import { OrganisationTypeInfos } from "./organisationTypeInfos";
|
|
3
|
-
import type { DashboardType } from "
|
|
3
|
+
import type { DashboardType } from "../../enums/dashboards";
|
|
4
4
|
|
|
5
5
|
export class OrganisationTypeDetails extends OrganisationTypeInfos {
|
|
6
6
|
description: string;
|
|
@@ -2,7 +2,7 @@ import type { PermissionInfosDTO } from "../permissions/permissionInfos";
|
|
|
2
2
|
import { PermissionInfos } from "../permissions/permissionInfos";
|
|
3
3
|
import type { OrganisationInfosDTO } from "./organisationInfos";
|
|
4
4
|
import { OrganisationInfos } from "./organisationInfos";
|
|
5
|
-
import type { DashboardType } from "
|
|
5
|
+
import type { DashboardType } from "../../enums/dashboards";
|
|
6
6
|
|
|
7
7
|
export class OrganisationDetails extends OrganisationInfos {
|
|
8
8
|
code: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isoToEpoch } from "../../tools";
|
|
2
2
|
|
|
3
3
|
export class TerminalInfos {
|
|
4
4
|
id: string;
|
|
@@ -17,7 +17,7 @@ export class TerminalInfos {
|
|
|
17
17
|
this.icon = params.icon;
|
|
18
18
|
this.key = params.key;
|
|
19
19
|
this.location = params.location;
|
|
20
|
-
this.lastConnection =
|
|
20
|
+
this.lastConnection = isoToEpoch(params.lastConnection);
|
|
21
21
|
this.token = params.token;
|
|
22
22
|
}
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.47",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"date-fns": "^3.6.0"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "6a6b6c8bbe0727f403dacdb5813c199a4e0cc104"
|
|
16
16
|
}
|
package/tools/autoRefresh.ts
CHANGED
package/tools/datesTools.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const OPTIONS: { [key: string]: Intl.DateTimeFormatOptions } = {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export const
|
|
41
|
+
export const isoToEpoch = (value: string): number => {
|
|
42
42
|
return parse(value.substring(0, 19) + "Z", ISO_FORMAT + "X", new Date()).getTime();
|
|
43
43
|
};
|
|
44
44
|
|
package/models/enums/index.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|