@3e/sqa-common 6.17.0-2 → 6.17.0-20
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/index.d.ts +91 -14
- package/package.json +1 -1
- package/sqa_common.js +1337 -1324
package/index.d.ts
CHANGED
|
@@ -733,17 +733,22 @@ declare module '@3e/sqa-common' {
|
|
|
733
733
|
| 'kpis'
|
|
734
734
|
|
|
735
735
|
export type Granularity =
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
736
|
+
| '1-days'
|
|
737
|
+
| '1-hours'
|
|
738
|
+
| '1-minutes'
|
|
739
|
+
| '1-months'
|
|
740
|
+
| '1-weeks'
|
|
741
|
+
| '1-years'
|
|
742
|
+
| '10-minutes'
|
|
743
|
+
| '15-minutes'
|
|
744
|
+
| '3-months'
|
|
745
|
+
| '30-minutes'
|
|
746
|
+
| '5-minutes'
|
|
747
|
+
| 'change'
|
|
748
|
+
| 'normalized'
|
|
749
|
+
| 'raw'
|
|
750
|
+
| 'scaled'
|
|
751
|
+
| 'statelog'
|
|
747
752
|
|
|
748
753
|
export type Period =
|
|
749
754
|
| 'last-15-minutes'
|
|
@@ -770,6 +775,72 @@ declare module '@3e/sqa-common' {
|
|
|
770
775
|
| 'since-beginning'
|
|
771
776
|
| 'custom'
|
|
772
777
|
|
|
778
|
+
export type ShortLDTypeValue =
|
|
779
|
+
| 'ac-input'
|
|
780
|
+
| 'ac-node'
|
|
781
|
+
| 'ac-phase'
|
|
782
|
+
| 'account'
|
|
783
|
+
| 'battery'
|
|
784
|
+
| 'bearing'
|
|
785
|
+
| 'blade'
|
|
786
|
+
| 'connection'
|
|
787
|
+
| 'dc-input'
|
|
788
|
+
| 'dc-node'
|
|
789
|
+
| 'generator'
|
|
790
|
+
| 'inverter'
|
|
791
|
+
| 'inverter-device'
|
|
792
|
+
| 'logger'
|
|
793
|
+
| 'module-group'
|
|
794
|
+
| 'mppt'
|
|
795
|
+
| 'nacelle'
|
|
796
|
+
| 'portfolio'
|
|
797
|
+
| 'power-unit'
|
|
798
|
+
| 'rotor'
|
|
799
|
+
| 'sensor'
|
|
800
|
+
| 'site'
|
|
801
|
+
| 'site-group'
|
|
802
|
+
| 'spv'
|
|
803
|
+
| 'strings'
|
|
804
|
+
| 'tower'
|
|
805
|
+
| 'tracker'
|
|
806
|
+
| 'transmission'
|
|
807
|
+
| 'turbine'
|
|
808
|
+
| 'yaw'
|
|
809
|
+
|
|
810
|
+
export type LongLDTypeValue =
|
|
811
|
+
| 'sq/ld_type/ac_input'
|
|
812
|
+
| 'sq/ld_type/ac_node'
|
|
813
|
+
| 'sq/ld_type/ac_phase'
|
|
814
|
+
| 'sq/ld_type/account'
|
|
815
|
+
| 'sq/ld_type/battery'
|
|
816
|
+
| 'sq/ld_type/bearing'
|
|
817
|
+
| 'sq/ld_type/blade'
|
|
818
|
+
| 'sq/ld_type/connection'
|
|
819
|
+
| 'sq/ld_type/dc_input'
|
|
820
|
+
| 'sq/ld_type/dc_node'
|
|
821
|
+
| 'sq/ld_type/generator'
|
|
822
|
+
| 'sq/ld_type/inverter'
|
|
823
|
+
| 'sq/ld_type/inverter_device'
|
|
824
|
+
| 'sq/ld_type/logger'
|
|
825
|
+
| 'sq/ld_type/module_group'
|
|
826
|
+
| 'sq/ld_type/mppt'
|
|
827
|
+
| 'sq/ld_type/nacelle'
|
|
828
|
+
| 'sq/ld_type/portfolio'
|
|
829
|
+
| 'sq/ld_type/power_unit'
|
|
830
|
+
| 'sq/ld_type/rotor'
|
|
831
|
+
| 'sq/ld_type/sensor'
|
|
832
|
+
| 'sq/ld_type/site'
|
|
833
|
+
| 'sq/ld_type/site_group'
|
|
834
|
+
| 'sq/ld_type/spv'
|
|
835
|
+
| 'sq/ld_type/strings'
|
|
836
|
+
| 'sq/ld_type/tower'
|
|
837
|
+
| 'sq/ld_type/tracker'
|
|
838
|
+
| 'sq/ld_type/transmission'
|
|
839
|
+
| 'sq/ld_type/turbine'
|
|
840
|
+
| 'sq/ld_type/yaw'
|
|
841
|
+
|
|
842
|
+
export type LdTypeValue = ShortLDTypeValue | LongLDTypeValue
|
|
843
|
+
|
|
773
844
|
export type LevelValue =
|
|
774
845
|
| 'site-group'
|
|
775
846
|
| 'site'
|
|
@@ -1645,7 +1716,7 @@ declare module '@3e/sqa-common' {
|
|
|
1645
1716
|
/**
|
|
1646
1717
|
* Generate a new password for the user
|
|
1647
1718
|
*
|
|
1648
|
-
* Password will
|
|
1719
|
+
* The Password will:
|
|
1649
1720
|
* - be between 12 and 100 characters
|
|
1650
1721
|
* - contain at least one lower-case character
|
|
1651
1722
|
* - contain at least one upper-case character
|
|
@@ -1683,7 +1754,7 @@ declare module '@3e/sqa-common' {
|
|
|
1683
1754
|
* @param ldType - The Logical Device Type to convert. Accepts both short
|
|
1684
1755
|
* form (e.g. 'inverter') or full SQID (e.g. '/sq/ld_type/inverter')
|
|
1685
1756
|
*/
|
|
1686
|
-
convertLDTypeToRefCategory(ldType:
|
|
1757
|
+
convertLDTypeToRefCategory(ldType: LdTypeValue): string | null
|
|
1687
1758
|
|
|
1688
1759
|
/**
|
|
1689
1760
|
* Make a Ref from an LD Type and a SQID
|
|
@@ -1695,7 +1766,13 @@ declare module '@3e/sqa-common' {
|
|
|
1695
1766
|
* form (e.g. 'inverter') or full SQID (e.g. '/sq/ld_type/inverter')
|
|
1696
1767
|
* @param sqid - The SQID of the object
|
|
1697
1768
|
*/
|
|
1698
|
-
refFromLDTypeAndSQID(ldType:
|
|
1769
|
+
refFromLDTypeAndSQID(ldType: LdTypeValue, sqid: string): string | null
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Returns the refresh period for the view in milliseconds, or null if the view should not be refreshed
|
|
1773
|
+
* @param view - the view for which to receive the refresh period
|
|
1774
|
+
*/
|
|
1775
|
+
refreshPeriod(view: SQView): number | null
|
|
1699
1776
|
}
|
|
1700
1777
|
|
|
1701
1778
|
export const sqa: {
|