@dative-gpi/foundation-core-domain 0.0.99 → 0.0.100

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.
Files changed (54) hide show
  1. package/models/actions/actionInfos.ts +2 -2
  2. package/models/alerts/alertInfos.ts +38 -38
  3. package/models/articles/articleInfos.ts +3 -3
  4. package/models/authTokens/authTokenInfos.ts +3 -3
  5. package/models/chartOrganisationTypes/chartOrganisationTypeDetails.ts +11 -11
  6. package/models/chartOrganisationTypes/chartOrganisationTypeInfos.ts +2 -2
  7. package/models/chartOrganisations/chartOrganisationDetails.ts +10 -10
  8. package/models/chartOrganisations/chartOrganisationInfos.ts +2 -2
  9. package/models/charts/chartDetails.ts +7 -7
  10. package/models/comments/commentInfos.ts +5 -5
  11. package/models/connectivityAlerts/connectivityAlertInfos.ts +13 -13
  12. package/models/connectivityScenarios/connectivityScenarioInfos.ts +6 -6
  13. package/models/customProperties/customPropertyInfos.ts +3 -3
  14. package/models/customPropertyValues/customPropertyValueInfos.ts +3 -3
  15. package/models/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +1 -1
  16. package/models/dashboardOrganisationTypes/dashboardOrganisationTypeInfos.ts +5 -5
  17. package/models/dashboardOrganisations/dashboardOrganisationDetails.ts +3 -3
  18. package/models/dashboardOrganisations/dashboardOrganisationInfos.ts +9 -9
  19. package/models/dashboardShallows/dashboardShallowDetails.ts +31 -30
  20. package/models/dashboardShallows/dashboardShallowInfos.ts +9 -9
  21. package/models/dataCategories/dataCategoryInfos.ts +3 -3
  22. package/models/dataDefinitions/dataDefinitionInfos.ts +4 -4
  23. package/models/deviceConnectivities/deviceConnectivityInfos.ts +12 -9
  24. package/models/deviceOrganisations/deviceOrganisationDetails.ts +10 -10
  25. package/models/deviceOrganisations/deviceOrganisationInfos.ts +35 -35
  26. package/models/deviceStatuses/deviceStatusInfos.ts +13 -13
  27. package/models/folders/folderDetails.ts +6 -6
  28. package/models/folders/folderInfos.ts +11 -11
  29. package/models/groups/groupDetails.ts +10 -10
  30. package/models/groups/groupInfos.ts +9 -9
  31. package/models/locations/locationDetails.ts +2 -2
  32. package/models/locations/locationInfos.ts +3 -3
  33. package/models/manufacturers/manufacturerInfos.ts +3 -3
  34. package/models/modelStatuses/modelStatusInfos.ts +10 -10
  35. package/models/models/modelInfos.ts +4 -4
  36. package/models/organisations/organisationDetails.ts +1 -1
  37. package/models/permissionCategories/permissionCategoryInfos.ts +1 -1
  38. package/models/roleOrganisationTypes/roleOrganisationTypeInfos.ts +2 -2
  39. package/models/roleOrganisations/roleOrganisationDetails.ts +1 -1
  40. package/models/roleOrganisations/roleOrganisationInfos.ts +2 -2
  41. package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +6 -6
  42. package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +12 -11
  43. package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +14 -14
  44. package/models/scenarioOrganisationTypes/scenarioOrganisationTypeInfos.ts +5 -5
  45. package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +18 -18
  46. package/models/scenarioOrganisations/scenarioOrganisationInfos.ts +1 -1
  47. package/models/serviceAccounts/serviceAccountDetails.ts +5 -5
  48. package/models/serviceAccounts/serviceAccountInfos.ts +5 -5
  49. package/models/userOrganisationTables/userOrganisationTableDetails.ts +2 -2
  50. package/models/userOrganisationTables/userOrganisationTableInfos.ts +4 -4
  51. package/models/userOrganisations/userOrganisationDetails.ts +7 -7
  52. package/models/userOrganisations/userOrganisationInfos.ts +5 -5
  53. package/models/widgetTemplates/widgetTemplateInfos.ts +1 -1
  54. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { ActionType } from "../enums/actionEnums";
