@sedni/cloud_common 3.0.3 → 3.0.5

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 (106) hide show
  1. package/.idea/cloud_common.iml +8 -0
  2. package/.idea/copilot.data.migration.agent.xml +6 -0
  3. package/.idea/copilot.data.migration.ask.xml +6 -0
  4. package/.idea/copilot.data.migration.ask2agent.xml +6 -0
  5. package/.idea/copilot.data.migration.edit.xml +6 -0
  6. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  7. package/.idea/modules.xml +8 -0
  8. package/.idea/shelf/Changes/shelved.patch +30 -0
  9. package/.idea/shelf/Changes.xml +4 -0
  10. package/.idea/shelf/Changes1/shelved.patch +229 -0
  11. package/.idea/shelf/Changes1.xml +4 -0
  12. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26,_10_07_[Changes]/shelved.patch +229 -0
  13. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26,_10_20_[Changes]/shelved.patch +23 -0
  14. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26__10_07__Changes_.xml +4 -0
  15. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26__10_20__Changes_.xml +4 -0
  16. package/.idea/vcs.xml +6 -0
  17. package/.idea/workspace.xml +245 -0
  18. package/dist/browser-index.cjs +32 -5
  19. package/dist/browser-index.d.cts +38 -17
  20. package/dist/browser-index.d.ts +38 -17
  21. package/dist/browser-index.js +7 -1
  22. package/dist/chunk-72OOHARB.js +1442 -0
  23. package/dist/{chunk-VQWCQ4E2.js → chunk-XZJXANPO.js} +539 -2
  24. package/dist/index.cjs +44 -15
  25. package/dist/index.d.cts +45 -24
  26. package/dist/index.d.ts +45 -24
  27. package/dist/index.js +13 -7
  28. package/dist/models/Channel.d.ts +53 -0
  29. package/dist/models/Channel.js +65 -0
  30. package/dist/models/ChannelDataBucket.d.ts +81 -0
  31. package/dist/models/ChannelDataBucket.js +93 -0
  32. package/dist/models/ChannelDataPoint.d.ts +21 -0
  33. package/dist/models/ChannelDataPoint.js +75 -0
  34. package/dist/models/Event.d.ts +28 -0
  35. package/dist/models/Event.js +84 -0
  36. package/dist/models/History.d.ts +30 -0
  37. package/dist/models/History.js +96 -0
  38. package/dist/models/Unit.d.ts +50 -0
  39. package/dist/models/Unit.js +58 -0
  40. package/dist/models/docs/Channel.json +58 -0
  41. package/dist/models/docs/ChannelDataBucket.json +77 -0
  42. package/dist/models/docs/ChannelDataPoint.json +39 -0
  43. package/dist/models/docs/ChannelWithData.json +58 -0
  44. package/dist/models/docs/Event.json +78 -0
  45. package/dist/models/docs/History.json +103 -0
  46. package/dist/models/docs/Unit.json +67 -0
  47. package/dist/models/docs/index.d.ts +448 -0
  48. package/dist/models/docs/index.js +27 -0
  49. package/dist/models/mimics/AuxiliaryElements.d.ts +39 -0
  50. package/dist/models/mimics/AuxiliaryElements.js +33 -0
  51. package/dist/models/mimics/ChannelMimic.d.ts +9 -0
  52. package/dist/models/mimics/ChannelMimic.js +8 -0
  53. package/dist/models/mimics/ControlElements.d.ts +123 -0
  54. package/dist/models/mimics/ControlElements.js +114 -0
  55. package/dist/models/mimics/Elements.d.ts +109 -0
  56. package/dist/models/mimics/Elements.js +99 -0
  57. package/dist/models/mimics/IasElements.d.ts +25 -0
  58. package/dist/models/mimics/IasElements.js +21 -0
  59. package/dist/models/mimics/MimicSupport.d.ts +77 -0
  60. package/dist/models/mimics/MimicSupport.js +59 -0
  61. package/dist/models/mimics/MimicTraits.d.ts +58 -0
  62. package/dist/models/mimics/MimicTraits.js +48 -0
  63. package/dist/models/mimics/PmsElements.d.ts +74 -0
  64. package/dist/models/mimics/PmsElements.js +66 -0
  65. package/dist/network/requests/mimics/AuxiliaryElements.d.ts +29 -0
  66. package/dist/network/requests/mimics/AuxiliaryElements.js +23 -0
  67. package/dist/network/requests/mimics/ChannelMimic.d.ts +9 -0
  68. package/dist/network/requests/mimics/ChannelMimic.js +8 -0
  69. package/dist/network/requests/mimics/ControlElements.d.ts +68 -0
  70. package/dist/network/requests/mimics/ControlElements.js +59 -0
  71. package/dist/network/requests/mimics/Elements.d.ts +46 -0
  72. package/dist/network/requests/mimics/Elements.js +36 -0
  73. package/dist/network/requests/mimics/IasElements.d.ts +16 -0
  74. package/dist/network/requests/mimics/IasElements.js +12 -0
  75. package/dist/network/requests/mimics/MimicSupport.d.ts +77 -0
  76. package/dist/network/requests/mimics/MimicSupport.js +59 -0
  77. package/dist/network/requests/mimics/MimicTraits.d.ts +55 -0
  78. package/dist/network/requests/mimics/MimicTraits.js +45 -0
  79. package/dist/network/requests/mimics/PmsElements.d.ts +58 -0
  80. package/dist/network/requests/mimics/PmsElements.js +50 -0
  81. package/dist/network/responses/mimics/AuxiliaryElements.d.ts +23 -0
  82. package/dist/network/responses/mimics/AuxiliaryElements.js +17 -0
  83. package/dist/network/responses/mimics/ControlElements.d.ts +63 -0
  84. package/dist/network/responses/mimics/ControlElements.js +54 -0
  85. package/dist/network/responses/mimics/Elements.d.ts +58 -0
  86. package/dist/network/responses/mimics/Elements.js +48 -0
  87. package/dist/network/responses/mimics/IasElements.d.ts +17 -0
  88. package/dist/network/responses/mimics/IasElements.js +13 -0
  89. package/dist/network/responses/mimics/PmsElements.d.ts +44 -0
  90. package/dist/network/responses/mimics/PmsElements.js +37 -0
  91. package/dist/types/alarm.types.d.ts +42 -0
  92. package/dist/types/alarm.types.js +38 -0
  93. package/dist/types/channel.types.d.ts +27 -0
  94. package/dist/types/channel.types.js +30 -0
  95. package/dist/types/event.types.d.ts +19 -0
  96. package/dist/types/event.types.js +17 -0
  97. package/dist/types/mimics.types.d.ts +254 -0
  98. package/dist/types/mimics.types.js +325 -0
  99. package/dist/types/unit.types.d.ts +11 -0
  100. package/dist/types/unit.types.js +10 -0
  101. package/dist/user.types-CBlsVzYC.d.cts +1270 -0
  102. package/dist/user.types-CBlsVzYC.d.ts +1270 -0
  103. package/dist/{unit.types-4ZD9ivHi.d.cts → user.types-DaVBScqh.d.cts} +493 -17
  104. package/dist/{unit.types-4ZD9ivHi.d.ts → user.types-DaVBScqh.d.ts} +493 -17
  105. package/package.json +1 -1
  106. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,27 @@
