@3e/sqa-common 6.0.5-9 → 6.0.6-11
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 +1413 -2
- package/package.json +1 -1
- package/sqa_common.js +949 -908
package/index.d.ts
CHANGED
|
@@ -1,4 +1,1415 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type declarations for the @3e/sqa-common module
|
|
3
|
+
*/
|
|
1
4
|
declare module '@3e/sqa-common' {
|
|
2
|
-
|
|
3
|
-
|
|
5
|
+
export type TimezoneValue =
|
|
6
|
+
| 'Asia/Aden'
|
|
7
|
+
| 'America/Cuiaba'
|
|
8
|
+
| 'Etc/GMT+9'
|
|
9
|
+
| 'Etc/GMT+8'
|
|
10
|
+
| 'Africa/Nairobi'
|
|
11
|
+
| 'America/Marigot'
|
|
12
|
+
| 'Asia/Aqtau'
|
|
13
|
+
| 'Pacific/Kwajalein'
|
|
14
|
+
| 'America/El_Salvador'
|
|
15
|
+
| 'Asia/Pontianak'
|
|
16
|
+
| 'Africa/Cairo'
|
|
17
|
+
| 'Pacific/Pago_Pago'
|
|
18
|
+
| 'Africa/Mbabane'
|
|
19
|
+
| 'Asia/Kuching'
|
|
20
|
+
| 'Pacific/Honolulu'
|
|
21
|
+
| 'Pacific/Rarotonga'
|
|
22
|
+
| 'America/Guatemala'
|
|
23
|
+
| 'Australia/Hobart'
|
|
24
|
+
| 'Europe/London'
|
|
25
|
+
| 'America/Belize'
|
|
26
|
+
| 'America/Panama'
|
|
27
|
+
| 'Asia/Chungking'
|
|
28
|
+
| 'America/Managua'
|
|
29
|
+
| 'America/Indiana/Petersburg'
|
|
30
|
+
| 'Asia/Yerevan'
|
|
31
|
+
| 'Europe/Brussels'
|
|
32
|
+
| 'GMT'
|
|
33
|
+
| 'Europe/Warsaw'
|
|
34
|
+
| 'America/Chicago'
|
|
35
|
+
| 'Asia/Kashgar'
|
|
36
|
+
| 'Chile/Continental'
|
|
37
|
+
| 'Pacific/Yap'
|
|
38
|
+
| 'CET'
|
|
39
|
+
| 'Etc/GMT-1'
|
|
40
|
+
| 'Etc/GMT-0'
|
|
41
|
+
| 'Europe/Jersey'
|
|
42
|
+
| 'America/Tegucigalpa'
|
|
43
|
+
| 'Etc/GMT-5'
|
|
44
|
+
| 'Europe/Istanbul'
|
|
45
|
+
| 'America/Eirunepe'
|
|
46
|
+
| 'Etc/GMT-4'
|
|
47
|
+
| 'America/Miquelon'
|
|
48
|
+
| 'Etc/GMT-3'
|
|
49
|
+
| 'Europe/Luxembourg'
|
|
50
|
+
| 'Etc/GMT-2'
|
|
51
|
+
| 'Etc/GMT-9'
|
|
52
|
+
| 'America/Argentina/Catamarca'
|
|
53
|
+
| 'Etc/GMT-8'
|
|
54
|
+
| 'Etc/GMT-7'
|
|
55
|
+
| 'Etc/GMT-6'
|
|
56
|
+
| 'Europe/Zaporozhye'
|
|
57
|
+
| 'Canada/Yukon'
|
|
58
|
+
| 'Canada/Atlantic'
|
|
59
|
+
| 'Atlantic/St_Helena'
|
|
60
|
+
| 'Australia/Tasmania'
|
|
61
|
+
| 'Libya'
|
|
62
|
+
| 'Europe/Guernsey'
|
|
63
|
+
| 'America/Grand_Turk'
|
|
64
|
+
| 'Asia/Samarkand'
|
|
65
|
+
| 'America/Argentina/Cordoba'
|
|
66
|
+
| 'Asia/Phnom_Penh'
|
|
67
|
+
| 'Africa/Kigali'
|
|
68
|
+
| 'Asia/Almaty'
|
|
69
|
+
| 'US/Alaska'
|
|
70
|
+
| 'Asia/Dubai'
|
|
71
|
+
| 'Europe/Isle_of_Man'
|
|
72
|
+
| 'America/Araguaina'
|
|
73
|
+
| 'Cuba'
|
|
74
|
+
| 'Asia/Novosibirsk'
|
|
75
|
+
| 'America/Argentina/Salta'
|
|
76
|
+
| 'Etc/GMT+3'
|
|
77
|
+
| 'Africa/Tunis'
|
|
78
|
+
| 'Etc/GMT+2'
|
|
79
|
+
| 'Etc/GMT+1'
|
|
80
|
+
| 'Pacific/Fakaofo'
|
|
81
|
+
| 'Africa/Tripoli'
|
|
82
|
+
| 'Etc/GMT+0'
|
|
83
|
+
| 'Israel'
|
|
84
|
+
| 'Africa/Banjul'
|
|
85
|
+
| 'Etc/GMT+7'
|
|
86
|
+
| 'Indian/Comoro'
|
|
87
|
+
| 'Etc/GMT+6'
|
|
88
|
+
| 'Etc/GMT+5'
|
|
89
|
+
| 'Etc/GMT+4'
|
|
90
|
+
| 'Pacific/Port_Moresby'
|
|
91
|
+
| 'US/Arizona'
|
|
92
|
+
| 'Antarctica/Syowa'
|
|
93
|
+
| 'Indian/Reunion'
|
|
94
|
+
| 'Pacific/Palau'
|
|
95
|
+
| 'Europe/Kaliningrad'
|
|
96
|
+
| 'America/Montevideo'
|
|
97
|
+
| 'Africa/Windhoek'
|
|
98
|
+
| 'Asia/Karachi'
|
|
99
|
+
| 'Africa/Mogadishu'
|
|
100
|
+
| 'Australia/Perth'
|
|
101
|
+
| 'Brazil/East'
|
|
102
|
+
| 'Etc/GMT'
|
|
103
|
+
| 'Asia/Chita'
|
|
104
|
+
| 'Pacific/Easter'
|
|
105
|
+
| 'Antarctica/Davis'
|
|
106
|
+
| 'Antarctica/McMurdo'
|
|
107
|
+
| 'Asia/Macao'
|
|
108
|
+
| 'America/Manaus'
|
|
109
|
+
| 'Africa/Freetown'
|
|
110
|
+
| 'Europe/Bucharest'
|
|
111
|
+
| 'Asia/Tomsk'
|
|
112
|
+
| 'America/Argentina/Mendoza'
|
|
113
|
+
| 'Asia/Macau'
|
|
114
|
+
| 'Europe/Malta'
|
|
115
|
+
| 'Mexico/BajaSur'
|
|
116
|
+
| 'Pacific/Tahiti'
|
|
117
|
+
| 'Africa/Asmera'
|
|
118
|
+
| 'Europe/Busingen'
|
|
119
|
+
| 'America/Argentina/Rio_Gallegos'
|
|
120
|
+
| 'Africa/Malabo'
|
|
121
|
+
| 'Europe/Skopje'
|
|
122
|
+
| 'America/Catamarca'
|
|
123
|
+
| 'America/Godthab'
|
|
124
|
+
| 'Europe/Sarajevo'
|
|
125
|
+
| 'Australia/ACT'
|
|
126
|
+
| 'GB-Eire'
|
|
127
|
+
| 'Africa/Lagos'
|
|
128
|
+
| 'America/Cordoba'
|
|
129
|
+
| 'Europe/Rome'
|
|
130
|
+
| 'Asia/Dacca'
|
|
131
|
+
| 'Indian/Mauritius'
|
|
132
|
+
| 'Pacific/Samoa'
|
|
133
|
+
| 'America/Regina'
|
|
134
|
+
| 'America/Fort_Wayne'
|
|
135
|
+
| 'America/Dawson_Creek'
|
|
136
|
+
| 'Africa/Algiers'
|
|
137
|
+
| 'Europe/Mariehamn'
|
|
138
|
+
| 'America/St_Johns'
|
|
139
|
+
| 'America/St_Thomas'
|
|
140
|
+
| 'Europe/Zurich'
|
|
141
|
+
| 'America/Anguilla'
|
|
142
|
+
| 'Asia/Dili'
|
|
143
|
+
| 'America/Denver'
|
|
144
|
+
| 'Africa/Bamako'
|
|
145
|
+
| 'Europe/Saratov'
|
|
146
|
+
| 'GB'
|
|
147
|
+
| 'Mexico/General'
|
|
148
|
+
| 'Pacific/Wallis'
|
|
149
|
+
| 'Europe/Gibraltar'
|
|
150
|
+
| 'Africa/Conakry'
|
|
151
|
+
| 'Africa/Lubumbashi'
|
|
152
|
+
| 'Asia/Istanbul'
|
|
153
|
+
| 'America/Havana'
|
|
154
|
+
| 'NZ-CHAT'
|
|
155
|
+
| 'Asia/Choibalsan'
|
|
156
|
+
| 'America/Porto_Acre'
|
|
157
|
+
| 'Asia/Omsk'
|
|
158
|
+
| 'Europe/Vaduz'
|
|
159
|
+
| 'US/Michigan'
|
|
160
|
+
| 'Asia/Dhaka'
|
|
161
|
+
| 'America/Barbados'
|
|
162
|
+
| 'Europe/Tiraspol'
|
|
163
|
+
| 'Atlantic/Cape_Verde'
|
|
164
|
+
| 'Asia/Yekaterinburg'
|
|
165
|
+
| 'America/Louisville'
|
|
166
|
+
| 'Pacific/Johnston'
|
|
167
|
+
| 'Pacific/Chatham'
|
|
168
|
+
| 'Europe/Ljubljana'
|
|
169
|
+
| 'America/Sao_Paulo'
|
|
170
|
+
| 'Asia/Jayapura'
|
|
171
|
+
| 'America/Curacao'
|
|
172
|
+
| 'Asia/Dushanbe'
|
|
173
|
+
| 'America/Guyana'
|
|
174
|
+
| 'America/Guayaquil'
|
|
175
|
+
| 'America/Martinique'
|
|
176
|
+
| 'Portugal'
|
|
177
|
+
| 'Europe/Berlin'
|
|
178
|
+
| 'Europe/Moscow'
|
|
179
|
+
| 'Europe/Chisinau'
|
|
180
|
+
| 'America/Puerto_Rico'
|
|
181
|
+
| 'America/Rankin_Inlet'
|
|
182
|
+
| 'Pacific/Ponape'
|
|
183
|
+
| 'Europe/Stockholm'
|
|
184
|
+
| 'Europe/Budapest'
|
|
185
|
+
| 'America/Argentina/Jujuy'
|
|
186
|
+
| 'Australia/Eucla'
|
|
187
|
+
| 'Asia/Shanghai'
|
|
188
|
+
| 'Universal'
|
|
189
|
+
| 'Europe/Zagreb'
|
|
190
|
+
| 'America/Port_of_Spain'
|
|
191
|
+
| 'Europe/Helsinki'
|
|
192
|
+
| 'Asia/Beirut'
|
|
193
|
+
| 'Asia/Tel_Aviv'
|
|
194
|
+
| 'Pacific/Bougainville'
|
|
195
|
+
| 'US/Central'
|
|
196
|
+
| 'Africa/Sao_Tome'
|
|
197
|
+
| 'Indian/Chagos'
|
|
198
|
+
| 'America/Cayenne'
|
|
199
|
+
| 'Asia/Yakutsk'
|
|
200
|
+
| 'Pacific/Galapagos'
|
|
201
|
+
| 'Australia/North'
|
|
202
|
+
| 'Europe/Paris'
|
|
203
|
+
| 'Africa/Ndjamena'
|
|
204
|
+
| 'Pacific/Fiji'
|
|
205
|
+
| 'America/Rainy_River'
|
|
206
|
+
| 'Indian/Maldives'
|
|
207
|
+
| 'Australia/Yancowinna'
|
|
208
|
+
| 'SystemV/AST4'
|
|
209
|
+
| 'Asia/Oral'
|
|
210
|
+
| 'America/Yellowknife'
|
|
211
|
+
| 'Pacific/Enderbury'
|
|
212
|
+
| 'America/Juneau'
|
|
213
|
+
| 'Australia/Victoria'
|
|
214
|
+
| 'America/Indiana/Vevay'
|
|
215
|
+
| 'Asia/Tashkent'
|
|
216
|
+
| 'Asia/Jakarta'
|
|
217
|
+
| 'Africa/Ceuta'
|
|
218
|
+
| 'Asia/Barnaul'
|
|
219
|
+
| 'America/Recife'
|
|
220
|
+
| 'America/Buenos_Aires'
|
|
221
|
+
| 'America/Noronha'
|
|
222
|
+
| 'America/Swift_Current'
|
|
223
|
+
| 'Australia/Adelaide'
|
|
224
|
+
| 'America/Metlakatla'
|
|
225
|
+
| 'Africa/Djibouti'
|
|
226
|
+
| 'America/Paramaribo'
|
|
227
|
+
| 'Asia/Qostanay'
|
|
228
|
+
| 'Europe/Simferopol'
|
|
229
|
+
| 'Europe/Sofia'
|
|
230
|
+
| 'Africa/Nouakchott'
|
|
231
|
+
| 'Europe/Prague'
|
|
232
|
+
| 'America/Indiana/Vincennes'
|
|
233
|
+
| 'Antarctica/Mawson'
|
|
234
|
+
| 'America/Kralendijk'
|
|
235
|
+
| 'Antarctica/Troll'
|
|
236
|
+
| 'Europe/Samara'
|
|
237
|
+
| 'Indian/Christmas'
|
|
238
|
+
| 'America/Antigua'
|
|
239
|
+
| 'Pacific/Gambier'
|
|
240
|
+
| 'America/Indianapolis'
|
|
241
|
+
| 'America/Inuvik'
|
|
242
|
+
| 'America/Iqaluit'
|
|
243
|
+
| 'Pacific/Funafuti'
|
|
244
|
+
| 'UTC'
|
|
245
|
+
| 'Antarctica/Macquarie'
|
|
246
|
+
| 'Canada/Pacific'
|
|
247
|
+
| 'America/Moncton'
|
|
248
|
+
| 'Africa/Gaborone'
|
|
249
|
+
| 'Pacific/Chuuk'
|
|
250
|
+
| 'Asia/Pyongyang'
|
|
251
|
+
| 'America/St_Vincent'
|
|
252
|
+
| 'Asia/Gaza'
|
|
253
|
+
| 'Etc/Universal'
|
|
254
|
+
| 'PST8PDT'
|
|
255
|
+
| 'Atlantic/Faeroe'
|
|
256
|
+
| 'Asia/Qyzylorda'
|
|
257
|
+
| 'Canada/Newfoundland'
|
|
258
|
+
| 'America/Kentucky/Louisville'
|
|
259
|
+
| 'America/Yakutat'
|
|
260
|
+
| 'Asia/Ho_Chi_Minh'
|
|
261
|
+
| 'Antarctica/Casey'
|
|
262
|
+
| 'Europe/Copenhagen'
|
|
263
|
+
| 'Africa/Asmara'
|
|
264
|
+
| 'Atlantic/Azores'
|
|
265
|
+
| 'Europe/Vienna'
|
|
266
|
+
| 'ROK'
|
|
267
|
+
| 'Pacific/Pitcairn'
|
|
268
|
+
| 'America/Mazatlan'
|
|
269
|
+
| 'Australia/Queensland'
|
|
270
|
+
| 'Pacific/Nauru'
|
|
271
|
+
| 'Europe/Tirane'
|
|
272
|
+
| 'Asia/Kolkata'
|
|
273
|
+
| 'SystemV/MST7'
|
|
274
|
+
| 'Australia/Canberra'
|
|
275
|
+
| 'MET'
|
|
276
|
+
| 'Australia/Broken_Hill'
|
|
277
|
+
| 'Europe/Riga'
|
|
278
|
+
| 'America/Dominica'
|
|
279
|
+
| 'Africa/Abidjan'
|
|
280
|
+
| 'America/Mendoza'
|
|
281
|
+
| 'America/Santarem'
|
|
282
|
+
| 'Kwajalein'
|
|
283
|
+
| 'America/Asuncion'
|
|
284
|
+
| 'Asia/Ulan_Bator'
|
|
285
|
+
| 'NZ'
|
|
286
|
+
| 'America/Boise'
|
|
287
|
+
| 'Australia/Currie'
|
|
288
|
+
| 'EST5EDT'
|
|
289
|
+
| 'Pacific/Guam'
|
|
290
|
+
| 'Pacific/Wake'
|
|
291
|
+
| 'Atlantic/Bermuda'
|
|
292
|
+
| 'America/Costa_Rica'
|
|
293
|
+
| 'America/Dawson'
|
|
294
|
+
| 'Asia/Chongqing'
|
|
295
|
+
| 'Eire'
|
|
296
|
+
| 'Europe/Amsterdam'
|
|
297
|
+
| 'America/Indiana/Knox'
|
|
298
|
+
| 'America/North_Dakota/Beulah'
|
|
299
|
+
| 'Africa/Accra'
|
|
300
|
+
| 'Atlantic/Faroe'
|
|
301
|
+
| 'Mexico/BajaNorte'
|
|
302
|
+
| 'America/Maceio'
|
|
303
|
+
| 'Etc/UCT'
|
|
304
|
+
| 'Pacific/Apia'
|
|
305
|
+
| 'GMT0'
|
|
306
|
+
| 'America/Atka'
|
|
307
|
+
| 'Pacific/Niue'
|
|
308
|
+
| 'Australia/Lord_Howe'
|
|
309
|
+
| 'Europe/Dublin'
|
|
310
|
+
| 'Pacific/Truk'
|
|
311
|
+
| 'MST7MDT'
|
|
312
|
+
| 'America/Monterrey'
|
|
313
|
+
| 'America/Nassau'
|
|
314
|
+
| 'America/Jamaica'
|
|
315
|
+
| 'Asia/Bishkek'
|
|
316
|
+
| 'America/Atikokan'
|
|
317
|
+
| 'Atlantic/Stanley'
|
|
318
|
+
| 'Australia/NSW'
|
|
319
|
+
| 'US/Hawaii'
|
|
320
|
+
| 'SystemV/CST6'
|
|
321
|
+
| 'Indian/Mahe'
|
|
322
|
+
| 'Asia/Aqtobe'
|
|
323
|
+
| 'America/Sitka'
|
|
324
|
+
| 'Asia/Vladivostok'
|
|
325
|
+
| 'Africa/Libreville'
|
|
326
|
+
| 'Africa/Maputo'
|
|
327
|
+
| 'Zulu'
|
|
328
|
+
| 'America/Kentucky/Monticello'
|
|
329
|
+
| 'Africa/El_Aaiun'
|
|
330
|
+
| 'Africa/Ouagadougou'
|
|
331
|
+
| 'America/Coral_Harbour'
|
|
332
|
+
| 'Pacific/Marquesas'
|
|
333
|
+
| 'Brazil/West'
|
|
334
|
+
| 'America/Aruba'
|
|
335
|
+
| 'America/North_Dakota/Center'
|
|
336
|
+
| 'America/Cayman'
|
|
337
|
+
| 'Asia/Ulaanbaatar'
|
|
338
|
+
| 'Asia/Baghdad'
|
|
339
|
+
| 'Europe/San_Marino'
|
|
340
|
+
| 'America/Indiana/Tell_City'
|
|
341
|
+
| 'America/Tijuana'
|
|
342
|
+
| 'Pacific/Saipan'
|
|
343
|
+
| 'SystemV/YST9'
|
|
344
|
+
| 'Africa/Douala'
|
|
345
|
+
| 'America/Chihuahua'
|
|
346
|
+
| 'America/Ojinaga'
|
|
347
|
+
| 'Asia/Hovd'
|
|
348
|
+
| 'America/Anchorage'
|
|
349
|
+
| 'Chile/EasterIsland'
|
|
350
|
+
| 'America/Halifax'
|
|
351
|
+
| 'Antarctica/Rothera'
|
|
352
|
+
| 'America/Indiana/Indianapolis'
|
|
353
|
+
| 'US/Mountain'
|
|
354
|
+
| 'Asia/Damascus'
|
|
355
|
+
| 'America/Argentina/San_Luis'
|
|
356
|
+
| 'America/Santiago'
|
|
357
|
+
| 'Asia/Baku'
|
|
358
|
+
| 'America/Argentina/Ushuaia'
|
|
359
|
+
| 'Atlantic/Reykjavik'
|
|
360
|
+
| 'Africa/Brazzaville'
|
|
361
|
+
| 'Africa/Porto-Novo'
|
|
362
|
+
| 'America/La_Paz'
|
|
363
|
+
| 'Antarctica/DumontDUrville'
|
|
364
|
+
| 'Asia/Taipei'
|
|
365
|
+
| 'Antarctica/South_Pole'
|
|
366
|
+
| 'Asia/Manila'
|
|
367
|
+
| 'Asia/Bangkok'
|
|
368
|
+
| 'Africa/Dar_es_Salaam'
|
|
369
|
+
| 'Poland'
|
|
370
|
+
| 'Atlantic/Madeira'
|
|
371
|
+
| 'Antarctica/Palmer'
|
|
372
|
+
| 'America/Thunder_Bay'
|
|
373
|
+
| 'Africa/Addis_Ababa'
|
|
374
|
+
| 'Asia/Yangon'
|
|
375
|
+
| 'Europe/Uzhgorod'
|
|
376
|
+
| 'Brazil/DeNoronha'
|
|
377
|
+
| 'Asia/Ashkhabad'
|
|
378
|
+
| 'Etc/Zulu'
|
|
379
|
+
| 'America/Indiana/Marengo'
|
|
380
|
+
| 'America/Creston'
|
|
381
|
+
| 'America/Punta_Arenas'
|
|
382
|
+
| 'America/Mexico_City'
|
|
383
|
+
| 'Antarctica/Vostok'
|
|
384
|
+
| 'Asia/Jerusalem'
|
|
385
|
+
| 'Europe/Andorra'
|
|
386
|
+
| 'US/Samoa'
|
|
387
|
+
| 'PRC'
|
|
388
|
+
| 'Asia/Vientiane'
|
|
389
|
+
| 'Pacific/Kiritimati'
|
|
390
|
+
| 'America/Matamoros'
|
|
391
|
+
| 'America/Blanc-Sablon'
|
|
392
|
+
| 'Asia/Riyadh'
|
|
393
|
+
| 'Iceland'
|
|
394
|
+
| 'Pacific/Pohnpei'
|
|
395
|
+
| 'Asia/Ujung_Pandang'
|
|
396
|
+
| 'Atlantic/South_Georgia'
|
|
397
|
+
| 'Europe/Lisbon'
|
|
398
|
+
| 'Asia/Harbin'
|
|
399
|
+
| 'Europe/Oslo'
|
|
400
|
+
| 'Asia/Novokuznetsk'
|
|
401
|
+
| 'CST6CDT'
|
|
402
|
+
| 'Atlantic/Canary'
|
|
403
|
+
| 'America/Knox_IN'
|
|
404
|
+
| 'Asia/Kuwait'
|
|
405
|
+
| 'SystemV/HST10'
|
|
406
|
+
| 'Pacific/Efate'
|
|
407
|
+
| 'Africa/Lome'
|
|
408
|
+
| 'America/Bogota'
|
|
409
|
+
| 'America/Menominee'
|
|
410
|
+
| 'America/Adak'
|
|
411
|
+
| 'Pacific/Norfolk'
|
|
412
|
+
| 'Europe/Kirov'
|
|
413
|
+
| 'America/Resolute'
|
|
414
|
+
| 'Pacific/Tarawa'
|
|
415
|
+
| 'Africa/Kampala'
|
|
416
|
+
| 'Asia/Krasnoyarsk'
|
|
417
|
+
| 'Greenwich'
|
|
418
|
+
| 'SystemV/EST5'
|
|
419
|
+
| 'America/Edmonton'
|
|
420
|
+
| 'Europe/Podgorica'
|
|
421
|
+
| 'Australia/South'
|
|
422
|
+
| 'Canada/Central'
|
|
423
|
+
| 'Africa/Bujumbura'
|
|
424
|
+
| 'America/Santo_Domingo'
|
|
425
|
+
| 'US/Eastern'
|
|
426
|
+
| 'Europe/Minsk'
|
|
427
|
+
| 'Pacific/Auckland'
|
|
428
|
+
| 'Africa/Casablanca'
|
|
429
|
+
| 'America/Glace_Bay'
|
|
430
|
+
| 'Canada/Eastern'
|
|
431
|
+
| 'Asia/Qatar'
|
|
432
|
+
| 'Europe/Kiev'
|
|
433
|
+
| 'Singapore'
|
|
434
|
+
| 'Asia/Magadan'
|
|
435
|
+
| 'SystemV/PST8'
|
|
436
|
+
| 'America/Port-au-Prince'
|
|
437
|
+
| 'Europe/Belfast'
|
|
438
|
+
| 'America/St_Barthelemy'
|
|
439
|
+
| 'Asia/Ashgabat'
|
|
440
|
+
| 'Africa/Luanda'
|
|
441
|
+
| 'America/Nipigon'
|
|
442
|
+
| 'Atlantic/Jan_Mayen'
|
|
443
|
+
| 'Brazil/Acre'
|
|
444
|
+
| 'Asia/Muscat'
|
|
445
|
+
| 'Asia/Bahrain'
|
|
446
|
+
| 'Europe/Vilnius'
|
|
447
|
+
| 'America/Fortaleza'
|
|
448
|
+
| 'Etc/GMT0'
|
|
449
|
+
| 'US/East-Indiana'
|
|
450
|
+
| 'America/Hermosillo'
|
|
451
|
+
| 'America/Cancun'
|
|
452
|
+
| 'Africa/Maseru'
|
|
453
|
+
| 'Pacific/Kosrae'
|
|
454
|
+
| 'Africa/Kinshasa'
|
|
455
|
+
| 'Asia/Kathmandu'
|
|
456
|
+
| 'Asia/Seoul'
|
|
457
|
+
| 'Australia/Sydney'
|
|
458
|
+
| 'America/Lima'
|
|
459
|
+
| 'Australia/LHI'
|
|
460
|
+
| 'America/St_Lucia'
|
|
461
|
+
| 'Europe/Madrid'
|
|
462
|
+
| 'America/Bahia_Banderas'
|
|
463
|
+
| 'America/Montserrat'
|
|
464
|
+
| 'Asia/Brunei'
|
|
465
|
+
| 'America/Santa_Isabel'
|
|
466
|
+
| 'Canada/Mountain'
|
|
467
|
+
| 'America/Cambridge_Bay'
|
|
468
|
+
| 'Asia/Colombo'
|
|
469
|
+
| 'Australia/West'
|
|
470
|
+
| 'Indian/Antananarivo'
|
|
471
|
+
| 'Australia/Brisbane'
|
|
472
|
+
| 'Indian/Mayotte'
|
|
473
|
+
| 'US/Indiana-Starke'
|
|
474
|
+
| 'Asia/Urumqi'
|
|
475
|
+
| 'US/Aleutian'
|
|
476
|
+
| 'Europe/Volgograd'
|
|
477
|
+
| 'America/Lower_Princes'
|
|
478
|
+
| 'America/Vancouver'
|
|
479
|
+
| 'Africa/Blantyre'
|
|
480
|
+
| 'America/Rio_Branco'
|
|
481
|
+
| 'America/Danmarkshavn'
|
|
482
|
+
| 'America/Detroit'
|
|
483
|
+
| 'America/Thule'
|
|
484
|
+
| 'Africa/Lusaka'
|
|
485
|
+
| 'Asia/Hong_Kong'
|
|
486
|
+
| 'Iran'
|
|
487
|
+
| 'America/Argentina/La_Rioja'
|
|
488
|
+
| 'Africa/Dakar'
|
|
489
|
+
| 'SystemV/CST6CDT'
|
|
490
|
+
| 'America/Tortola'
|
|
491
|
+
| 'America/Porto_Velho'
|
|
492
|
+
| 'Asia/Sakhalin'
|
|
493
|
+
| 'Etc/GMT+10'
|
|
494
|
+
| 'America/Scoresbysund'
|
|
495
|
+
| 'Asia/Kamchatka'
|
|
496
|
+
| 'Asia/Thimbu'
|
|
497
|
+
| 'Africa/Harare'
|
|
498
|
+
| 'Etc/GMT+12'
|
|
499
|
+
| 'Etc/GMT+11'
|
|
500
|
+
| 'Navajo'
|
|
501
|
+
| 'America/Nome'
|
|
502
|
+
| 'Europe/Tallinn'
|
|
503
|
+
| 'Turkey'
|
|
504
|
+
| 'Africa/Khartoum'
|
|
505
|
+
| 'Africa/Johannesburg'
|
|
506
|
+
| 'Africa/Bangui'
|
|
507
|
+
| 'Europe/Belgrade'
|
|
508
|
+
| 'Jamaica'
|
|
509
|
+
| 'Africa/Bissau'
|
|
510
|
+
| 'Asia/Tehran'
|
|
511
|
+
| 'WET'
|
|
512
|
+
| 'Europe/Astrakhan'
|
|
513
|
+
| 'Africa/Juba'
|
|
514
|
+
| 'America/Campo_Grande'
|
|
515
|
+
| 'America/Belem'
|
|
516
|
+
| 'Etc/Greenwich'
|
|
517
|
+
| 'Asia/Saigon'
|
|
518
|
+
| 'America/Ensenada'
|
|
519
|
+
| 'Pacific/Midway'
|
|
520
|
+
| 'America/Jujuy'
|
|
521
|
+
| 'Africa/Timbuktu'
|
|
522
|
+
| 'America/Bahia'
|
|
523
|
+
| 'America/Goose_Bay'
|
|
524
|
+
| 'America/Virgin'
|
|
525
|
+
| 'America/Pangnirtung'
|
|
526
|
+
| 'Asia/Katmandu'
|
|
527
|
+
| 'America/Phoenix'
|
|
528
|
+
| 'Africa/Niamey'
|
|
529
|
+
| 'America/Whitehorse'
|
|
530
|
+
| 'Pacific/Noumea'
|
|
531
|
+
| 'Asia/Tbilisi'
|
|
532
|
+
| 'America/Montreal'
|
|
533
|
+
| 'Asia/Makassar'
|
|
534
|
+
| 'America/Argentina/San_Juan'
|
|
535
|
+
| 'Hongkong'
|
|
536
|
+
| 'UCT'
|
|
537
|
+
| 'Asia/Nicosia'
|
|
538
|
+
| 'America/Indiana/Winamac'
|
|
539
|
+
| 'SystemV/MST7MDT'
|
|
540
|
+
| 'America/Argentina/ComodRivadavia'
|
|
541
|
+
| 'America/Boa_Vista'
|
|
542
|
+
| 'America/Grenada'
|
|
543
|
+
| 'Asia/Atyrau'
|
|
544
|
+
| 'Australia/Darwin'
|
|
545
|
+
| 'Asia/Khandyga'
|
|
546
|
+
| 'Asia/Kuala_Lumpur'
|
|
547
|
+
| 'Asia/Famagusta'
|
|
548
|
+
| 'Asia/Thimphu'
|
|
549
|
+
| 'Asia/Rangoon'
|
|
550
|
+
| 'Europe/Bratislava'
|
|
551
|
+
| 'Asia/Calcutta'
|
|
552
|
+
| 'America/Argentina/Tucuman'
|
|
553
|
+
| 'Asia/Kabul'
|
|
554
|
+
| 'Indian/Cocos'
|
|
555
|
+
| 'Japan'
|
|
556
|
+
| 'Pacific/Tongatapu'
|
|
557
|
+
| 'America/New_York'
|
|
558
|
+
| 'Etc/GMT-12'
|
|
559
|
+
| 'Etc/GMT-11'
|
|
560
|
+
| 'America/Nuuk'
|
|
561
|
+
| 'Etc/GMT-10'
|
|
562
|
+
| 'SystemV/YST9YDT'
|
|
563
|
+
| 'Europe/Ulyanovsk'
|
|
564
|
+
| 'Etc/GMT-14'
|
|
565
|
+
| 'Etc/GMT-13'
|
|
566
|
+
| 'W-SU'
|
|
567
|
+
| 'America/Merida'
|
|
568
|
+
| 'EET'
|
|
569
|
+
| 'America/Rosario'
|
|
570
|
+
| 'Canada/Saskatchewan'
|
|
571
|
+
| 'America/St_Kitts'
|
|
572
|
+
| 'Arctic/Longyearbyen'
|
|
573
|
+
| 'America/Fort_Nelson'
|
|
574
|
+
| 'America/Caracas'
|
|
575
|
+
| 'America/Guadeloupe'
|
|
576
|
+
| 'Asia/Hebron'
|
|
577
|
+
| 'Indian/Kerguelen'
|
|
578
|
+
| 'SystemV/PST8PDT'
|
|
579
|
+
| 'Africa/Monrovia'
|
|
580
|
+
| 'Asia/Ust-Nera'
|
|
581
|
+
| 'Egypt'
|
|
582
|
+
| 'Asia/Srednekolymsk'
|
|
583
|
+
| 'America/North_Dakota/New_Salem'
|
|
584
|
+
| 'Asia/Anadyr'
|
|
585
|
+
| 'Australia/Melbourne'
|
|
586
|
+
| 'Asia/Irkutsk'
|
|
587
|
+
| 'America/Shiprock'
|
|
588
|
+
| 'America/Winnipeg'
|
|
589
|
+
| 'Europe/Vatican'
|
|
590
|
+
| 'Asia/Amman'
|
|
591
|
+
| 'Etc/UTC'
|
|
592
|
+
| 'SystemV/AST4ADT'
|
|
593
|
+
| 'Asia/Tokyo'
|
|
594
|
+
| 'America/Toronto'
|
|
595
|
+
| 'Asia/Singapore'
|
|
596
|
+
| 'Australia/Lindeman'
|
|
597
|
+
| 'America/Los_Angeles'
|
|
598
|
+
| 'SystemV/EST5EDT'
|
|
599
|
+
| 'Pacific/Majuro'
|
|
600
|
+
| 'America/Argentina/Buenos_Aires'
|
|
601
|
+
| 'Europe/Nicosia'
|
|
602
|
+
| 'Pacific/Guadalcanal'
|
|
603
|
+
| 'Europe/Athens'
|
|
604
|
+
| 'US/Pacific'
|
|
605
|
+
| 'Europe/Monaco'
|
|
606
|
+
|
|
607
|
+
export type ErrorStatus = 400 | 401 | 403 | 409 | 500 | 503 | 501
|
|
608
|
+
export type OKStatus = 200 | 201 | 202 | 205
|
|
609
|
+
|
|
610
|
+
export interface Artifact {
|
|
611
|
+
type: string
|
|
612
|
+
version: string
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export interface EmptySection {
|
|
616
|
+
id: string
|
|
617
|
+
body: []
|
|
618
|
+
class: 'Section'
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export interface Timezone {
|
|
622
|
+
value: TimezoneValue
|
|
623
|
+
label: string
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export type TimezoneMode = 'user' | 'plant'
|
|
627
|
+
|
|
628
|
+
export interface ConfigSection {
|
|
629
|
+
id: 'config'
|
|
630
|
+
view: {
|
|
631
|
+
id: 'view'
|
|
632
|
+
label: string
|
|
633
|
+
view_type: ViewType
|
|
634
|
+
parameters: {_ref: ['parameters']; class: 'Section'; _schema: '_ref'}
|
|
635
|
+
description: string
|
|
636
|
+
color_scheme: string
|
|
637
|
+
data_set_sets: {
|
|
638
|
+
_ref: ['data_set_sets']
|
|
639
|
+
class: 'Section'
|
|
640
|
+
_schema: '_ref'
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
class: 'SQView'
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export interface BasicParametersSection {
|
|
647
|
+
id: 'parameters'
|
|
648
|
+
body: [
|
|
649
|
+
{
|
|
650
|
+
id: 'Period'
|
|
651
|
+
class: 'Parameter'
|
|
652
|
+
parameter: {class: 'Period'; label: 'Period'; initial: Period}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
id: 'Granularity'
|
|
656
|
+
class: 'Parameter'
|
|
657
|
+
parameter: {
|
|
658
|
+
class: 'Granularity'
|
|
659
|
+
label: 'Granularity'
|
|
660
|
+
initial: Granularity
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
]
|
|
664
|
+
class: 'Section'
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export type Section = BasicParametersSection | ConfigSection | EmptySection
|
|
668
|
+
|
|
669
|
+
export interface SQView {
|
|
670
|
+
version: string
|
|
671
|
+
artifact: Artifact
|
|
672
|
+
body: Section[]
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type ParameterOption = {
|
|
676
|
+
options: {value: string; label: string}[]
|
|
677
|
+
id: string
|
|
678
|
+
label: string
|
|
679
|
+
ldType: string
|
|
680
|
+
container?: string
|
|
681
|
+
value: string
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export interface ApiConfig extends RequestInit {
|
|
685
|
+
token?: string
|
|
686
|
+
body?: any
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export type ApiFn = (
|
|
690
|
+
endpoint: string,
|
|
691
|
+
config?: ApiConfig,
|
|
692
|
+
) => Promise<
|
|
693
|
+
{status: ErrorStatus} | {body: Record<string, any>; status: OKStatus}
|
|
694
|
+
>
|
|
695
|
+
|
|
696
|
+
export type TokenThunk = () => Promise<
|
|
697
|
+
{status: OKStatus; body: {token: string}} | {status: ErrorStatus}
|
|
698
|
+
>
|
|
699
|
+
|
|
700
|
+
export interface InitialisationConfig {
|
|
701
|
+
apiFn: ApiFn
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export type PeriodTimeMode = 'absolute' | 'local'
|
|
705
|
+
|
|
706
|
+
export type ViewType =
|
|
707
|
+
| 'time-chart'
|
|
708
|
+
| 'object-chart'
|
|
709
|
+
| 'object-heatmap'
|
|
710
|
+
| 'scatter-chart'
|
|
711
|
+
| 'object-table'
|
|
712
|
+
| 'time-table'
|
|
713
|
+
| 'kpis'
|
|
714
|
+
|
|
715
|
+
export type Granularity =
|
|
716
|
+
| '1 minute'
|
|
717
|
+
| '5 minutes'
|
|
718
|
+
| '10 minutes'
|
|
719
|
+
| '15 minutes'
|
|
720
|
+
| '30 minutes'
|
|
721
|
+
| '1 hour'
|
|
722
|
+
| '1 day'
|
|
723
|
+
| '1 week'
|
|
724
|
+
| '1 month'
|
|
725
|
+
| '3 months'
|
|
726
|
+
| '1 year'
|
|
727
|
+
|
|
728
|
+
export type Period =
|
|
729
|
+
| 'last-7-days'
|
|
730
|
+
| 'last-week'
|
|
731
|
+
| 'since-beginning'
|
|
732
|
+
| 'last-12-months'
|
|
733
|
+
| 'year-to-date'
|
|
734
|
+
| 'today'
|
|
735
|
+
| 'current-month'
|
|
736
|
+
| 'last-month'
|
|
737
|
+
| 'forecast-4-days'
|
|
738
|
+
| 'tomorrow'
|
|
739
|
+
| 'last-24-hours'
|
|
740
|
+
| 'last-30-days'
|
|
741
|
+
| 'last-7x24-hours'
|
|
742
|
+
| 'last-3x24-hours'
|
|
743
|
+
| 'last-15-minutes'
|
|
744
|
+
| 'last-3-days'
|
|
745
|
+
| 'last-year'
|
|
746
|
+
| 'yesterday'
|
|
747
|
+
| 'forecast-10-days'
|
|
748
|
+
| 'custom'
|
|
749
|
+
|
|
750
|
+
export type LevelValue =
|
|
751
|
+
| 'site-group'
|
|
752
|
+
| 'site'
|
|
753
|
+
| 'ac-node'
|
|
754
|
+
| 'ac-input'
|
|
755
|
+
| 'ac-phase'
|
|
756
|
+
| 'connection'
|
|
757
|
+
| 'dc-input'
|
|
758
|
+
| 'dc-node'
|
|
759
|
+
| 'inverter'
|
|
760
|
+
| 'inverter-device'
|
|
761
|
+
| 'logger'
|
|
762
|
+
| 'mppt'
|
|
763
|
+
| 'module-group'
|
|
764
|
+
| 'power-unit'
|
|
765
|
+
| 'sensor'
|
|
766
|
+
| 'strings'
|
|
767
|
+
| 'tracker'
|
|
768
|
+
|
|
769
|
+
export type RepresentationValue =
|
|
770
|
+
| 'line'
|
|
771
|
+
| 'line-and-marker'
|
|
772
|
+
| 'marker'
|
|
773
|
+
| 'spline'
|
|
774
|
+
| 'column'
|
|
775
|
+
| 'area'
|
|
776
|
+
|
|
777
|
+
export type StackingOptionValue = 'no' | 'normal' | 'percent'
|
|
778
|
+
|
|
779
|
+
export type StackingOption = {value: StackingOptionValue; label: string}
|
|
780
|
+
|
|
781
|
+
export type Representation = {
|
|
782
|
+
value: RepresentationValue
|
|
783
|
+
label: string
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export type Level = {
|
|
787
|
+
value: LevelValue
|
|
788
|
+
label: string
|
|
789
|
+
models?: {label: string; value: string}[]
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Logical device type
|
|
794
|
+
*/
|
|
795
|
+
export type LDType = {
|
|
796
|
+
value: string
|
|
797
|
+
label: string
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export type ContainerValue = string
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Containers (Actually physical plants)
|
|
804
|
+
*/
|
|
805
|
+
export type Container = {
|
|
806
|
+
value: string
|
|
807
|
+
label: string
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export type Template = {
|
|
811
|
+
value: string
|
|
812
|
+
label: string
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export interface EmptyViewOptions {
|
|
816
|
+
viewType: ViewType
|
|
817
|
+
label: string
|
|
818
|
+
/**
|
|
819
|
+
* @default "15-minutes"
|
|
820
|
+
*/
|
|
821
|
+
granularity?: Granularity
|
|
822
|
+
/**
|
|
823
|
+
* @default "last-24-hours"
|
|
824
|
+
*/
|
|
825
|
+
period?: Period
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
export interface VisualisationOptions {
|
|
829
|
+
showLegend: boolean
|
|
830
|
+
showTitle: boolean
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* ISO local datetime string (YYYY-MM-DDTHH:mm:ss.SSS).
|
|
835
|
+
*/
|
|
836
|
+
export type ISODateString = string
|
|
837
|
+
|
|
838
|
+
export type ColorSchemeValue = 'scheme_blrd' | 'scheme_ylrdbl'
|
|
839
|
+
|
|
840
|
+
export type ColorSettings =
|
|
841
|
+
| {
|
|
842
|
+
label: string
|
|
843
|
+
value: string
|
|
844
|
+
type: 'palette'
|
|
845
|
+
colors: string[]
|
|
846
|
+
}
|
|
847
|
+
| {label: string; value: string; type: 'fixed'; color: string}
|
|
848
|
+
|
|
849
|
+
export type ColorScheme = {
|
|
850
|
+
value: ColorSchemeValue
|
|
851
|
+
label: string
|
|
852
|
+
type?: string
|
|
853
|
+
stops?: [number, string][]
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export interface Visualization {
|
|
857
|
+
data: {
|
|
858
|
+
datasets: []
|
|
859
|
+
date_from: ISODateString
|
|
860
|
+
date_to: ISODateString
|
|
861
|
+
period_time_mode: string
|
|
862
|
+
clock_or_calendar_mode: string
|
|
863
|
+
granularity: Granularity
|
|
864
|
+
}
|
|
865
|
+
options: VisualisationOptions
|
|
866
|
+
info: {title: string; type: ViewType; color_scheme: ColorSchemeValue}
|
|
867
|
+
values: {}
|
|
868
|
+
disableIncrementalUpdates: boolean
|
|
869
|
+
spec: {
|
|
870
|
+
series: []
|
|
871
|
+
time: {timezone: string}
|
|
872
|
+
legend: {enabled: boolean}
|
|
873
|
+
title: boolean
|
|
874
|
+
chart: {_SQ_: {type: ViewType}; zoomType: string; animation: boolean}
|
|
875
|
+
yAxis: []
|
|
876
|
+
credits: {enabled: boolean}
|
|
877
|
+
display: 'highcharts'
|
|
878
|
+
$schema: 'https://highcharts/7.2'
|
|
879
|
+
xAxis: {
|
|
880
|
+
type: string
|
|
881
|
+
min: number
|
|
882
|
+
max: number
|
|
883
|
+
tickInterval: null //TODO: better types
|
|
884
|
+
}
|
|
885
|
+
tooltip: {
|
|
886
|
+
borderRadius: number
|
|
887
|
+
borderColor: string
|
|
888
|
+
formatter: () => string
|
|
889
|
+
borderWidth: number
|
|
890
|
+
valueDecimals: number
|
|
891
|
+
style: {
|
|
892
|
+
fontFamily: string
|
|
893
|
+
fontSize: string
|
|
894
|
+
lineHeight: string
|
|
895
|
+
}
|
|
896
|
+
useHTML: boolean
|
|
897
|
+
split: boolean
|
|
898
|
+
shared: boolean
|
|
899
|
+
shadow: {color: string; offsetY: number; opacity: number; width: number}
|
|
900
|
+
backgroundColor: string
|
|
901
|
+
enabled: boolean
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export interface LdType {
|
|
907
|
+
sqid: string
|
|
908
|
+
ref: string
|
|
909
|
+
label: string
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export interface LDRoot {
|
|
913
|
+
sqid: string
|
|
914
|
+
ref: string
|
|
915
|
+
label: string
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export interface Model {
|
|
919
|
+
sqid: string
|
|
920
|
+
ref: string
|
|
921
|
+
label: string
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export interface LogicalDevice {
|
|
925
|
+
sqid: string
|
|
926
|
+
ld_type: string
|
|
927
|
+
ref: string
|
|
928
|
+
root: LDRoot
|
|
929
|
+
label: string
|
|
930
|
+
full_name: string
|
|
931
|
+
act_to: Date
|
|
932
|
+
act_from: Date
|
|
933
|
+
model: Model
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export interface Indicator {
|
|
937
|
+
default_graphical_representation: string
|
|
938
|
+
description: string
|
|
939
|
+
key: string
|
|
940
|
+
label: string
|
|
941
|
+
level: LevelValue
|
|
942
|
+
unit: string
|
|
943
|
+
unit_key: string
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
export interface LDIndicator {
|
|
947
|
+
indicator_key: string
|
|
948
|
+
object_ref: string
|
|
949
|
+
unit: string
|
|
950
|
+
unit_key: string
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Options for representing the dataset
|
|
955
|
+
*/
|
|
956
|
+
export interface DatasetOptions {
|
|
957
|
+
graphicalRepresentation?: string
|
|
958
|
+
id?: string
|
|
959
|
+
colorSetting?: string
|
|
960
|
+
stacking?: StackingOptionValue
|
|
961
|
+
showNullsAs?: string
|
|
962
|
+
label?: string
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export interface DatasetTemplateSpec {
|
|
966
|
+
selectedLevel: string
|
|
967
|
+
selectedContainer?: string
|
|
968
|
+
selectedTemplate: string
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export interface Object {
|
|
972
|
+
name: string
|
|
973
|
+
level: LevelValue
|
|
974
|
+
ref: string
|
|
975
|
+
type: string
|
|
976
|
+
statistics?: {
|
|
977
|
+
median: number
|
|
978
|
+
mean: number
|
|
979
|
+
sum: number
|
|
980
|
+
min: number
|
|
981
|
+
max: number
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export interface ObjectSet {
|
|
986
|
+
template: string
|
|
987
|
+
level: string
|
|
988
|
+
objects: Object[]
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export interface UnitScale {
|
|
992
|
+
min?: any
|
|
993
|
+
max?: any
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export type Scaling = Record<string, UnitScale>
|
|
997
|
+
|
|
998
|
+
export interface Dataset {
|
|
999
|
+
objects?: any
|
|
1000
|
+
colorSetting?: ColorSettings
|
|
1001
|
+
indicators: Indicator[]
|
|
1002
|
+
objectSet: ObjectSet
|
|
1003
|
+
stacking: StackingOptionValue
|
|
1004
|
+
showNullsAs?: any
|
|
1005
|
+
representation: string
|
|
1006
|
+
label?: any
|
|
1007
|
+
id: string
|
|
1008
|
+
scaling: Scaling
|
|
1009
|
+
stack?: any
|
|
1010
|
+
error?: any
|
|
1011
|
+
idx: number
|
|
1012
|
+
objectSetLabel: string
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
// TODO: Better types for PacoViewParameters
|
|
1016
|
+
type PacoViewParameters = any
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Type definitions for all the API
|
|
1020
|
+
*/
|
|
1021
|
+
interface CommonLib {
|
|
1022
|
+
/**
|
|
1023
|
+
* Initialise the SQA Common library with a `apiFn` function.
|
|
1024
|
+
* Make sure to call `wrapRefresh` before calling this function
|
|
1025
|
+
* @param config
|
|
1026
|
+
*/
|
|
1027
|
+
init(config: InitialisationConfig): Promise<void>
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Wraps the `apiFn` with retry capabilities and refreshes token that was
|
|
1031
|
+
* received with the `getToken` thunk
|
|
1032
|
+
* @param apiFn - The function to call the SQA endpoints
|
|
1033
|
+
* @param getToken - function with no arguments that returns the JWT token
|
|
1034
|
+
*/
|
|
1035
|
+
wrapRefresh(
|
|
1036
|
+
apiFn: ApiFn,
|
|
1037
|
+
getToken: TokenThunk,
|
|
1038
|
+
): {apiFn: ApiFn; resetFn: () => void}
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
*
|
|
1042
|
+
*/
|
|
1043
|
+
logout(): void
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns configuration for a new empty view
|
|
1047
|
+
* @param viewOptions - parameters for the view
|
|
1048
|
+
*/
|
|
1049
|
+
newEmptyView(viewOptions: EmptyViewOptions): SQView
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Returns the type for the given view
|
|
1053
|
+
* @param view SQView
|
|
1054
|
+
*/
|
|
1055
|
+
getViewType(view: SQView): ViewType
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Get title of the view
|
|
1059
|
+
* @param view - the SQView
|
|
1060
|
+
*/
|
|
1061
|
+
getTitle(view: SQView): string
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Set title of the view. Returns updated SQView
|
|
1065
|
+
* @param view - the SQView
|
|
1066
|
+
* @param value - the new title
|
|
1067
|
+
*/
|
|
1068
|
+
setTitle(view: SQView, value: string): SQView
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Get description of the view
|
|
1072
|
+
* @param view - the SQView
|
|
1073
|
+
*/
|
|
1074
|
+
getDescription(view: SQView): string
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Set description of a view. Returns updated SQView
|
|
1078
|
+
* @param view - the SQView
|
|
1079
|
+
* @param description - the new description
|
|
1080
|
+
*/
|
|
1081
|
+
setDescription(view: SQView, description: string): SQView
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Get colorScheme of the view
|
|
1085
|
+
* @param view - the SQView
|
|
1086
|
+
*/
|
|
1087
|
+
getColorScheme(view: SQView): string
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Set colorScheme of a view. Returns updated SQView
|
|
1091
|
+
* @param view - the SQView
|
|
1092
|
+
* @param colorScheme - the new description
|
|
1093
|
+
*/
|
|
1094
|
+
setColorScheme(view: SQView, colorScheme: ColorSchemeValue): SQView
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Constructs an initial visualization for the view. Returns a promise
|
|
1098
|
+
* @param view - the SQView
|
|
1099
|
+
* @param options - creation options
|
|
1100
|
+
*/
|
|
1101
|
+
getVisualization(
|
|
1102
|
+
view: SQView,
|
|
1103
|
+
options: VisualisationOptions,
|
|
1104
|
+
): Promise<Visualization>
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Populates a visualization with data, using the default `append-data` to append each page.
|
|
1108
|
+
* @param visualisation - the visualization to be populated
|
|
1109
|
+
* @param callback - Callback function called with the populated viz when the operation is done
|
|
1110
|
+
*
|
|
1111
|
+
* @returns a function to cancel the operation
|
|
1112
|
+
*/
|
|
1113
|
+
populateVisualisation(
|
|
1114
|
+
visualisation: Visualization,
|
|
1115
|
+
callback: (visualization: Visualization) => void,
|
|
1116
|
+
): () => void
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* @param visualisation - the visualization to be populated
|
|
1120
|
+
*
|
|
1121
|
+
* @returns A promise with the populated visualization
|
|
1122
|
+
*/
|
|
1123
|
+
populateVisualisation(visualisation: Visualization): Promise<Visualization>
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Returns the granularity for the view
|
|
1127
|
+
* @param view
|
|
1128
|
+
*/
|
|
1129
|
+
getGranularityParameter(view: SQView): Granularity
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns the granularity for the view
|
|
1133
|
+
* @param view - the view to modify
|
|
1134
|
+
* @param granularity - the new granularity
|
|
1135
|
+
*/
|
|
1136
|
+
setGranularityParameter(view: SQView, granularity: Granularity): SQView
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Returns the object parameters for a view
|
|
1140
|
+
* @param view
|
|
1141
|
+
*/
|
|
1142
|
+
getObjectParameters(view: SQView): {
|
|
1143
|
+
id: string
|
|
1144
|
+
label: string
|
|
1145
|
+
ldType: string
|
|
1146
|
+
container: string
|
|
1147
|
+
value: string
|
|
1148
|
+
}[]
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Sets the object parameter with the given id
|
|
1152
|
+
* @param view - SQView
|
|
1153
|
+
* @param id - The ID of the parameter //TODO: Get list of possible parameters
|
|
1154
|
+
* @param value - Value of the parameter
|
|
1155
|
+
*/
|
|
1156
|
+
setObjectParameters(view: SQView, id: string, value: string): SQView
|
|
1157
|
+
|
|
1158
|
+
DataTimezoneModes: [
|
|
1159
|
+
{value: 'user'; label: 'Display data in my own timezone'},
|
|
1160
|
+
{value: 'plant'; label: 'Display data in the timezone of the plant'},
|
|
1161
|
+
]
|
|
1162
|
+
|
|
1163
|
+
ShowNullsAsOptions: [
|
|
1164
|
+
{value: 'no'; label: 'No'},
|
|
1165
|
+
{value: 'normal'; label: 'Normal'},
|
|
1166
|
+
{value: 'percent'; label: 'Percent'},
|
|
1167
|
+
]
|
|
1168
|
+
|
|
1169
|
+
ViewTypes: {label: string; value: ViewType}[]
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* A collection of all timezones in the format {label, value}
|
|
1173
|
+
*/
|
|
1174
|
+
Timezones: Timezone[]
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Sets the user timezone
|
|
1178
|
+
* @param timezone - The value for the new timezone
|
|
1179
|
+
*/
|
|
1180
|
+
setUserTimezone(timezone: TimezoneValue): void
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Sets the data timezone mode to either user or plant
|
|
1184
|
+
* @param mode - the timezone mode ('user' | 'data')
|
|
1185
|
+
*/
|
|
1186
|
+
setDataTimezoneMode(mode: TimezoneMode): void
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Returns current available colorSchemes
|
|
1190
|
+
*/
|
|
1191
|
+
getColorSchemes(): ColorScheme[]
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Returns the possible color settings for a certain view type
|
|
1195
|
+
* @param viewType
|
|
1196
|
+
*/
|
|
1197
|
+
getColorSettings(viewType: ViewType): ColorSettings[]
|
|
1198
|
+
|
|
1199
|
+
getColorSettingsCssStyle(colorSetting: ColorSettings):
|
|
1200
|
+
| {
|
|
1201
|
+
backgroundColor: string
|
|
1202
|
+
}
|
|
1203
|
+
| {
|
|
1204
|
+
backgroundImage: string
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Sets the colorscheme of a view
|
|
1209
|
+
* @param view the view to be modified
|
|
1210
|
+
* @param colorScheme - the new colorscheme
|
|
1211
|
+
*/
|
|
1212
|
+
setViewColorScheme(view: SQView, colorScheme: string): SQView
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Array with available levels
|
|
1216
|
+
*
|
|
1217
|
+
* !! Only usable after `init` has been called
|
|
1218
|
+
*/
|
|
1219
|
+
getLevels(): Level[]
|
|
1220
|
+
|
|
1221
|
+
StackingOptions: StackingOption[]
|
|
1222
|
+
|
|
1223
|
+
Representations: Representation[]
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
*
|
|
1227
|
+
* Gets the container logical devices types to populate
|
|
1228
|
+
* @param level - level means container
|
|
1229
|
+
*/
|
|
1230
|
+
getContainersLdTypes(level: LevelValue): Promise<LDType[]>
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Based on the selected level and the Selected Logical Device type, returns
|
|
1234
|
+
* available Plants
|
|
1235
|
+
* @param selectedLevel
|
|
1236
|
+
* @param selectedContainerLdType
|
|
1237
|
+
*/
|
|
1238
|
+
getContainers(
|
|
1239
|
+
selectedLevel: LevelValue,
|
|
1240
|
+
selectedContainerLdType: string,
|
|
1241
|
+
): Promise<Container[]>
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Get all available templates for the current selection
|
|
1245
|
+
* @param view
|
|
1246
|
+
* @param specification
|
|
1247
|
+
*/
|
|
1248
|
+
getTemplates(
|
|
1249
|
+
view: SQView,
|
|
1250
|
+
specification: {
|
|
1251
|
+
selectedLevel: LevelValue
|
|
1252
|
+
selectedContainer: ContainerValue
|
|
1253
|
+
},
|
|
1254
|
+
): Promise<Template[]>
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Sets the unit scaling for a view.
|
|
1258
|
+
* All indicators with that unit will be modified. Returns the updated view
|
|
1259
|
+
* @param view - The SQView
|
|
1260
|
+
* @param unitKey - the
|
|
1261
|
+
* @param unitScaling
|
|
1262
|
+
*/
|
|
1263
|
+
setUnitScaling(
|
|
1264
|
+
view: SQView,
|
|
1265
|
+
unitKey: string,
|
|
1266
|
+
unitScaling: {min?: number; max?: number},
|
|
1267
|
+
): SQView
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Gets the unit axis scaling for the given unit
|
|
1271
|
+
* @param view - The SQView
|
|
1272
|
+
* @param unitKey - the
|
|
1273
|
+
*/
|
|
1274
|
+
getUnitScaling(
|
|
1275
|
+
view: SQView,
|
|
1276
|
+
unitKey: string,
|
|
1277
|
+
): {
|
|
1278
|
+
min: number
|
|
1279
|
+
max: number
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Sets the start date of the period
|
|
1284
|
+
* @param view - SQView
|
|
1285
|
+
* @param value - ISODateString(YYYY-MM-DDTHH:mm:ss.SSS).
|
|
1286
|
+
*/
|
|
1287
|
+
setPeriodStart(view: SQView, value: ISODateString): SQView
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Sets the end date of the period
|
|
1291
|
+
* @param view - SQView
|
|
1292
|
+
* @param value - ISODateString(YYYY-MM-DDTHH:mm:ss.SSS).
|
|
1293
|
+
*/
|
|
1294
|
+
setPeriodEnd(view: SQView, value: ISODateString): SQView
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Sets the period of the view to the next period. This will automatically make it a `custom` period
|
|
1298
|
+
* @param view - The View
|
|
1299
|
+
*/
|
|
1300
|
+
setNextPeriod(view: SQView): SQView
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Sets the period of the view to the previous period. This will automatically make it a `custom` period type
|
|
1304
|
+
* @param view - The View
|
|
1305
|
+
*/
|
|
1306
|
+
setPreviousPeriod(view: SQView): SQView
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Set the period type for the view
|
|
1310
|
+
* @param view - SQView
|
|
1311
|
+
* @param value - the new period
|
|
1312
|
+
*/
|
|
1313
|
+
setPeriodParameter(view: SQView, value: Period): SQView
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Get the period for the view
|
|
1317
|
+
* @param view - SQView
|
|
1318
|
+
*/
|
|
1319
|
+
getPeriodParameter(view: SQView): Period
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Sets the time mode for the period (absolute/local)
|
|
1323
|
+
* @param view
|
|
1324
|
+
* @param periodTimeMode
|
|
1325
|
+
*/
|
|
1326
|
+
setPeriodTimeMode(view: SQView, periodTimeMode: PeriodTimeMode): SQView
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Returns the period for the view with all related data
|
|
1330
|
+
* @param view
|
|
1331
|
+
*/
|
|
1332
|
+
getPeriodParameterWithRange(view: SQView): {
|
|
1333
|
+
period: Period
|
|
1334
|
+
start: ISODateString
|
|
1335
|
+
end: ISODateString
|
|
1336
|
+
periodTimeMode: PeriodTimeMode
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
getDatasets(view: SQView): Promise<Dataset[]>
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Adds a dataset to the view using a fixed set of objects.
|
|
1343
|
+
* Removes any duplicate object indicator pairs
|
|
1344
|
+
* @param view - The SQView
|
|
1345
|
+
* @param objects - Selected Logical Device(s)
|
|
1346
|
+
* @param indicators - Selected indicators
|
|
1347
|
+
* @param options
|
|
1348
|
+
*/
|
|
1349
|
+
addEnumDataset(
|
|
1350
|
+
view: SQView,
|
|
1351
|
+
objects: string[],
|
|
1352
|
+
indicators: [string],
|
|
1353
|
+
options: DatasetOptions,
|
|
1354
|
+
): SQView
|
|
1355
|
+
|
|
1356
|
+
addTemplateDataset(
|
|
1357
|
+
view: SQView,
|
|
1358
|
+
spec: DatasetTemplateSpec,
|
|
1359
|
+
indicators: [string],
|
|
1360
|
+
opts: DatasetOptions,
|
|
1361
|
+
): SQView
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Remove a dataset from the view
|
|
1365
|
+
* @param view the view to be modified
|
|
1366
|
+
* @param id the id of the dataset
|
|
1367
|
+
*/
|
|
1368
|
+
removeDataset(view: SQView, id: string): SQView
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Set particular options on a dataset for a view
|
|
1372
|
+
* @param view - the view to be updated
|
|
1373
|
+
* @param id - the id of the dataset in the view body
|
|
1374
|
+
* @param options - the new options
|
|
1375
|
+
*
|
|
1376
|
+
* @returns The updated view
|
|
1377
|
+
*/
|
|
1378
|
+
setDatasetOptions(view: SQView, id: string, options: DatasetOptions): SQView
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Returns the type of picker needed for the granularity
|
|
1382
|
+
* @param granularity
|
|
1383
|
+
*/
|
|
1384
|
+
getClockOrCalendarMode(granularity: Granularity): 'clock' | 'calendar'
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Returns the type of picker needed for the granularity
|
|
1388
|
+
* @param granularity
|
|
1389
|
+
*/
|
|
1390
|
+
getTimeMode(granularity: Granularity): 'clock' | 'calendar'
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Adds the statistics alongside the objects in the dataset
|
|
1394
|
+
* @param datasets - datasets to be updated
|
|
1395
|
+
* @param visualization - Visualization to be added to datasets
|
|
1396
|
+
*/
|
|
1397
|
+
withStatistics(datasets: Dataset[], visualization: Visualization): Dataset[]
|
|
1398
|
+
|
|
1399
|
+
levelToLdTypeAndModel(level: LevelValue): {ldType: string; model: string}
|
|
1400
|
+
|
|
1401
|
+
viewVariablesRefCategories(viewParameters: PacoViewParameters): any
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Update a visualization
|
|
1405
|
+
* @param visualization
|
|
1406
|
+
*/
|
|
1407
|
+
updateVisualization(visualization: Visualization): Visualization
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
export const sqa: {
|
|
1411
|
+
common: CommonLib
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
export default sqa
|
|
4
1415
|
}
|