@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.
@@ -77,6 +77,27 @@ declare const AlarmStates: {
77
77
  readonly OFFLINE: 10;
78
78
  };
79
79
  type AlarmState = (typeof AlarmStates)[keyof typeof AlarmStates];
80
+ declare const MimicAlarmStates: {
81
+ ALARM: string;
82
+ WARNING: string;
83
+ UNACKNOWLEDGED_ALARM: string;
84
+ UNACKNOWLEDGED_WARNING: string;
85
+ ACKNOWLEDGED_ALARM: string;
86
+ ACKNOWLEDGED_WARNING: string;
87
+ INHIBITED: string;
88
+ OFF_SCAN: string;
89
+ NORMAL: string;
90
+ OFFLINE: string;
91
+ };
92
+ type MimicAlarmState = (typeof MimicAlarmStates)[keyof typeof MimicAlarmStates];
93
+ declare const MimicControlStates: {
94
+ NO_VALUE: string;
95
+ LOCAL: string;
96
+ AUTOMATIC: string;
97
+ SEMI_AUTOMATIC: string;
98
+ UNDEFINED: string;
99
+ };
100
+ type MimicControlState = (typeof MimicControlStates)[keyof typeof MimicControlStates];
80
101
  declare const ActivationModes: {
81
102
  readonly ALARM: "Alarm";
82
103
  readonly LOGIC: "Logic";
@@ -217,6 +238,458 @@ declare const RunningStoppedStates: {
217
238
  readonly UNDEFINED: "Undefined";
218
239
  };
219
240
  type RunningStoppedState = (typeof RunningStoppedStates)[keyof typeof RunningStoppedStates];
241
+ declare const AutoSemiAutoStates: {
242
+ readonly NO_VALUE: "NoValue";
243
+ readonly AUTOMATIC: "Automatic";
244
+ readonly SEMI_AUTOMATIC: "SemiAuto";
245
+ readonly UNDEFINED: "Undefined";
246
+ };
247
+ type AutoSemiAutoState = (typeof AutoSemiAutoStates)[keyof typeof AutoSemiAutoStates];
248
+ declare const RemoteLocalStates: {
249
+ readonly NO_VALUE: "NoValue";
250
+ readonly REMOTE: "Remote";
251
+ readonly LOCAL: "Local";
252
+ readonly UNDEFINED: "Undefined";
253
+ };
254
+ type RemoteLocalState = (typeof RemoteLocalStates)[keyof typeof RemoteLocalStates];
255
+
256
+ type BreakerResponseSchema = {
257
+ AlarmState: MimicAlarmState;
258
+ ControlState: MimicControlState;
259
+ Value: OpClState;
260
+ Active: boolean;
261
+ };
262
+ type BreakerPmsResponseSchema = {
263
+ AlarmState: MimicAlarmState;
264
+ ControlState: MimicControlState;
265
+ Value: OpClState;
266
+ Active: boolean;
267
+ };
268
+ type GeneratorResponseSchema = {
269
+ AlarmState: MimicAlarmState;
270
+ ControlState: MimicControlState;
271
+ Value: RunningStoppedState;
272
+ Active: boolean;
273
+ };
274
+ type GeneratorPmsResponseSchema = {
275
+ AlarmState: MimicAlarmState;
276
+ ControlState: MimicControlState;
277
+ Value: RunningStoppedState;
278
+ PowerValue: number | null;
279
+ FrequencyValue: number | null;
280
+ PriorityValue: number | null;
281
+ Active: boolean;
282
+ };
283
+ type OperationModesResponseSchema = {
284
+ AlarmState: OperationModeState;
285
+ Active: boolean;
286
+ };
287
+ type PrioritiesResponseSchema = {};
288
+ type ShaftResponseSchema = {
289
+ AlarmState: MimicAlarmState;
290
+ Active: boolean;
291
+ };
292
+
293
+ type CabinetResponseSchema = {
294
+ AlarmState: MimicAlarmState;
295
+ };
296
+ type RepeaterResponseSchema = {
297
+ AlarmState: MimicAlarmState;
298
+ };
299
+ type StationResponseSchema = {
300
+ AlarmState: MimicAlarmState;
301
+ };
302
+ type UnitResponseSchema = {
303
+ AlarmState: MimicAlarmState;
304
+ };
305
+
306
+ type AlarmIndicatorResponseSchema = {
307
+ AlarmState: MimicAlarmState;
308
+ Active: boolean;
309
+ };
310
+ type CommandResponseSchema = {
311
+ AlarmState: MimicAlarmState;
312
+ Active: boolean;
313
+ };
314
+ type DialResponseSchema = {
315
+ AlarmState: MimicAlarmState;
316
+ Value: number | null;
317
+ Active: boolean;
318
+ };
319
+ type DigitalResponseSchema = {
320
+ AlarmState: MimicAlarmState;
321
+ Value: DigitalState;
322
+ Active: boolean;
323
+ };
324
+ type DisplayResponseSchema = {
325
+ AlarmState: MimicAlarmState;
326
+ Value: string | null;
327
+ Active: boolean;
328
+ };
329
+ type DynamicTextResponseSchema = {
330
+ TextColor: string;
331
+ Text: string;
332
+ };
333
+ type LevelBarResponseSchema = {
334
+ AlarmState: MimicAlarmState;
335
+ Value: number | null;
336
+ Active: boolean;
337
+ };
338
+ type SliderResponseSchema = {
339
+ AlarmState: MimicAlarmState;
340
+ Value: number | null;
341
+ Active: boolean;
342
+ };
343
+ type TextChannelResponseSchema = {
344
+ AlarmState: MimicAlarmState;
345
+ Value: string | null;
346
+ Active: boolean;
347
+ };
348
+ type ToggleResponseSchema = {
349
+ AlarmState: MimicAlarmState;
350
+ Value: boolean | null;
351
+ Active: boolean;
352
+ };
353
+
354
+ type CompressorResponseSchema = {
355
+ AlarmState: MimicAlarmState;
356
+ ControlState: MimicControlState;
357
+ Value: RunningStoppedState;
358
+ Active: boolean;
359
+ };
360
+ type DamperResponseSchema = {
361
+ AlarmState: MimicAlarmState;
362
+ ControlState: MimicControlState;
363
+ Value: OpClState;
364
+ Active: boolean;
365
+ };
366
+ type DamperAutomatedResponseSchema = {
367
+ AlarmState: MimicAlarmState;
368
+ Value: OpClState;
369
+ Active: boolean;
370
+ };
371
+ type FanResponseSchema = {
372
+ AlarmState: MimicAlarmState;
373
+ ControlState: MimicControlState;
374
+ RunState: FanRunState;
375
+ FanDirection: FanDirection;
376
+ Active: boolean;
377
+ };
378
+ type PumpResponseSchema = {
379
+ AlarmState: MimicAlarmState;
380
+ ControlState: MimicControlState;
381
+ Value: RunningStoppedState;
382
+ Active: boolean;
383
+ };
384
+ type PumpAutomatedResponseSchema = {
385
+ AlarmState: MimicAlarmState;
386
+ ControlState: MimicControlState;
387
+ Value: RunningStoppedState;
388
+ Active: boolean;
389
+ };
390
+ type TankResponseSchema = {
391
+ AlarmState: MimicAlarmState;
392
+ Volume: number | null;
393
+ Sounding: number | null;
394
+ Percentage: number | null;
395
+ };
396
+ type ValveResponseSchema = {
397
+ AlarmState: MimicAlarmState;
398
+ ControlState: MimicControlState;
399
+ Value: OpClState;
400
+ Active: boolean;
401
+ };
402
+ type ValveAutomatedResponseSchema = {
403
+ AlarmState: MimicAlarmState;
404
+ Value: OpClState;
405
+ Active: boolean;
406
+ };
407
+
408
+ type ImageAuxiliaryResponseSchema = {
409
+ ImageName: string;
410
+ };
411
+ type LineAuxiliaryResponseSchema = {
412
+ LineColor: string;
413
+ };
414
+ type LinkAuxiliaryResponseSchema = {
415
+ ImageName: string;
416
+ };
417
+ type PolylineAuxiliaryResponseSchema = {
418
+ LinesColor: string;
419
+ };
420
+ type SquareAuxiliaryResponseSchema = {
421
+ ColorBorder: string;
422
+ ColorFill: string;
423
+ };
424
+ type TextAuxiliaryResponseSchema = {};
425
+
426
+ type AutomaticSemiAutoRequestSchema = {
427
+ withAutomatic: boolean;
428
+ automaticFeedback: string | null;
429
+ hasSemiAutoFeedback: boolean;
430
+ semiAutoFeedback: string | null;
431
+ };
432
+ type CommandsOpClRequestSchema = {
433
+ commandOpen: string | null;
434
+ commandClose: string | null;
435
+ };
436
+ type CommandsStartStopRequestSchema = {
437
+ commandStart: string | null;
438
+ commandStop: string | null;
439
+ };
440
+ type ControlLockRequestSchema = {
441
+ hasControlLock: boolean;
442
+ controlLock: string | null;
443
+ };
444
+ type FeedbackOpClRequestSchema = {
445
+ openFeedback: string | null;
446
+ closeFeedback: string | null;
447
+ };
448
+ type FeedbackRunningStoppedRequestSchema = {
449
+ runFeedback: string | null;
450
+ hasStoppedFeedback: boolean;
451
+ stoppedFeedback: string | null;
452
+ };
453
+ type OrderOpClRequestSchema = {
454
+ openOrder: string | null;
455
+ closeOrder: string | null;
456
+ };
457
+ type OrderStartStopRequestSchema = {
458
+ startOrder: string | null;
459
+ stopOrder: string | null;
460
+ };
461
+ type RemoteLocalRequestSchema = {
462
+ remoteFeedback: string | null;
463
+ hasLocalFeedback: boolean;
464
+ localFeedback: string | null;
465
+ };
466
+ type TripResetRequestSchema = {
467
+ tripFeedback: string | null;
468
+ withCommandReset: boolean;
469
+ resetCommand: string | null;
470
+ };
471
+
472
+ type ChannelRequestSchema = {
473
+ WithBackup: boolean;
474
+ Main: string | null;
475
+ Backup: string | null;
476
+ Max: number;
477
+ Min: number;
478
+ Units: string;
479
+ };
480
+
481
+ type BreakerRequestSchema = {
482
+ FeedbackOpCl: FeedbackOpClRequestSchema;
483
+ RemoteLocal: RemoteLocalRequestSchema;
484
+ TripReset: TripResetRequestSchema;
485
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
486
+ IsControl: boolean;
487
+ };
488
+ type BreakerPmsRequestSchema = {
489
+ Breaker: string;
490
+ FeedbackOpCl: FeedbackOpClRequestSchema;
491
+ RemoteLocal: RemoteLocalRequestSchema;
492
+ TripReset: TripResetRequestSchema;
493
+ };
494
+ type GeneratorRequestSchema = {
495
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
496
+ FeedbackRunningStopped: FeedbackRunningStoppedRequestSchema;
497
+ RemoteLocal: RemoteLocalRequestSchema;
498
+ TripReset: TripResetRequestSchema;
499
+ IsControl: boolean;
500
+ };
501
+ type GeneratorPmsRequestSchema = {
502
+ Generator: string;
503
+ PowerChannel: string | null;
504
+ FrequencyChannel: string | null;
505
+ PriorityChannel: string | null;
506
+ AutomaticSemiAutoTrait: AutomaticSemiAutoRequestSchema;
507
+ FeedbackRunningStopped: FeedbackRunningStoppedRequestSchema;
508
+ RemoteLocal: RemoteLocalRequestSchema;
509
+ TripResetTrait: TripResetRequestSchema;
510
+ };
511
+ type OperationModesRequestSchema = {
512
+ ModeToReach: string;
513
+ };
514
+ type PriorityDataRequestSchema = {
515
+ Name: string;
516
+ ChannelPriority: string | null;
517
+ ChannelPriorityFeedback: string | null;
518
+ };
519
+ type PrioritiesRequestSchema = {
520
+ Priorities: PriorityDataRequestSchema[];
521
+ };
522
+ type ShaftRequestSchema = {
523
+ WithFeedbackOpen: boolean;
524
+ ActivationMode: string;
525
+ ActivationValue: boolean;
526
+ OpenFeedback: ChannelRequestSchema;
527
+ CloseFeedback: ChannelRequestSchema;
528
+ };
529
+
530
+ type CabinetRequestSchema = {
531
+ CabinetId: string;
532
+ };
533
+ type RepeaterRequestSchema = {
534
+ RepeaterId: string;
535
+ };
536
+ type StationRequestSchema = {
537
+ StationId: string;
538
+ };
539
+ type UnitRequestSchema = {
540
+ UnitId: string;
541
+ };
542
+
543
+ type LineRequestSchema = {
544
+ Color: string;
545
+ Width: number;
546
+ Start: {
547
+ X: number;
548
+ Y: number;
549
+ };
550
+ End: {
551
+ X: number;
552
+ Y: number;
553
+ };
554
+ };
555
+ type LocalizedTextRequestSchema = {
556
+ English: string;
557
+ Spanish: string;
558
+ French: string;
559
+ German: string;
560
+ };
561
+ type LogicExpressionRequestSchema = {
562
+ Expression: string;
563
+ Value: undefined;
564
+ Variables: string[];
565
+ };
566
+ type LogicExpressionsRequestSchema = {
567
+ LogicExpressions: LogicExpressionRequestSchema[];
568
+ };
569
+ type TextAttributesRequestSchema = {
570
+ AnchorPoint: TextAnchorPoint;
571
+ Color: string;
572
+ HasUnderline: boolean;
573
+ UnderlineColor: string;
574
+ UnderlineLength: number;
575
+ UnderlineWidth: number;
576
+ };
577
+
578
+ type AlarmIndicatorRequestSchema = {
579
+ AlarmFeedback: string | null;
580
+ };
581
+ type CommandRequestSchema = {
582
+ CommandChannel: string | null;
583
+ CloseChannel: string | null;
584
+ };
585
+ type DialRequestSchema = {
586
+ Channel: string | null;
587
+ };
588
+ type DigitalRequestSchema = {
589
+ FeedbackOpCl: FeedbackOpClRequestSchema;
590
+ };
591
+ type DisplayRequestSchema = {
592
+ Channel: string | null;
593
+ };
594
+ type DynamicTextRequestSchema = {
595
+ TextAttributes: TextAttributesRequestSchema;
596
+ DefaultTextColor: string;
597
+ DefaultText: LocalizedTextRequestSchema;
598
+ TextLogic: LogicExpressionsRequestSchema;
599
+ };
600
+ type LevelBarRequestSchema = {
601
+ LevelChannel: string | null;
602
+ };
603
+ type SliderRequestSchema = {
604
+ Channel: string | null;
605
+ };
606
+ type TextChannelRequestSchema = {
607
+ Channel: string | null;
608
+ };
609
+ type ToggleRequestSchema = {
610
+ Channel: string | null;
611
+ };
612
+
613
+ type CompressorRequestSchema = {
614
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
615
+ FeedbackRunningStopped: FeedbackRunningStoppedRequestSchema;
616
+ RemoteLocal: RemoteLocalRequestSchema;
617
+ TripReset: TripResetRequestSchema;
618
+ IsControl: boolean;
619
+ };
620
+ type DamperRequestSchema = {
621
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
622
+ FeedbackOpCl: FeedbackOpClRequestSchema;
623
+ RemoteLocal: RemoteLocalRequestSchema;
624
+ TripReset: TripResetRequestSchema;
625
+ IsControl: boolean;
626
+ };
627
+ type DamperAutomatedRequestSchema = {
628
+ Damper: string;
629
+ FeedbackOpCl: FeedbackOpClRequestSchema;
630
+ TripReset: TripResetRequestSchema;
631
+ };
632
+ type FanRequestSchema = {
633
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
634
+ RemoteLocal: RemoteLocalRequestSchema;
635
+ RunFeedbackSupply: ChannelRequestSchema;
636
+ RunFeedbackSupplyFast: ChannelRequestSchema;
637
+ RunFeedbackExhaust: ChannelRequestSchema;
638
+ RunFeedbackExhaustFast: ChannelRequestSchema;
639
+ StoppedFeedback: ChannelRequestSchema;
640
+ };
641
+ type PumpRequestSchema = {
642
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
643
+ FeedbackRunningStopped: FeedbackRunningStoppedRequestSchema;
644
+ RemoteLocal: RemoteLocalRequestSchema;
645
+ TripReset: TripResetRequestSchema;
646
+ IsControl: boolean;
647
+ };
648
+ type PumpAutomatedRequestSchema = {
649
+ Pump: string;
650
+ AutomaticSemiAuto: AutomaticSemiAutoRequestSchema;
651
+ FeedbackRunningStopped: FeedbackRunningStoppedRequestSchema;
652
+ RemoteLocal: RemoteLocalRequestSchema;
653
+ TripReset: TripResetRequestSchema;
654
+ };
655
+ type TankRequestSchema = {
656
+ TankName: string;
657
+ VolumeChannel: string | null;
658
+ };
659
+ type ValveRequestSchema = {
660
+ IsControl: boolean;
661
+ FeedbackOpCl: FeedbackOpClRequestSchema;
662
+ RemoteLocal: RemoteLocalRequestSchema;
663
+ TripReset: TripResetRequestSchema;
664
+ };
665
+ type ValveAutomatedRequestSchema = {
666
+ Valve: string;
667
+ FeedbackOpCl: FeedbackOpClRequestSchema;
668
+ TripReset: TripResetRequestSchema;
669
+ };
670
+
671
+ type ImageAuxiliaryRequestSchema = {
672
+ DefaultImageName: string;
673
+ ImageLogic: LogicExpressionsRequestSchema;
674
+ };
675
+ type LineAuxiliaryRequestSchema = {
676
+ LineColor: string;
677
+ LineColorLogic: LogicExpressionsRequestSchema;
678
+ };
679
+ type LinkAuxiliaryRequestSchema = {
680
+ DefaultImageName: string;
681
+ ImageLogic: LogicExpressionsRequestSchema;
682
+ };
683
+ type PolylineAuxiliaryRequestSchema = {
684
+ LinesColor: string;
685
+ LineColorLogic: LogicExpressionsRequestSchema;
686
+ };
687
+ type SquareAuxiliaryRequestSchema = {
688
+ ColorBorder: string;
689
+ ColorFill: string;
690
+ LineColorLogic: LogicExpressionsRequestSchema;
691
+ };
692
+ type TextAuxiliaryRequestSchema = {};
220
693
 
221
694
  type AddedAlarmsJsonSchema = {
222
695
  Channels: {
@@ -356,7 +829,8 @@ type BreakerJsonSchema = {
356
829
  type BreakerPmsJsonSchema = {
357
830
  Breaker: string;
358
831
  RemoteIconSize: number;
359
- CommandsOpCl: CommandsOpClJsonSchema;
832
+ FeedbackOpCl: FeedbackOpClJsonSchema;
833
+ RemoteLocal: RemoteLocalJsonSchema;
360
834
  TripReset: TripResetJsonSchema;
361
835
  };
362
836
  type GeneratorJsonSchema = {
@@ -373,9 +847,13 @@ type GeneratorJsonSchema = {
373
847
  type GeneratorPmsJsonSchema = {
374
848
  Generator: string;
375
849
  GeneratorNameColor: string;
376
- AutomaticSemiAutoTrait: AutomaticSemiAutoJsonSchema;
377
- CommandsStartStopTrait: CommandsStartStopJsonSchema;
378
- TripResetTrait: TripResetJsonSchema;
850
+ PowerChannel: ChannelJsonSchema;
851
+ FrequencyChannel: ChannelJsonSchema;
852
+ PriorityChannel: ChannelJsonSchema;
853
+ AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
854
+ FeedbackRunningStopped: FeedbackRunningStoppedJsonSchema;
855
+ RemoteLocal: RemoteLocalJsonSchema;
856
+ TripReset: TripResetJsonSchema;
379
857
  };
380
858
  type OperationModesJsonSchema = {
381
859
  TextHeight: number;
@@ -541,8 +1019,8 @@ type DamperJsonSchema = {
541
1019
  };
542
1020
  type DamperAutomatedJsonSchema = {
543
1021
  Damper: string;
544
- CommandsOpClTrait: CommandsOpClJsonSchema;
545
- TripResetTrait: TripResetJsonSchema;
1022
+ FeedbackOpCl: FeedbackOpClJsonSchema;
1023
+ TripReset: TripResetJsonSchema;
546
1024
  };
547
1025
  type FanJsonSchema = {
548
1026
  AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
@@ -590,10 +1068,13 @@ type PumpAutomatedJsonSchema = {
590
1068
  Pump: string;
591
1069
  PumpDesign: CompressorDesign;
592
1070
  AutomaticSemiAuto: AutomaticSemiAutoJsonSchema;
1071
+ FeedbackRunningStopped: FeedbackRunningStoppedJsonSchema;
1072
+ RemoteLocal: RemoteLocalJsonSchema;
593
1073
  TripReset: TripResetJsonSchema;
594
1074
  };
595
1075
  type TankJsonSchema = {
596
1076
  TankName: string;
1077
+ VolumeChannel: ChannelJsonSchema;
597
1078
  LocationInfo: InfoLocation;
598
1079
  ShowVolume: boolean;
599
1080
  ShowVolumeInPercent: boolean;
@@ -622,7 +1103,7 @@ type ValveJsonSchema = {
622
1103
  type ValveAutomatedJsonSchema = {
623
1104
  Valve: string;
624
1105
  ValveDesign: ValveDesign;
625
- CommandsOpCl: CommandsOpClJsonSchema;
1106
+ FeedbackOpCl: FeedbackOpClJsonSchema;
626
1107
  TripReset: TripResetJsonSchema;
627
1108
  };
628
1109
 
@@ -702,6 +1183,34 @@ declare const AlarmTypes: {
702
1183
  };
703
1184
  type AlarmType = (typeof AlarmTypes)[keyof typeof AlarmTypes];
704
1185
 
1186
+ declare const ChannelBaseTypes: {
1187
+ readonly VIRTUAL_ANALOG: "VirtualAnalog";
1188
+ readonly VIRTUAL_DIGITAL: "VirtualDigital";
1189
+ readonly VIRTUAL_STRING: "VirtualString";
1190
+ readonly WIRED_ANALOG: "WiredAnalog";
1191
+ readonly WIRED_DIGITAL: "WiredDigital";
1192
+ };
1193
+ type ChannelBaseType = (typeof ChannelBaseTypes)[keyof typeof ChannelBaseTypes];
1194
+ declare const ChannelSpecificTypes: {
1195
+ readonly DIGITAL_INPUT: "DigitalInput";
1196
+ readonly DIGITAL_OUTPUT: "DigitalOutput";
1197
+ readonly ANALOG_INPUT: "AnalogInput";
1198
+ readonly ANALOG_OUTPUT: "AnalogOutput";
1199
+ readonly ANALOG_SOFTWARE: "AnalogSoftware";
1200
+ readonly DIGITAL_SOFTWARE: "DigitalSoftware";
1201
+ readonly VIRTUAL_STRING: "VirtualString";
1202
+ readonly COMMAND: "Command";
1203
+ readonly BROADCAST_COMMAND: "BroadcastCommand";
1204
+ readonly SOFTWARE: "Software";
1205
+ readonly ANALOG_TIMER: "AnalogTimer";
1206
+ readonly SERIAL_DIGITAL_INPUT: "SerialDigitalInput";
1207
+ readonly SERIAL_DIGITAL_OUTPUT: "SerialDigitalOutput";
1208
+ readonly SERIAL_LINE_COMMAND: "SerialLineCommand";
1209
+ readonly SERIAL_ANALOG_INPUT: "SerialAnalogInput";
1210
+ readonly SERIAL_ANALOG_OUTPUT: "SerialAnalogOutput";
1211
+ };
1212
+ type ChannelSpecificType = (typeof ChannelSpecificTypes)[keyof typeof ChannelSpecificTypes];
1213
+
705
1214
  declare const EventCategories: {
706
1215
  readonly ACCESS_CONTROL: "AccessControl";
707
1216
  readonly REQUEST_ERROR: "RequestErrors";
@@ -734,4 +1243,4 @@ declare const UnitTypes: {
734
1243
  };
735
1244
  type UnitType = (typeof UnitTypes)[keyof typeof UnitTypes];
736
1245
 
737
- export { type GeneratorPmsJsonSchema as $, type AlarmIndicatorJsonSchema as A, type BackgroundJsonSchema as B, type ChannelJsonSchema as C, type DamperJsonSchema as D, type TitleJsonSchema as E, type FanJsonSchema as F, type AutomaticSemiAutoJsonSchema as G, type CommandsOpClJsonSchema as H, type ImageAuxiliaryJsonSchema as I, type CommandsStartStopJsonSchema as J, type ControlLockJsonSchema as K, type LineAuxiliaryJsonSchema as L, type FeedbackOpClJsonSchema as M, type FeedbackRunningStoppedJsonSchema as N, type OrderOpClJsonSchema as O, type PolylineAuxiliaryJsonSchema as P, type OrderStartStopJsonSchema as Q, type RepeaterJsonSchema as R, type SquareAuxiliaryJsonSchema as S, type TextAuxiliaryJsonSchema as T, type UnitJsonSchema as U, type ValveJsonSchema as V, type RemoteLocalJsonSchema as W, type TripResetJsonSchema as X, type BreakerJsonSchema as Y, type BreakerPmsJsonSchema as Z, type GeneratorJsonSchema as _, type LinkAuxiliaryJsonSchema as a, type OperationModesJsonSchema as a0, type PriorityDataJsonSchema as a1, type PrioritiesJsonSchema as a2, type ShaftJsonSchema as a3, type AlarmType as a4, type AlarmPriority as a5, type CloudAlarmState as a6, type DiamarAlarmState as a7, type EventCategory as a8, type EventCriticality as a9, type LinkDesign as aA, type OpClState as aB, type RunningStoppedState as aC, UnitTypes as aD, AlarmPriorities as aE, DiamarAlarmStates as aF, CloudAlarmStates as aG, AlarmTypes as aH, EventCategories as aI, EventCriticalities as aJ, type UnitType as aa, type MimicElementType as ab, type ZDepth as ac, type TitleAlign as ad, type DigitalState as ae, type DigitalAlarmState as af, type AlarmState as ag, type ActivationMode as ah, type TextAnchorPoint as ai, type ValveDesign as aj, type FanDesign as ak, type FanRunState as al, type FanDirection as am, type FanType as an, type LevelBarOrientation as ao, type SliderOrientation as ap, type CompressorDesign as aq, type LedType as ar, type MarkType as as, type ScalePosition as at, type ValueType as au, type OperationModeState as av, type UnitDesign as aw, type StationDesign as ax, type RepeaterDesign as ay, type CabinetDesign as az, type CompressorJsonSchema as b, type DamperAutomatedJsonSchema as c, type PumpJsonSchema as d, type PumpAutomatedJsonSchema as e, type TankJsonSchema as f, type ValveAutomatedJsonSchema as g, type CommandJsonSchema as h, type DialJsonSchema as i, type DigitalJsonSchema as j, type DisplayJsonSchema as k, type DynamicTextJsonSchema as l, type LevelBarJsonSchema as m, type SliderJsonSchema as n, type TextChannelJsonSchema as o, type ToggleJsonSchema as p, type CabinetJsonSchema as q, type StationJsonSchema as r, type AddedAlarmsJsonSchema as s, type LineJsonSchema as t, type LocalizedTextJsonSchema as u, type LocationJsonSchema as v, type LogicExpressionJsonSchema as w, type LogicExpressionsJsonSchema as x, type ScaleJsonSchema as y, type TextAttributesJsonSchema as z };
1246
+ export { type GeneratorPmsJsonSchema as $, type AlarmIndicatorJsonSchema as A, type BackgroundJsonSchema as B, type ChannelJsonSchema as C, type DamperJsonSchema as D, type TitleJsonSchema as E, type FanJsonSchema as F, type AutomaticSemiAutoJsonSchema as G, type CommandsOpClJsonSchema as H, type ImageAuxiliaryJsonSchema as I, type CommandsStartStopJsonSchema as J, type ControlLockJsonSchema as K, type LineAuxiliaryJsonSchema as L, type FeedbackOpClJsonSchema as M, type FeedbackRunningStoppedJsonSchema as N, type OrderOpClJsonSchema as O, type PolylineAuxiliaryJsonSchema as P, type OrderStartStopJsonSchema as Q, type RepeaterJsonSchema as R, type SquareAuxiliaryJsonSchema as S, type TextAuxiliaryJsonSchema as T, type UnitJsonSchema as U, type ValveJsonSchema as V, type RemoteLocalJsonSchema as W, type TripResetJsonSchema as X, type BreakerJsonSchema as Y, type BreakerPmsJsonSchema as Z, type GeneratorJsonSchema as _, type LinkAuxiliaryJsonSchema as a, type PumpAutomatedResponseSchema as a$, type OperationModesJsonSchema as a0, type PriorityDataJsonSchema as a1, type PrioritiesJsonSchema as a2, type ShaftJsonSchema as a3, type ImageAuxiliaryRequestSchema as a4, type LineAuxiliaryRequestSchema as a5, type LinkAuxiliaryRequestSchema as a6, type PolylineAuxiliaryRequestSchema as a7, type SquareAuxiliaryRequestSchema as a8, type TextAuxiliaryRequestSchema as a9, type CommandsStartStopRequestSchema as aA, type ControlLockRequestSchema as aB, type FeedbackOpClRequestSchema as aC, type FeedbackRunningStoppedRequestSchema as aD, type OrderOpClRequestSchema as aE, type OrderStartStopRequestSchema as aF, type RemoteLocalRequestSchema as aG, type TripResetRequestSchema as aH, type BreakerRequestSchema as aI, type BreakerPmsRequestSchema as aJ, type GeneratorRequestSchema as aK, type GeneratorPmsRequestSchema as aL, type OperationModesRequestSchema as aM, type PriorityDataRequestSchema as aN, type PrioritiesRequestSchema as aO, type ShaftRequestSchema as aP, type ImageAuxiliaryResponseSchema as aQ, type LineAuxiliaryResponseSchema as aR, type LinkAuxiliaryResponseSchema as aS, type PolylineAuxiliaryResponseSchema as aT, type SquareAuxiliaryResponseSchema as aU, type TextAuxiliaryResponseSchema as aV, type CompressorResponseSchema as aW, type DamperResponseSchema as aX, type DamperAutomatedResponseSchema as aY, type FanResponseSchema as aZ, type PumpResponseSchema as a_, type ChannelRequestSchema as aa, type CompressorRequestSchema as ab, type DamperRequestSchema as ac, type DamperAutomatedRequestSchema as ad, type FanRequestSchema as ae, type PumpRequestSchema as af, type PumpAutomatedRequestSchema as ag, type TankRequestSchema as ah, type ValveRequestSchema as ai, type ValveAutomatedRequestSchema as aj, type AlarmIndicatorRequestSchema as ak, type CommandRequestSchema as al, type DialRequestSchema as am, type DigitalRequestSchema as an, type DisplayRequestSchema as ao, type DynamicTextRequestSchema as ap, type LevelBarRequestSchema as aq, type SliderRequestSchema as ar, type TextChannelRequestSchema as as, type ToggleRequestSchema as at, type CabinetRequestSchema as au, type RepeaterRequestSchema as av, type StationRequestSchema as aw, type UnitRequestSchema as ax, type AutomaticSemiAutoRequestSchema as ay, type CommandsOpClRequestSchema as az, type CompressorJsonSchema as b, type ValueType as b$, type TankResponseSchema as b0, type ValveResponseSchema as b1, type ValveAutomatedResponseSchema as b2, type AlarmIndicatorResponseSchema as b3, type CommandResponseSchema as b4, type DialResponseSchema as b5, type DigitalResponseSchema as b6, type DisplayResponseSchema as b7, type DynamicTextResponseSchema as b8, type LevelBarResponseSchema as b9, type DigitalState as bA, type EventCategory as bB, type EventCriticality as bC, type FanDesign as bD, type FanDirection as bE, type FanRunState as bF, type FanType as bG, type LedType as bH, type LevelBarOrientation as bI, type LineRequestSchema as bJ, type LinkDesign as bK, type MarkType as bL, type MimicAlarmState as bM, type MimicControlState as bN, type MimicElementType as bO, type OpClState as bP, type OperationModeState as bQ, type RemoteLocalState as bR, type RepeaterDesign as bS, type RunningStoppedState as bT, type ScalePosition as bU, type SliderOrientation as bV, type StationDesign as bW, type TextAnchorPoint as bX, type TitleAlign as bY, type UnitDesign as bZ, type UnitType as b_, type SliderResponseSchema as ba, type TextChannelResponseSchema as bb, type ToggleResponseSchema as bc, type CabinetResponseSchema as bd, type RepeaterResponseSchema as be, type StationResponseSchema as bf, type UnitResponseSchema as bg, type BreakerResponseSchema as bh, type BreakerPmsResponseSchema as bi, type GeneratorResponseSchema as bj, type GeneratorPmsResponseSchema as bk, type OperationModesResponseSchema as bl, type PrioritiesResponseSchema as bm, type ShaftResponseSchema as bn, type ActivationMode as bo, type AlarmPriority as bp, type AlarmState as bq, type AlarmType as br, type AutoSemiAutoState as bs, type CabinetDesign as bt, type ChannelBaseType as bu, type ChannelSpecificType as bv, type CloudAlarmState as bw, type CompressorDesign as bx, type DiamarAlarmState as by, type DigitalAlarmState as bz, type DamperAutomatedJsonSchema as c, type ValveDesign as c0, type ZDepth as c1, UnitTypes as c2, AlarmPriorities as c3, DiamarAlarmStates as c4, CloudAlarmStates as c5, AlarmTypes as c6, EventCategories as c7, EventCriticalities as c8, type PumpJsonSchema as d, type PumpAutomatedJsonSchema as e, type TankJsonSchema as f, type ValveAutomatedJsonSchema as g, type CommandJsonSchema as h, type DialJsonSchema as i, type DigitalJsonSchema as j, type DisplayJsonSchema as k, type DynamicTextJsonSchema as l, type LevelBarJsonSchema as m, type SliderJsonSchema as n, type TextChannelJsonSchema as o, type ToggleJsonSchema as p, type CabinetJsonSchema as q, type StationJsonSchema as r, type AddedAlarmsJsonSchema as s, type LineJsonSchema as t, type LocalizedTextJsonSchema as u, type LocationJsonSchema as v, type LogicExpressionJsonSchema as w, type LogicExpressionsJsonSchema as x, type ScaleJsonSchema as y, type TextAttributesJsonSchema as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedni/cloud_common",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Common package for all types, resources and tools of Diamar Cloud",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,34 +16,37 @@
16
16
  },
17
17
  "exports": {
18
18
  ".": {
19
- "browser": "./dist/browser-index.js",
20
- "types": "./dist/index.d.ts",
19
+ "types": "./dist/browser-index.d.ts",
20
+ "browser": {
21
+ "import": "./dist/browser-index.js",
22
+ "require": "./dist/browser-index.cjs",
23
+ "default": "./dist/browser-index.js"
24
+ },
21
25
  "import": "./dist/index.js",
22
26
  "require": "./dist/index.cjs",
23
- "default": "./dist/index.js"
27
+ "default": "./dist/index.cjs"
24
28
  }
25
29
  },
26
30
  "author": "Jose Luis Silvestre García",
27
31
  "license": "ISC",
28
32
  "peerDependencies": {
29
- "mongoose": "^9.1.0",
33
+ "mongoose": "^9.2.1",
30
34
  "mongoose-aggregate-paginate-v2": "^1.1.4",
31
- "mongoose-autopopulate": "^1.1.0",
35
+ "mongoose-autopopulate": "^1.2.1",
36
+ "mongoose-paginate-v2": "^1.9.1"
37
+ },
38
+ "dependencies": {
39
+ "mongoose": "^9.2.1",
40
+ "mongoose-aggregate-paginate-v2": "^1.1.4",
41
+ "mongoose-autopopulate": "^1.2.1",
32
42
  "mongoose-paginate-v2": "^1.9.1"
33
43
  },
34
44
  "devDependencies": {
35
- "@eslint/js": "^9.32.0",
45
+ "@eslint/js": "^9.39.2",
36
46
  "@types/node": "^24.10.1",
37
- "chai": "^5.2.1",
38
- "eslint": "^9.32.0",
39
- "eslint-plugin-n": "^17.21.0",
40
- "globals": "^16.3.0",
41
- "mocha": "^11.7.1",
42
- "nyc": "^17.1.0",
43
- "proxyquire": "^2.1.3",
44
- "sinon": "^21.0.0",
45
- "supertest": "^7.1.4",
46
- "tsup": "^8.5.0",
47
+ "eslint": "^9.39.2",
48
+ "eslint-plugin-n": "^17.24.0",
49
+ "tsup": "^8.5.1",
47
50
  "typescript": "^5.9.3"
48
51
  }
49
- }
52
+ }
package/tsconfig.json CHANGED
@@ -12,7 +12,8 @@
12
12
  "resolveJsonModule": true,
13
13
  "esModuleInterop": true,
14
14
  "forceConsistentCasingInFileNames": true,
15
- "skipLibCheck": true
15
+ "skipLibCheck": true,
16
+ "allowImportingTsExtensions": true
16
17
  },
17
18
  "include": [
18
19
  "app/**/*"