@dative-gpi/foundation-core-domain 1.0.66 → 1.0.67-map-carousel

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 (76) hide show
  1. package/models/actions/actionInfos.ts +3 -0
  2. package/models/alerts/alertDetails.ts +0 -7
  3. package/models/alerts/alertInfos.ts +26 -8
  4. package/models/alerts/alertState.ts +9 -6
  5. package/models/chartCategories/chartCategoryDetails.ts +2 -0
  6. package/models/chartCategories/chartCategoryInfos.ts +3 -0
  7. package/models/chartOrganisationTypes/chartOrganisationTypeDetails.ts +17 -4
  8. package/models/chartOrganisationTypes/chartOrganisationTypeInfos.ts +10 -1
  9. package/models/chartOrganisations/chartOrganisationDetails.ts +20 -7
  10. package/models/chartOrganisations/chartOrganisationInfos.ts +10 -1
  11. package/models/charts/chartAllowedStep.ts +31 -0
  12. package/models/charts/chartAllowedStepTranslation.ts +19 -0
  13. package/models/charts/chartDetails.ts +12 -1
  14. package/models/charts/chartInfos.ts +6 -0
  15. package/models/charts/chartPreset.ts +4 -0
  16. package/models/charts/chartTimeRange.ts +3 -1
  17. package/models/charts/chartTimeStep.ts +0 -4
  18. package/models/charts/index.ts +2 -0
  19. package/models/connectivityAlerts/connectivityAlertInfos.ts +6 -0
  20. package/models/connectivityScenarios/connectivityScenarioDetails.ts +2 -2
  21. package/models/customProperties/customPropertyInfos.ts +0 -3
  22. package/models/dashboardDatePresets/dashboardDatePresetDetails.ts +1 -0
  23. package/models/dashboardDatePresets/dashboardDatePresetInfos.ts +3 -0
  24. package/models/dashboardEntityPresets/dashboardEntityPresetDetails.ts +1 -0
  25. package/models/dashboardEntityPresets/dashboardEntityPresetInfos.ts +3 -0
  26. package/models/dashboardShallowWidgets/dashboardShallowWidgetDetails.ts +4 -0
  27. package/models/dashboardShallowWidgets/dashboardShallowWidgetInfos.ts +30 -0
  28. package/models/dashboardShallowWidgets/index.ts +2 -0
  29. package/models/dashboardShallows/dashboardShallowDetails.ts +37 -61
  30. package/models/dashboardShallows/dashboardShallowInfos.ts +1 -0
  31. package/models/dashboardVariables/dashboardVariableDetails.ts +1 -0
  32. package/models/dashboardVariables/dashboardVariableInfos.ts +3 -0
  33. package/models/dashboards/dashboardSettings.ts +22 -0
  34. package/models/dashboards/index.ts +1 -0
  35. package/models/deviceDataDefinitions/deviceDataDefinitionInfos.ts +39 -0
  36. package/models/deviceDataDefinitions/index.ts +1 -0
  37. package/models/deviceExplorerElements/deviceExplorerElementDetails.ts +11 -0
  38. package/models/deviceExplorerElements/deviceExplorerElementInfos.ts +149 -0
  39. package/models/deviceExplorerElements/index.ts +2 -0
  40. package/models/deviceOrganisations/deviceOrganisationAlert.ts +3 -0
  41. package/models/deviceOrganisations/deviceOrganisationDetails.ts +2 -3
  42. package/models/deviceOrganisations/deviceOrganisationInfos.ts +26 -12
  43. package/models/folders/folderInfos.ts +6 -0
  44. package/models/groups/groupInfos.ts +1 -2
  45. package/models/index.ts +5 -1
  46. package/models/locations/locationInfos.ts +3 -0
  47. package/models/playlists/index.ts +3 -0
  48. package/models/playlists/playlistDashboard.ts +31 -0
  49. package/models/playlists/playlistDetails.ts +32 -0
  50. package/models/playlists/playlistInfos.ts +39 -0
  51. package/models/roleOrganisations/roleOrganisationDetails.ts +12 -0
  52. package/models/roles/index.ts +1 -0
  53. package/models/roles/roleTranslation.ts +17 -0
  54. package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +18 -9
  55. package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +14 -11
  56. package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +12 -3
  57. package/models/scenarioOrganisationTypes/scenarioOrganisationTypeInfos.ts +18 -7
  58. package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +16 -5
  59. package/models/scenarioOrganisations/scenarioOrganisationInfos.ts +18 -7
  60. package/models/scenarios/scenarioChart.ts +1 -1
  61. package/models/scenarios/scenarioParameterOverride.ts +4 -4
  62. package/models/serviceAccountOrganisations/serviceAccountOrganisationDetails.ts +0 -7
  63. package/models/serviceAccountOrganisations/serviceAccountOrganisationInfos.ts +6 -0
  64. package/models/shared/timeRange.ts +5 -1
  65. package/models/userOrganisationTables/userOrganisationTableInfos.ts +2 -2
  66. package/models/userOrganisations/userOrganisationDetails.ts +2 -1
  67. package/models/userOrganisations/userOrganisationInfos.ts +3 -0
  68. package/models/widgetTemplates/widgetTemplateInfos.ts +10 -0
  69. package/models/widgets/index.ts +2 -1
  70. package/models/widgets/widgetDetails.ts +3 -0
  71. package/models/widgets/widgetInfos.ts +7 -0
  72. package/models/widgets/widgetInterface.ts +15 -0
  73. package/package.json +4 -4
  74. package/models/extensionApplications/extensionApplicationDetails.ts +0 -18
  75. package/models/extensionApplications/extensionApplicationInfos.ts +0 -18
  76. package/models/extensionApplications/index.ts +0 -2
