@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
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { c2 as UnitTypes, bp as AlarmPriority, by as DiamarAlarmState, bw as CloudAlarmState, br as AlarmType, c3 as AlarmPriorities, c4 as DiamarAlarmStates, c5 as CloudAlarmStates, c6 as AlarmTypes, c7 as EventCategories, c8 as EventCriticalities, I as ImageAuxiliaryJsonSchema, L as LineAuxiliaryJsonSchema, a as LinkAuxiliaryJsonSchema, P as PolylineAuxiliaryJsonSchema, S as SquareAuxiliaryJsonSchema, T as TextAuxiliaryJsonSchema, C as ChannelJsonSchema, b as CompressorJsonSchema, D as DamperJsonSchema, c as DamperAutomatedJsonSchema, F as FanJsonSchema, d as PumpJsonSchema, e as PumpAutomatedJsonSchema, f as TankJsonSchema, V as ValveJsonSchema, g as ValveAutomatedJsonSchema, A as AlarmIndicatorJsonSchema, h as CommandJsonSchema, i as DialJsonSchema, j as DigitalJsonSchema, k as DisplayJsonSchema, l as DynamicTextJsonSchema, m as LevelBarJsonSchema, n as SliderJsonSchema, o as TextChannelJsonSchema, p as ToggleJsonSchema, q as CabinetJsonSchema, R as RepeaterJsonSchema, r as StationJsonSchema, U as UnitJsonSchema, s as AddedAlarmsJsonSchema, B as BackgroundJsonSchema, t as LineJsonSchema, u as LocalizedTextJsonSchema, v as LocationJsonSchema, w as LogicExpressionJsonSchema, x as LogicExpressionsJsonSchema, y as ScaleJsonSchema, z as TextAttributesJsonSchema, E as TitleJsonSchema, G as AutomaticSemiAutoJsonSchema, H as CommandsOpClJsonSchema, J as CommandsStartStopJsonSchema, K as ControlLockJsonSchema, M as FeedbackOpClJsonSchema, N as FeedbackRunningStoppedJsonSchema, O as OrderOpClJsonSchema, Q as OrderStartStopJsonSchema, W as RemoteLocalJsonSchema, X as TripResetJsonSchema, Y as BreakerJsonSchema, Z as BreakerPmsJsonSchema, _ as GeneratorJsonSchema, $ as GeneratorPmsJsonSchema, a0 as OperationModesJsonSchema, a1 as PriorityDataJsonSchema, a2 as PrioritiesJsonSchema, a3 as ShaftJsonSchema, a4 as ImageAuxiliaryRequestSchema, a5 as LineAuxiliaryRequestSchema, a6 as LinkAuxiliaryRequestSchema, a7 as PolylineAuxiliaryRequestSchema, a8 as SquareAuxiliaryRequestSchema, a9 as TextAuxiliaryRequestSchema, aa as ChannelRequestSchema, ab as CompressorRequestSchema, ac as DamperRequestSchema, ad as DamperAutomatedRequestSchema, ae as FanRequestSchema, af as PumpRequestSchema, ag as PumpAutomatedRequestSchema, ah as TankRequestSchema, ai as ValveRequestSchema, aj as ValveAutomatedRequestSchema, ak as AlarmIndicatorRequestSchema, al as CommandRequestSchema, am as DialRequestSchema, an as DigitalRequestSchema, ao as DisplayRequestSchema, ap as DynamicTextRequestSchema, aq as LevelBarRequestSchema, ar as SliderRequestSchema, as as TextChannelRequestSchema, at as ToggleRequestSchema, au as CabinetRequestSchema, av as RepeaterRequestSchema, aw as StationRequestSchema, ax as UnitRequestSchema, ay as AutomaticSemiAutoRequestSchema, az as CommandsOpClRequestSchema, aA as CommandsStartStopRequestSchema, aB as ControlLockRequestSchema, aC as FeedbackOpClRequestSchema, aD as FeedbackRunningStoppedRequestSchema, aE as OrderOpClRequestSchema, aF as OrderStartStopRequestSchema, aG as RemoteLocalRequestSchema, aH as TripResetRequestSchema, aI as BreakerRequestSchema, aJ as BreakerPmsRequestSchema, aK as GeneratorRequestSchema, aL as GeneratorPmsRequestSchema, aM as OperationModesRequestSchema, aN as PriorityDataRequestSchema, aO as PrioritiesRequestSchema, aP as ShaftRequestSchema, aQ as ImageAuxiliaryResponseSchema, aR as LineAuxiliaryResponseSchema, aS as LinkAuxiliaryResponseSchema, aT as PolylineAuxiliaryResponseSchema, aU as SquareAuxiliaryResponseSchema, aV as TextAuxiliaryResponseSchema, aW as CompressorResponseSchema, aX as DamperResponseSchema, aY as DamperAutomatedResponseSchema, aZ as FanResponseSchema, a_ as PumpResponseSchema, a$ as PumpAutomatedResponseSchema, b0 as TankResponseSchema, b1 as ValveResponseSchema, b2 as ValveAutomatedResponseSchema, b3 as AlarmIndicatorResponseSchema, b4 as CommandResponseSchema, b5 as DialResponseSchema, b6 as DigitalResponseSchema, b7 as DisplayResponseSchema, b8 as DynamicTextResponseSchema, b9 as LevelBarResponseSchema, ba as SliderResponseSchema, bb as TextChannelResponseSchema, bc as ToggleResponseSchema, bd as CabinetResponseSchema, be as RepeaterResponseSchema, bf as StationResponseSchema, bg as UnitResponseSchema, bh as BreakerResponseSchema, bi as BreakerPmsResponseSchema, bj as GeneratorResponseSchema, bk as GeneratorPmsResponseSchema, bl as OperationModesResponseSchema, bm as PrioritiesResponseSchema, bn as ShaftResponseSchema } from './unit.types-BZWIS1vq.cjs';
2
- export { bo as ActivationMode, bq as AlarmState, bs as AutoSemiAutoState, bt as CabinetDesign, bu as ChannelBaseType, bv as ChannelSpecificType, bx as CompressorDesign, bz as DigitalAlarmState, bA as DigitalState, bB as EventCategory, bC as EventCriticality, bD as FanDesign, bE as FanDirection, bF as FanRunState, bG as FanType, c9 as InfoLocation, bH as LedType, bI as LevelBarOrientation, bJ as LineRequestSchema, bK as LinkDesign, bL as MarkType, bM as MimicAlarmState, bN as MimicControlState, bO as MimicElementType, bP as OpClState, bQ as OperationModeState, bR as RemoteLocalState, bS as RepeaterDesign, bT as RunningStoppedState, bU as ScalePosition, bV as SliderOrientation, bW as StationDesign, bX as TextAnchorPoint, bY as TitleAlign, bZ as UnitDesign, b_ as UnitType, b$ as ValueType, c0 as ValveDesign, c1 as ZDepth } from './unit.types-BZWIS1vq.cjs';
1
+ import { c6 as UnitTypes, bp as AlarmPriority, bz as DiamarAlarmState, bx as CloudAlarmState, br as AlarmType, c7 as AlarmPriorities, c8 as DiamarAlarmStates, c9 as CloudAlarmStates, ca as AlarmTypes, cb as EventCategories, cc as EventCriticalities, I as ImageAuxiliaryJsonSchema, L as LineAuxiliaryJsonSchema, a as LinkAuxiliaryJsonSchema, P as PolylineAuxiliaryJsonSchema, S as SquareAuxiliaryJsonSchema, T as TextAuxiliaryJsonSchema, C as ChannelJsonSchema, b as CompressorJsonSchema, D as DamperJsonSchema, c as DamperAutomatedJsonSchema, F as FanJsonSchema, d as PumpJsonSchema, e as PumpAutomatedJsonSchema, f as TankJsonSchema, V as ValveJsonSchema, g as ValveAutomatedJsonSchema, A as AlarmIndicatorJsonSchema, h as CommandJsonSchema, i as DialJsonSchema, j as DigitalJsonSchema, k as DisplayJsonSchema, l as DynamicTextJsonSchema, m as LevelBarJsonSchema, n as SliderJsonSchema, o as TextChannelJsonSchema, p as ToggleJsonSchema, q as CabinetJsonSchema, R as RepeaterJsonSchema, r as StationJsonSchema, U as UnitJsonSchema, s as AddedAlarmsJsonSchema, B as BackgroundJsonSchema, t as LineJsonSchema, u as LocalizedTextJsonSchema, v as LocationJsonSchema, w as LogicExpressionJsonSchema, x as LogicExpressionsJsonSchema, y as ScaleJsonSchema, z as TextAttributesJsonSchema, E as TitleJsonSchema, G as AutomaticSemiAutoJsonSchema, H as CommandsOpClJsonSchema, J as CommandsStartStopJsonSchema, K as ControlLockJsonSchema, M as FeedbackOpClJsonSchema, N as FeedbackRunningStoppedJsonSchema, O as OrderOpClJsonSchema, Q as OrderStartStopJsonSchema, W as RemoteLocalJsonSchema, X as TripResetJsonSchema, Y as BreakerJsonSchema, Z as BreakerPmsJsonSchema, _ as GeneratorJsonSchema, $ as GeneratorPmsJsonSchema, a0 as OperationModesJsonSchema, a1 as PriorityDataJsonSchema, a2 as PrioritiesJsonSchema, a3 as ShaftJsonSchema, a4 as ImageAuxiliaryRequestSchema, a5 as LineAuxiliaryRequestSchema, a6 as LinkAuxiliaryRequestSchema, a7 as PolylineAuxiliaryRequestSchema, a8 as SquareAuxiliaryRequestSchema, a9 as TextAuxiliaryRequestSchema, aa as ChannelRequestSchema, ab as CompressorRequestSchema, ac as DamperRequestSchema, ad as DamperAutomatedRequestSchema, ae as FanRequestSchema, af as PumpRequestSchema, ag as PumpAutomatedRequestSchema, ah as TankRequestSchema, ai as ValveRequestSchema, aj as ValveAutomatedRequestSchema, ak as AlarmIndicatorRequestSchema, al as CommandRequestSchema, am as DialRequestSchema, an as DigitalRequestSchema, ao as DisplayRequestSchema, ap as DynamicTextRequestSchema, aq as LevelBarRequestSchema, ar as SliderRequestSchema, as as TextChannelRequestSchema, at as ToggleRequestSchema, au as CabinetRequestSchema, av as RepeaterRequestSchema, aw as StationRequestSchema, ax as UnitRequestSchema, ay as AutomaticSemiAutoRequestSchema, az as CommandsOpClRequestSchema, aA as CommandsStartStopRequestSchema, aB as ControlLockRequestSchema, aC as FeedbackOpClRequestSchema, aD as FeedbackRunningStoppedRequestSchema, aE as OrderOpClRequestSchema, aF as OrderStartStopRequestSchema, aG as RemoteLocalRequestSchema, aH as TripResetRequestSchema, aI as BreakerRequestSchema, aJ as BreakerPmsRequestSchema, aK as GeneratorRequestSchema, aL as GeneratorPmsRequestSchema, aM as OperationModesRequestSchema, aN as PriorityDataRequestSchema, aO as PrioritiesRequestSchema, aP as ShaftRequestSchema, aQ as ImageAuxiliaryResponseSchema, aR as LineAuxiliaryResponseSchema, aS as LinkAuxiliaryResponseSchema, aT as PolylineAuxiliaryResponseSchema, aU as SquareAuxiliaryResponseSchema, aV as TextAuxiliaryResponseSchema, aW as CompressorResponseSchema, aX as DamperResponseSchema, aY as DamperAutomatedResponseSchema, aZ as FanResponseSchema, a_ as PumpResponseSchema, a$ as PumpAutomatedResponseSchema, b0 as TankResponseSchema, b1 as ValveResponseSchema, b2 as ValveAutomatedResponseSchema, b3 as AlarmIndicatorResponseSchema, b4 as CommandResponseSchema, b5 as DialResponseSchema, b6 as DigitalResponseSchema, b7 as DisplayResponseSchema, b8 as DynamicTextResponseSchema, b9 as LevelBarResponseSchema, ba as SliderResponseSchema, bb as TextChannelResponseSchema, bc as ToggleResponseSchema, bd as CabinetResponseSchema, be as RepeaterResponseSchema, bf as StationResponseSchema, bg as UnitResponseSchema, bh as BreakerResponseSchema, bi as BreakerPmsResponseSchema, bj as GeneratorResponseSchema, bk as GeneratorPmsResponseSchema, bl as OperationModesResponseSchema, bm as PrioritiesResponseSchema, bn as ShaftResponseSchema } from './user.types-CBlsVzYC.cjs';
2
+ export { bo as ActivationMode, bq as AlarmState, bs as AutoSemiAutoState, bt as CabinetDesign, bu as ChannelBaseType, bv as ChannelSpecificType, bw as ChartType, by as CompressorDesign, bA as DigitalAlarmState, bB as DigitalState, bC as EventCategory, bD as EventCriticality, bE as FanDesign, bF as FanDirection, bG as FanRunState, bH as FanType, bI as InfoLocation, bJ as LedType, bK as LevelBarOrientation, bL as LineRequestSchema, bM as LinkDesign, bN as MarkType, bO as MimicAlarmState, bP as MimicControlState, bQ as MimicElementType, bR as OpClState, bS as OperationModeState, bT as RemoteLocalState, bU as RepeaterDesign, bV as RunningStoppedState, bW as ScalePosition, bX as ShipType, bY as SliderOrientation, bZ as StationDesign, b_ as TextAnchorPoint, b$ as TitleAlign, c0 as UnitDesign, c1 as UnitType, c2 as UserType, c3 as ValueType, c4 as ValveDesign, c5 as ZDepth } from './user.types-CBlsVzYC.cjs';
3
3
  import mongoose from 'mongoose';
