@sedni/cloud_common 3.0.0 → 3.0.1

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/dist/index.cjs CHANGED
@@ -30,15 +30,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // app/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ Docs: () => docs_default,
34
+ Mimics: () => Mimics,
35
+ MimicsRequest: () => MimicsRequest,
36
+ MimicsResponse: () => MimicsResponse,
37
+ Schemas: () => Schemas,
38
+ Types: () => Types,
33
39
  default: () => index_default
34
40
  });
35
41
  module.exports = __toCommonJS(index_exports);
36
42
 
37
43
  // app/models/Channel.ts
38
44
  var import_mongoose = __toESM(require("mongoose"), 1);
45
+ var import_mongoose_aggregate_paginate_v2 = __toESM(require("mongoose-aggregate-paginate-v2"), 1);
39
46
  var import_mongoose_autopopulate = __toESM(require("mongoose-autopopulate"), 1);
40
47
  var import_mongoose_paginate_v2 = __toESM(require("mongoose-paginate-v2"), 1);
41
- var import_mongoose_aggregate_paginate_v2 = __toESM(require("mongoose-aggregate-paginate-v2"), 1);
42
48
  var channelSchema = new import_mongoose.default.Schema({
43
49
  channel_tag: {
44
50
  type: String,
@@ -69,7 +75,7 @@ var channelSchema = new import_mongoose.default.Schema({
69
75
  },
70
76
  collection: "channels",
71
77
  toJSON: {
72
- transform: function(doc, ret) {
78
+ transform: function(_doc, ret) {
73
79
  ret.id = ret._id;
74
80
  ret.channel_unit = ret.channel_unit_id;
75
81
  ret.channel_unit_id = ret.channel_unit_id.unit_id;
@@ -78,8 +84,8 @@ var channelSchema = new import_mongoose.default.Schema({
78
84
  }
79
85
  }
80
86
  });
81
- channelSchema.index({ "channel_tag": 1 }, { unique: true });
82
- channelSchema.index({ "channel_description": 1 });
87
+ channelSchema.index({ channel_tag: 1 }, { unique: true });
88
+ channelSchema.index({ channel_description: 1 });
83
89
  channelSchema.plugin(import_mongoose_paginate_v2.default);
84
90
  channelSchema.plugin(import_mongoose_aggregate_paginate_v2.default);
85
91
  channelSchema.plugin(import_mongoose_autopopulate.default);
@@ -153,7 +159,7 @@ var channeldataBucketSchema = new import_mongoose2.default.Schema({
153
159
  versionKey: false
154
160
  });
155
161
  channeldataBucketSchema.index({ start_date: 1, end_date: 1 }, { background: true });
156
- channeldataBucketSchema.index({ start_date: 1, end_date: 1, "data.channel_id": 1 }, { background: true });
162
+ channeldataBucketSchema.index({ "start_date": 1, "end_date": 1, "data.channel_id": 1 }, { background: true });
157
163
  channeldataBucketSchema.index({ start_date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 365, background: true });
158
164
  channeldataBucketSchema.plugin(import_mongoose_paginate_v22.default);
159
165
  channeldataBucketSchema.plugin(import_mongoose_aggregate_paginate_v22.default);
@@ -285,8 +291,8 @@ var eventSchema = new import_mongoose4.default.Schema({
285
291
  }
286
292
  }
287
293
  });
288
- eventSchema.index({ "event_type": 1 });
289
- eventSchema.index({ "event_category": 1 });
294
+ eventSchema.index({ event_type: 1 });
295
+ eventSchema.index({ event_category: 1 });
290
296
  var oneYear2 = 60 * 60 * 24 * 365;
291
297
  eventSchema.addTTLIndex = function(expirationTimeInSeconds = oneYear2, ttlField = "event_timestamp") {
292
298
  this.index({ [ttlField]: 1 }, { expireAfterSeconds: expirationTimeInSeconds });
@@ -406,7 +412,7 @@ var historySchema = new import_mongoose5.default.Schema({
406
412
  }
407
413
  }
408
414
  });
409
- historySchema.index({ "channel_tag": 1 });
415
+ historySchema.index({ channel_tag: 1 });
410
416
  var oneYear3 = 60 * 60 * 24 * 365;
411
417
  historySchema.addTTLIndex = function(expirationTimeInSeconds = oneYear3, ttlField = "alarm_timestamp") {
412
418
  this.index({ [ttlField]: 1 }, { expireAfterSeconds: expirationTimeInSeconds });
@@ -466,8 +472,8 @@ var unitSchema = new import_mongoose6.default.Schema({
466
472
  }
467
473
  }
468
474
  });
469
- unitSchema.index({ "unit_id": 1 }, { unique: true });
470
- unitSchema.index({ "unit_internal_description": 1 });
475
+ unitSchema.index({ unit_id: 1 }, { unique: true });
476
+ unitSchema.index({ unit_internal_description: 1 });
471
477
  unitSchema.plugin(import_mongoose_paginate_v26.default);
472
478
  unitSchema.plugin(import_mongoose_aggregate_paginate_v26.default);
473
479
  var Unit_default = unitSchema;
@@ -1062,6 +1068,25 @@ var AlarmStates = {
1062
1068
  NORMAL: 9,
1063
1069
  OFFLINE: 10
1064
1070
  };
1071
+ var MimicAlarmStates = {
1072
+ ALARM: "Alarm",
1073
+ WARNING: "Warning",
1074
+ UNACKNOWLEDGED_ALARM: "UnacknowledgedAlarm",
1075
+ UNACKNOWLEDGED_WARNING: "UnacknowledgedWarning",
1076
+ ACKNOWLEDGED_ALARM: "AcknowledgedAlarm",
1077
+ ACKNOWLEDGED_WARNING: "AcknowledgedWarning",
1078
+ INHIBITED: "Inhibited",
1079
+ OFF_SCAN: "OffScan",
1080
+ NORMAL: "Normal",
1081
+ OFFLINE: "Offline"
1082
+ };
1083
+ var MimicControlStates = {
1084
+ NO_VALUE: "NoValue",
1085
+ LOCAL: "Local",
1086
+ AUTOMATIC: "Automatic",
1087
+ SEMI_AUTOMATIC: "SemiAuto",
1088
+ UNDEFINED: "Undefined"
1089
+ };
1065
1090
  var ActivationModes = {
1066
1091
  ALARM: "Alarm",
1067
1092
  LOGIC: "Logic",
@@ -1179,6 +1204,18 @@ var RunningStoppedStates = {
1179
1204
  STOPPED: "Stopped",
1180
1205
  UNDEFINED: "Undefined"
1181
1206
  };
1207
+ var AutoSemiAutoStates = {
1208
+ NO_VALUE: "NoValue",
1209
+ AUTOMATIC: "Automatic",
1210
+ SEMI_AUTOMATIC: "SemiAuto",
1211
+ UNDEFINED: "Undefined"
1212
+ };
1213
+ var RemoteLocalStates = {
1214
+ NO_VALUE: "NoValue",
1215
+ REMOTE: "Remote",
1216
+ LOCAL: "Local",
1217
+ UNDEFINED: "Undefined"
1218
+ };
1182
1219
 
1183
1220
  // app/models/mimics/MimicSupport.ts
1184
1221
  var AddedAlarmsJson = {
@@ -1357,8 +1394,8 @@ var DamperJson = {
1357
1394
  };
1358
1395
  var DamperAutomatedJson = {
1359
1396
  Damper: "",
1360
- CommandsOpClTrait: CommandsOpClJson,
1361
- TripResetTrait: TripResetJson
1397
+ FeedbackOpCl: FeedbackOpClJson,
1398
+ TripReset: TripResetJson
1362
1399
  };
1363
1400
  var FanJson = {
1364
1401
  AutomaticSemiAuto: AutomaticSemiAutoJson,
@@ -1406,10 +1443,13 @@ var PumpAutomatedJson = {
1406
1443
  Pump: "",
1407
1444
  PumpDesign: CompressorDesigns.NORMAL,
1408
1445
  AutomaticSemiAuto: AutomaticSemiAutoJson,
1446
+ FeedbackRunningStopped: FeedbackRunningStoppedJson,
1447
+ RemoteLocal: RemoteLocalJson,
1409
1448
  TripReset: TripResetJson
1410
1449
  };
1411
1450
  var TankJson = {
1412
1451
  TankName: "",
1452
+ VolumeChannel: ChannelJson,
1413
1453
  LocationInfo: InfoLocations.RIGHT,
1414
1454
  ShowVolume: true,
1415
1455
  ShowVolumeInPercent: false,
@@ -1438,7 +1478,7 @@ var ValveJson = {
1438
1478
  var ValveAutomatedJson = {
1439
1479
  Valve: "",
1440
1480
  ValveDesign: ValveDesigns.NORMAL,
1441
- CommandsOpCl: CommandsOpClJson,
1481
+ FeedbackOpCl: FeedbackOpClJson,
1442
1482
  TripReset: TripResetJson
1443
1483
  };
1444
1484
 
@@ -1576,7 +1616,8 @@ var BreakerJson = {
1576
1616
  var BreakerPmsJson = {
1577
1617
  Breaker: "",
1578
1618
  RemoteIconSize: 24,
1579
- CommandsOpCl: CommandsOpClJson,
1619
+ FeedbackOpCl: FeedbackOpClJson,
1620
+ RemoteLocal: RemoteLocalJson,
1580
1621
  TripReset: TripResetJson
1581
1622
  };
1582
1623
  var GeneratorJson = {
@@ -1593,9 +1634,13 @@ var GeneratorJson = {
1593
1634
  var GeneratorPmsJson = {
1594
1635
  Generator: "",
1595
1636
  GeneratorNameColor: "#FFFFFF",
1596
- AutomaticSemiAutoTrait: AutomaticSemiAutoJson,
1597
- CommandsStartStopTrait: CommandsStartStopJson,
1598
- TripResetTrait: TripResetJson
1637
+ PowerChannel: ChannelJson,
1638
+ FrequencyChannel: ChannelJson,
1639
+ PriorityChannel: ChannelJson,
1640
+ AutomaticSemiAuto: AutomaticSemiAutoJson,
1641
+ FeedbackRunningStopped: FeedbackRunningStoppedJson,
1642
+ RemoteLocal: RemoteLocalJson,
1643
+ TripReset: TripResetJson
1599
1644
  };
1600
1645
  var OperationModesJson = {
1601
1646
  TextHeight: 12,
@@ -1621,11 +1666,492 @@ var ShaftJson = {
1621
1666
  CloseFeedback: ChannelJson
1622
1667
  };
1623
1668
 
1669
+ // app/network/requests/mimics/MimicSupport.ts
1670
+ var LocalizedTextRequest = {
1671
+ English: "",
1672
+ Spanish: "",
1673
+ French: "",
1674
+ German: ""
1675
+ };
1676
+ var LocationRequest = {
1677
+ X: 0,
1678
+ Y: 0,
1679
+ Z: 0,
1680
+ Rotation: 0
1681
+ };
1682
+ var LogicExpressionsRequest = {
1683
+ LogicExpressions: []
1684
+ };
1685
+ var TextAttributesRequest = {
1686
+ AnchorPoint: TextAnchorPoints.LEFT,
1687
+ Color: "#000000",
1688
+ HasUnderline: false,
1689
+ UnderlineColor: "#000000",
1690
+ UnderlineLength: 10,
1691
+ UnderlineWidth: 1
1692
+ };
1693
+ var TitleRequest = {
1694
+ Show: false,
1695
+ Height: 20,
1696
+ Padding: 5,
1697
+ Align: TitleAligns.LEFT,
1698
+ Color: "#000000",
1699
+ Text: LocalizedTextRequest,
1700
+ Location: LocationRequest
1701
+ };
1702
+
1703
+ // app/network/requests/mimics/AuxiliaryElements.ts
1704
+ var ImageAuxiliaryRequest = {
1705
+ DefaultImageName: "image.png",
1706
+ ImageLogic: LogicExpressionsRequest
1707
+ };
1708
+ var LineAuxiliaryRequest = {
1709
+ LineColor: "#0000",
1710
+ LineColorLogic: LogicExpressionsRequest
1711
+ };
1712
+ var LinkAuxiliaryRequest = {
1713
+ DefaultImageName: "default.png",
1714
+ ImageLogic: LogicExpressionsRequest
1715
+ };
1716
+ var PolylineAuxiliaryRequest = {
1717
+ LinesColor: "#0000",
1718
+ LineColorLogic: LogicExpressionsRequest
1719
+ };
1720
+ var SquareAuxiliaryRequest = {
1721
+ ColorBorder: "#000000",
1722
+ ColorFill: "#FFFFFF",
1723
+ LineColorLogic: LogicExpressionsRequest
1724
+ };
1725
+ var TextAuxiliaryRequest = {};
1726
+
1727
+ // app/network/requests/mimics/ChannelMimic.ts
1728
+ var ChannelRequest = {
1729
+ WithBackup: false,
1730
+ Main: null,
1731
+ Backup: null,
1732
+ Max: 100,
1733
+ Min: 0,
1734
+ Units: ""
1735
+ };
1736
+
1737
+ // app/network/requests/mimics/MimicTraits.ts
1738
+ var AutomaticSemiAutoRequest = {
1739
+ withAutomatic: false,
1740
+ automaticFeedback: null,
1741
+ hasSemiAutoFeedback: false,
1742
+ semiAutoFeedback: null
1743
+ };
1744
+ var CommandsOpClRequest = {
1745
+ commandOpen: null,
1746
+ commandClose: null
1747
+ };
1748
+ var CommandsStartStopRequest = {
1749
+ commandStart: null,
1750
+ commandStop: null
1751
+ };
1752
+ var ControlLockRequest = {
1753
+ hasControlLock: false,
1754
+ controlLock: null
1755
+ };
1756
+ var FeedbackOpClRequest = {
1757
+ openFeedback: null,
1758
+ closeFeedback: null
1759
+ };
1760
+ var FeedbackRunningStoppedRequest = {
1761
+ runFeedback: null,
1762
+ hasStoppedFeedback: false,
1763
+ stoppedFeedback: null
1764
+ };
1765
+ var OrderOpClRequest = {
1766
+ openOrder: null,
1767
+ closeOrder: null
1768
+ };
1769
+ var OrderStartStopRequest = {
1770
+ startOrder: null,
1771
+ stopOrder: null
1772
+ };
1773
+ var RemoteLocalRequest = {
1774
+ remoteFeedback: null,
1775
+ hasLocalFeedback: false,
1776
+ localFeedback: null
1777
+ };
1778
+ var TripResetRequest = {
1779
+ tripFeedback: null,
1780
+ withCommandReset: false,
1781
+ resetCommand: null
1782
+ };
1783
+
1784
+ // app/network/requests/mimics/ControlElements.ts
1785
+ var CompressorRequest = {
1786
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1787
+ FeedbackRunningStopped: FeedbackRunningStoppedRequest,
1788
+ RemoteLocal: RemoteLocalRequest,
1789
+ TripReset: TripResetRequest,
1790
+ IsControl: false
1791
+ };
1792
+ var DamperRequest = {
1793
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1794
+ FeedbackOpCl: FeedbackOpClRequest,
1795
+ RemoteLocal: RemoteLocalRequest,
1796
+ TripReset: TripResetRequest,
1797
+ IsControl: false
1798
+ };
1799
+ var DamperAutomatedRequest = {
1800
+ Damper: "",
1801
+ FeedbackOpCl: FeedbackOpClRequest,
1802
+ TripReset: TripResetRequest
1803
+ };
1804
+ var FanRequest = {
1805
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1806
+ RemoteLocal: RemoteLocalRequest,
1807
+ RunFeedbackSupply: ChannelRequest,
1808
+ RunFeedbackSupplyFast: ChannelRequest,
1809
+ RunFeedbackExhaust: ChannelRequest,
1810
+ RunFeedbackExhaustFast: ChannelRequest,
1811
+ StoppedFeedback: ChannelRequest
1812
+ };
1813
+ var PumpRequest = {
1814
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1815
+ FeedbackRunningStopped: FeedbackRunningStoppedRequest,
1816
+ RemoteLocal: RemoteLocalRequest,
1817
+ TripReset: TripResetRequest,
1818
+ IsControl: false
1819
+ };
1820
+ var PumpAutomatedRequest = {
1821
+ Pump: "",
1822
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1823
+ FeedbackRunningStopped: FeedbackRunningStoppedRequest,
1824
+ RemoteLocal: RemoteLocalRequest,
1825
+ TripReset: TripResetRequest
1826
+ };
1827
+ var TankRequest = {
1828
+ TankName: "",
1829
+ VolumeChannel: null
1830
+ };
1831
+ var ValveRequest = {
1832
+ IsControl: false,
1833
+ FeedbackOpCl: FeedbackOpClRequest,
1834
+ RemoteLocal: RemoteLocalRequest,
1835
+ TripReset: TripResetRequest
1836
+ };
1837
+ var ValveAutomatedRequest = {
1838
+ Valve: "",
1839
+ FeedbackOpCl: FeedbackOpClRequest,
1840
+ TripReset: TripResetRequest
1841
+ };
1842
+
1843
+ // app/network/requests/mimics/Elements.ts
1844
+ var AlarmIndicatorRequest = {
1845
+ AlarmFeedback: null
1846
+ };
1847
+ var CommandRequest = {
1848
+ CommandChannel: null,
1849
+ CloseChannel: null
1850
+ };
1851
+ var DialRequest = {
1852
+ Channel: null
1853
+ };
1854
+ var DigitalRequest = {
1855
+ FeedbackOpCl: FeedbackOpClRequest
1856
+ };
1857
+ var DisplayRequest = {
1858
+ Channel: null
1859
+ };
1860
+ var DynamicTextRequest = {
1861
+ TextAttributes: TextAttributesRequest,
1862
+ DefaultTextColor: "#FFFFFF",
1863
+ DefaultText: LocalizedTextRequest,
1864
+ TextLogic: LogicExpressionsRequest
1865
+ };
1866
+ var LevelBarRequest = {
1867
+ LevelChannel: null
1868
+ };
1869
+ var SliderRequest = {
1870
+ Channel: null
1871
+ };
1872
+ var TextChannelRequest = {
1873
+ Channel: null
1874
+ };
1875
+ var ToggleRequest = {
1876
+ Channel: null
1877
+ };
1878
+
1879
+ // app/network/requests/mimics/IasElements.ts
1880
+ var CabinetRequest = {
1881
+ CabinetId: ""
1882
+ };
1883
+ var RepeaterRequest = {
1884
+ RepeaterId: ""
1885
+ };
1886
+ var StationRequest = {
1887
+ StationId: ""
1888
+ };
1889
+ var UnitRequest = {
1890
+ UnitId: ""
1891
+ };
1892
+
1893
+ // app/network/requests/mimics/PmsElements.ts
1894
+ var BreakerRequest = {
1895
+ FeedbackOpCl: FeedbackOpClRequest,
1896
+ RemoteLocal: RemoteLocalRequest,
1897
+ TripReset: TripResetRequest,
1898
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1899
+ IsControl: false
1900
+ };
1901
+ var BreakerPmsRequest = {
1902
+ Breaker: "",
1903
+ FeedbackOpCl: FeedbackOpClRequest,
1904
+ RemoteLocal: RemoteLocalRequest,
1905
+ TripReset: TripResetRequest
1906
+ };
1907
+ var GeneratorRequest = {
1908
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1909
+ FeedbackRunningStopped: FeedbackRunningStoppedRequest,
1910
+ RemoteLocal: RemoteLocalRequest,
1911
+ TripReset: TripResetRequest,
1912
+ IsControl: false
1913
+ };
1914
+ var GeneratorPmsRequest = {
1915
+ Generator: "",
1916
+ PowerChannel: null,
1917
+ FrequencyChannel: null,
1918
+ PriorityChannel: null,
1919
+ AutomaticSemiAuto: AutomaticSemiAutoRequest,
1920
+ FeedbackRunningStopped: FeedbackRunningStoppedRequest,
1921
+ RemoteLocal: RemoteLocalRequest,
1922
+ TripResetTrait: TripResetRequest
1923
+ };
1924
+ var OperationModesRequest = {
1925
+ ModeToReach: ""
1926
+ };
1927
+ var PriorityDataRequest = {
1928
+ Name: "",
1929
+ ChannelPriority: null,
1930
+ ChannelPriorityFeedback: null
1931
+ };
1932
+ var PrioritiesRequest = {
1933
+ Priorities: []
1934
+ };
1935
+ var ShaftRequest = {
1936
+ WithFeedbackOpen: false,
1937
+ ActivationMode: "",
1938
+ ActivationValue: false,
1939
+ OpenFeedback: ChannelRequest,
1940
+ CloseFeedback: ChannelRequest
1941
+ };
1942
+
1943
+ // app/network/responses/mimics/AuxiliaryElements.ts
1944
+ var ImageAuxiliaryResponse = {
1945
+ ImageName: "image.png"
1946
+ };
1947
+ var LineAuxiliaryResponse = {
1948
+ LineColor: "#0000"
1949
+ };
1950
+ var LinkAuxiliaryResponse = {
1951
+ ImageName: "default.png"
1952
+ };
1953
+ var PolylineAuxiliaryResponse = {
1954
+ LinesColor: "#0000"
1955
+ };
1956
+ var SquareAuxiliaryResponse = {
1957
+ ColorBorder: "#000000",
1958
+ ColorFill: "#FFFFFF"
1959
+ };
1960
+ var TextAuxiliaryResponse = {};
1961
+
1962
+ // app/network/responses/mimics/ControlElements.ts
1963
+ var CompressorResponse = {
1964
+ AlarmState: MimicAlarmStates.OFFLINE,
1965
+ ControlState: MimicControlStates.NO_VALUE,
1966
+ Value: RunningStoppedStates.NO_VALUE,
1967
+ Active: false
1968
+ };
1969
+ var DamperResponse = {
1970
+ AlarmState: MimicAlarmStates.OFFLINE,
1971
+ ControlState: MimicControlStates.NO_VALUE,
1972
+ Value: OpClStates.NO_VALUE,
1973
+ Active: false
1974
+ };
1975
+ var DamperAutomatedResponse = {
1976
+ AlarmState: MimicAlarmStates.OFFLINE,
1977
+ Value: OpClStates.NO_VALUE,
1978
+ Active: false
1979
+ };
1980
+ var FanResponse = {
1981
+ AlarmState: MimicAlarmStates.OFFLINE,
1982
+ ControlState: MimicControlStates.NO_VALUE,
1983
+ RunState: FanRunStates.NO_VALUE,
1984
+ FanDirection: FanDirections.NO_VALUE,
1985
+ Active: false
1986
+ };
1987
+ var PumpResponse = {
1988
+ AlarmState: MimicAlarmStates.OFFLINE,
1989
+ ControlState: MimicControlStates.NO_VALUE,
1990
+ Value: RunningStoppedStates.NO_VALUE,
1991
+ Active: false
1992
+ };
1993
+ var PumpAutomatedResponse = {
1994
+ AlarmState: MimicAlarmStates.OFFLINE,
1995
+ ControlState: MimicControlStates.NO_VALUE,
1996
+ Value: RunningStoppedStates.NO_VALUE,
1997
+ Active: false
1998
+ };
1999
+ var TankResponse = {
2000
+ AlarmState: MimicAlarmStates.OFFLINE,
2001
+ Volume: null,
2002
+ Sounding: null,
2003
+ Percentage: null
2004
+ };
2005
+ var ValveResponse = {
2006
+ AlarmState: MimicAlarmStates.OFFLINE,
2007
+ ControlState: MimicControlStates.NO_VALUE,
2008
+ Value: OpClStates.NO_VALUE,
2009
+ Active: false
2010
+ };
2011
+ var ValveAutomatedResponse = {
2012
+ AlarmState: MimicAlarmStates.OFFLINE,
2013
+ Value: OpClStates.NO_VALUE,
2014
+ Active: false
2015
+ };
2016
+
2017
+ // app/network/responses/mimics/Elements.ts
2018
+ var AlarmIndicatorResponse = {
2019
+ AlarmState: MimicAlarmStates.OFFLINE,
2020
+ Active: false
2021
+ };
2022
+ var CommandResponse = {
2023
+ AlarmState: MimicAlarmStates.OFFLINE,
2024
+ Active: false
2025
+ };
2026
+ var DialResponse = {
2027
+ AlarmState: MimicAlarmStates.OFFLINE,
2028
+ Value: null,
2029
+ Active: false
2030
+ };
2031
+ var DigitalResponse = {
2032
+ AlarmState: MimicAlarmStates.OFFLINE,
2033
+ Value: DigitalStates.NO_VALUE,
2034
+ Active: false
2035
+ };
2036
+ var DisplayResponse = {
2037
+ AlarmState: MimicAlarmStates.OFFLINE,
2038
+ Value: null,
2039
+ Active: false
2040
+ };
2041
+ var DynamicTextResponse = {
2042
+ TextColor: "#FFFFFF",
2043
+ Text: ""
2044
+ };
2045
+ var LevelBarResponse = {
2046
+ AlarmState: MimicAlarmStates.OFFLINE,
2047
+ Value: null,
2048
+ Active: false
2049
+ };
2050
+ var SliderResponse = {
2051
+ AlarmState: MimicAlarmStates.OFFLINE,
2052
+ Value: null,
2053
+ Active: false
2054
+ };
2055
+ var TextChannelResponse = {
2056
+ AlarmState: MimicAlarmStates.OFFLINE,
2057
+ Value: null,
2058
+ Active: false
2059
+ };
2060
+ var ToggleResponse = {
2061
+ AlarmState: MimicAlarmStates.OFFLINE,
2062
+ Value: null,
2063
+ Active: false
2064
+ };
2065
+
2066
+ // app/network/responses/mimics/IasElements.ts
2067
+ var CabinetResponse = {
2068
+ AlarmState: MimicAlarmStates.OFFLINE
2069
+ };
2070
+ var RepeaterResponse = {
2071
+ AlarmState: MimicAlarmStates.OFFLINE
2072
+ };
2073
+ var StationResponse = {
2074
+ AlarmState: MimicAlarmStates.OFFLINE
2075
+ };
2076
+ var UnitResponse = {
2077
+ AlarmState: MimicAlarmStates.OFFLINE
2078
+ };
2079
+
2080
+ // app/network/responses/mimics/PmsElements.ts
2081
+ var BreakerResponse = {
2082
+ AlarmState: MimicAlarmStates.OFFLINE,
2083
+ ControlState: MimicControlStates.NO_VALUE,
2084
+ Value: OpClStates.NO_VALUE,
2085
+ Active: false
2086
+ };
2087
+ var BreakerPmsResponse = {
2088
+ AlarmState: MimicAlarmStates.OFFLINE,
2089
+ ControlState: MimicControlStates.NO_VALUE,
2090
+ Value: OpClStates.NO_VALUE,
2091
+ Active: false
2092
+ };
2093
+ var GeneratorResponse = {
2094
+ AlarmState: MimicAlarmStates.OFFLINE,
2095
+ ControlState: MimicControlStates.NO_VALUE,
2096
+ Value: RunningStoppedStates.NO_VALUE,
2097
+ Active: false
2098
+ };
2099
+ var GeneratorPmsResponse = {
2100
+ AlarmState: MimicAlarmStates.OFFLINE,
2101
+ ControlState: MimicControlStates.NO_VALUE,
2102
+ Value: RunningStoppedStates.NO_VALUE,
2103
+ PowerValue: null,
2104
+ FrequencyValue: null,
2105
+ PriorityValue: null,
2106
+ Active: false
2107
+ };
2108
+ var OperationModesResponse = {
2109
+ AlarmState: OperationModeStates.INACTIVE,
2110
+ Active: false
2111
+ };
2112
+ var PrioritiesResponse = {};
2113
+ var ShaftResponse = {
2114
+ AlarmState: MimicAlarmStates.OFFLINE,
2115
+ Active: false
2116
+ };
2117
+
2118
+ // app/types/channel.types.ts
2119
+ var ChannelBaseTypes = {
2120
+ VIRTUAL_ANALOG: "VirtualAnalog",
2121
+ VIRTUAL_DIGITAL: "VirtualDigital",
2122
+ VIRTUAL_STRING: "VirtualString",
2123
+ WIRED_ANALOG: "WiredAnalog",
2124
+ WIRED_DIGITAL: "WiredDigital"
2125
+ };
2126
+ var ChannelSpecificTypes = {
2127
+ // Wired types
2128
+ DIGITAL_INPUT: "DigitalInput",
2129
+ DIGITAL_OUTPUT: "DigitalOutput",
2130
+ ANALOG_INPUT: "AnalogInput",
2131
+ ANALOG_OUTPUT: "AnalogOutput",
2132
+ // Virtual types
2133
+ ANALOG_SOFTWARE: "AnalogSoftware",
2134
+ DIGITAL_SOFTWARE: "DigitalSoftware",
2135
+ VIRTUAL_STRING: "VirtualString",
2136
+ COMMAND: "Command",
2137
+ // Virtual logic types
2138
+ BROADCAST_COMMAND: "BroadcastCommand",
2139
+ // To be deleted in the near future
2140
+ SOFTWARE: "Software",
2141
+ ANALOG_TIMER: "AnalogTimer",
2142
+ // Serial types
2143
+ SERIAL_DIGITAL_INPUT: "SerialDigitalInput",
2144
+ SERIAL_DIGITAL_OUTPUT: "SerialDigitalOutput",
2145
+ SERIAL_LINE_COMMAND: "SerialLineCommand",
2146
+ SERIAL_ANALOG_INPUT: "SerialAnalogInput",
2147
+ SERIAL_ANALOG_OUTPUT: "SerialAnalogOutput"
2148
+ };
2149
+
1624
2150
  // app/index.ts
1625
2151
  var import_mongoose7 = __toESM(require("mongoose"), 1);
2152
+ var import_mongoose_aggregate_paginate_v27 = __toESM(require("mongoose-aggregate-paginate-v2"), 1);
1626
2153
  var import_mongoose_autopopulate2 = __toESM(require("mongoose-autopopulate"), 1);
1627
2154
  var import_mongoose_paginate_v27 = __toESM(require("mongoose-paginate-v2"), 1);
1628
- var import_mongoose_aggregate_paginate_v27 = __toESM(require("mongoose-aggregate-paginate-v2"), 1);
1629
2155
  var Schemas = {
1630
2156
  Channel: Channel_default,
1631
2157
  ChannelDataBucket: ChannelDataBucket_default,
@@ -1702,6 +2228,106 @@ var Mimics = {
1702
2228
  PrioritiesJson,
1703
2229
  ShaftJson
1704
2230
  };
2231
+ var MimicsRequest = {
2232
+ // Auxiliary
2233
+ ImageAuxiliaryRequest,
2234
+ LineAuxiliaryRequest,
2235
+ LinkAuxiliaryRequest,
2236
+ PolylineAuxiliaryRequest,
2237
+ SquareAuxiliaryRequest,
2238
+ TextAuxiliaryRequest,
2239
+ // Channel
2240
+ ChannelRequest,
2241
+ // Control elements
2242
+ CompressorRequest,
2243
+ DamperRequest,
2244
+ DamperAutomatedRequest,
2245
+ FanRequest,
2246
+ PumpRequest,
2247
+ PumpAutomatedRequest,
2248
+ TankRequest,
2249
+ ValveRequest,
2250
+ ValveAutomatedRequest,
2251
+ // Elements
2252
+ AlarmIndicatorRequest,
2253
+ CommandRequest,
2254
+ DialRequest,
2255
+ DigitalRequest,
2256
+ DisplayRequest,
2257
+ DynamicTextRequest,
2258
+ LevelBarRequest,
2259
+ SliderRequest,
2260
+ TextChannelRequest,
2261
+ ToggleRequest,
2262
+ // IAS elements
2263
+ CabinetRequest,
2264
+ RepeaterRequest,
2265
+ StationRequest,
2266
+ UnitRequest,
2267
+ // Traits
2268
+ AutomaticSemiAutoRequest,
2269
+ CommandsOpClRequest,
2270
+ CommandsStartStopRequest,
2271
+ ControlLockRequest,
2272
+ FeedbackOpClRequest,
2273
+ FeedbackRunningStoppedRequest,
2274
+ OrderOpClRequest,
2275
+ OrderStartStopRequest,
2276
+ RemoteLocalRequest,
2277
+ TripResetRequest,
2278
+ // PMS elements
2279
+ BreakerRequest,
2280
+ BreakerPmsRequest,
2281
+ GeneratorRequest,
2282
+ GeneratorPmsRequest,
2283
+ OperationModesRequest,
2284
+ PriorityDataRequest,
2285
+ PrioritiesRequest,
2286
+ ShaftRequest
2287
+ };
2288
+ var MimicsResponse = {
2289
+ // Auxiliary
2290
+ ImageAuxiliaryResponse,
2291
+ LineAuxiliaryResponse,
2292
+ LinkAuxiliaryResponse,
2293
+ PolylineAuxiliaryResponse,
2294
+ SquareAuxiliaryResponse,
2295
+ TextAuxiliaryResponse,
2296
+ // Control elements
2297
+ CompressorResponse,
2298
+ DamperResponse,
2299
+ DamperAutomatedResponse,
2300
+ FanResponse,
2301
+ PumpResponse,
2302
+ PumpAutomatedResponse,
2303
+ TankResponse,
2304
+ ValveResponse,
2305
+ ValveAutomatedResponse,
2306
+ // Elements
2307
+ AlarmIndicatorResponse,
2308
+ CommandResponse,
2309
+ DialResponse,
2310
+ DigitalResponse,
2311
+ DisplayResponse,
2312
+ DynamicTextResponse,
2313
+ LevelBarResponse,
2314
+ SliderResponse,
2315
+ TextChannelResponse,
2316
+ ToggleResponse,
2317
+ // IAS elements
2318
+ CabinetResponse,
2319
+ RepeaterResponse,
2320
+ StationResponse,
2321
+ UnitResponse,
2322
+ // PMS elements
2323
+ BreakerResponse,
2324
+ BreakerPmsResponse,
2325
+ GeneratorResponse,
2326
+ GeneratorPmsResponse,
2327
+ OperationModesResponse,
2328
+ PrioritiesResponse,
2329
+ ShaftResponse
2330
+ };
1705
2331
  var MimicsTypes = {
1706
2332
  MimicElementTypes,
1707
2333
  ZDepths,
@@ -1709,6 +2335,8 @@ var MimicsTypes = {
1709
2335
  DigitalStates,
1710
2336
  DigitalAlarmStates,
1711
2337
  AlarmStates,
2338
+ MimicAlarmStates,
2339
+ MimicControlStates,
1712
2340
  ActivationModes,
1713
2341
  TextAnchorPoints,
1714
2342
  ValveDesigns,
@@ -1731,23 +2359,34 @@ var MimicsTypes = {
1731
2359
  CabinetDesigns,
1732
2360
  LinkDesigns,
1733
2361
  OpClStates,
1734
- RunningStoppedStates
2362
+ RunningStoppedStates,
2363
+ AutoSemiAutoStates,
2364
+ RemoteLocalStates
1735
2365
  };
1736
2366
  var Types = {
1737
2367
  AlarmTypes,
1738
2368
  AlarmPriorities,
1739
2369
  CloudAlarmStates,
1740
2370
  DiamarAlarmStates,
2371
+ ChannelBaseTypes,
2372
+ ChannelSpecificTypes,
1741
2373
  EventCategories,
2374
+ EventCriticalities,
2375
+ UnitTypes,
1742
2376
  Mimics: MimicsTypes
1743
2377
  };
1744
2378
  var index_default = {
1745
- Schemas,
1746
- Docs: docs_default,
1747
- Mimics,
1748
- Types,
1749
2379
  mongoose: import_mongoose7.default,
1750
2380
  mongoosePaginate: import_mongoose_paginate_v27.default,
1751
2381
  mongooseAggregatePaginate: import_mongoose_aggregate_paginate_v27.default,
1752
2382
  mongooseAutopopulate: import_mongoose_autopopulate2.default
1753
2383
  };
2384
+ // Annotate the CommonJS export names for ESM import in node:
2385
+ 0 && (module.exports = {
2386
+ Docs,
2387
+ Mimics,
2388
+ MimicsRequest,
2389
+ MimicsResponse,
2390
+ Schemas,
2391
+ Types
2392
+ });