@@ -8,41 +8,42 @@ import type { ApplicationScope } from "@/shared/foundation-shared-domain/enums";
8
8
 
9
9
  export class ScenarioDeviceOrganisationInfos {
10
10
  id: string;
11
- deprecatedScenarioId: string;
12
11
  scenarioLabel: string;
13
12
  deviceOrganisationId: string;
14
13
  deviceOrganisationImageId: string | null;
15
14
  deviceOrganisationCode: string;
16
15
  deviceOrganisationLabel: string;
17
16
  overrideTimeRanges: boolean;
18
- timeRanges: TimeRange[] | null;
17
+ timeRanges: TimeRange[];
18
+ overrideDelay: boolean;
19
19
  delay: number | null;
20
20
  scenarioIcon: string;
21
21
  warnDeviceManager: boolean;
22
22
  userOrganisationsIds: string[];
23
23
  modelId: string;
24
- overrideParameters: ScenarioParameterOverride[];
24
+ overrideParameters: boolean;
25
+ parameters: ScenarioParameterOverride[];
25
26
  defaultParameters: ScenarioParameter[];
26
27
  scenarioId: string;
27
28
  scenarioScope: ApplicationScope;
28
29
 
29
30
  constructor(params: ScenarioDeviceOrganisationInfosDTO) {
30
31
  this.id = params.id;
31
- this.deprecatedScenarioId = params.deprecatedScenarioId;
32
32
  this.scenarioLabel = params.scenarioLabel;
33
33
  this.deviceOrganisationId = params.deviceOrganisationId;
34
34
  this.deviceOrganisationImageId = params.deviceOrganisationImageId;
35
35
  this.deviceOrganisationCode = params.deviceOrganisationCode;
36
36
  this.deviceOrganisationLabel = params.deviceOrganisationLabel;
37
37
  this.overrideTimeRanges = params.overrideTimeRanges;
38
- this.timeRanges = params.timeRanges ?
39
- params.timeRanges.map(dto => new TimeRange(dto)) : null;
38
+ this.timeRanges = params.timeRanges.map(dto => new TimeRange(dto));
40
39
  this.warnDeviceManager = params.warnDeviceManager;
40
+ this.overrideDelay = params.overrideDelay;
41
41
  this.delay = params.delay;
42
42
  this.scenarioIcon = params.scenarioIcon;
43
43
  this.userOrganisationsIds = params.userOrganisationsIds;
44
44
  this.modelId = params.modelId;
45
- this.overrideParameters = params.overrideParameters.map(dto => new ScenarioParameterOverride(dto));
45
+ this.overrideParameters = params.overrideParameters;
46
+ this.parameters = params.parameters.map(dto => new ScenarioParameterOverride(dto));
46
47
  this.defaultParameters = params.defaultParameters.map(dto => new ScenarioParameter(dto));
47
48
  this.scenarioId = params.scenarioId;
48
49
  this.scenarioScope = params.scenarioScope;
@@ -51,27 +52,29 @@ export class ScenarioDeviceOrganisationInfos {
51
52
 
52
53
  export interface ScenarioDeviceOrganisationInfosDTO {
53
54
  id: string;
54
- deprecatedScenarioId: string;
55
55
  scenarioLabel: string;
56
56
  deviceOrganisationId: string;
57
57
  deviceOrganisationImageId: string | null;
58
58
  deviceOrganisationCode: string;
59
59
  deviceOrganisationLabel: string;
60
60
  overrideTimeRanges: boolean;
61
- timeRanges: TimeRangeDTO[] | null;
61
+ timeRanges: TimeRangeDTO[];
62
+ overrideDelay: boolean;
62
63
  delay: number | null;
63
64
  scenarioIcon: string;
64
65
  modelId: string;
65
66
  warnDeviceManager: boolean;
66
67
  userOrganisationsIds: string[];
67
- overrideParameters: ScenarioParameterOverrideDTO[];
68
+ overrideParameters: boolean;
69
+ parameters: ScenarioParameterOverrideDTO[];
68
70
  defaultParameters: ScenarioParameterDTO[];
69
71
  scenarioId: string;
70
72
  scenarioScope: ApplicationScope;
71
73
  }
72
74
 
73
75
  export interface ScenarioDeviceOrganisationFilters {
74
- deprecatedScenarioId?: string | null;
76
+ scenarioId?: string | null;
77
+ scenarioScope?: ApplicationScope | null;
75
78
  deviceOrganisationId?: string | null;
76
79
  deviceOrganisationsIds?: string[] | null;
77
80
  }
@@ -1,11 +1,18 @@
1
- import type { ResolveOn, TriggerOn } from "@dative-gpi/foundation-shared-domain/enums";
1
+ import type { PlotPer, ResolveOn, TriggerOn } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  import type { ScenarioOrganisationTypeInfosDTO } from "./scenarioOrganisationTypeInfos";
4
4
  import { ScenarioOrganisationTypeInfos } from "./scenarioOrganisationTypeInfos";
5
5
  import type { CreateTimeRangeDTO, TimeRangeDTO } from "../shared/timeRange";
6
6
  import { TimeRange } from "../shared/timeRange";
7
- import { ScenarioParameter, type CreateScenarioChartDTO, type CreateScenarioParameterDTO, type ScenarioParameterDTO, type ScenarioTranslationDTO } from "../scenarios";
8
- import { ScenarioTranslation } from "../scenarios";
7
+ import {
8
+ ScenarioParameter,
9
+ ScenarioTranslation,
10
+ type CreateScenarioChartDTO,
11
+ type CreateScenarioParameterDTO,
12
+ type ScenarioParameterDTO,
13
+ type ScenarioTranslationDTO
14
+ } from "../scenarios";
15
+ import type { CreateChartTimeStepDTO } from "../charts/chartTimeStep";
9
16
 
10
17
  export class ScenarioOrganisationTypeDetails extends ScenarioOrganisationTypeInfos {
11
18
  groupByIds: string[];
@@ -110,6 +117,8 @@ export interface UpdateScenarioOrganisationTypeDTO {
110
117
  tags: string[];
111
118
  chartStartDate: string;
112
119
  chartEndDate: string;
120
+ chartPlotPer: PlotPer | null;
121
+ chartStep: CreateChartTimeStepDTO | null;
113
122
  alertLabelDefault: string;
114
123
  alertDescriptionDefault: string;
115
124
  alertCode: string;
@@ -1,6 +1,7 @@
1
- import type { Criticity, ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
1
+ import type { Criticity, ApplicationScope, PlotPer } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  import { ScenarioChart, ScenarioParameter, type ScenarioChartDTO, type ScenarioParameterDTO } from "../scenarios";
4
+ import { ChartTimeStep, type ChartTimeStepDTO } from "../charts/chartTimeStep";
4
5
 
5
6
  export class ScenarioOrganisationTypeInfos {
6
7
  id: string;
@@ -8,19 +9,22 @@ export class ScenarioOrganisationTypeInfos {
8
9
  organisationTypeId: string | null;
9
10
  organisationTypeLabel: string | null;
10
11
  scope: ApplicationScope;
11
- modelId: string;
12
+ modelId: string | null;
12
13
  modelLabel: string;
13
- dataCategoryId: string;
14
+ dataCategoryId: string | null;
14
15
  dataCategoryLabel: string;
15
- dataDefinitionId: string;
16
+ dataDefinitionId: string | null;
16
17
  dataDefinitionLabel: string;
17
18
  criticity: Criticity;
18
19
  label: string;
19
20
  code: string;
20
21
  icon: string;
22
+ draft: boolean;
21
23
  tags: string[];
22
24
  chartStartDate: string;
23
25
  chartEndDate: string;
26
+ chartPlotPer: PlotPer | null;
27
+ chartStep: ChartTimeStep | null;
24
28
  charts: ScenarioChart[];
25
29
  parameters: ScenarioParameter[];
26
30
 
@@ -40,8 +44,11 @@ export class ScenarioOrganisationTypeInfos {
40
44
  this.label = params.label;
41
45
  this.code = params.code;
42
46
  this.icon = params.icon;
47
+ this.draft = params.draft;
43
48
  this.chartStartDate = params.chartStartDate;
44
49
  this.chartEndDate = params.chartEndDate;
50
+ this.chartPlotPer = params.chartPlotPer;
51
+ this.chartStep = params.chartStep != null ? new ChartTimeStep(params.chartStep) : null;
45
52
  this.tags = params.tags.slice();
46
53
  this.charts = params.charts.map(p => new ScenarioChart(p))
47
54
  this.parameters = params.parameters.map(p => new ScenarioParameter(p));
@@ -54,23 +61,27 @@ export interface ScenarioOrganisationTypeInfosDTO {
54
61
  organisationTypeId: string | null;
55
62
  organisationTypeLabel: string | null;
56
63
  scope: number;
57
- modelId: string;
64
+ modelId: string | null;
58
65
  modelLabel: string;
59
- dataCategoryId: string;
66
+ dataCategoryId: string | null;
60
67
  dataCategoryLabel: string;
61
- dataDefinitionId: string;
68
+ dataDefinitionId: string | null;
62
69
  dataDefinitionLabel: string;
63
70
  criticity: number;
64
71
  label: string;
65
72
  code: string;
66
73
  icon: string;
74
+ draft: boolean;
67
75
  tags: string[];
68
76
  chartStartDate: string;
69
77
  chartEndDate: string;
78
+ chartPlotPer: PlotPer | null;
79
+ chartStep: ChartTimeStepDTO | null;
70
80
  charts: ScenarioChartDTO[];
71
81
  parameters: ScenarioParameterDTO[];
72
82
  }
73
83
 
74
84
  export interface ScenarioOrganisationTypeFilters {
75
85
  modelId?: string | null;
86
+ draft?: boolean | null;
76
87
  }
@@ -1,11 +1,18 @@
1
- import type { ResolveOn, TriggerOn } from "@dative-gpi/foundation-shared-domain/enums";
1
+ import type { PlotPer, ResolveOn, TriggerOn } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  import type { ScenarioOrganisationInfosDTO } from "./scenarioOrganisationInfos";
4
4
  import { ScenarioOrganisationInfos } from "./scenarioOrganisationInfos";
5
5
  import type { CreateTimeRangeDTO, TimeRangeDTO } from "../shared/timeRange";
6
6
  import { TimeRange } from "../shared/timeRange";
7
- import { ScenarioParameter, type CreateScenarioChartDTO, type CreateScenarioParameterDTO, type ScenarioParameterDTO, type ScenarioTranslationDTO } from "../scenarios";
8
- import { ScenarioTranslation } from "../scenarios";
7
+ import {
8
+ ScenarioParameter,
9
+ ScenarioTranslation,
10
+ type CreateScenarioChartDTO,
11
+ type CreateScenarioParameterDTO,
12
+ type ScenarioParameterDTO,
13
+ type ScenarioTranslationDTO
14
+ } from "../scenarios";
15
+ import type { CreateChartTimeStepDTO } from "../charts/chartTimeStep";
9
16
 
10
17
  export class ScenarioOrganisationDetails extends ScenarioOrganisationInfos {
11
18
  groupByIds: string[];
@@ -91,8 +98,8 @@ export interface ScenarioOrganisationDetailsDTO extends ScenarioOrganisationInfo
91
98
  }
92
99
 
93
100
  export interface CreateScenarioOrganisationDTO {
94
- modelId: string;
95
- dataCategoryId: string;
101
+ modelId: string | null;
102
+ dataCategoryId: string | null;
96
103
  dataDefinitionId: string | null;
97
104
  groupByIds: string[];
98
105
  metadataIds: string[];
@@ -109,6 +116,8 @@ export interface CreateScenarioOrganisationDTO {
109
116
  alertTags: string[];
110
117
  chartStartDate: string;
111
118
  chartEndDate: string;
119
+ chartPlotPer: PlotPer | null;
120
+ chartStep: CreateChartTimeStepDTO | null;
112
121
  timeRanges: CreateTimeRangeDTO[];
113
122
  triggerOn: number;
114
123
  triggerCondition: string;
@@ -138,6 +147,8 @@ export interface UpdateScenarioOrganisationDTO {
138
147
  tags: string[];
139
148
  chartStartDate: string;
140
149
  chartEndDate: string;
150
+ chartPlotPer: PlotPer | null;
151
+ chartStep: CreateChartTimeStepDTO | null;
141
152
  alertLabelDefault: string;
142
153
  alertDescriptionDefault: string;
143
154
  alertCode: string;
@@ -1,25 +1,29 @@
1
- import type { Criticity, ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
1
+ import type { Criticity, ApplicationScope, PlotPer } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  import { ScenarioParameter, type ScenarioChartDTO, type ScenarioParameterDTO, ScenarioChart } from "../scenarios";
4
+ import { ChartTimeStep, type ChartTimeStepDTO } from "../charts/chartTimeStep";
4
5
 
5
6
  export class ScenarioOrganisationInfos {
6
7
  id: string;
7
8
  scenarioId: string;
8
9
  organisationId: string;
9
10
  scope: ApplicationScope;
10
- modelId: string;
11
+ modelId: string | null;
11
12
  modelLabel: string;
12
- dataCategoryId: string;
13
+ dataCategoryId: string | null;
13
14
  dataCategoryLabel: string;
14
- dataDefinitionId: string;
15
+ dataDefinitionId: string | null;
15
16
  dataDefinitionLabel: string;
16
17
  criticity: Criticity;
17
18
  label: string;
18
19
  code: string;
19
20
  icon: string;
21
+ draft: boolean;
20
22
  tags: string[];
21
23
  chartStartDate: string;
22
24
  chartEndDate: string;
25
+ chartPlotPer: PlotPer | null;
26
+ chartStep: ChartTimeStep | null;
23
27
  charts: ScenarioChart[];
24
28
  parameters: ScenarioParameter[];
25
29
 
@@ -38,8 +42,11 @@ export class ScenarioOrganisationInfos {
38
42
  this.label = params.label;
39
43
  this.code = params.code;
40
44
  this.icon = params.icon;
45
+ this.draft = params.draft;
41
46
  this.chartStartDate = params.chartStartDate;
42
47
  this.chartEndDate = params.chartEndDate;
48
+ this.chartPlotPer = params.chartPlotPer;
49
+ this.chartStep = params.chartStep != null ? new ChartTimeStep(params.chartStep) : null;
43
50
  this.tags = params.tags.slice();
44
51
  this.charts = params.charts.map(p => new ScenarioChart(p))
45
52
  this.parameters = params.parameters.map(p => new ScenarioParameter(p));
@@ -51,23 +58,27 @@ export interface ScenarioOrganisationInfosDTO {
51
58
  scenarioId: string;
52
59
  organisationId: string;
53
60
  scope: number;
54
- modelId: string;
61
+ modelId: string | null;
55
62
  modelLabel: string;
56
- dataCategoryId: string;
63
+ dataCategoryId: string | null;
57
64
  dataCategoryLabel: string;
58
- dataDefinitionId: string;
65
+ dataDefinitionId: string | null;
59
66
  dataDefinitionLabel: string;
60
67
  criticity: number;
61
68
  label: string;
62
69
  code: string;
63
70
  icon: string;
71
+ draft: boolean;
64
72
  tags: string[];
65
73
  chartStartDate: string;
66
74
  chartEndDate: string;
75
+ chartPlotPer: PlotPer | null;
76
+ chartStep: ChartTimeStepDTO | null;
67
77
  charts: ScenarioChartDTO[];
68
78
  parameters: ScenarioParameterDTO[];
69
79
  }
70
80
 
71
81
  export interface ScenarioOrganisationFilters {
72
82
  modelId?: string | null;
83
+ draft?: boolean | null;
73
84
  }
@@ -1,4 +1,4 @@
1
- import type { ApplicationScope } from "../enums/applicationEnums";
1
+ import type { ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  export class ScenarioChart {
4
4
  id: string;
@@ -1,20 +1,20 @@
1
1
 
2
2
  export class ScenarioParameterOverride {
3
- scenarioParameterId: string;
3
+ scenarioParameterHiddenCode: string;
4
4
  overrideValue: string | null;
5
5
 
6
6
  constructor(params: ScenarioParameterOverrideDTO) {
7
- this.scenarioParameterId = params.scenarioParameterId;
7
+ this.scenarioParameterHiddenCode = params.scenarioParameterHiddenCode;
8
8
  this.overrideValue = params.overrideValue;
9
9
 
10
10
  }
11
11
  }
12
12
 
13
13
  export interface ScenarioParameterOverrideDTO {
14
- scenarioParameterId: string;
14
+ scenarioParameterHiddenCode: string;
15
15
  overrideValue: string | null;
16
16
  }
17
17
  export interface CreateScenarioParameterOverrideDTO {
18
- scenarioParameterId: string;
18
+ scenarioParameterHiddenCode: string;
19
19
  overrideValue: string | null;
20
20
  }
@@ -3,22 +3,15 @@ import { PermissionInfos, type PermissionInfosDTO } from "@dative-gpi/foundation
3
3
  import { ServiceAccountOrganisationInfos, type ServiceAccountOrganisationInfosDTO } from "./serviceAccountOrganisationInfos";
4
4
 
5
5
  export class ServiceAccountOrganisationDetails extends ServiceAccountOrganisationInfos {
6
- languageCode: string;
7
- timeZoneId: string;
8
6
  permissions: PermissionInfos[];
9
7
 
10
8
  constructor(params: ServiceAccountOrganisationDetailsDTO) {
11
9
  super(params);
12
-
13
- this.languageCode = params.languageCode;
14
- this.timeZoneId = params.timeZoneId;
15
10
  this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
16
11
  }
17
12
  }
18
13
 
19
14
  export interface ServiceAccountOrganisationDetailsDTO extends ServiceAccountOrganisationInfosDTO {
20
- languageCode: string;
21
- timeZoneId: string;
22
15
  permissions: PermissionInfosDTO[];
23
16
  }
24
17
 
@@ -4,6 +4,8 @@ export class ServiceAccountOrganisationInfos {
4
4
  id: string;
5
5
  userId: string;
6
6
  organisationId: string;
7
+ languageCode: string;
8
+ timeZoneId: string;
7
9
  roleId: string | null;
8
10
  roleLabel: string;
9
11
  roleIcon: string;
@@ -18,6 +20,8 @@ export class ServiceAccountOrganisationInfos {
18
20
  this.id = params.id;
19
21
  this.userId = params.userId;
20
22
  this.organisationId = params.organisationId;
23
+ this.languageCode = params.languageCode;
24
+ this.timeZoneId = params.timeZoneId;
21
25
  this.roleId = params.roleId;
22
26
  this.roleLabel = params.roleLabel;
23
27
  this.roleIcon = params.roleIcon;
@@ -34,6 +38,8 @@ export interface ServiceAccountOrganisationInfosDTO {
34
38
  id: string;
35
39
  userId: string;
36
40
  organisationId: string;
41
+ languageCode: string;
42
+ timeZoneId: string;
37
43
  roleId: string | null;
38
44
  roleLabel: string;
39
45
  roleIcon: string;
@@ -1,4 +1,4 @@
1
- import type { Days } from "@dative-gpi/foundation-shared-domain/enums";
1
+ import type { Days, DateType } from "@dative-gpi/foundation-shared-domain/enums";
2
2
 
3
3
  export class TimeRange {
4
4
  startDay: Days;
@@ -7,6 +7,7 @@ export class TimeRange {
7
7
  endDay: Days;
8
8
  endHour: number;
9
9
  endMinute: number;
10
+ variant: DateType;
10
11
 
11
12
  constructor(params: TimeRangeDTO) {
12
13
  this.startDay = params.startDay;
@@ -15,6 +16,7 @@ export class TimeRange {
15
16
  this.endDay = params.endDay;
16
17
  this.endHour = params.endHour;
17
18
  this.endMinute = params.endMinute;
19
+ this.variant = params.variant;
18
20
  }
19
21
  }
20
22
 
@@ -25,6 +27,7 @@ export interface TimeRangeDTO {
25
27
  endDay: Days;
26
28
  endHour: number;
27
29
  endMinute: number;
30
+ variant: DateType;
28
31
  }
29
32
 
30
33
  export interface CreateTimeRangeDTO {
@@ -34,4 +37,5 @@ export interface CreateTimeRangeDTO {
34
37
  endDay: Days;
35
38
  endHour: number;
36
39
  endMinute: number;
40
+ variant: DateType;
37
41
  }
@@ -7,7 +7,7 @@ export class UserOrganisationTableInfos {
7
7
  columns: UserOrganisationColumnInfos[];
8
8
 
9
9
  // Depends on [OrganisationType, UserOrganisation]
10
- mode: "table" | "iterator";
10
+ mode: "table" | "iterator" | null;
11
11
  rowsPerPage: -1 | 10 | 30;
12
12
  sortByKey: string | null;
13
13
  sortByOrder: "asc" | "desc" | null;
@@ -26,7 +26,7 @@ export class UserOrganisationTableInfos {
26
26
  export interface UserOrganisationTableInfosDTO {
27
27
  id: string;
28
28
  code: string;
29
- mode: "table" | "iterator";
29
+ mode: "table" | "iterator" | null;
30
30
  rowsPerPage: -1 | 10 | 30;
31
31
  sortByKey: string | null;
32
32
  sortByOrder: "asc" | "desc" | null;
@@ -15,7 +15,7 @@ export class UserOrganisationDetails extends UserOrganisationInfos {
15
15
 
16
16
  constructor(params: UserOrganisationDetailsDTO) {
17
17
  super(params);
18
-
18
+
19
19
  this.mainDashboardType = params.mainDashboardType as DashboardType;
20
20
  this.mainDashboardId = params.mainDashboardId;
21
21
  this.mainDashboardLabel = params.mainDashboardLabel;
@@ -52,6 +52,7 @@ export interface UpdateUserOrganisationDTO {
52
52
  roleId: string | null;
53
53
  mainDashboardType: DashboardType;
54
54
  mainDashboardId: string | null;
55
+ startOnKioskMode: boolean;
55
56
  tags: string[];
56
57
  }
57
58
 
@@ -21,6 +21,7 @@ export class UserOrganisationInfos {
21
21
  firstName: string;
22
22
  lastName: string;
23
23
  name: string;
24
+ startOnKioskMode: boolean;
24
25
  tags: string[];
25
26
 
26
27
  constructor(params: UserOrganisationInfosDTO) {
@@ -43,6 +44,7 @@ export class UserOrganisationInfos {
43
44
  this.firstName = params.firstName;
44
45
  this.lastName = params.lastName;
45
46
  this.name = params.name;
47
+ this.startOnKioskMode = params.startOnKioskMode;
46
48
  this.tags = params.tags && params.tags.slice() || [];
47
49
  }
48
50
  }
@@ -67,6 +69,7 @@ export interface UserOrganisationInfosDTO {
67
69
  firstName: string;
68
70
  lastName: string;
69
71
  name: string;
72
+ startOnKioskMode: boolean;
70
73
  tags: string[] | null;
71
74
  }
72
75
 
@@ -1,5 +1,6 @@
1
1
  import _ from "lodash";
2
2
  import type { WidgetCategory } from "@dative-gpi/foundation-shared-domain/enums";
3
+ import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
3
4
 
4
5
  const clean = <T>(meta: T): T => {
5
6
  const newMeta = _.cloneDeepWith(meta, (value) => {
@@ -16,6 +17,9 @@ const clean = <T>(meta: T): T => {
16
17
 
17
18
  export class WidgetTemplateInfos {
18
19
  id: string;
20
+ type: WidgetTemplateType;
21
+ extensionId: string | null;
22
+ extensionHost: string | null;
19
23
  label: string;
20
24
  code: string;
21
25
  icon: string;
@@ -27,6 +31,9 @@ export class WidgetTemplateInfos {
27
31
 
28
32
  constructor(params: WidgetTemplateInfosDTO) {
29
33
  this.id = params.id;
34
+ this.type = params.type;
35
+ this.extensionId = params.extensionId ?? null;
36
+ this.extensionHost = params.extensionHost ?? null;
30
37
  this.label = params.label;
31
38
  this.code = params.code;
32
39
  this.icon = params.icon;
@@ -40,6 +47,9 @@ export class WidgetTemplateInfos {
40
47
 
41
48
  export interface WidgetTemplateInfosDTO {
42
49
  id: string;
50
+ type: WidgetTemplateType;
51
+ extensionId?: string;
52
+ extensionHost?: string;
43
53
  label: string;
44
54
  code: string;
45
55
  icon: string;
@@ -1,2 +1,3 @@
1
1
  export * from "./widgetDetails";
2
- export * from "./widgetInfos";
2
+ export * from "./widgetInfos";
3
+ export * from "./widgetInterface";
@@ -1,3 +1,4 @@
1
+ import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
1
2
  import type { WidgetInfosDTO } from "./widgetInfos";
2
3
  import { WidgetInfos } from "./widgetInfos";
3
4
 
@@ -11,6 +12,8 @@ export interface WidgetDetailsDTO extends WidgetInfosDTO {
11
12
  }
12
13
 
13
14
  export interface CreateWidgetDTO {
15
+ hiddenCode: string;
16
+ templateType: WidgetTemplateType;
14
17
  templateId: string;
15
18
  hideBorders: boolean;
16
19
  width: number;
@@ -1,3 +1,4 @@
1
+ import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
1
2
  import _ from "lodash";
2
3
 
3
4
  const clean = <T>(meta: T): T => {
@@ -15,6 +16,8 @@ const clean = <T>(meta: T): T => {
15
16
 
16
17
  export class WidgetInfos {
17
18
  id: string;
19
+ hiddenCode: string;
20
+ templateType: WidgetTemplateType;
18
21
  templateId: string;
19
22
  hideBorders: boolean;
20
23
  width: number;
@@ -26,6 +29,8 @@ export class WidgetInfos {
26
29
 
27
30
  constructor(params: WidgetInfosDTO) {
28
31
  this.id = params.id;
32
+ this.hiddenCode = params.hiddenCode;
33
+ this.templateType = params.templateType;
29
34
  this.templateId = params.templateId;
30
35
  this.hideBorders = params.hideBorders;
31
36
  this.width = params.width;
@@ -39,6 +44,8 @@ export class WidgetInfos {
39
44
 
40
45
  export interface WidgetInfosDTO {
41
46
  id: string;
47
+ hiddenCode: string;
48
+ templateType: WidgetTemplateType;
42
49
  templateId: string;
43
50
  hideBorders: boolean;
44
51
  width: number;
@@ -0,0 +1,15 @@
1
+ import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
2
+
3
+ export interface Widget {
4
+ id: string;
5
+ hiddenCode: string;
6
+ templateType: WidgetTemplateType;
7
+ templateId: string;
8
+ hideBorders: boolean;
9
+ width: number;
10
+ height: number;
11
+ x: number;
12
+ y: number;
13
+ targetScreenSize: "s" | "m" | "l" | "xl";
14
+ meta: { [key: string]: string };
15
+ }
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.66",
4
+ "version": "1.0.67-map-carousel",
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.66",
14
- "@dative-gpi/foundation-shared-services": "1.0.66"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.67-map-carousel",
14
+ "@dative-gpi/foundation-shared-services": "1.0.67-map-carousel"
15
15
  },
16
- "gitHead": "84d2d567d51959856200d302f7972b04bc56675a"
16
+ "gitHead": "014bd2e4f914caadcc469f95cb1dca8d9a50cbb8"
17
17
  }
@@ -1,18 +0,0 @@
1
- import type { ExtensionApplicationInfosDTO } from "./extensionApplicationInfos";
2
- import { ExtensionApplicationInfos } from "./extensionApplicationInfos";
3
-
4
- export class ExtensionApplicationDetails extends ExtensionApplicationInfos {
5
- host: string;
6
- extensionId: string;
7
-
8
- constructor(params: ExtensionApplicationDetailsDTO) {
9
- super(params);
10
- this.extensionId = params.extensionId;
11
- this.host = params.host
12
- }
13
- }
14
-
15
- export interface ExtensionApplicationDetailsDTO extends ExtensionApplicationInfosDTO {
16
- extensionId: string;
17
- host: string;
18
- }
@@ -1,18 +0,0 @@
1
- export class ExtensionApplicationInfos {
2
- id: string;
3
- label: string;
4
- description: string;
5
-
6
- constructor(params: ExtensionApplicationInfosDTO) {
7
- this.id = params.id;
8
- this.label = params.label;
9
- this.description = params.description;
10
- }
11
- }
12
-
13
- export interface ExtensionApplicationInfosDTO {
14
- id: string;
15
- label: string;
16
- description: string;
17
- }
18
-
@@ -1,2 +0,0 @@
1
- export * from "./extensionApplicationDetails";
2
- export * from "./extensionApplicationInfos";