2
2
 
3
3
  export class ActionInfos {
4
- extensionId?: string | null;
4
+ extensionId: string | null;
5
5
  actionType: ActionType;
6
6
  path: string;
7
7
  uri: string;
@@ -19,7 +19,7 @@ export class ActionInfos {
19
19
  }
20
20
 
21
21
  export interface ActionInfosDTO {
22
- extensionId?: string | null;
22
+ extensionId: string | null;
23
23
  actionType: ActionType;
24
24
  path: string;
25
25
  uri: string;
@@ -12,7 +12,7 @@ export class AlertInfos {
12
12
  scenarioLabel: string;
13
13
  organisationId: string;
14
14
  deviceOrganisationId: string;
15
- deviceOrganisationImageId?: string | null;
15
+ deviceOrganisationImageId: string | null;
16
16
  deviceOrganisationCode: string;
17
17
  deviceOrganisationLabel: string;
18
18
  icon: string;
@@ -20,18 +20,18 @@ export class AlertInfos {
20
20
  label: string;
21
21
  criticity: Criticity;
22
22
  acknowledged: boolean;
23
- acknowledgingUserId?: string | null;
24
- acknowledgingUserName?: string | null;
25
- acknowledgingUserImageId?: string | null;
26
- acknowledgingTimestamp?: number | null;
23
+ acknowledgingUserId: string | null;
24
+ acknowledgingUserName: string | null;
25
+ acknowledgingUserImageId: string | null;
26
+ acknowledgingTimestamp: number | null;
27
27
  initialState: AlertState;
28
- triggerSourceTimestamp?: number | null;
29
- triggerEnqueuedTimestamp?: number | null;
30
- triggerProcessedTimestamp?: number | null;
28
+ triggerSourceTimestamp: number | null;
29
+ triggerEnqueuedTimestamp: number | null;
30
+ triggerProcessedTimestamp: number | null;
31
31
  lastState: AlertState;
32
- currentSourceTimestamp?: number | null;
33
- currentEnqueuedTimestamp?: number | null;
34
- currentProcessedTimestamp?: number | null;
32
+ currentSourceTimestamp: number | null;
33
+ currentEnqueuedTimestamp: number | null;
34
+ currentProcessedTimestamp: number | null;
35
35
  status: AlertStatus;
36
36
  tags: string[];
37
37
  history: AlertState[];
@@ -55,21 +55,21 @@ export class AlertInfos {
55
55
  this.acknowledgingUserName = params.acknowledgingUserName;
56
56
  this.acknowledgingUserImageId = params.acknowledgingUserImageId;
57
57
  this.acknowledgingTimestamp = params.acknowledgingTimestamp ?
58
- DatesTools.utcToEpoch(params.acknowledgingTimestamp) : undefined;
58
+ DatesTools.utcToEpoch(params.acknowledgingTimestamp) : null;
59
59
  this.initialState = new AlertState(params.initialState);
60
60
  this.triggerSourceTimestamp = params.triggerSourceTimestamp ?
61
- DatesTools.utcToEpoch(params.triggerSourceTimestamp) : undefined;
61
+ DatesTools.utcToEpoch(params.triggerSourceTimestamp) : null;
62
62
  this.triggerEnqueuedTimestamp = params.triggerEnqueuedTimestamp ?
63
- DatesTools.utcToEpoch(params.triggerEnqueuedTimestamp) : undefined;
63
+ DatesTools.utcToEpoch(params.triggerEnqueuedTimestamp) : null;
64
64
  this.triggerProcessedTimestamp = params.triggerProcessedTimestamp ?
65
- DatesTools.utcToEpoch(params.triggerProcessedTimestamp) : undefined;
65
+ DatesTools.utcToEpoch(params.triggerProcessedTimestamp) : null;
66
66
  this.lastState = new AlertState(params.lastState);
67
67
  this.currentSourceTimestamp = params.currentSourceTimestamp ?
68
- DatesTools.utcToEpoch(params.currentSourceTimestamp) : undefined;
68
+ DatesTools.utcToEpoch(params.currentSourceTimestamp) : null;
69
69
  this.currentEnqueuedTimestamp = params.currentEnqueuedTimestamp ?
70
- DatesTools.utcToEpoch(params.currentEnqueuedTimestamp) : undefined;
70
+ DatesTools.utcToEpoch(params.currentEnqueuedTimestamp) : null;
71
71
  this.currentProcessedTimestamp = params.currentProcessedTimestamp ?
72
- DatesTools.utcToEpoch(params.currentProcessedTimestamp) : undefined;
72
+ DatesTools.utcToEpoch(params.currentProcessedTimestamp) : null;
73
73
  this.status = params.status;
74
74
  this.tags = params.tags;
75
75
  this.history = params.history.map(dto => new AlertState(dto));
@@ -83,7 +83,7 @@ export interface AlertInfosDTO {
83
83
  scenarioLabel: string;
84
84
  organisationId: string;
85
85
  deviceOrganisationId: string;
86
- deviceOrganisationImageId?: string | null;
86
+ deviceOrganisationImageId: string | null;
87
87
  deviceOrganisationCode: string;
88
88
  deviceOrganisationLabel: string;
89
89
  icon: string;
@@ -91,18 +91,18 @@ export interface AlertInfosDTO {
91
91
  label: string;
92
92
  criticity: Criticity;
93
93
  acknowledged: boolean;
94
- acknowledgingUserId?: string | null;
95
- acknowledgingUserName?: string | null;
96
- acknowledgingUserImageId?: string | null;
97
- acknowledgingTimestamp?: string | null;
94
+ acknowledgingUserId: string | null;
95
+ acknowledgingUserName: string | null;
96
+ acknowledgingUserImageId: string | null;
97
+ acknowledgingTimestamp: string | null;
98
98
  initialState: AlertStateDTO;
99
- triggerSourceTimestamp?: string | null;
100
- triggerEnqueuedTimestamp?: string | null;
101
- triggerProcessedTimestamp?: string | null;
99
+ triggerSourceTimestamp: string | null;
100
+ triggerEnqueuedTimestamp: string | null;
101
+ triggerProcessedTimestamp: string | null;
102
102
  lastState: AlertStateDTO;
103
- currentSourceTimestamp?: string | null;
104
- currentEnqueuedTimestamp?: string | null;
105
- currentProcessedTimestamp?: string | null;
103
+ currentSourceTimestamp: string | null;
104
+ currentEnqueuedTimestamp: string | null;
105
+ currentProcessedTimestamp: string | null;
106
106
  status: AlertStatus;
107
107
  tags: string[];
108
108
  history: AlertStateDTO[];
@@ -110,13 +110,13 @@ export interface AlertInfosDTO {
110
110
  }
111
111
 
112
112
  export interface AlertFilters {
113
- scenarioId?: string | null;
114
- deviceOrganisationId?: string | null;
115
- statuses?: AlertStatus[] | null;
116
- acknowledged?: boolean | null;
117
- startDate?: string | null;
118
- endDate?: string | null;
119
- selectedEntities?: SelectedEntities | null;
120
- entitiesIds?: string[] | null;
121
- dateVariables?: DateVariable[] | null;
113
+ scenarioId: string | null;
114
+ deviceOrganisationId: string | null;
115
+ statuses: AlertStatus[] | null;
116
+ acknowledged: boolean | null;
117
+ startDate: string | null;
118
+ endDate: string | null;
119
+ selectedEntities: SelectedEntities | null;
120
+ entitiesIds: string[] | null;
121
+ dateVariables: DateVariable[] | null;
122
122
  }
@@ -1,6 +1,6 @@
1
1
  export class ArticleInfos {
2
2
  id: string;
3
- imageId?: string | null;
3
+ imageId: string | null;
4
4
  label: string;
5
5
 
6
6
  constructor(params: ArticleInfosDTO) {
@@ -12,10 +12,10 @@ export class ArticleInfos {
12
12
 
13
13
  export interface ArticleInfosDTO {
14
14
  id: string;
15
- imageId?: string | null;
15
+ imageId: string | null;
16
16
  label: string;
17
17
  }
18
18
 
19
19
  export interface ArticleFilters {
20
- search?: string | null;
20
+ search: string | null;
21
21
  }
@@ -2,7 +2,7 @@ import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
2
2
 
3
3
  export class AuthTokenInfos {
4
4
  id: string;
5
- userId?: string | null;
5
+ userId: string | null;
6
6
  label: string;
7
7
  creationDate: number;
8
8
  dateMax: number;
@@ -18,12 +18,12 @@ export class AuthTokenInfos {
18
18
 
19
19
  export interface AuthTokenInfosDTO {
20
20
  id: string;
21
- userId?: string | null;
21
+ userId: string | null;
22
22
  label: string;
23
23
  creationDate: string;
24
24
  dateMax: string;
25
25
  }
26
26
 
27
27
  export interface AuthTokenFilters {
28
- userId?: string | null;
28
+ userId: string | null;
29
29
  }
@@ -8,9 +8,9 @@ import { ColorSets } from "../enums/chartEnums";
8
8
  export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
9
9
  colorSet: ColorSets;
10
10
  colorSeed: string;
11
- xAxis?: ChartAxis | null;
12
- aggregates?: boolean | null;
13
- dynamicVariables?: boolean | null;
11
+ xAxis: ChartAxis | null;
12
+ aggregates: boolean | null;
13
+ dynamicVariables: boolean | null;
14
14
  chartVariables: ChartVariable[];
15
15
  chartPlots: ChartPlot[];
16
16
 
@@ -20,7 +20,7 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
20
20
  this.colorSet = params.colorSet as ColorSets;
21
21
  this.colorSeed = params.colorSeed;
22
22
  this.xAxis = params.xAxis ?
23
- new ChartAxis(params.xAxis) : undefined;
23
+ new ChartAxis(params.xAxis) : null;
24
24
  this.aggregates = params.aggregates;
25
25
  this.dynamicVariables = params.dynamicVariables;
26
26
  this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
@@ -31,16 +31,16 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
31
31
  export interface ChartOrganisationTypeDetailsDTO extends ChartOrganisationTypeInfosDTO {
32
32
  colorSet: number;
33
33
  colorSeed: string;
34
- xAxis?: ChartAxisDTO | null;
35
- aggregates?: boolean | null;
36
- dynamicVariables?: boolean | null;
34
+ xAxis: ChartAxisDTO | null;
35
+ aggregates: boolean | null;
36
+ dynamicVariables: boolean | null;
37
37
  chartVariables: ChartVariableDTO[];
38
38
  chartPlots: ChartPlotDTO[];
39
39
  }
40
40
 
41
41
  export interface CreateChartOrganisationTypeDTO {
42
42
  chartOrganisationId: string;
43
- organisationTypeId?: string | null;
43
+ organisationTypeId: string | null;
44
44
  }
45
45
 
46
46
  export interface UpdateChartOrganisationTypeDTO {
@@ -51,9 +51,9 @@ export interface UpdateChartOrganisationTypeDTO {
51
51
  chartType: number;
52
52
  colorSet: number;
53
53
  colorSeed: string;
54
- xAxis?: CreateChartAxisDTO | null;
55
- aggregates?: boolean | null;
56
- dynamicVariables?: boolean | null;
54
+ xAxis: CreateChartAxisDTO | null;
55
+ aggregates: boolean | null;
56
+ dynamicVariables: boolean | null;
57
57
  chartVariables: CreateChartVariableDTO[];
58
58
  chartPlots: CreateChartPlotDTO[];
59
59
  labelDefault: string;
@@ -61,6 +61,6 @@ export interface ChartOrganisationTypeInfosDTO {
61
61
  }
62
62
 
63
63
  export interface ChartOrganisationTypeFilters {
64
- modelsIds?: string[] | null;
65
- search?: string | null;
64
+ modelsIds: string[] | null;
65
+ search: string | null;
66
66
  }
@@ -8,9 +8,9 @@ import { ColorSets } from "../enums/chartEnums";
8
8
  export class ChartOrganisationDetails extends ChartOrganisationInfos {
9
9
  colorSet: ColorSets;
10
10
  colorSeed: string;
11
- xAxis?: ChartAxis;
12
- aggregates?: boolean | null;
13
- dynamicVariables?: boolean | null;
11
+ xAxis: ChartAxis | null;
12
+ aggregates: boolean | null;
13
+ dynamicVariables: boolean | null;
14
14
  chartVariables: ChartVariable[];
15
15
  chartPlots: ChartPlot[];
16
16
 
@@ -20,7 +20,7 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
20
20
  this.colorSet = params.colorSet as ColorSets;
21
21
  this.colorSeed = params.colorSeed;
22
22
  this.xAxis = params.xAxis ?
23
- new ChartAxis(params.xAxis) : undefined;
23
+ new ChartAxis(params.xAxis) : null;
24
24
  this.aggregates = params.aggregates;
25
25
  this.dynamicVariables = params.dynamicVariables;
26
26
  this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
@@ -31,9 +31,9 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
31
31
  export interface ChartOrganisationDetailsDTO extends ChartOrganisationInfosDTO {
32
32
  colorSet: number;
33
33
  colorSeed: string;
34
- xAxis?: ChartAxisDTO | null;
35
- aggregates?: boolean | null;
36
- dynamicVariables?: boolean | null;
34
+ xAxis: ChartAxisDTO | null;
35
+ aggregates: boolean | null;
36
+ dynamicVariables: boolean | null;
37
37
  chartVariables: ChartVariableDTO[];
38
38
  chartPlots: ChartPlotDTO[];
39
39
  }
@@ -55,9 +55,9 @@ export interface UpdateChartOrganisationDTO {
55
55
  chartType: number;
56
56
  colorSet: number;
57
57
  colorSeed: string;
58
- xAxis?: CreateChartAxisDTO | null;
59
- aggregates?: boolean | null;
60
- dynamicVariables?: boolean | null;
58
+ xAxis: CreateChartAxisDTO | null;
59
+ aggregates: boolean | null;
60
+ dynamicVariables: boolean | null;
61
61
  chartVariables: CreateChartVariableDTO[];
62
62
  chartPlots: CreateChartPlotDTO[];
63
63
  labelDefault: string;
@@ -58,6 +58,6 @@ export interface ChartOrganisationInfosDTO {
58
58
  }
59
59
 
60
60
  export interface ChartOrganisationFilters {
61
- modelsIds?: string[] | null;
62
- search?: string | null;
61
+ modelsIds: string[] | null;
62
+ search: string | null;
63
63
  }
@@ -10,9 +10,9 @@ import { ChartPlot, ChartPlotDTO } from "./chartPlot";
10
10
  export class ChartDetails extends ChartInfos {
11
11
  colorSet: ColorSets;
12
12
  colorSeed: string;
13
- xAxis?: ChartAxis | null;
14
- aggregates?: boolean | null;
15
- dynamicVariables?: boolean | null;
13
+ xAxis: ChartAxis | null;
14
+ aggregates: boolean | null;
15
+ dynamicVariables: boolean | null;
16
16
  chartVariables: ChartVariable[];
17
17
  chartPlots: ChartPlot[];
18
18
 
@@ -22,7 +22,7 @@ export class ChartDetails extends ChartInfos {
22
22
  this.colorSet = params.colorSet as ColorSets;
23
23
  this.colorSeed = params.colorSeed;
24
24
  this.xAxis = params.xAxis ?
25
- new ChartAxis(params.xAxis) : undefined;
25
+ new ChartAxis(params.xAxis) : null;
26
26
  this.aggregates = params.aggregates;
27
27
  this.dynamicVariables = params.dynamicVariables;
28
28
  this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
@@ -46,9 +46,9 @@ export interface ChartDetailsDTO extends ChartInfosDTO {
46
46
  translations: ChartTranslationDTO[];
47
47
  colorSet: number;
48
48
  colorSeed: string;
49
- xAxis?: ChartAxisDTO | null;
50
- aggregates?: boolean | null;
51
- dynamicVariables?: boolean | null;
49
+ xAxis: ChartAxisDTO | null;
50
+ aggregates: boolean | null;
51
+ dynamicVariables: boolean | null;
52
52
  chartVariables: ChartVariableDTO[];
53
53
  chartPlots: ChartPlotDTO[];
54
54
  }
@@ -5,11 +5,11 @@ export class CommentInfos {
5
5
  alertId: string;
6
6
  userId: string;
7
7
  userName: string;
8
- userImageId?: string | null;
8
+ userImageId: string | null;
9
9
  timestamp: number;
10
10
  comment: string;
11
11
  edited: boolean;
12
- editTimestamp?: number | null;
12
+ editTimestamp: number | null;
13
13
 
14
14
  constructor(params: CommentInfosDTO) {
15
15
  this.id = params.id;
@@ -21,7 +21,7 @@ export class CommentInfos {
21
21
  this.comment = params.comment;
22
22
  this.edited = params.edited;
23
23
  this.editTimestamp = params.editTimestamp ?
24
- DatesTools.utcToEpoch(params.editTimestamp) : undefined;
24
+ DatesTools.utcToEpoch(params.editTimestamp) : null;
25
25
  }
26
26
  }
27
27
 
@@ -30,11 +30,11 @@ export interface CommentInfosDTO {
30
30
  alertId: string;
31
31
  userId: string;
32
32
  userName: string;
33
- userImageId?: string | null;
33
+ userImageId: string | null;
34
34
  timestamp: string;
35
35
  comment: string;
36
36
  edited: boolean;
37
- editTimestamp?: string | null;
37
+ editTimestamp: string | null;
38
38
  }
39
39
 
40
40
  export interface CommentFilters {
@@ -9,10 +9,10 @@ export class ConnectivityAlertInfos {
9
9
  organisationId: string;
10
10
  deviceOrganisationId: string;
11
11
  deviceOrganisationLabel: string;
12
- deviceOrganisationImageId?: string | null;
13
- deviceOrganisationConnectivity?: DeviceConnectivityInfos | null;
12
+ deviceOrganisationImageId: string | null;
13
+ deviceOrganisationConnectivity: DeviceConnectivityInfos | null;
14
14
  triggerProcessedTimestamp: number;
15
- resolveProcessedTimestamp?: number | null;
15
+ resolveProcessedTimestamp: number | null;
16
16
  status: AlertStatus;
17
17
 
18
18
  constructor(params: ConnectivityAlertInfosDTO) {
@@ -22,11 +22,11 @@ export class ConnectivityAlertInfos {
22
22
  this.deviceOrganisationId = params.deviceOrganisationId;
23
23
  this.deviceOrganisationLabel = params.deviceOrganisationLabel;
24
24
  this.deviceOrganisationImageId = params.deviceOrganisationImageId;
25
- this.deviceOrganisationConnectivity = params.deviceOrganisationConnectivity != null ?
26
- new DeviceConnectivityInfos({ ...params.deviceOrganisationConnectivity, id: params.deviceOrganisationId }) :
27
- undefined;
25
+ this.deviceOrganisationConnectivity = params.deviceOrganisationConnectivity ?
26
+ new DeviceConnectivityInfos({ ...params.deviceOrganisationConnectivity, id: params.deviceOrganisationId }) : null;
28
27
  this.triggerProcessedTimestamp = DatesTools.utcToEpoch(params.triggerProcessedTimestamp);
29
- this.resolveProcessedTimestamp = params.resolveProcessedTimestamp ? DatesTools.utcToEpoch(params.resolveProcessedTimestamp) : undefined;
28
+ this.resolveProcessedTimestamp = params.resolveProcessedTimestamp ?
29
+ DatesTools.utcToEpoch(params.resolveProcessedTimestamp) : null;
30
30
  this.status = params.status;
31
31
  }
32
32
  }
@@ -37,15 +37,15 @@ export interface ConnectivityAlertInfosDTO {
37
37
  organisationId: string;
38
38
  deviceOrganisationId: string;
39
39
  deviceOrganisationLabel: string;
40
- deviceOrganisationImageId?: string | null;
41
- deviceOrganisationConnectivity?: DeviceConnectivityInfosDTO | null;
40
+ deviceOrganisationImageId: string | null;
41
+ deviceOrganisationConnectivity: DeviceConnectivityInfosDTO | null;
42
42
  triggerProcessedTimestamp: string;
43
- resolveProcessedTimestamp?: string | null;
43
+ resolveProcessedTimestamp: string | null;
44
44
  status: AlertStatus;
45
45
  }
46
46
 
47
47
  export interface ConnectivityAlertFilters {
48
- deviceOrganisationId?: string | null;
49
- startDate?: string | null;
50
- endDate?: string | null;
48
+ deviceOrganisationId: string | null;
49
+ startDate: string | null;
50
+ endDate: string | null;
51
51
  }
@@ -4,8 +4,8 @@ export class ConnectivityScenarioInfos {
4
4
  id: string
5
5
  organisationId: string;
6
6
  deviceOrganisationId: string;
7
- deviceOrganisationImageId?: string | null;
8
- deviceOrganisationConnectivity?: DeviceConnectivityDetails | null;
7
+ deviceOrganisationImageId: string | null;
8
+ deviceOrganisationConnectivity: DeviceConnectivityDetails | null;
9
9
  deviceOrganisationCode: string;
10
10
  deviceOrganisationLabel: string;
11
11
  time: number;
@@ -19,7 +19,7 @@ export class ConnectivityScenarioInfos {
19
19
  this.deviceOrganisationId = params.deviceOrganisationId;
20
20
  this.deviceOrganisationImageId = params.deviceOrganisationImageId;
21
21
  this.deviceOrganisationConnectivity = params.deviceOrganisationConnectivity ?
22
- new DeviceConnectivityDetails(params.deviceOrganisationConnectivity) : undefined;
22
+ new DeviceConnectivityDetails(params.deviceOrganisationConnectivity) : null;
23
23
  this.deviceOrganisationCode = params.deviceOrganisationCode;
24
24
  this.deviceOrganisationLabel = params.deviceOrganisationLabel;
25
25
  this.time = params.time;
@@ -33,8 +33,8 @@ export interface ConnectivityScenarioInfosDTO {
33
33
  id: string;
34
34
  organisationId: string;
35
35
  deviceOrganisationId: string;
36
- deviceOrganisationImageId?: string | null;
37
- deviceOrganisationConnectivity?: DeviceConnectivityDetailsDTO | null;
36
+ deviceOrganisationImageId: string | null;
37
+ deviceOrganisationConnectivity: DeviceConnectivityDetailsDTO | null;
38
38
  deviceOrganisationCode: string;
39
39
  deviceOrganisationLabel: string;
40
40
  time: number;
@@ -44,5 +44,5 @@ export interface ConnectivityScenarioInfosDTO {
44
44
  }
45
45
 
46
46
  export interface ConnectivityScenarioFilters {
47
- deviceOrganisationId?: string | null;
47
+ deviceOrganisationId: string | null;
48
48
  }
@@ -62,7 +62,7 @@ export class CustomPropertyInfos {
62
62
  }
63
63
 
64
64
  export interface CustomPropertyFilters {
65
- entities?: PropertyEntity[] | null;
66
- editableCore?: boolean | null;
67
- search?: string | null;
65
+ entities: PropertyEntity[] | null;
66
+ editableCore: boolean | null;
67
+ search: string | null;
68
68
  }
@@ -2,16 +2,16 @@ import { DatesTools } from "@dative-gpi/foundation-shared-domain/tools";
2
2
 
3
3
  export class CustomPropertyValueInfos {
4
4
  value: string;
5
- timestamp?: number | null;
5
+ timestamp: number | null;
6
6
 
7
7
  constructor(params: CustomPropertyValueInfosDTO) {
8
8
  this.value = params.value;
9
9
  this.timestamp = params.timestamp ?
10
- DatesTools.utcToEpoch(params.timestamp) : undefined;
10
+ DatesTools.utcToEpoch(params.timestamp) : null;
11
11
  }
12
12
  }
13
13
 
14
14
  export interface CustomPropertyValueInfosDTO {
15
15
  value: string;
16
- timestamp?: string | null;
16
+ timestamp: string | null;
17
17
  }
@@ -47,7 +47,7 @@ export interface DashboardOrganisationTypeDetailsDTO extends DashboardOrganisati
47
47
 
48
48
  export interface CreateDashboardOrganisationTypeDTO {
49
49
  dashboardOrganisationId: string;
50
- organisationTypeId?: string | null;
50
+ organisationTypeId: string | null;
51
51
  }
52
52
 
53
53
  export interface UpdateDashboardOrganisationTypeDTO {
@@ -3,8 +3,8 @@ import { ApplicationScope } from "../enums/applicationEnums";
3
3
  export class DashboardOrganisationTypeInfos {
4
4
  id: string;
5
5
  dashboardId: string;
6
- organisationTypeId?: string | null;
7
- organisationTypeLabel?: string | null;
6
+ organisationTypeId: string | null;
7
+ organisationTypeLabel: string | null;
8
8
  scope: ApplicationScope;
9
9
  locked: boolean;
10
10
  label: string;
@@ -31,8 +31,8 @@ export class DashboardOrganisationTypeInfos {
31
31
  export interface DashboardOrganisationTypeInfosDTO {
32
32
  id: string;
33
33
  dashboardId: string;
34
- organisationTypeId?: string | null;
35
- organisationTypeLabel?: string | null;
34
+ organisationTypeId: string | null;
35
+ organisationTypeLabel: string | null;
36
36
  scope: ApplicationScope;
37
37
  locked: boolean;
38
38
  label: string;
@@ -43,5 +43,5 @@ export interface DashboardOrganisationTypeInfosDTO {
43
43
  }
44
44
 
45
45
  export interface DashboardOrganisationTypeFilters {
46
- search?: string | null;
46
+ search: string | null;
47
47
  }
@@ -50,7 +50,7 @@ export interface DashboardOrganisationDetailsDTO extends DashboardOrganisationIn
50
50
  }
51
51
 
52
52
  export interface CreateDashboardOrganisationDTO {
53
- folderId?: string | null;
53
+ folderId: string | null;
54
54
  label: string;
55
55
  code: string;
56
56
  icon: string;
@@ -58,7 +58,7 @@ export interface CreateDashboardOrganisationDTO {
58
58
  }
59
59
 
60
60
  export interface UpdateDashboardOrganisationDTO {
61
- folderId?: string | null;
61
+ folderId: string | null;
62
62
  label: string;
63
63
  code: string;
64
64
  icon: string;
@@ -80,5 +80,5 @@ export interface LockDashboardOrganisationDTO {
80
80
  }
81
81
 
82
82
  export interface ChangeDashboardOrganisationFolderDTO {
83
- folderId?: string | null;
83
+ folderId: string | null;
84
84
  }
@@ -4,9 +4,9 @@ export class DashboardOrganisationInfos {
4
4
  id: string;
5
5
  dashboardId: string;
6
6
  organisationId: string;
7
- folderId?: string | null;
8
- folderLabel?: string | null;
9
- folderIcon?: string | null;
7
+ folderId: string | null;
8
+ folderLabel: string | null;
9
+ folderIcon: string | null;
10
10
  scope: ApplicationScope;
11
11
  locked: boolean;
12
12
  label: string;
@@ -36,9 +36,9 @@ export interface DashboardOrganisationInfosDTO {
36
36
  id: string;
37
37
  dashboardId: string;
38
38
  organisationId: string;
39
- folderId?: string | null;
40
- folderLabel?: string | null;
41
- folderIcon?: string | null;
39
+ folderId: string | null;
40
+ folderLabel: string | null;
41
+ folderIcon: string | null;
42
42
  scope: ApplicationScope;
43
43
  locked: boolean;
44
44
  label: string;
@@ -49,7 +49,7 @@ export interface DashboardOrganisationInfosDTO {
49
49
  }
50
50
 
51
51
  export interface DashboardOrganisationFilters {
52
- root?: boolean | null;
53
- folderId?: string | null;
54
- search?: string | null;
52
+ root: boolean | null;
53
+ folderId: string | null;
54
+ search: string | null;
55
55
  }