1
+ import { AlarmPriorities, AlarmTypes, CloudAlarmStates, DiamarAlarmStates } from "../../types/alarm.types.js";
2
+ import { EventCategories } from "../../types/event.types.js";
3
+ /**
4
+ * DOCS
5
+ */
6
+ import ChannelDocs from "./Channel.json" assert { type: "json" };
7
+ import ChannelDataBucketDocs from "./ChannelDataBucket.json" assert { type: "json" };
8
+ import ChannelWithDataDocs from "./ChannelWithData.json" assert { type: "json" };
9
+ import ChannelDataPointDocs from "./ChannelDataPoint.json" assert { type: "json" };
10
+ import EventDocs from "./Event.json" assert { type: "json" };
11
+ import HistoryDocs from "./History.json" assert { type: "json" };
12
+ import UnitDocs from "./Unit.json" assert { type: "json" };
13
+ HistoryDocs.components.schemas.History.properties.alarm_priority.enum = Object.values(AlarmPriorities);
14
+ HistoryDocs.components.schemas.History.properties.alarm_state.enum = Object.values(CloudAlarmStates);
15
+ HistoryDocs.components.schemas.History.properties.alarm_original_state.enum = Object.values(DiamarAlarmStates);
16
+ HistoryDocs.components.schemas.History.properties.alarm_type.enum = Object.values(AlarmTypes);
17
+ EventDocs.components.schemas.Event.properties.event_category.enum = Object.values(EventCategories);
18
+ const Docs = {
19
+ ChannelDocs,
20
+ ChannelDataBucketDocs,
21
+ ChannelWithDataDocs,
22
+ ChannelDataPointDocs,
23
+ EventDocs,
24
+ HistoryDocs,
25
+ UnitDocs
26
+ };
27
+ export default Docs;
@@ -0,0 +1,39 @@
1
+ import { LineJsonSchema, LocalizedTextJsonSchema, LogicExpressionsJsonSchema, TextAttributesJsonSchema } from "./MimicSupport";
2
+ export type ImageAuxiliaryJsonSchema = {
3
+ DefaultImageName: string;
4
+ ImageLogic: LogicExpressionsJsonSchema;
5
+ };
6
+ export declare const ImageAuxiliaryJson: ImageAuxiliaryJsonSchema;
7
+ export type LineAuxiliaryJsonSchema = {
8
+ Line: LineJsonSchema;
9
+ LineColorLogic: LogicExpressionsJsonSchema;
10
+ };
11
+ export declare const LineAuxiliaryJson: LineAuxiliaryJsonSchema;
12
+ export type LinkAuxiliaryJsonSchema = {
13
+ DefaultImageName: string;
14
+ MimicId: string;
15
+ ImageLogic: LogicExpressionsJsonSchema;
16
+ Design: string;
17
+ ButtonColor: string;
18
+ TextColor: string;
19
+ TextHeight: number;
20
+ ButtonTexts: LocalizedTextJsonSchema;
21
+ };
22
+ export declare const LinkAuxiliaryJson: LinkAuxiliaryJsonSchema;
23
+ export type PolylineAuxiliaryJsonSchema = {
24
+ Lines: LineJsonSchema[];
25
+ LineColorLogic: LogicExpressionsJsonSchema;
26
+ };
27
+ export declare const PolylineAuxiliaryJson: PolylineAuxiliaryJsonSchema;
28
+ export type SquareAuxiliaryJsonSchema = {
29
+ Lines: LineJsonSchema[];
30
+ ColorBorder: string;
31
+ ColorFill: string;
32
+ LineColorLogic: LogicExpressionsJsonSchema;
33
+ };
34
+ export declare const SquareAuxiliaryJson: SquareAuxiliaryJsonSchema;
35
+ export type TextAuxiliaryJsonSchema = {
36
+ TextAttributes: TextAttributesJsonSchema;
37
+ Text: LocalizedTextJsonSchema;
38
+ };
39
+ export declare const TextAuxiliaryJson: TextAuxiliaryJsonSchema;
@@ -0,0 +1,33 @@
1
+ import { LineJson, LocalizedTextJson, LogicExpressionsJson, TextAttributesJson } from "./MimicSupport";
2
+ export const ImageAuxiliaryJson = {
3
+ DefaultImageName: "image.png",
4
+ ImageLogic: LogicExpressionsJson
5
+ };
6
+ export const LineAuxiliaryJson = {
7
+ Line: LineJson,
8
+ LineColorLogic: LogicExpressionsJson
9
+ };
10
+ export const LinkAuxiliaryJson = {
11
+ DefaultImageName: "default.png",
12
+ MimicId: "",
13
+ ImageLogic: LogicExpressionsJson,
14
+ Design: "Default",
15
+ ButtonColor: "#FFFFFF",
16
+ TextColor: "#000000",
17
+ TextHeight: 12,
18
+ ButtonTexts: LocalizedTextJson
19
+ };
20
+ export const PolylineAuxiliaryJson = {
21
+ Lines: [],
22
+ LineColorLogic: LogicExpressionsJson
23
+ };
24
+ export const SquareAuxiliaryJson = {
25
+ Lines: [],
26
+ ColorBorder: "#000000",
27
+ ColorFill: "#FFFFFF",
28
+ LineColorLogic: LogicExpressionsJson
29
+ };
30
+ export const TextAuxiliaryJson = {
31
+ TextAttributes: TextAttributesJson,
32
+ Text: LocalizedTextJson
33
+ };
@@ -0,0 +1,9 @@
1
+ export type ChannelJsonSchema = {
2
+ WithBackup: boolean;
3
+ Main: string | null;
4
+ Backup: string | null;
5
+ Max: number;
6
+ Min: number;
7
+ Units: string;
8
+ };
9
+ export declare const ChannelJson: ChannelJsonSchema;
@@ -0,0 +1,8 @@
1
+ export const ChannelJson = {
2
+ WithBackup: false,
3
+ Main: null,
4
+ Backup: null,
5
+ Max: 100,
6
+ Min: 0,
7
+ Units: ""
8
+ };
@@ -0,0 +1,123 @@
1
+ import { LocalizedTextJsonSchema, ScaleJsonSchema } from "./MimicSupport";
2
+ import { AutomaticSemiAutoJsonSchema, CommandsOpClJsonSchema, CommandsStartStopJsonSchema, ControlLockJsonSchema, FeedbackOpClJsonSchema, FeedbackRunningStoppedJsonSchema, OrderOpClJsonSchema, OrderStartStopJsonSchema, RemoteLocalJsonSchema, TripResetJsonSchema } from "./MimicTraits";
3
+ import { ChannelJsonSchema } from "./ChannelMimic";
4
+ import { CompressorDesign, FanDesign, FanType, InfoLocation, MarkType, ValveDesign } from "../../types/mimics.types";
5
+ export type CompressorJsonSchema = {
6
+ AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
7
+ CommandsStartStop: CommandsStartStopJsonSchema;
8
+ ControlLock: ControlLockJsonSchema;
9
+ FeedbackRunningStopped: FeedbackRunningStoppedJsonSchema;
10
+ OrderStartStop: OrderStartStopJsonSchema;
11
+ RemoteLocal: RemoteLocalJsonSchema;
12
+ TripReset: TripResetJsonSchema;
13
+ IsControl: boolean;
14
+ CompressorDesign: CompressorDesign;
15
+ };
16
+ export declare const CompressorJson: CompressorJsonSchema;
17
+ export type DamperJsonSchema = {
18
+ FeedbackAutoSemiAuto: AutomaticSemiAutoJsonSchema;
19
+ FeedbackOpCl: FeedbackOpClJsonSchema;
20
+ CommandsOpCl: CommandsOpClJsonSchema;
21
+ ControlLock: ControlLockJsonSchema;
22
+ OrderOpCl: OrderOpClJsonSchema;
23
+ RemoteLocal: RemoteLocalJsonSchema;
24
+ TripReset: TripResetJsonSchema;
25
+ IsControl: boolean;
26
+ };
27
+ export declare const DamperJson: DamperJsonSchema;
28
+ export type DamperAutomatedJsonSchema = {
29
+ Damper: string;
30
+ FeedbackOpCl: FeedbackOpClJsonSchema;
31
+ TripReset: TripResetJsonSchema;
32
+ };
33
+ export declare const DamperAutomatedJson: DamperAutomatedJsonSchema;
34
+ export type FanJsonSchema = {
35
+ AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
36
+ ControlLock: ControlLockJsonSchema;
37
+ RemoteLocal: RemoteLocalJsonSchema;
38
+ TripReset: TripResetJsonSchema;
39
+ FanMode: FanType;
40
+ FanDesign: FanDesign;
41
+ SpeedFeedback: ChannelJsonSchema;
42
+ ConsignedSpeed: ChannelJsonSchema;
43
+ UserConsignedSpeed: ChannelJsonSchema;
44
+ RunFeedbackSupply: ChannelJsonSchema;
45
+ RunFeedbackSupplyFast: ChannelJsonSchema;
46
+ RunFeedbackExhaust: ChannelJsonSchema;
47
+ RunFeedbackExhaustFast: ChannelJsonSchema;
48
+ StoppedFeedback: ChannelJsonSchema;
49
+ StartOrderSupply: ChannelJsonSchema;
50
+ StartOrderSupplyFast: ChannelJsonSchema;
51
+ StartOrderExhaust: ChannelJsonSchema;
52
+ StartOrderExhaustFast: ChannelJsonSchema;
53
+ StopOrder: ChannelJsonSchema;
54
+ StartCommandSupply: ChannelJsonSchema;
55
+ StartCommandSupplyFast: ChannelJsonSchema;
56
+ StartCommandExhaust: ChannelJsonSchema;
57
+ StartCommandExhaustFast: ChannelJsonSchema;
58
+ StopCommand: ChannelJsonSchema;
59
+ StartCommandSupplyConfirmation: LocalizedTextJsonSchema;
60
+ StartCommandSupplyFastConfirmation: LocalizedTextJsonSchema;
61
+ StartCommandExhaustConfirmation: LocalizedTextJsonSchema;
62
+ StartCommandExhaustFastConfirmation: LocalizedTextJsonSchema;
63
+ StopCommandConfirmation: LocalizedTextJsonSchema;
64
+ };
65
+ export declare const FanJson: FanJsonSchema;
66
+ export type PumpJsonSchema = {
67
+ AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
68
+ ControlLock: ControlLockJsonSchema;
69
+ CommandsStartStop: CommandsStartStopJsonSchema;
70
+ FeedbackRunningStopped: FeedbackRunningStoppedJsonSchema;
71
+ OrderStartStop: OrderStartStopJsonSchema;
72
+ RemoteLocal: RemoteLocalJsonSchema;
73
+ TripReset: TripResetJsonSchema;
74
+ IsControl: boolean;
75
+ PumpDesign: CompressorDesign;
76
+ };
77
+ export declare const PumpJson: PumpJsonSchema;
78
+ export type PumpAutomatedJsonSchema = {
79
+ Pump: string;
80
+ PumpDesign: CompressorDesign;
81
+ AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
82
+ FeedbackRunningStopped: FeedbackRunningStoppedJsonSchema;
83
+ RemoteLocal: RemoteLocalJsonSchema;
84
+ TripReset: TripResetJsonSchema;
85
+ };
86
+ export declare const PumpAutomatedJson: PumpAutomatedJsonSchema;
87
+ export type TankJsonSchema = {
88
+ TankName: string;
89
+ VolumeChannel: ChannelJsonSchema;
90
+ LocationInfo: InfoLocation;
91
+ ShowVolume: boolean;
92
+ ShowVolumeInPercent: boolean;
93
+ ShowVolumeInMeters: boolean;
94
+ ShowVolumeInLitres: boolean;
95
+ ShowWeight: boolean;
96
+ ShowSounding: boolean;
97
+ TextValueHeight: number;
98
+ TextValuePadding: number;
99
+ BackgroundColor: string;
100
+ ContentColor: string;
101
+ ShowAlarmLimits: boolean;
102
+ MarkType: MarkType;
103
+ Scale: ScaleJsonSchema;
104
+ };
105
+ export declare const TankJson: TankJsonSchema;
106
+ export type ValveJsonSchema = {
107
+ IsControl: boolean;
108
+ ValveDesign: ValveDesign;
109
+ FeedbackOpCl: FeedbackOpClJsonSchema;
110
+ CommandsOpCl: CommandsOpClJsonSchema;
111
+ OrderOpCl: OrderOpClJsonSchema;
112
+ ControlLock: ControlLockJsonSchema;
113
+ RemoteLocal: RemoteLocalJsonSchema;
114
+ TripReset: TripResetJsonSchema;
115
+ };
116
+ export declare const ValveJson: ValveJsonSchema;
117
+ export type ValveAutomatedJsonSchema = {
118
+ Valve: string;
119
+ ValveDesign: ValveDesign;
120
+ FeedbackOpCl: FeedbackOpClJsonSchema;
121
+ TripReset: TripResetJsonSchema;
122
+ };
123
+ export declare const ValveAutomatedJson: ValveAutomatedJsonSchema;
@@ -0,0 +1,114 @@
1
+ import { LocalizedTextJson, ScaleJson } from "./MimicSupport";
2
+ import { AutomaticSemiAutoJson, CommandsOpClJson, CommandsStartStopJson, ControlLockJson, FeedbackOpClJson, FeedbackRunningStoppedJson, OrderOpClJson, OrderStartStopJson, RemoteLocalJson, TripResetJson } from "./MimicTraits";
3
+ import { ChannelJson } from "./ChannelMimic";
4
+ import { CompressorDesigns, FanDesigns, FanTypes, InfoLocations, MarkTypes, ValveDesigns } from "../../types/mimics.types";
5
+ export const CompressorJson = {
6
+ AutomaticSemiAuto: AutomaticSemiAutoJson,
7
+ CommandsStartStop: CommandsStartStopJson,
8
+ ControlLock: ControlLockJson,
9
+ FeedbackRunningStopped: FeedbackRunningStoppedJson,
10
+ OrderStartStop: OrderStartStopJson,
11
+ RemoteLocal: RemoteLocalJson,
12
+ TripReset: TripResetJson,
13
+ IsControl: false,
14
+ CompressorDesign: CompressorDesigns.NORMAL
15
+ };
16
+ export const DamperJson = {
17
+ FeedbackAutoSemiAuto: AutomaticSemiAutoJson,
18
+ FeedbackOpCl: FeedbackOpClJson,
19
+ CommandsOpCl: CommandsOpClJson,
20
+ ControlLock: ControlLockJson,
21
+ OrderOpCl: OrderOpClJson,
22
+ RemoteLocal: RemoteLocalJson,
23
+ TripReset: TripResetJson,
24
+ IsControl: false
25
+ };
26
+ export const DamperAutomatedJson = {
27
+ Damper: "",
28
+ FeedbackOpCl: FeedbackOpClJson,
29
+ TripReset: TripResetJson
30
+ };
31
+ export const FanJson = {
32
+ AutomaticSemiAuto: AutomaticSemiAutoJson,
33
+ ControlLock: ControlLockJson,
34
+ RemoteLocal: RemoteLocalJson,
35
+ TripReset: TripResetJson,
36
+ FanMode: FanTypes.SIMPLE,
37
+ FanDesign: FanDesigns.NORMAL,
38
+ SpeedFeedback: ChannelJson,
39
+ ConsignedSpeed: ChannelJson,
40
+ UserConsignedSpeed: ChannelJson,
41
+ RunFeedbackSupply: ChannelJson,
42
+ RunFeedbackSupplyFast: ChannelJson,
43
+ RunFeedbackExhaust: ChannelJson,
44
+ RunFeedbackExhaustFast: ChannelJson,
45
+ StoppedFeedback: ChannelJson,
46
+ StartOrderSupply: ChannelJson,
47
+ StartOrderSupplyFast: ChannelJson,
48
+ StartOrderExhaust: ChannelJson,
49
+ StartOrderExhaustFast: ChannelJson,
50
+ StopOrder: ChannelJson,
51
+ StartCommandSupply: ChannelJson,
52
+ StartCommandSupplyFast: ChannelJson,
53
+ StartCommandExhaust: ChannelJson,
54
+ StartCommandExhaustFast: ChannelJson,
55
+ StopCommand: ChannelJson,
56
+ StartCommandSupplyConfirmation: LocalizedTextJson,
57
+ StartCommandSupplyFastConfirmation: LocalizedTextJson,
58
+ StartCommandExhaustConfirmation: LocalizedTextJson,
59
+ StartCommandExhaustFastConfirmation: LocalizedTextJson,
60
+ StopCommandConfirmation: LocalizedTextJson
61
+ };
62
+ export const PumpJson = {
63
+ AutomaticSemiAuto: AutomaticSemiAutoJson,
64
+ ControlLock: ControlLockJson,
65
+ CommandsStartStop: CommandsStartStopJson,
66
+ FeedbackRunningStopped: FeedbackRunningStoppedJson,
67
+ OrderStartStop: OrderStartStopJson,
68
+ RemoteLocal: RemoteLocalJson,
69
+ TripReset: TripResetJson,
70
+ IsControl: false,
71
+ PumpDesign: CompressorDesigns.NORMAL
72
+ };
73
+ export const PumpAutomatedJson = {
74
+ Pump: "",
75
+ PumpDesign: CompressorDesigns.NORMAL,
76
+ AutomaticSemiAuto: AutomaticSemiAutoJson,
77
+ FeedbackRunningStopped: FeedbackRunningStoppedJson,
78
+ RemoteLocal: RemoteLocalJson,
79
+ TripReset: TripResetJson
80
+ };
81
+ export const TankJson = {
82
+ TankName: "",
83
+ VolumeChannel: ChannelJson,
84
+ LocationInfo: InfoLocations.RIGHT,
85
+ ShowVolume: true,
86
+ ShowVolumeInPercent: false,
87
+ ShowVolumeInMeters: false,
88
+ ShowVolumeInLitres: false,
89
+ ShowWeight: false,
90
+ ShowSounding: false,
91
+ TextValueHeight: 12,
92
+ TextValuePadding: 2,
93
+ BackgroundColor: "#FFFFFF",
94
+ ContentColor: "#000000",
95
+ ShowAlarmLimits: false,
96
+ MarkType: MarkTypes.SHORT_LINE,
97
+ Scale: ScaleJson
98
+ };
99
+ export const ValveJson = {
100
+ IsControl: false,
101
+ ValveDesign: ValveDesigns.NORMAL,
102
+ FeedbackOpCl: FeedbackOpClJson,
103
+ CommandsOpCl: CommandsOpClJson,
104
+ OrderOpCl: OrderOpClJson,
105
+ ControlLock: ControlLockJson,
106
+ RemoteLocal: RemoteLocalJson,
107
+ TripReset: TripResetJson
108
+ };
109
+ export const ValveAutomatedJson = {
110
+ Valve: "",
111
+ ValveDesign: ValveDesigns.NORMAL,
112
+ FeedbackOpCl: FeedbackOpClJson,
113
+ TripReset: TripResetJson
114
+ };
@@ -0,0 +1,109 @@
1
+ import { LocalizedTextJsonSchema, LogicExpressionsJsonSchema, ScaleJsonSchema, TextAttributesJsonSchema } from "./MimicSupport";
2
+ import { FeedbackOpClJsonSchema } from "./MimicTraits";
3
+ import { ChannelJsonSchema } from "./ChannelMimic";
4
+ import { LedType, LevelBarOrientation, MarkType, SliderOrientation, ValueType } from "../../types/mimics.types";
5
+ export type AlarmIndicatorJsonSchema = {
6
+ TextHeight: number;
7
+ TextColor: string;
8
+ Texts: LocalizedTextJsonSchema;
9
+ AlarmFeedback: ChannelJsonSchema;
10
+ };
11
+ export declare const AlarmIndicatorJson: AlarmIndicatorJsonSchema;
12
+ export type CommandJsonSchema = {
13
+ TextHeight: number;
14
+ MessageColor: string;
15
+ TimeoutCommandCheck: number;
16
+ CommandCheckColor: string;
17
+ TimeoutCommandResult: number;
18
+ CommandOkColor: string;
19
+ CommandErrorColor: string;
20
+ HasConfirmation: boolean;
21
+ HasPassword: boolean;
22
+ CommandChannel: ChannelJsonSchema;
23
+ CloseChannel: ChannelJsonSchema;
24
+ Messages: LocalizedTextJsonSchema;
25
+ ConfirmationMessages: LocalizedTextJsonSchema;
26
+ };
27
+ export declare const CommandJson: CommandJsonSchema;
28
+ export type DialJsonSchema = {
29
+ Color: string;
30
+ ShowTextValue: boolean;
31
+ Factor: number;
32
+ ShowAlarmLimits: boolean;
33
+ ShowFactor: boolean;
34
+ DivisionsNumber: number;
35
+ SubdivisionsNumber: number;
36
+ Channel: ChannelJsonSchema;
37
+ };
38
+ export declare const DialJson: DialJsonSchema;
39
+ export type DigitalJsonSchema = {
40
+ TextHeight: number;
41
+ LedType: LedType;
42
+ OpenLedColor: string;
43
+ CloseLedColor: string;
44
+ OpenTexts: LocalizedTextJsonSchema;
45
+ CloseTexts: LocalizedTextJsonSchema;
46
+ FeedbackOpCl: FeedbackOpClJsonSchema;
47
+ };
48
+ export declare const DigitalJson: DigitalJsonSchema;
49
+ export type DisplayJsonSchema = {
50
+ HeightText: number;
51
+ TextColor: string;
52
+ ShowMeasureUnit: boolean;
53
+ NumCharactersDisplay: number;
54
+ Channel: ChannelJsonSchema;
55
+ };
56
+ export declare const DisplayJson: DisplayJsonSchema;
57
+ export type DynamicTextJsonSchema = {
58
+ TextAttributes: TextAttributesJsonSchema;
59
+ DefaultTextColor: string;
60
+ DefaultText: LocalizedTextJsonSchema;
61
+ TextLogic: LogicExpressionsJsonSchema;
62
+ };
63
+ export declare const DynamicTextJson: DynamicTextJsonSchema;
64
+ export type LevelBarJsonSchema = {
65
+ Orientation: LevelBarOrientation;
66
+ BackgroundColor: string;
67
+ ForegroundColor: string;
68
+ ShowTextValue: boolean;
69
+ TextValueHeight: number;
70
+ ValueType: ValueType;
71
+ ShowAlarmLimits: boolean;
72
+ MarkType: MarkType;
73
+ Scale: ScaleJsonSchema;
74
+ LevelChannel: ChannelJsonSchema;
75
+ };
76
+ export declare const LevelBarJson: LevelBarJsonSchema;
77
+ export type SliderJsonSchema = {
78
+ Orientation: SliderOrientation;
79
+ Steps: number;
80
+ ColorBackground: string;
81
+ ColorValue: string;
82
+ ColorValueCircle: string;
83
+ HasTextValue: boolean;
84
+ ColorTextValue: string;
85
+ TextValueFontSize: number;
86
+ IsVisualizationOnly: boolean;
87
+ Channel: ChannelJsonSchema;
88
+ };
89
+ export declare const SliderJson: SliderJsonSchema;
90
+ export type TextChannelJsonSchema = {
91
+ TextAttributes: TextAttributesJsonSchema;
92
+ Channel: ChannelJsonSchema;
93
+ };
94
+ export declare const TextChannelJson: TextChannelJsonSchema;
95
+ export type ToggleJsonSchema = {
96
+ ColorCircle: string;
97
+ ColorOnBackground: string;
98
+ ColorOffBackground: string;
99
+ DisplayValue: boolean;
100
+ OnTextValue: string;
101
+ OnTextValueColor: string;
102
+ OffTextValue: string;
103
+ OffTextValueColor: string;
104
+ IsVisualizationOnly: boolean;
105
+ Channel: ChannelJsonSchema;
106
+ CommandOnChannel: ChannelJsonSchema;
107
+ CommandOffChannel: ChannelJsonSchema;
108
+ };
109
+ export declare const ToggleJson: ToggleJsonSchema;
@@ -0,0 +1,99 @@
1
+ import { LocalizedTextJson, LogicExpressionsJson, ScaleJson, TextAttributesJson } from "./MimicSupport";
2
+ import { FeedbackOpClJson } from "./MimicTraits";
3
+ import { ChannelJson } from "./ChannelMimic";
4
+ import { LedTypes, LevelBarOrientations, MarkTypes, SliderOrientations, ValueTypes } from "../../types/mimics.types";
5
+ export const AlarmIndicatorJson = {
6
+ TextHeight: 12,
7
+ TextColor: "#FFFFFF",
8
+ Texts: LocalizedTextJson,
9
+ AlarmFeedback: ChannelJson
10
+ };
11
+ export const CommandJson = {
12
+ TextHeight: 12,
13
+ MessageColor: "#FFFFFF",
14
+ TimeoutCommandCheck: 5,
15
+ CommandCheckColor: "#00FF00",
16
+ TimeoutCommandResult: 10,
17
+ CommandOkColor: "#00FF00",
18
+ CommandErrorColor: "#FF0000",
19
+ HasConfirmation: false,
20
+ HasPassword: false,
21
+ CommandChannel: ChannelJson,
22
+ CloseChannel: ChannelJson,
23
+ Messages: LocalizedTextJson,
24
+ ConfirmationMessages: LocalizedTextJson
25
+ };
26
+ export const DialJson = {
27
+ Color: "#FFFFFF",
28
+ ShowTextValue: false,
29
+ Factor: 100,
30
+ ShowAlarmLimits: false,
31
+ ShowFactor: false,
32
+ DivisionsNumber: 3,
33
+ SubdivisionsNumber: 2,
34
+ Channel: ChannelJson
35
+ };
36
+ export const DigitalJson = {
37
+ TextHeight: 12,
38
+ LedType: LedTypes.CIRCLE,
39
+ OpenLedColor: "#00FF00",
40
+ CloseLedColor: "#FF0000",
41
+ OpenTexts: LocalizedTextJson,
42
+ CloseTexts: LocalizedTextJson,
43
+ FeedbackOpCl: FeedbackOpClJson
44
+ };
45
+ export const DisplayJson = {
46
+ HeightText: 12,
47
+ TextColor: "#FFFFFF",
48
+ ShowMeasureUnit: false,
49
+ NumCharactersDisplay: 8,
50
+ Channel: ChannelJson
51
+ };
52
+ export const DynamicTextJson = {
53
+ TextAttributes: TextAttributesJson,
54
+ DefaultTextColor: "#FFFFFF",
55
+ DefaultText: LocalizedTextJson,
56
+ TextLogic: LogicExpressionsJson
57
+ };
58
+ export const LevelBarJson = {
59
+ Orientation: LevelBarOrientations.VERTICAL,
60
+ BackgroundColor: "#000000",
61
+ ForegroundColor: "#00FF00",
62
+ ShowTextValue: false,
63
+ TextValueHeight: 12,
64
+ ValueType: ValueTypes.RAW,
65
+ ShowAlarmLimits: false,
66
+ MarkType: MarkTypes.LARGE_LINE,
67
+ Scale: ScaleJson,
68
+ LevelChannel: ChannelJson
69
+ };
70
+ export const SliderJson = {
71
+ Orientation: SliderOrientations.VERTICAL,
72
+ Steps: 10,
73
+ ColorBackground: "#FFFFFF",
74
+ ColorValue: "#00FF00",
75
+ ColorValueCircle: "#0000FF",
76
+ HasTextValue: false,
77
+ ColorTextValue: "#000000",
78
+ TextValueFontSize: 12,
79
+ IsVisualizationOnly: false,
80
+ Channel: ChannelJson
81
+ };
82
+ export const TextChannelJson = {
83
+ TextAttributes: TextAttributesJson,
84
+ Channel: ChannelJson
85
+ };
86
+ export const ToggleJson = {
87
+ ColorCircle: "#FFFFFF",
88
+ ColorOnBackground: "#00FF00",
89
+ ColorOffBackground: "#FF0000",
90
+ DisplayValue: false,
91
+ OnTextValue: "ON",
92
+ OnTextValueColor: "#00FF00",
93
+ OffTextValue: "OFF",
94
+ OffTextValueColor: "#FF0000",
95
+ IsVisualizationOnly: false,
96
+ Channel: ChannelJson,
97
+ CommandOnChannel: ChannelJson,
98
+ CommandOffChannel: ChannelJson
99
+ };
@@ -0,0 +1,25 @@
1
+ import { CabinetDesign, RepeaterDesign, StationDesign, UnitDesign } from "../../types/mimics.types";
2
+ export type CabinetJsonSchema = {
3
+ Design: CabinetDesign;
4
+ ImageName: string;
5
+ CabinetId: string;
6
+ };
7
+ export declare const CabinetJson: CabinetJsonSchema;
8
+ export type RepeaterJsonSchema = {
9
+ Design: RepeaterDesign;
10
+ ImageName: string;
11
+ RepeaterId: string;
12
+ };
13
+ export declare const RepeaterJson: RepeaterJsonSchema;
14
+ export type StationJsonSchema = {
15
+ Design: StationDesign;
16
+ ImageName: string;
17
+ StationId: string;
18
+ };
19
+ export declare const StationJson: StationJsonSchema;
20
+ export type UnitJsonSchema = {
21
+ Design: UnitDesign;
22
+ ImageName: string;
23
+ UnitId: string;
24
+ };
25
+ export declare const UnitJson: UnitJsonSchema;
@@ -0,0 +1,21 @@
1
+ import { CabinetDesigns, RepeaterDesigns, StationDesigns, UnitDesigns } from "../../types/mimics.types";
2
+ export const CabinetJson = {
3
+ Design: CabinetDesigns.IMAGE,
4
+ ImageName: "cabinet.png",
5
+ CabinetId: ""
6
+ };
7
+ export const RepeaterJson = {
8
+ Design: RepeaterDesigns.IMAGE,
9
+ ImageName: "repeater.png",
10
+ RepeaterId: ""
11
+ };
12
+ export const StationJson = {
13
+ Design: StationDesigns.IMAGE,
14
+ ImageName: "station.png",
15
+ StationId: ""
16
+ };
17
+ export const UnitJson = {
18
+ Design: UnitDesigns.IMAGE,
19
+ ImageName: "unit.png",
20
+ UnitId: ""
21
+ };
@@ -0,0 +1,77 @@
1
+ import { TextAnchorPoint, TitleAlign } from "../../types/mimics.types";
2
+ export type AddedAlarmsJsonSchema = {
3
+ Channels: {
4
+ ChannelId: string;
5
+ }[];
6
+ };
7
+ export declare const AddedAlarmsJson: AddedAlarmsJsonSchema;
8
+ export type BackgroundJsonSchema = {
9
+ Show: boolean;
10
+ };
11
+ export declare const BackgroundJson: BackgroundJsonSchema;
12
+ export type LineJsonSchema = {
13
+ Color: string;
14
+ Width: number;
15
+ Start: {
16
+ X: number;
17
+ Y: number;
18
+ };
19
+ End: {
20
+ X: number;
21
+ Y: number;
22
+ };
23
+ };
24
+ export declare const LineJson: LineJsonSchema;
25
+ export type LocalizedTextJsonSchema = {
26
+ English: string;
27
+ Spanish: string;
28
+ French: string;
29
+ German: string;
30
+ };
31
+ export declare const LocalizedTextJson: LocalizedTextJsonSchema;
32
+ export type LocationJsonSchema = {
33
+ X: number;
34
+ Y: number;
35
+ Z: number;
36
+ Rotation: number;
37
+ };
38
+ export declare const LocationJson: LocationJsonSchema;
39
+ export type LogicExpressionJsonSchema = {
40
+ Expression: string;
41
+ Value: undefined;
42
+ Variables: string[];
43
+ };
44
+ export declare const LogicExpressionJson: LogicExpressionJsonSchema;
45
+ export type LogicExpressionsJsonSchema = {
46
+ LogicExpressions: LogicExpressionJsonSchema[];
47
+ };
48
+ export declare const LogicExpressionsJson: LogicExpressionsJsonSchema;
49
+ export type ScaleJsonSchema = {
50
+ Show: boolean;
51
+ TextHeight: number;
52
+ Color: string;
53
+ Position: string;
54
+ LineWidth: number;
55
+ DivisionsNumber: number;
56
+ SubdivisionsNumber: number;
57
+ };
58
+ export declare const ScaleJson: ScaleJsonSchema;
59
+ export type TextAttributesJsonSchema = {
60
+ AnchorPoint: TextAnchorPoint;
61
+ Color: string;
62
+ HasUnderline: boolean;
63
+ UnderlineColor: string;
64
+ UnderlineLength: number;
65
+ UnderlineWidth: number;
66
+ };
67
+ export declare const TextAttributesJson: TextAttributesJsonSchema;
68
+ export type TitleJsonSchema = {
69
+ Show: boolean;
70
+ Height: number;
71
+ Padding: number;
72
+ Align: TitleAlign;
73
+ Color: string;
74
+ Text: LocalizedTextJsonSchema;
75
+ Location: LocationJsonSchema;
76
+ };
77
+ export declare const TitleJson: TitleJsonSchema;