4
4
  import mongooseAggregatePaginate from 'mongoose-aggregate-paginate-v2';
5
5
  import mongooseAutopopulate from 'mongoose-autopopulate';
@@ -1251,6 +1251,13 @@ declare const Schemas: {
1251
1251
  }>;
1252
1252
  };
1253
1253
 
1254
+ declare const _default: {
1255
+ mongoose: typeof mongoose;
1256
+ mongoosePaginate: typeof mongoosePaginate;
1257
+ mongooseAggregatePaginate: typeof mongooseAggregatePaginate;
1258
+ mongooseAutopopulate: typeof mongooseAutopopulate;
1259
+ };
1260
+
1254
1261
  declare const Mimics: {
1255
1262
  ImageAuxiliaryJson: ImageAuxiliaryJsonSchema;
1256
1263
  LineAuxiliaryJson: LineAuxiliaryJsonSchema;
@@ -1483,6 +1490,22 @@ declare const Types: {
1483
1490
  readonly ERROR: "Error";
1484
1491
  readonly CRITICAL: "Critical";
1485
1492
  };
1493
+ ChartTypes: {
1494
+ readonly VERTICAL_BAR: "VerticalBar";
1495
+ readonly LINES: "Lines";
1496
+ readonly CURVES: "Curves";
1497
+ readonly LINES_SOLID: "LinesSolid";
1498
+ readonly CURVES_SOLID: "CurvesSolid";
1499
+ };
1500
+ ShipTypes: {
1501
+ readonly CARGO: "Cargo";
1502
+ readonly FISHING: "Fishing";
1503
+ readonly PASSENGER: "Passenger";
1504
+ readonly OCEANOGRAPHIC: "Oceanographic";
1505
+ readonly MILITARY: "Military";
1506
+ readonly LIFEBOAT: "Lifeboat";
1507
+ readonly TUG: "Tug";
1508
+ };
1486
1509
  UnitTypes: {
1487
1510
  readonly AIM18: "Aim18";
1488
1511
  readonly DIM36: "Dim36";
@@ -1493,6 +1516,11 @@ declare const Types: {
1493
1516
  readonly SLIM: "Slim";
1494
1517
  readonly TIM28: "Tim28";
1495
1518
  };
1519
+ UserTypes: {
1520
+ readonly SEDNI_ADMIN: "sedni_admin";
1521
+ readonly FLEET_ADMIN: "fleet_admin";
1522
+ readonly USER: "user";
1523
+ };
1496
1524
  Mimics: {
1497
1525
  MimicElementTypes: {
1498
1526
  readonly IMAGE: "Image";
@@ -1568,23 +1596,23 @@ declare const Types: {
1568
1596
  readonly OFFLINE: 10;
1569
1597
  };
1570
1598
  MimicAlarmStates: {
1571
- ALARM: string;
1572
- WARNING: string;
1573
- UNACKNOWLEDGED_ALARM: string;
1574
- UNACKNOWLEDGED_WARNING: string;
1575
- ACKNOWLEDGED_ALARM: string;
1576
- ACKNOWLEDGED_WARNING: string;
1577
- INHIBITED: string;
1578
- OFF_SCAN: string;
1579
- NORMAL: string;
1580
- OFFLINE: string;
1599
+ readonly ALARM: "Alarm";
1600
+ readonly WARNING: "Warning";
1601
+ readonly UNACKNOWLEDGED_ALARM: "UnacknowledgedAlarm";
1602
+ readonly UNACKNOWLEDGED_WARNING: "UnacknowledgedWarning";
1603
+ readonly ACKNOWLEDGED_ALARM: "AcknowledgedAlarm";
1604
+ readonly ACKNOWLEDGED_WARNING: "AcknowledgedWarning";
1605
+ readonly INHIBITED: "Inhibited";
1606
+ readonly OFF_SCAN: "OffScan";
1607
+ readonly NORMAL: "Normal";
1608
+ readonly OFFLINE: "Offline";
1581
1609
  };
1582
1610
  MimicControlStates: {
1583
- NO_VALUE: string;
1584
- LOCAL: string;
1585
- AUTOMATIC: string;
1586
- SEMI_AUTOMATIC: string;
1587
- UNDEFINED: string;
1611
+ readonly NO_VALUE: "NoValue";
1612
+ readonly LOCAL: "Local";
1613
+ readonly AUTOMATIC: "Automatic";
1614
+ readonly SEMI_AUTOMATIC: "SemiAuto";
1615
+ readonly UNDEFINED: "Undefined";
1588
1616
  };
1589
1617
  ActivationModes: {
1590
1618
  readonly ALARM: "Alarm";
@@ -1718,11 +1746,4 @@ declare const Types: {
1718
1746
  };
1719
1747
  };
1720
1748
 
1721
- declare const _default: {
1722
- mongoose: typeof mongoose;
1723
- mongoosePaginate: typeof mongoosePaginate;
1724
- mongooseAggregatePaginate: typeof mongooseAggregatePaginate;
1725
- mongooseAutopopulate: typeof mongooseAutopopulate;
1726
- };
1727
-
1728
1749
  export { AddedAlarmsJsonSchema, AlarmIndicatorJsonSchema, AlarmIndicatorRequestSchema, AlarmIndicatorResponseSchema, AlarmPriority, AlarmType, AutomaticSemiAutoJsonSchema, AutomaticSemiAutoRequestSchema, BackgroundJsonSchema, BreakerJsonSchema, BreakerPmsJsonSchema, BreakerPmsRequestSchema, BreakerPmsResponseSchema, BreakerRequestSchema, BreakerResponseSchema, CabinetJsonSchema, CabinetRequestSchema, CabinetResponseSchema, type ChannelDataBucketDocument, type ChannelDataBucketJSON, type ChannelDataBucketModel, type ChannelDataPointDocument, type ChannelDataPointJSON, type ChannelDataPointModel, type ChannelDocument, type ChannelJSON, ChannelJsonSchema, type ChannelModel, CloudAlarmState, CommandJsonSchema, CommandRequestSchema, CommandResponseSchema, CommandsOpClJsonSchema, CommandsOpClRequestSchema, CommandsStartStopJsonSchema, CommandsStartStopRequestSchema, CompressorJsonSchema, CompressorRequestSchema, CompressorResponseSchema, ControlLockJsonSchema, ControlLockRequestSchema, DamperAutomatedJsonSchema, DamperAutomatedRequestSchema, DamperAutomatedResponseSchema, DamperJsonSchema, DamperRequestSchema, DamperResponseSchema, DialJsonSchema, DialRequestSchema, DialResponseSchema, DiamarAlarmState, DigitalJsonSchema, DigitalRequestSchema, DigitalResponseSchema, DisplayJsonSchema, DisplayRequestSchema, DisplayResponseSchema, Docs, DynamicTextJsonSchema, DynamicTextRequestSchema, DynamicTextResponseSchema, type EventDocument, type EventJSON, type EventModel, FanJsonSchema, FanRequestSchema, FanResponseSchema, FeedbackOpClJsonSchema, FeedbackOpClRequestSchema, FeedbackRunningStoppedJsonSchema, FeedbackRunningStoppedRequestSchema, GeneratorJsonSchema, GeneratorPmsJsonSchema, GeneratorPmsRequestSchema, GeneratorPmsResponseSchema, GeneratorRequestSchema, GeneratorResponseSchema, type HistoryDocument, type HistoryJSON, type HistoryModel, ImageAuxiliaryJsonSchema, ImageAuxiliaryRequestSchema, ImageAuxiliaryResponseSchema, LevelBarJsonSchema, LevelBarRequestSchema, LevelBarResponseSchema, LineAuxiliaryJsonSchema, LineAuxiliaryRequestSchema, LineAuxiliaryResponseSchema, LineJsonSchema, LinkAuxiliaryJsonSchema, LinkAuxiliaryRequestSchema, LinkAuxiliaryResponseSchema, LocalizedTextJsonSchema, LocationJsonSchema, LogicExpressionJsonSchema, LogicExpressionsJsonSchema, Mimics, MimicsRequest, MimicsResponse, OperationModesJsonSchema, OperationModesRequestSchema, OperationModesResponseSchema, OrderOpClJsonSchema, OrderOpClRequestSchema, OrderStartStopJsonSchema, OrderStartStopRequestSchema, PolylineAuxiliaryJsonSchema, PolylineAuxiliaryRequestSchema, PolylineAuxiliaryResponseSchema, PrioritiesJsonSchema, PrioritiesRequestSchema, PrioritiesResponseSchema, PriorityDataJsonSchema, PriorityDataRequestSchema, PumpAutomatedJsonSchema, PumpAutomatedRequestSchema, PumpAutomatedResponseSchema, PumpJsonSchema, PumpRequestSchema, PumpResponseSchema, RemoteLocalJsonSchema, RemoteLocalRequestSchema, RepeaterJsonSchema, RepeaterRequestSchema, RepeaterResponseSchema, ScaleJsonSchema, Schemas, ShaftJsonSchema, ShaftRequestSchema, ShaftResponseSchema, SliderJsonSchema, SliderRequestSchema, SliderResponseSchema, SquareAuxiliaryJsonSchema, SquareAuxiliaryRequestSchema, SquareAuxiliaryResponseSchema, StationJsonSchema, StationRequestSchema, StationResponseSchema, TankJsonSchema, TankRequestSchema, TankResponseSchema, TextAttributesJsonSchema, TextAuxiliaryJsonSchema, TextAuxiliaryRequestSchema, TextAuxiliaryResponseSchema, TextChannelJsonSchema, TextChannelRequestSchema, TextChannelResponseSchema, TitleJsonSchema, ToggleJsonSchema, ToggleRequestSchema, ToggleResponseSchema, TripResetJsonSchema, TripResetRequestSchema, Types, type UnitDocument, type UnitJSON, UnitJsonSchema, type UnitModel, UnitRequestSchema, UnitResponseSchema, ValveAutomatedJsonSchema, ValveAutomatedRequestSchema, ValveAutomatedResponseSchema, ValveJsonSchema, ValveRequestSchema, ValveResponseSchema, _default as default };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { c2 as UnitTypes, bp as AlarmPriority, by as DiamarAlarmState, bw as CloudAlarmState, br as AlarmType, c3 as AlarmPriorities, c4 as DiamarAlarmStates, c5 as CloudAlarmStates, c6 as AlarmTypes, c7 as EventCategories, c8 as EventCriticalities, I as ImageAuxiliaryJsonSchema, L as LineAuxiliaryJsonSchema, a as LinkAuxiliaryJsonSchema, P as PolylineAuxiliaryJsonSchema, S as SquareAuxiliaryJsonSchema, T as TextAuxiliaryJsonSchema, C as ChannelJsonSchema, b as CompressorJsonSchema, D as DamperJsonSchema, c as DamperAutomatedJsonSchema, F as FanJsonSchema, d as PumpJsonSchema, e as PumpAutomatedJsonSchema, f as TankJsonSchema, V as ValveJsonSchema, g as ValveAutomatedJsonSchema, A as AlarmIndicatorJsonSchema, h as CommandJsonSchema, i as DialJsonSchema, j as DigitalJsonSchema, k as DisplayJsonSchema, l as DynamicTextJsonSchema, m as LevelBarJsonSchema, n as SliderJsonSchema, o as TextChannelJsonSchema, p as ToggleJsonSchema, q as CabinetJsonSchema, R as RepeaterJsonSchema, r as StationJsonSchema, U as UnitJsonSchema, s as AddedAlarmsJsonSchema, B as BackgroundJsonSchema, t as LineJsonSchema, u as LocalizedTextJsonSchema, v as LocationJsonSchema, w as LogicExpressionJsonSchema, x as LogicExpressionsJsonSchema, y as ScaleJsonSchema, z as TextAttributesJsonSchema, E as TitleJsonSchema, G as AutomaticSemiAutoJsonSchema, H as CommandsOpClJsonSchema, J as CommandsStartStopJsonSchema, K as ControlLockJsonSchema, M as FeedbackOpClJsonSchema, N as FeedbackRunningStoppedJsonSchema, O as OrderOpClJsonSchema, Q as OrderStartStopJsonSchema, W as RemoteLocalJsonSchema, X as TripResetJsonSchema, Y as BreakerJsonSchema, Z as BreakerPmsJsonSchema, _ as GeneratorJsonSchema, $ as GeneratorPmsJsonSchema, a0 as OperationModesJsonSchema, a1 as PriorityDataJsonSchema, a2 as PrioritiesJsonSchema, a3 as ShaftJsonSchema, a4 as ImageAuxiliaryRequestSchema, a5 as LineAuxiliaryRequestSchema, a6 as LinkAuxiliaryRequestSchema, a7 as PolylineAuxiliaryRequestSchema, a8 as SquareAuxiliaryRequestSchema, a9 as TextAuxiliaryRequestSchema, aa as ChannelRequestSchema, ab as CompressorRequestSchema, ac as DamperRequestSchema, ad as DamperAutomatedRequestSchema, ae as FanRequestSchema, af as PumpRequestSchema, ag as PumpAutomatedRequestSchema, ah as TankRequestSchema, ai as ValveRequestSchema, aj as ValveAutomatedRequestSchema, ak as AlarmIndicatorRequestSchema, al as CommandRequestSchema, am as DialRequestSchema, an as DigitalRequestSchema, ao as DisplayRequestSchema, ap as DynamicTextRequestSchema, aq as LevelBarRequestSchema, ar as SliderRequestSchema, as as TextChannelRequestSchema, at as ToggleRequestSchema, au as CabinetRequestSchema, av as RepeaterRequestSchema, aw as StationRequestSchema, ax as UnitRequestSchema, ay as AutomaticSemiAutoRequestSchema, az as CommandsOpClRequestSchema, aA as CommandsStartStopRequestSchema, aB as ControlLockRequestSchema, aC as FeedbackOpClRequestSchema, aD as FeedbackRunningStoppedRequestSchema, aE as OrderOpClRequestSchema, aF as OrderStartStopRequestSchema, aG as RemoteLocalRequestSchema, aH as TripResetRequestSchema, aI as BreakerRequestSchema, aJ as BreakerPmsRequestSchema, aK as GeneratorRequestSchema, aL as GeneratorPmsRequestSchema, aM as OperationModesRequestSchema, aN as PriorityDataRequestSchema, aO as PrioritiesRequestSchema, aP as ShaftRequestSchema, aQ as ImageAuxiliaryResponseSchema, aR as LineAuxiliaryResponseSchema, aS as LinkAuxiliaryResponseSchema, aT as PolylineAuxiliaryResponseSchema, aU as SquareAuxiliaryResponseSchema, aV as TextAuxiliaryResponseSchema, aW as CompressorResponseSchema, aX as DamperResponseSchema, aY as DamperAutomatedResponseSchema, aZ as FanResponseSchema, a_ as PumpResponseSchema, a$ as PumpAutomatedResponseSchema, b0 as TankResponseSchema, b1 as ValveResponseSchema, b2 as ValveAutomatedResponseSchema, b3 as AlarmIndicatorResponseSchema, b4 as CommandResponseSchema, b5 as DialResponseSchema, b6 as DigitalResponseSchema, b7 as DisplayResponseSchema, b8 as DynamicTextResponseSchema, b9 as LevelBarResponseSchema, ba as SliderResponseSchema, bb as TextChannelResponseSchema, bc as ToggleResponseSchema, bd as CabinetResponseSchema, be as RepeaterResponseSchema, bf as StationResponseSchema, bg as UnitResponseSchema, bh as BreakerResponseSchema, bi as BreakerPmsResponseSchema, bj as GeneratorResponseSchema, bk as GeneratorPmsResponseSchema, bl as OperationModesResponseSchema, bm as PrioritiesResponseSchema, bn as ShaftResponseSchema } from './unit.types-BZWIS1vq.js';
2
- export { bo as ActivationMode, bq as AlarmState, bs as AutoSemiAutoState, bt as CabinetDesign, bu as ChannelBaseType, bv as ChannelSpecificType, bx as CompressorDesign, bz as DigitalAlarmState, bA as DigitalState, bB as EventCategory, bC as EventCriticality, bD as FanDesign, bE as FanDirection, bF as FanRunState, bG as FanType, c9 as InfoLocation, bH as LedType, bI as LevelBarOrientation, bJ as LineRequestSchema, bK as LinkDesign, bL as MarkType, bM as MimicAlarmState, bN as MimicControlState, bO as MimicElementType, bP as OpClState, bQ as OperationModeState, bR as RemoteLocalState, bS as RepeaterDesign, bT as RunningStoppedState, bU as ScalePosition, bV as SliderOrientation, bW as StationDesign, bX as TextAnchorPoint, bY as TitleAlign, bZ as UnitDesign, b_ as UnitType, b$ as ValueType, c0 as ValveDesign, c1 as ZDepth } from './unit.types-BZWIS1vq.js';
1
+ import { c6 as UnitTypes, bp as AlarmPriority, bz as DiamarAlarmState, bx as CloudAlarmState, br as AlarmType, c7 as AlarmPriorities, c8 as DiamarAlarmStates, c9 as CloudAlarmStates, ca as AlarmTypes, cb as EventCategories, cc as EventCriticalities, I as ImageAuxiliaryJsonSchema, L as LineAuxiliaryJsonSchema, a as LinkAuxiliaryJsonSchema, P as PolylineAuxiliaryJsonSchema, S as SquareAuxiliaryJsonSchema, T as TextAuxiliaryJsonSchema, C as ChannelJsonSchema, b as CompressorJsonSchema, D as DamperJsonSchema, c as DamperAutomatedJsonSchema, F as FanJsonSchema, d as PumpJsonSchema, e as PumpAutomatedJsonSchema, f as TankJsonSchema, V as ValveJsonSchema, g as ValveAutomatedJsonSchema, A as AlarmIndicatorJsonSchema, h as CommandJsonSchema, i as DialJsonSchema, j as DigitalJsonSchema, k as DisplayJsonSchema, l as DynamicTextJsonSchema, m as LevelBarJsonSchema, n as SliderJsonSchema, o as TextChannelJsonSchema, p as ToggleJsonSchema, q as CabinetJsonSchema, R as RepeaterJsonSchema, r as StationJsonSchema, U as UnitJsonSchema, s as AddedAlarmsJsonSchema, B as BackgroundJsonSchema, t as LineJsonSchema, u as LocalizedTextJsonSchema, v as LocationJsonSchema, w as LogicExpressionJsonSchema, x as LogicExpressionsJsonSchema, y as ScaleJsonSchema, z as TextAttributesJsonSchema, E as TitleJsonSchema, G as AutomaticSemiAutoJsonSchema, H as CommandsOpClJsonSchema, J as CommandsStartStopJsonSchema, K as ControlLockJsonSchema, M as FeedbackOpClJsonSchema, N as FeedbackRunningStoppedJsonSchema, O as OrderOpClJsonSchema, Q as OrderStartStopJsonSchema, W as RemoteLocalJsonSchema, X as TripResetJsonSchema, Y as BreakerJsonSchema, Z as BreakerPmsJsonSchema, _ as GeneratorJsonSchema, $ as GeneratorPmsJsonSchema, a0 as OperationModesJsonSchema, a1 as PriorityDataJsonSchema, a2 as PrioritiesJsonSchema, a3 as ShaftJsonSchema, a4 as ImageAuxiliaryRequestSchema, a5 as LineAuxiliaryRequestSchema, a6 as LinkAuxiliaryRequestSchema, a7 as PolylineAuxiliaryRequestSchema, a8 as SquareAuxiliaryRequestSchema, a9 as TextAuxiliaryRequestSchema, aa as ChannelRequestSchema, ab as CompressorRequestSchema, ac as DamperRequestSchema, ad as DamperAutomatedRequestSchema, ae as FanRequestSchema, af as PumpRequestSchema, ag as PumpAutomatedRequestSchema, ah as TankRequestSchema, ai as ValveRequestSchema, aj as ValveAutomatedRequestSchema, ak as AlarmIndicatorRequestSchema, al as CommandRequestSchema, am as DialRequestSchema, an as DigitalRequestSchema, ao as DisplayRequestSchema, ap as DynamicTextRequestSchema, aq as LevelBarRequestSchema, ar as SliderRequestSchema, as as TextChannelRequestSchema, at as ToggleRequestSchema, au as CabinetRequestSchema, av as RepeaterRequestSchema, aw as StationRequestSchema, ax as UnitRequestSchema, ay as AutomaticSemiAutoRequestSchema, az as CommandsOpClRequestSchema, aA as CommandsStartStopRequestSchema, aB as ControlLockRequestSchema, aC as FeedbackOpClRequestSchema, aD as FeedbackRunningStoppedRequestSchema, aE as OrderOpClRequestSchema, aF as OrderStartStopRequestSchema, aG as RemoteLocalRequestSchema, aH as TripResetRequestSchema, aI as BreakerRequestSchema, aJ as BreakerPmsRequestSchema, aK as GeneratorRequestSchema, aL as GeneratorPmsRequestSchema, aM as OperationModesRequestSchema, aN as PriorityDataRequestSchema, aO as PrioritiesRequestSchema, aP as ShaftRequestSchema, aQ as ImageAuxiliaryResponseSchema, aR as LineAuxiliaryResponseSchema, aS as LinkAuxiliaryResponseSchema, aT as PolylineAuxiliaryResponseSchema, aU as SquareAuxiliaryResponseSchema, aV as TextAuxiliaryResponseSchema, aW as CompressorResponseSchema, aX as DamperResponseSchema, aY as DamperAutomatedResponseSchema, aZ as FanResponseSchema, a_ as PumpResponseSchema, a$ as PumpAutomatedResponseSchema, b0 as TankResponseSchema, b1 as ValveResponseSchema, b2 as ValveAutomatedResponseSchema, b3 as AlarmIndicatorResponseSchema, b4 as CommandResponseSchema, b5 as DialResponseSchema, b6 as DigitalResponseSchema, b7 as DisplayResponseSchema, b8 as DynamicTextResponseSchema, b9 as LevelBarResponseSchema, ba as SliderResponseSchema, bb as TextChannelResponseSchema, bc as ToggleResponseSchema, bd as CabinetResponseSchema, be as RepeaterResponseSchema, bf as StationResponseSchema, bg as UnitResponseSchema, bh as BreakerResponseSchema, bi as BreakerPmsResponseSchema, bj as GeneratorResponseSchema, bk as GeneratorPmsResponseSchema, bl as OperationModesResponseSchema, bm as PrioritiesResponseSchema, bn as ShaftResponseSchema } from './user.types-CBlsVzYC.js';
2
+ export { bo as ActivationMode, bq as AlarmState, bs as AutoSemiAutoState, bt as CabinetDesign, bu as ChannelBaseType, bv as ChannelSpecificType, bw as ChartType, by as CompressorDesign, bA as DigitalAlarmState, bB as DigitalState, bC as EventCategory, bD as EventCriticality, bE as FanDesign, bF as FanDirection, bG as FanRunState, bH as FanType, bI as InfoLocation, bJ as LedType, bK as LevelBarOrientation, bL as LineRequestSchema, bM as LinkDesign, bN as MarkType, bO as MimicAlarmState, bP as MimicControlState, bQ as MimicElementType, bR as OpClState, bS as OperationModeState, bT as RemoteLocalState, bU as RepeaterDesign, bV as RunningStoppedState, bW as ScalePosition, bX as ShipType, bY as SliderOrientation, bZ as StationDesign, b_ as TextAnchorPoint, b$ as TitleAlign, c0 as UnitDesign, c1 as UnitType, c2 as UserType, c3 as ValueType, c4 as ValveDesign, c5 as ZDepth } from './user.types-CBlsVzYC.js';
3
3
  import mongoose from 'mongoose';
4
4
  import mongooseAggregatePaginate from 'mongoose-aggregate-paginate-v2';
5
5
  import mongooseAutopopulate from 'mongoose-autopopulate';
@@ -1251,6 +1251,13 @@ declare const Schemas: {
1251
1251
  }>;
1252
1252
  };
1253
1253
 
1254
+ declare const _default: {
1255
+ mongoose: typeof mongoose;
1256
+ mongoosePaginate: typeof mongoosePaginate;
1257
+ mongooseAggregatePaginate: typeof mongooseAggregatePaginate;
1258
+ mongooseAutopopulate: typeof mongooseAutopopulate;
1259
+ };
1260
+
1254
1261
  declare const Mimics: {
1255
1262
  ImageAuxiliaryJson: ImageAuxiliaryJsonSchema;
1256
1263
  LineAuxiliaryJson: LineAuxiliaryJsonSchema;
@@ -1483,6 +1490,22 @@ declare const Types: {
1483
1490
  readonly ERROR: "Error";
1484
1491
  readonly CRITICAL: "Critical";
1485
1492
  };
1493
+ ChartTypes: {
1494
+ readonly VERTICAL_BAR: "VerticalBar";
1495
+ readonly LINES: "Lines";
1496
+ readonly CURVES: "Curves";
1497
+ readonly LINES_SOLID: "LinesSolid";
1498
+ readonly CURVES_SOLID: "CurvesSolid";
1499
+ };
1500
+ ShipTypes: {
1501
+ readonly CARGO: "Cargo";
1502
+ readonly FISHING: "Fishing";
1503
+ readonly PASSENGER: "Passenger";
1504
+ readonly OCEANOGRAPHIC: "Oceanographic";
1505
+ readonly MILITARY: "Military";
1506
+ readonly LIFEBOAT: "Lifeboat";
1507
+ readonly TUG: "Tug";
1508
+ };
1486
1509
  UnitTypes: {
1487
1510
  readonly AIM18: "Aim18";
1488
1511
  readonly DIM36: "Dim36";
@@ -1493,6 +1516,11 @@ declare const Types: {
1493
1516
  readonly SLIM: "Slim";
1494
1517
  readonly TIM28: "Tim28";
1495
1518
  };
1519
+ UserTypes: {
1520
+ readonly SEDNI_ADMIN: "sedni_admin";
1521
+ readonly FLEET_ADMIN: "fleet_admin";
1522
+ readonly USER: "user";
1523
+ };
1496
1524
  Mimics: {
1497
1525
  MimicElementTypes: {
1498
1526
  readonly IMAGE: "Image";
@@ -1568,23 +1596,23 @@ declare const Types: {
1568
1596
  readonly OFFLINE: 10;
1569
1597
  };
1570
1598
  MimicAlarmStates: {
1571
- ALARM: string;
1572
- WARNING: string;
1573
- UNACKNOWLEDGED_ALARM: string;
1574
- UNACKNOWLEDGED_WARNING: string;
1575
- ACKNOWLEDGED_ALARM: string;
1576
- ACKNOWLEDGED_WARNING: string;
1577
- INHIBITED: string;
1578
- OFF_SCAN: string;
1579
- NORMAL: string;
1580
- OFFLINE: string;
1599
+ readonly ALARM: "Alarm";
1600
+ readonly WARNING: "Warning";
1601
+ readonly UNACKNOWLEDGED_ALARM: "UnacknowledgedAlarm";
1602
+ readonly UNACKNOWLEDGED_WARNING: "UnacknowledgedWarning";
1603
+ readonly ACKNOWLEDGED_ALARM: "AcknowledgedAlarm";
1604
+ readonly ACKNOWLEDGED_WARNING: "AcknowledgedWarning";
1605
+ readonly INHIBITED: "Inhibited";
1606
+ readonly OFF_SCAN: "OffScan";
1607
+ readonly NORMAL: "Normal";
1608
+ readonly OFFLINE: "Offline";
1581
1609
  };
1582
1610
  MimicControlStates: {
1583
- NO_VALUE: string;
1584
- LOCAL: string;
1585
- AUTOMATIC: string;
1586
- SEMI_AUTOMATIC: string;
1587
- UNDEFINED: string;
1611
+ readonly NO_VALUE: "NoValue";
1612
+ readonly LOCAL: "Local";
1613
+ readonly AUTOMATIC: "Automatic";
1614
+ readonly SEMI_AUTOMATIC: "SemiAuto";
1615
+ readonly UNDEFINED: "Undefined";
1588
1616
  };
1589
1617
  ActivationModes: {
1590
1618
  readonly ALARM: "Alarm";
@@ -1718,11 +1746,4 @@ declare const Types: {
1718
1746
  };
1719
1747
  };
1720
1748
 
1721
- declare const _default: {
1722
- mongoose: typeof mongoose;
1723
- mongoosePaginate: typeof mongoosePaginate;
1724
- mongooseAggregatePaginate: typeof mongooseAggregatePaginate;
1725
- mongooseAutopopulate: typeof mongooseAutopopulate;
1726
- };
1727
-
1728
1749
  export { AddedAlarmsJsonSchema, AlarmIndicatorJsonSchema, AlarmIndicatorRequestSchema, AlarmIndicatorResponseSchema, AlarmPriority, AlarmType, AutomaticSemiAutoJsonSchema, AutomaticSemiAutoRequestSchema, BackgroundJsonSchema, BreakerJsonSchema, BreakerPmsJsonSchema, BreakerPmsRequestSchema, BreakerPmsResponseSchema, BreakerRequestSchema, BreakerResponseSchema, CabinetJsonSchema, CabinetRequestSchema, CabinetResponseSchema, type ChannelDataBucketDocument, type ChannelDataBucketJSON, type ChannelDataBucketModel, type ChannelDataPointDocument, type ChannelDataPointJSON, type ChannelDataPointModel, type ChannelDocument, type ChannelJSON, ChannelJsonSchema, type ChannelModel, CloudAlarmState, CommandJsonSchema, CommandRequestSchema, CommandResponseSchema, CommandsOpClJsonSchema, CommandsOpClRequestSchema, CommandsStartStopJsonSchema, CommandsStartStopRequestSchema, CompressorJsonSchema, CompressorRequestSchema, CompressorResponseSchema, ControlLockJsonSchema, ControlLockRequestSchema, DamperAutomatedJsonSchema, DamperAutomatedRequestSchema, DamperAutomatedResponseSchema, DamperJsonSchema, DamperRequestSchema, DamperResponseSchema, DialJsonSchema, DialRequestSchema, DialResponseSchema, DiamarAlarmState, DigitalJsonSchema, DigitalRequestSchema, DigitalResponseSchema, DisplayJsonSchema, DisplayRequestSchema, DisplayResponseSchema, Docs, DynamicTextJsonSchema, DynamicTextRequestSchema, DynamicTextResponseSchema, type EventDocument, type EventJSON, type EventModel, FanJsonSchema, FanRequestSchema, FanResponseSchema, FeedbackOpClJsonSchema, FeedbackOpClRequestSchema, FeedbackRunningStoppedJsonSchema, FeedbackRunningStoppedRequestSchema, GeneratorJsonSchema, GeneratorPmsJsonSchema, GeneratorPmsRequestSchema, GeneratorPmsResponseSchema, GeneratorRequestSchema, GeneratorResponseSchema, type HistoryDocument, type HistoryJSON, type HistoryModel, ImageAuxiliaryJsonSchema, ImageAuxiliaryRequestSchema, ImageAuxiliaryResponseSchema, LevelBarJsonSchema, LevelBarRequestSchema, LevelBarResponseSchema, LineAuxiliaryJsonSchema, LineAuxiliaryRequestSchema, LineAuxiliaryResponseSchema, LineJsonSchema, LinkAuxiliaryJsonSchema, LinkAuxiliaryRequestSchema, LinkAuxiliaryResponseSchema, LocalizedTextJsonSchema, LocationJsonSchema, LogicExpressionJsonSchema, LogicExpressionsJsonSchema, Mimics, MimicsRequest, MimicsResponse, OperationModesJsonSchema, OperationModesRequestSchema, OperationModesResponseSchema, OrderOpClJsonSchema, OrderOpClRequestSchema, OrderStartStopJsonSchema, OrderStartStopRequestSchema, PolylineAuxiliaryJsonSchema, PolylineAuxiliaryRequestSchema, PolylineAuxiliaryResponseSchema, PrioritiesJsonSchema, PrioritiesRequestSchema, PrioritiesResponseSchema, PriorityDataJsonSchema, PriorityDataRequestSchema, PumpAutomatedJsonSchema, PumpAutomatedRequestSchema, PumpAutomatedResponseSchema, PumpJsonSchema, PumpRequestSchema, PumpResponseSchema, RemoteLocalJsonSchema, RemoteLocalRequestSchema, RepeaterJsonSchema, RepeaterRequestSchema, RepeaterResponseSchema, ScaleJsonSchema, Schemas, ShaftJsonSchema, ShaftRequestSchema, ShaftResponseSchema, SliderJsonSchema, SliderRequestSchema, SliderResponseSchema, SquareAuxiliaryJsonSchema, SquareAuxiliaryRequestSchema, SquareAuxiliaryResponseSchema, StationJsonSchema, StationRequestSchema, StationResponseSchema, TankJsonSchema, TankRequestSchema, TankResponseSchema, TextAttributesJsonSchema, TextAuxiliaryJsonSchema, TextAuxiliaryRequestSchema, TextAuxiliaryResponseSchema, TextChannelJsonSchema, TextChannelRequestSchema, TextChannelResponseSchema, TitleJsonSchema, ToggleJsonSchema, ToggleRequestSchema, ToggleResponseSchema, TripResetJsonSchema, TripResetRequestSchema, Types, type UnitDocument, type UnitJSON, UnitJsonSchema, type UnitModel, UnitRequestSchema, UnitResponseSchema, ValveAutomatedJsonSchema, ValveAutomatedRequestSchema, ValveAutomatedResponseSchema, ValveJsonSchema, ValveRequestSchema, ValveResponseSchema, _default as default };
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ import {
25
25
  ChannelJson,
26
26
  ChannelRequest,
27
27
  ChannelSpecificTypes,
28
+ ChartTypes,
28
29
  CloudAlarmStates,
29
30
  CommandJson,
30
31
  CommandRequest,
@@ -140,6 +141,7 @@ import {
140
141
  ShaftJson,
141
142
  ShaftRequest,
142
143
  ShaftResponse,
144
+ ShipTypes,
143
145
  SliderJson,
144
146
  SliderOrientations,
145
147
  SliderRequest,
@@ -174,6 +176,7 @@ import {
174
176
  UnitRequest,
175
177
  UnitResponse,
176
178
  UnitTypes,
179
+ UserTypes,
177
180
  ValueTypes,
178
181
  ValveAutomatedJson,
179
182
  ValveAutomatedRequest,
@@ -183,7 +186,7 @@ import {
183
186
  ValveRequest,
184
187
  ValveResponse,
185
188
  ZDepths
186
- } from "./chunk-K5VO2MYI.js";
189
+ } from "./chunk-72OOHARB.js";
187
190
 
188
191
  // app/models/Channel.ts
189
192
  import mongoose from "mongoose";
@@ -1070,6 +1073,12 @@ var Schemas = {
1070
1073
  History: History_default,
1071
1074
  Unit: Unit_default
1072
1075
  };
1076
+ var index_default = {
1077
+ mongoose: mongoose7,
1078
+ mongoosePaginate: mongoosePaginate7,
1079
+ mongooseAggregatePaginate: mongooseAggregatePaginate7,
1080
+ mongooseAutopopulate: mongooseAutopopulate2
1081
+ };
1073
1082
  var Mimics = {
1074
1083
  // Auxiliary
1075
1084
  ImageAuxiliaryJson,
@@ -1282,15 +1291,12 @@ var Types = {
1282
1291
  ChannelSpecificTypes,
1283
1292
  EventCategories,
1284
1293
  EventCriticalities,
1294
+ ChartTypes,
1295
+ ShipTypes,
1285
1296
  UnitTypes,
1297
+ UserTypes,
1286
1298
  Mimics: MimicsTypes
1287
1299
  };
1288
- var index_default = {
1289
- mongoose: mongoose7,
1290
- mongoosePaginate: mongoosePaginate7,
1291
- mongooseAggregatePaginate: mongooseAggregatePaginate7,
1292
- mongooseAutopopulate: mongooseAutopopulate2
1293
- };
1294
1300
  export {
1295
1301
  docs_default as Docs,
1296
1302
  Mimics,
@@ -0,0 +1,53 @@
1
+ import mongoose from "mongoose";
2
+ export type ChannelDocument = mongoose.Document & {
3
+ channel_tag: string;
4
+ channel_description: string;
5
+ channel_unit_id: mongoose.Types.ObjectId;
6
+ channel_parsed: Object;
7
+ };
8
+ export type ChannelModel = mongoose.PaginateModel<ChannelDocument> & mongoose.AggregatePaginateModel<ChannelDocument>;
9
+ export type ChannelJSON = {
10
+ id: string;
11
+ channel_tag: string;
12
+ channel_description: string;
13
+ channel_unit_id: string;
14
+ channel_unit: any;
15
+ channel_parsed: Object;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ };
19
+ declare const channelSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
20
+ timestamps: {
21
+ createdAt: true;
22
+ updatedAt: true;
23
+ };
24
+ collection: string;
25
+ toJSON: {
26
+ transform: (_doc: ChannelDocument, ret: any) => void;
27
+ };
28
+ }, {
29
+ channel_tag: string;
30
+ channel_description: string;
31
+ channel_unit_id: mongoose.Types.ObjectId;
32
+ channel_parsed: any;
33
+ channel_last_bucket_sync?: NativeDate | null | undefined;
34
+ createdAt: NativeDate;
35
+ updatedAt: NativeDate;
36
+ }, ChannelDocument, {
37
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
38
+ } | {
39
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, ChannelDocument> | undefined;
40
+ }, {
41
+ channel_tag: string;
42
+ channel_description: string;
43
+ channel_unit_id: mongoose.Types.ObjectId;
44
+ channel_parsed: any;
45
+ channel_last_bucket_sync?: NativeDate | null | undefined;
46
+ createdAt: NativeDate;
47
+ updatedAt: NativeDate;
48
+ } & {
49
+ _id: mongoose.Types.ObjectId;
50
+ } & {
51
+ __v: number;
52
+ }>;
53
+ export default channelSchema;
@@ -0,0 +1,65 @@
1
+ import mongoose from "mongoose";
2
+ import mongooseAggregatePaginate from "mongoose-aggregate-paginate-v2";
3
+ import mongooseAutopopulate from "mongoose-autopopulate";
4
+ import mongoosePaginate from "mongoose-paginate-v2";
5
+ const channelSchema = new mongoose.Schema({
6
+ channel_tag: {
7
+ type: String,
8
+ required: true
9
+ },
10
+ channel_description: {
11
+ type: String,
12
+ required: true
13
+ },
14
+ channel_unit_id: {
15
+ type: mongoose.Schema.Types.ObjectId,
16
+ ref: "Unit",
17
+ required: true,
18
+ autopopulate: true
19
+ },
20
+ channel_parsed: {
21
+ type: Object,
22
+ required: true
23
+ },
24
+ channel_last_bucket_sync: {
25
+ type: Date,
26
+ required: false
27
+ }
28
+ }, {
29
+ timestamps: {
30
+ createdAt: true,
31
+ updatedAt: true
32
+ },
33
+ collection: "channels",
34
+ toJSON: {
35
+ transform: function (_doc, ret) {
36
+ ret.id = ret._id;
37
+ ret.channel_unit = ret.channel_unit_id;
38
+ ret.channel_unit_id = ret.channel_unit_id.unit_id;
39
+ delete ret._id;
40
+ delete ret.__v;
41
+ }
42
+ }
43
+ });
44
+ /**
45
+ * ///////////////////////////////////////////////
46
+ * ///////////// INDEXES /////////////////
47
+ * ///////////////////////////////////////////////
48
+ */
49
+ /**
50
+ * Index used primarily for filtering by channel_tag
51
+ */
52
+ channelSchema.index({ channel_tag: 1 }, { unique: true });
53
+ /**
54
+ * Index used primarily for filtering by channel_description
55
+ */
56
+ channelSchema.index({ channel_description: 1 });
57
+ /**
58
+ * ///////////////////////////////////////////////
59
+ * ///////////// PLUGINS /////////////////
60
+ * ///////////////////////////////////////////////
61
+ */
62
+ channelSchema.plugin(mongoosePaginate);
63
+ channelSchema.plugin(mongooseAggregatePaginate);
64
+ channelSchema.plugin(mongooseAutopopulate);
65
+ export default channelSchema;
@@ -0,0 +1,81 @@
1
+ import mongoose from "mongoose";
2
+ export type ChannelDataBucketDocument = mongoose.Document & {
3
+ start_date: Date;
4
+ end_date: Date;
5
+ data: {
6
+ channel_id: string;
7
+ timestamp: number;
8
+ value: number;
9
+ }[];
10
+ size: number;
11
+ synced: number;
12
+ sum: number;
13
+ };
14
+ export type ChannelDataBucketModel = mongoose.PaginateModel<ChannelDataBucketDocument> & mongoose.AggregatePaginateModel<ChannelDataBucketDocument>;
15
+ export type ChannelDataBucketJSON = {
16
+ id: string;
17
+ start_date: number;
18
+ end_date: number;
19
+ data: {
20
+ channel_id: string;
21
+ timestamp: number;
22
+ value: number;
23
+ }[];
24
+ size: number;
25
+ synced: number;
26
+ sum: number;
27
+ avg: number;
28
+ };
29
+ declare const channeldataBucketSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
30
+ toJSON: {
31
+ transform: (doc: ChannelDataBucketDocument, ret: any) => void;
32
+ };
33
+ versionKey: false;
34
+ }, {
35
+ data: mongoose.Types.DocumentArray<{
36
+ value: number;
37
+ channel_id: string;
38
+ timestamp: number;
39
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
40
+ value: number;
41
+ channel_id: string;
42
+ timestamp: number;
43
+ }, {}, {}> & {
44
+ value: number;
45
+ channel_id: string;
46
+ timestamp: number;
47
+ }>;
48
+ size: number;
49
+ start_date: NativeDate;
50
+ end_date: NativeDate;
51
+ synced: number;
52
+ sum: number;
53
+ }, ChannelDataBucketDocument, {
54
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
55
+ } | {
56
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, ChannelDataBucketDocument> | undefined;
57
+ }, {
58
+ data: mongoose.Types.DocumentArray<{
59
+ value: number;
60
+ channel_id: string;
61
+ timestamp: number;
62
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
63
+ value: number;
64
+ channel_id: string;
65
+ timestamp: number;
66
+ }, {}, {}> & {
67
+ value: number;
68
+ channel_id: string;
69
+ timestamp: number;
70
+ }>;
71
+ size: number;
72
+ start_date: NativeDate;
73
+ end_date: NativeDate;
74
+ synced: number;
75
+ sum: number;
76
+ } & {
77
+ _id: mongoose.Types.ObjectId;
78
+ } & {
79
+ __v: number;
80
+ }>;
81
+ export default channeldataBucketSchema;
@@ -0,0 +1,93 @@
1
+ import mongoose from "mongoose";
2
+ import mongoosePaginate from "mongoose-paginate-v2";
3
+ import mongooseAggregatePaginate from "mongoose-aggregate-paginate-v2";
4
+ /**
5
+ * Cambiar por timestamp, value y channel_id.
6
+ * Luego en los indices, agregar un indice compuesto por channel_id y timestamp.
7
+ */
8
+ const dataPointSchema = new mongoose.Schema({
9
+ channel_id: {
10
+ type: String,
11
+ required: true,
12
+ index: true
13
+ },
14
+ timestamp: {
15
+ type: Number,
16
+ required: true
17
+ },
18
+ value: {
19
+ type: Number,
20
+ required: true
21
+ }
22
+ }, {
23
+ _id: false
24
+ });
25
+ const channeldataBucketSchema = new mongoose.Schema({
26
+ start_date: {
27
+ type: Date,
28
+ required: true,
29
+ default: Date.now
30
+ },
31
+ end_date: {
32
+ type: Date,
33
+ required: true,
34
+ default: function () {
35
+ return new Date(Date.now() + 1000 * 60 * 60); // 1 hour from now
36
+ }
37
+ },
38
+ data: {
39
+ type: [dataPointSchema],
40
+ required: true,
41
+ default: []
42
+ },
43
+ size: {
44
+ type: Number,
45
+ required: true,
46
+ default: 0
47
+ },
48
+ synced: {
49
+ type: Number,
50
+ required: true,
51
+ default: 0
52
+ },
53
+ sum: {
54
+ type: Number,
55
+ required: true,
56
+ default: 0
57
+ }
58
+ }, {
59
+ toJSON: {
60
+ transform: function (doc, ret) {
61
+ ret.id = ret._id;
62
+ delete ret._id;
63
+ delete ret.__v;
64
+ ret.start_date = ret.start_date.getTime();
65
+ ret.end_date = ret.end_date.getTime();
66
+ ret.avg = ret.sum / ret.size;
67
+ }
68
+ },
69
+ versionKey: false
70
+ });
71
+ /**
72
+ * ///////////////////////////////////////////////
73
+ * ///////////// INDEXES /////////////////
74
+ * ///////////////////////////////////////////////
75
+ */
76
+ /**
77
+ * Index the start_date and end_date fields for faster queries.
78
+ * The compound index will be used to query the buckets by date range.
79
+ */
80
+ channeldataBucketSchema.index({ start_date: 1, end_date: 1 }, { background: true });
81
+ channeldataBucketSchema.index({ "start_date": 1, "end_date": 1, "data.channel_id": 1 }, { background: true });
82
+ /**
83
+ * Index used to delete old buckets automatically.
84
+ */
85
+ channeldataBucketSchema.index({ start_date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 365, background: true }); // 1 year
86
+ /**
87
+ * ///////////////////////////////////////////////
88
+ * ///////////// PLUGINS /////////////////
89
+ * ///////////////////////////////////////////////
90
+ */
91
+ channeldataBucketSchema.plugin(mongoosePaginate);
92
+ channeldataBucketSchema.plugin(mongooseAggregatePaginate);
93
+ export default channeldataBucketSchema;
@@ -0,0 +1,21 @@
1
+ import mongoose from "mongoose";
2
+ export type ChannelDataPointDocument = mongoose.Document & {
3
+ c: string;
4
+ t: Date;
5
+ v: number;
6
+ };
7
+ export type ChannelDataPointModel = mongoose.PaginateModel<ChannelDataPointDocument> & mongoose.AggregatePaginateModel<ChannelDataPointDocument>;
8
+ export type ChannelDataPointJSON = {
9
+ id: string;
10
+ channel_id: string;
11
+ timestamp: number;
12
+ value: number;
13
+ };
14
+ /**
15
+ * Cambiar por timestamp, value y channel_id.
16
+ * Luego en los indices, agregar un indice compuesto por channel_id y timestamp.
17
+ */
18
+ declare const channelDataPointSchema: mongoose.Schema<ChannelDataPointDocument> & {
19
+ addTTLIndex?: (expirationTimeInSeconds?: number, ttlField?: string) => void;
20
+ };
21
+ export default channelDataPointSchema;