@3e/sqa-common 6.17.0-9 → 6.18.0-2
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 +123 -17
- package/package.json +6 -2
- package/sqa_common.js +1383 -1379
- package/types.ts +1230 -0
package/index.d.ts
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
ApiFn,
|
|
3
|
+
ColorScheme,
|
|
4
|
+
ColorSettings,
|
|
5
|
+
ColorSchemeValue,
|
|
6
|
+
DashboardLevel,
|
|
7
|
+
EmptyViewOptions,
|
|
8
|
+
Granularity,
|
|
9
|
+
InitialisationConfig,
|
|
10
|
+
Level,
|
|
11
|
+
MeasurementsTable,
|
|
12
|
+
Period,
|
|
13
|
+
SQView,
|
|
14
|
+
Timezone,
|
|
15
|
+
TimezoneValue,
|
|
16
|
+
TokenThunk,
|
|
17
|
+
ViewType,
|
|
18
|
+
VisualisationOptions,
|
|
19
|
+
Visualization,
|
|
20
|
+
StackingOption,
|
|
21
|
+
TimezoneMode,
|
|
22
|
+
Representation,
|
|
23
|
+
LdTypeOption,
|
|
24
|
+
LevelValue,
|
|
25
|
+
Container,
|
|
26
|
+
ContainerValue,
|
|
27
|
+
Template,
|
|
28
|
+
ISODateString,
|
|
29
|
+
PeriodTimeMode,
|
|
30
|
+
Dataset,
|
|
31
|
+
SaveDataJobResponse,
|
|
32
|
+
LdTypeValue,
|
|
33
|
+
DatasetOptions,
|
|
34
|
+
DatasetTemplateSpec,
|
|
35
|
+
PacoViewParameters,
|
|
36
|
+
Parameter,
|
|
37
|
+
} from './types'
|
|
3
38
|
/**
|
|
4
39
|
* Type declarations for the @3e/sqa-common module
|
|
5
40
|
*/
|
|
@@ -733,17 +768,22 @@ declare module '@3e/sqa-common' {
|
|
|
733
768
|
| 'kpis'
|
|
734
769
|
|
|
735
770
|
export type Granularity =
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
771
|
+
| '1-days'
|
|
772
|
+
| '1-hours'
|
|
773
|
+
| '1-minutes'
|
|
774
|
+
| '1-months'
|
|
775
|
+
| '1-weeks'
|
|
776
|
+
| '1-years'
|
|
777
|
+
| '10-minutes'
|
|
778
|
+
| '15-minutes'
|
|
779
|
+
| '3-months'
|
|
780
|
+
| '30-minutes'
|
|
781
|
+
| '5-minutes'
|
|
782
|
+
| 'change'
|
|
783
|
+
| 'normalized'
|
|
784
|
+
| 'raw'
|
|
785
|
+
| 'scaled'
|
|
786
|
+
| 'statelog'
|
|
747
787
|
|
|
748
788
|
export type Period =
|
|
749
789
|
| 'last-15-minutes'
|
|
@@ -770,6 +810,72 @@ declare module '@3e/sqa-common' {
|
|
|
770
810
|
| 'since-beginning'
|
|
771
811
|
| 'custom'
|
|
772
812
|
|
|
813
|
+
export type ShortLDTypeValue =
|
|
814
|
+
| 'ac-input'
|
|
815
|
+
| 'ac-node'
|
|
816
|
+
| 'ac-phase'
|
|
817
|
+
| 'account'
|
|
818
|
+
| 'battery'
|
|
819
|
+
| 'bearing'
|
|
820
|
+
| 'blade'
|
|
821
|
+
| 'connection'
|
|
822
|
+
| 'dc-input'
|
|
823
|
+
| 'dc-node'
|
|
824
|
+
| 'generator'
|
|
825
|
+
| 'inverter'
|
|
826
|
+
| 'inverter-device'
|
|
827
|
+
| 'logger'
|
|
828
|
+
| 'module-group'
|
|
829
|
+
| 'mppt'
|
|
830
|
+
| 'nacelle'
|
|
831
|
+
| 'portfolio'
|
|
832
|
+
| 'power-unit'
|
|
833
|
+
| 'rotor'
|
|
834
|
+
| 'sensor'
|
|
835
|
+
| 'site'
|
|
836
|
+
| 'site-group'
|
|
837
|
+
| 'spv'
|
|
838
|
+
| 'strings'
|
|
839
|
+
| 'tower'
|
|
840
|
+
| 'tracker'
|
|
841
|
+
| 'transmission'
|
|
842
|
+
| 'turbine'
|
|
843
|
+
| 'yaw'
|
|
844
|
+
|
|
845
|
+
export type LongLDTypeValue =
|
|
846
|
+
| 'sq/ld_type/ac_input'
|
|
847
|
+
| 'sq/ld_type/ac_node'
|
|
848
|
+
| 'sq/ld_type/ac_phase'
|
|
849
|
+
| 'sq/ld_type/account'
|
|
850
|
+
| 'sq/ld_type/battery'
|
|
851
|
+
| 'sq/ld_type/bearing'
|
|
852
|
+
| 'sq/ld_type/blade'
|
|
853
|
+
| 'sq/ld_type/connection'
|
|
854
|
+
| 'sq/ld_type/dc_input'
|
|
855
|
+
| 'sq/ld_type/dc_node'
|
|
856
|
+
| 'sq/ld_type/generator'
|
|
857
|
+
| 'sq/ld_type/inverter'
|
|
858
|
+
| 'sq/ld_type/inverter_device'
|
|
859
|
+
| 'sq/ld_type/logger'
|
|
860
|
+
| 'sq/ld_type/module_group'
|
|
861
|
+
| 'sq/ld_type/mppt'
|
|
862
|
+
| 'sq/ld_type/nacelle'
|
|
863
|
+
| 'sq/ld_type/portfolio'
|
|
864
|
+
| 'sq/ld_type/power_unit'
|
|
865
|
+
| 'sq/ld_type/rotor'
|
|
866
|
+
| 'sq/ld_type/sensor'
|
|
867
|
+
| 'sq/ld_type/site'
|
|
868
|
+
| 'sq/ld_type/site_group'
|
|
869
|
+
| 'sq/ld_type/spv'
|
|
870
|
+
| 'sq/ld_type/strings'
|
|
871
|
+
| 'sq/ld_type/tower'
|
|
872
|
+
| 'sq/ld_type/tracker'
|
|
873
|
+
| 'sq/ld_type/transmission'
|
|
874
|
+
| 'sq/ld_type/turbine'
|
|
875
|
+
| 'sq/ld_type/yaw'
|
|
876
|
+
|
|
877
|
+
export type LdTypeValue = ShortLDTypeValue | LongLDTypeValue
|
|
878
|
+
|
|
773
879
|
export type LevelValue =
|
|
774
880
|
| 'site-group'
|
|
775
881
|
| 'site'
|
|
@@ -1430,7 +1536,7 @@ declare module '@3e/sqa-common' {
|
|
|
1430
1536
|
* Gets the container logical devices types to populate
|
|
1431
1537
|
* @param level - level means container
|
|
1432
1538
|
*/
|
|
1433
|
-
getContainersLdTypes(level: LevelValue): Promise<
|
|
1539
|
+
getContainersLdTypes(level: LevelValue): Promise<LdTypeOption[]>
|
|
1434
1540
|
|
|
1435
1541
|
/**
|
|
1436
1542
|
* Based on the selected level and the Selected Logical Device type, returns
|
|
@@ -1645,7 +1751,7 @@ declare module '@3e/sqa-common' {
|
|
|
1645
1751
|
/**
|
|
1646
1752
|
* Generate a new password for the user
|
|
1647
1753
|
*
|
|
1648
|
-
* Password will
|
|
1754
|
+
* The Password will:
|
|
1649
1755
|
* - be between 12 and 100 characters
|
|
1650
1756
|
* - contain at least one lower-case character
|
|
1651
1757
|
* - contain at least one upper-case character
|
|
@@ -1683,7 +1789,7 @@ declare module '@3e/sqa-common' {
|
|
|
1683
1789
|
* @param ldType - The Logical Device Type to convert. Accepts both short
|
|
1684
1790
|
* form (e.g. 'inverter') or full SQID (e.g. '/sq/ld_type/inverter')
|
|
1685
1791
|
*/
|
|
1686
|
-
convertLDTypeToRefCategory(ldType:
|
|
1792
|
+
convertLDTypeToRefCategory(ldType: LdTypeValue): string | null
|
|
1687
1793
|
|
|
1688
1794
|
/**
|
|
1689
1795
|
* Make a Ref from an LD Type and a SQID
|
|
@@ -1695,7 +1801,7 @@ declare module '@3e/sqa-common' {
|
|
|
1695
1801
|
* form (e.g. 'inverter') or full SQID (e.g. '/sq/ld_type/inverter')
|
|
1696
1802
|
* @param sqid - The SQID of the object
|
|
1697
1803
|
*/
|
|
1698
|
-
refFromLDTypeAndSQID(ldType:
|
|
1804
|
+
refFromLDTypeAndSQID(ldType: LdTypeValue, sqid: string): string | null
|
|
1699
1805
|
|
|
1700
1806
|
/**
|
|
1701
1807
|
* Returns the refresh period for the view in milliseconds, or null if the view should not be refreshed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3e/sqa-common",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.18.0-2",
|
|
4
4
|
"description": "SynaptiQ utilities package",
|
|
5
5
|
"main": "sqa_common.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
16
16
|
},
|
|
17
|
-
"files": [
|
|
17
|
+
"files": [
|
|
18
|
+
"sqa_common.js",
|
|
19
|
+
"index.d.ts",
|
|
20
|
+
"types.ts"
|
|
21
|
+
],
|
|
18
22
|
"author": "",
|
|
19
23
|
"license": "ISC"
|
|
20
24
|
}
|