@3e/sqa-common 6.17.0-4 → 6.17.0-40

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 (4) hide show
  1. package/index.d.ts +129 -17
  2. package/package.json +6 -2
  3. package/sqa_common.js +1340 -1326
  4. package/types.ts +1230 -0
package/types.ts ADDED
@@ -0,0 +1,1230 @@
1
+ import * as Highcharts from "highcharts";
2
+
3
+ export type TimezoneValue =
4
+ | 'Asia/Aden'
5
+ | 'America/Cuiaba'
6
+ | 'Etc/GMT+9'
7
+ | 'Etc/GMT+8'
8
+ | 'Africa/Nairobi'
9
+ | 'America/Marigot'
10
+ | 'Asia/Aqtau'
11
+ | 'Pacific/Kwajalein'
12
+ | 'America/El_Salvador'
13
+ | 'Asia/Pontianak'
14
+ | 'Africa/Cairo'
15
+ | 'Pacific/Pago_Pago'
16
+ | 'Africa/Mbabane'
17
+ | 'Asia/Kuching'
18
+ | 'Pacific/Honolulu'
19
+ | 'Pacific/Rarotonga'
20
+ | 'America/Guatemala'
21
+ | 'Australia/Hobart'
22
+ | 'Europe/London'
23
+ | 'America/Belize'
24
+ | 'America/Panama'
25
+ | 'Asia/Chungking'
26
+ | 'America/Managua'
27
+ | 'America/Indiana/Petersburg'
28
+ | 'Asia/Yerevan'
29
+ | 'Europe/Brussels'
30
+ | 'GMT'
31
+ | 'Europe/Warsaw'
32
+ | 'America/Chicago'
33
+ | 'Asia/Kashgar'
34
+ | 'Chile/Continental'
35
+ | 'Pacific/Yap'
36
+ | 'CET'
37
+ | 'Etc/GMT-1'
38
+ | 'Etc/GMT-0'
39
+ | 'Europe/Jersey'
40
+ | 'America/Tegucigalpa'
41
+ | 'Etc/GMT-5'
42
+ | 'Europe/Istanbul'
43
+ | 'America/Eirunepe'
44
+ | 'Etc/GMT-4'
45
+ | 'America/Miquelon'
46
+ | 'Etc/GMT-3'
47
+ | 'Europe/Luxembourg'
48
+ | 'Etc/GMT-2'
49
+ | 'Etc/GMT-9'
50
+ | 'America/Argentina/Catamarca'
51
+ | 'Etc/GMT-8'
52
+ | 'Etc/GMT-7'
53
+ | 'Etc/GMT-6'
54
+ | 'Europe/Zaporozhye'
55
+ | 'Canada/Yukon'
56
+ | 'Canada/Atlantic'
57
+ | 'Atlantic/St_Helena'
58
+ | 'Australia/Tasmania'
59
+ | 'Libya'
60
+ | 'Europe/Guernsey'
61
+ | 'America/Grand_Turk'
62
+ | 'Asia/Samarkand'
63
+ | 'America/Argentina/Cordoba'
64
+ | 'Asia/Phnom_Penh'
65
+ | 'Africa/Kigali'
66
+ | 'Asia/Almaty'
67
+ | 'US/Alaska'
68
+ | 'Asia/Dubai'
69
+ | 'Europe/Isle_of_Man'
70
+ | 'America/Araguaina'
71
+ | 'Cuba'
72
+ | 'Asia/Novosibirsk'
73
+ | 'America/Argentina/Salta'
74
+ | 'Etc/GMT+3'
75
+ | 'Africa/Tunis'
76
+ | 'Etc/GMT+2'
77
+ | 'Etc/GMT+1'
78
+ | 'Pacific/Fakaofo'
79
+ | 'Africa/Tripoli'
80
+ | 'Etc/GMT+0'
81
+ | 'Israel'
82
+ | 'Africa/Banjul'
83
+ | 'Etc/GMT+7'
84
+ | 'Indian/Comoro'
85
+ | 'Etc/GMT+6'
86
+ | 'Etc/GMT+5'
87
+ | 'Etc/GMT+4'
88
+ | 'Pacific/Port_Moresby'
89
+ | 'US/Arizona'
90
+ | 'Antarctica/Syowa'
91
+ | 'Indian/Reunion'
92
+ | 'Pacific/Palau'
93
+ | 'Europe/Kaliningrad'
94
+ | 'America/Montevideo'
95
+ | 'Africa/Windhoek'
96
+ | 'Asia/Karachi'
97
+ | 'Africa/Mogadishu'
98
+ | 'Australia/Perth'
99
+ | 'Brazil/East'
100
+ | 'Etc/GMT'
101
+ | 'Asia/Chita'
102
+ | 'Pacific/Easter'
103
+ | 'Antarctica/Davis'
104
+ | 'Antarctica/McMurdo'
105
+ | 'Asia/Macao'
106
+ | 'America/Manaus'
107
+ | 'Africa/Freetown'
108
+ | 'Europe/Bucharest'
109
+ | 'Asia/Tomsk'
110
+ | 'America/Argentina/Mendoza'
111
+ | 'Asia/Macau'
112
+ | 'Europe/Malta'
113
+ | 'Mexico/BajaSur'
114
+ | 'Pacific/Tahiti'
115
+ | 'Africa/Asmera'
116
+ | 'Europe/Busingen'
117
+ | 'America/Argentina/Rio_Gallegos'
118
+ | 'Africa/Malabo'
119
+ | 'Europe/Skopje'
120
+ | 'America/Catamarca'
121
+ | 'America/Godthab'
122
+ | 'Europe/Sarajevo'
123
+ | 'Australia/ACT'
124
+ | 'GB-Eire'
125
+ | 'Africa/Lagos'
126
+ | 'America/Cordoba'
127
+ | 'Europe/Rome'
128
+ | 'Asia/Dacca'
129
+ | 'Indian/Mauritius'
130
+ | 'Pacific/Samoa'
131
+ | 'America/Regina'
132
+ | 'America/Fort_Wayne'
133
+ | 'America/Dawson_Creek'
134
+ | 'Africa/Algiers'
135
+ | 'Europe/Mariehamn'
136
+ | 'America/St_Johns'
137
+ | 'America/St_Thomas'
138
+ | 'Europe/Zurich'
139
+ | 'America/Anguilla'
140
+ | 'Asia/Dili'
141
+ | 'America/Denver'
142
+ | 'Africa/Bamako'
143
+ | 'Europe/Saratov'
144
+ | 'GB'
145
+ | 'Mexico/General'
146
+ | 'Pacific/Wallis'
147
+ | 'Europe/Gibraltar'
148
+ | 'Africa/Conakry'
149
+ | 'Africa/Lubumbashi'
150
+ | 'Asia/Istanbul'
151
+ | 'America/Havana'
152
+ | 'NZ-CHAT'
153
+ | 'Asia/Choibalsan'
154
+ | 'America/Porto_Acre'
155
+ | 'Asia/Omsk'
156
+ | 'Europe/Vaduz'
157
+ | 'US/Michigan'
158
+ | 'Asia/Dhaka'
159
+ | 'America/Barbados'
160
+ | 'Europe/Tiraspol'
161
+ | 'Atlantic/Cape_Verde'
162
+ | 'Asia/Yekaterinburg'
163
+ | 'America/Louisville'
164
+ | 'Pacific/Johnston'
165
+ | 'Pacific/Chatham'
166
+ | 'Europe/Ljubljana'
167
+ | 'America/Sao_Paulo'
168
+ | 'Asia/Jayapura'
169
+ | 'America/Curacao'
170
+ | 'Asia/Dushanbe'
171
+ | 'America/Guyana'
172
+ | 'America/Guayaquil'
173
+ | 'America/Martinique'
174
+ | 'Portugal'
175
+ | 'Europe/Berlin'
176
+ | 'Europe/Moscow'
177
+ | 'Europe/Chisinau'
178
+ | 'America/Puerto_Rico'
179
+ | 'America/Rankin_Inlet'
180
+ | 'Pacific/Ponape'
181
+ | 'Europe/Stockholm'
182
+ | 'Europe/Budapest'
183
+ | 'America/Argentina/Jujuy'
184
+ | 'Australia/Eucla'
185
+ | 'Asia/Shanghai'
186
+ | 'Universal'
187
+ | 'Europe/Zagreb'
188
+ | 'America/Port_of_Spain'
189
+ | 'Europe/Helsinki'
190
+ | 'Asia/Beirut'
191
+ | 'Asia/Tel_Aviv'
192
+ | 'Pacific/Bougainville'
193
+ | 'US/Central'
194
+ | 'Africa/Sao_Tome'
195
+ | 'Indian/Chagos'
196
+ | 'America/Cayenne'
197
+ | 'Asia/Yakutsk'
198
+ | 'Pacific/Galapagos'
199
+ | 'Australia/North'
200
+ | 'Europe/Paris'
201
+ | 'Africa/Ndjamena'
202
+ | 'Pacific/Fiji'
203
+ | 'America/Rainy_River'
204
+ | 'Indian/Maldives'
205
+ | 'Australia/Yancowinna'
206
+ | 'SystemV/AST4'
207
+ | 'Asia/Oral'
208
+ | 'America/Yellowknife'
209
+ | 'Pacific/Enderbury'
210
+ | 'America/Juneau'
211
+ | 'Australia/Victoria'
212
+ | 'America/Indiana/Vevay'
213
+ | 'Asia/Tashkent'
214
+ | 'Asia/Jakarta'
215
+ | 'Africa/Ceuta'
216
+ | 'Asia/Barnaul'
217
+ | 'America/Recife'
218
+ | 'America/Buenos_Aires'
219
+ | 'America/Noronha'
220
+ | 'America/Swift_Current'
221
+ | 'Australia/Adelaide'
222
+ | 'America/Metlakatla'
223
+ | 'Africa/Djibouti'
224
+ | 'America/Paramaribo'
225
+ | 'Asia/Qostanay'
226
+ | 'Europe/Simferopol'
227
+ | 'Europe/Sofia'
228
+ | 'Africa/Nouakchott'
229
+ | 'Europe/Prague'
230
+ | 'America/Indiana/Vincennes'
231
+ | 'Antarctica/Mawson'
232
+ | 'America/Kralendijk'
233
+ | 'Antarctica/Troll'
234
+ | 'Europe/Samara'
235
+ | 'Indian/Christmas'
236
+ | 'America/Antigua'
237
+ | 'Pacific/Gambier'
238
+ | 'America/Indianapolis'
239
+ | 'America/Inuvik'
240
+ | 'America/Iqaluit'
241
+ | 'Pacific/Funafuti'
242
+ | 'UTC'
243
+ | 'Antarctica/Macquarie'
244
+ | 'Canada/Pacific'
245
+ | 'America/Moncton'
246
+ | 'Africa/Gaborone'
247
+ | 'Pacific/Chuuk'
248
+ | 'Asia/Pyongyang'
249
+ | 'America/St_Vincent'
250
+ | 'Asia/Gaza'
251
+ | 'Etc/Universal'
252
+ | 'PST8PDT'
253
+ | 'Atlantic/Faeroe'
254
+ | 'Asia/Qyzylorda'
255
+ | 'Canada/Newfoundland'
256
+ | 'America/Kentucky/Louisville'
257
+ | 'America/Yakutat'
258
+ | 'Asia/Ho_Chi_Minh'
259
+ | 'Antarctica/Casey'
260
+ | 'Europe/Copenhagen'
261
+ | 'Africa/Asmara'
262
+ | 'Atlantic/Azores'
263
+ | 'Europe/Vienna'
264
+ | 'ROK'
265
+ | 'Pacific/Pitcairn'
266
+ | 'America/Mazatlan'
267
+ | 'Australia/Queensland'
268
+ | 'Pacific/Nauru'
269
+ | 'Europe/Tirane'
270
+ | 'Asia/Kolkata'
271
+ | 'SystemV/MST7'
272
+ | 'Australia/Canberra'
273
+ | 'MET'
274
+ | 'Australia/Broken_Hill'
275
+ | 'Europe/Riga'
276
+ | 'America/Dominica'
277
+ | 'Africa/Abidjan'
278
+ | 'America/Mendoza'
279
+ | 'America/Santarem'
280
+ | 'Kwajalein'
281
+ | 'America/Asuncion'
282
+ | 'Asia/Ulan_Bator'
283
+ | 'NZ'
284
+ | 'America/Boise'
285
+ | 'Australia/Currie'
286
+ | 'EST5EDT'
287
+ | 'Pacific/Guam'
288
+ | 'Pacific/Wake'
289
+ | 'Atlantic/Bermuda'
290
+ | 'America/Costa_Rica'
291
+ | 'America/Dawson'
292
+ | 'Asia/Chongqing'
293
+ | 'Eire'
294
+ | 'Europe/Amsterdam'
295
+ | 'America/Indiana/Knox'
296
+ | 'America/North_Dakota/Beulah'
297
+ | 'Africa/Accra'
298
+ | 'Atlantic/Faroe'
299
+ | 'Mexico/BajaNorte'
300
+ | 'America/Maceio'
301
+ | 'Etc/UCT'
302
+ | 'Pacific/Apia'
303
+ | 'GMT0'
304
+ | 'America/Atka'
305
+ | 'Pacific/Niue'
306
+ | 'Australia/Lord_Howe'
307
+ | 'Europe/Dublin'
308
+ | 'Pacific/Truk'
309
+ | 'MST7MDT'
310
+ | 'America/Monterrey'
311
+ | 'America/Nassau'
312
+ | 'America/Jamaica'
313
+ | 'Asia/Bishkek'
314
+ | 'America/Atikokan'
315
+ | 'Atlantic/Stanley'
316
+ | 'Australia/NSW'
317
+ | 'US/Hawaii'
318
+ | 'SystemV/CST6'
319
+ | 'Indian/Mahe'
320
+ | 'Asia/Aqtobe'
321
+ | 'America/Sitka'
322
+ | 'Asia/Vladivostok'
323
+ | 'Africa/Libreville'
324
+ | 'Africa/Maputo'
325
+ | 'Zulu'
326
+ | 'America/Kentucky/Monticello'
327
+ | 'Africa/El_Aaiun'
328
+ | 'Africa/Ouagadougou'
329
+ | 'America/Coral_Harbour'
330
+ | 'Pacific/Marquesas'
331
+ | 'Brazil/West'
332
+ | 'America/Aruba'
333
+ | 'America/North_Dakota/Center'
334
+ | 'America/Cayman'
335
+ | 'Asia/Ulaanbaatar'
336
+ | 'Asia/Baghdad'
337
+ | 'Europe/San_Marino'
338
+ | 'America/Indiana/Tell_City'
339
+ | 'America/Tijuana'
340
+ | 'Pacific/Saipan'
341
+ | 'SystemV/YST9'
342
+ | 'Africa/Douala'
343
+ | 'America/Chihuahua'
344
+ | 'America/Ojinaga'
345
+ | 'Asia/Hovd'
346
+ | 'America/Anchorage'
347
+ | 'Chile/EasterIsland'
348
+ | 'America/Halifax'
349
+ | 'Antarctica/Rothera'
350
+ | 'America/Indiana/Indianapolis'
351
+ | 'US/Mountain'
352
+ | 'Asia/Damascus'
353
+ | 'America/Argentina/San_Luis'
354
+ | 'America/Santiago'
355
+ | 'Asia/Baku'
356
+ | 'America/Argentina/Ushuaia'
357
+ | 'Atlantic/Reykjavik'
358
+ | 'Africa/Brazzaville'
359
+ | 'Africa/Porto-Novo'
360
+ | 'America/La_Paz'
361
+ | 'Antarctica/DumontDUrville'
362
+ | 'Asia/Taipei'
363
+ | 'Antarctica/South_Pole'
364
+ | 'Asia/Manila'
365
+ | 'Asia/Bangkok'
366
+ | 'Africa/Dar_es_Salaam'
367
+ | 'Poland'
368
+ | 'Atlantic/Madeira'
369
+ | 'Antarctica/Palmer'
370
+ | 'America/Thunder_Bay'
371
+ | 'Africa/Addis_Ababa'
372
+ | 'Asia/Yangon'
373
+ | 'Europe/Uzhgorod'
374
+ | 'Brazil/DeNoronha'
375
+ | 'Asia/Ashkhabad'
376
+ | 'Etc/Zulu'
377
+ | 'America/Indiana/Marengo'
378
+ | 'America/Creston'
379
+ | 'America/Punta_Arenas'
380
+ | 'America/Mexico_City'
381
+ | 'Antarctica/Vostok'
382
+ | 'Asia/Jerusalem'
383
+ | 'Europe/Andorra'
384
+ | 'US/Samoa'
385
+ | 'PRC'
386
+ | 'Asia/Vientiane'
387
+ | 'Pacific/Kiritimati'
388
+ | 'America/Matamoros'
389
+ | 'America/Blanc-Sablon'
390
+ | 'Asia/Riyadh'
391
+ | 'Iceland'
392
+ | 'Pacific/Pohnpei'
393
+ | 'Asia/Ujung_Pandang'
394
+ | 'Atlantic/South_Georgia'
395
+ | 'Europe/Lisbon'
396
+ | 'Asia/Harbin'
397
+ | 'Europe/Oslo'
398
+ | 'Asia/Novokuznetsk'
399
+ | 'CST6CDT'
400
+ | 'Atlantic/Canary'
401
+ | 'America/Knox_IN'
402
+ | 'Asia/Kuwait'
403
+ | 'SystemV/HST10'
404
+ | 'Pacific/Efate'
405
+ | 'Africa/Lome'
406
+ | 'America/Bogota'
407
+ | 'America/Menominee'
408
+ | 'America/Adak'
409
+ | 'Pacific/Norfolk'
410
+ | 'Europe/Kirov'
411
+ | 'America/Resolute'
412
+ | 'Pacific/Tarawa'
413
+ | 'Africa/Kampala'
414
+ | 'Asia/Krasnoyarsk'
415
+ | 'Greenwich'
416
+ | 'SystemV/EST5'
417
+ | 'America/Edmonton'
418
+ | 'Europe/Podgorica'
419
+ | 'Australia/South'
420
+ | 'Canada/Central'
421
+ | 'Africa/Bujumbura'
422
+ | 'America/Santo_Domingo'
423
+ | 'US/Eastern'
424
+ | 'Europe/Minsk'
425
+ | 'Pacific/Auckland'
426
+ | 'Africa/Casablanca'
427
+ | 'America/Glace_Bay'
428
+ | 'Canada/Eastern'
429
+ | 'Asia/Qatar'
430
+ | 'Europe/Kiev'
431
+ | 'Singapore'
432
+ | 'Asia/Magadan'
433
+ | 'SystemV/PST8'
434
+ | 'America/Port-au-Prince'
435
+ | 'Europe/Belfast'
436
+ | 'America/St_Barthelemy'
437
+ | 'Asia/Ashgabat'
438
+ | 'Africa/Luanda'
439
+ | 'America/Nipigon'
440
+ | 'Atlantic/Jan_Mayen'
441
+ | 'Brazil/Acre'
442
+ | 'Asia/Muscat'
443
+ | 'Asia/Bahrain'
444
+ | 'Europe/Vilnius'
445
+ | 'America/Fortaleza'
446
+ | 'Etc/GMT0'
447
+ | 'US/East-Indiana'
448
+ | 'America/Hermosillo'
449
+ | 'America/Cancun'
450
+ | 'Africa/Maseru'
451
+ | 'Pacific/Kosrae'
452
+ | 'Africa/Kinshasa'
453
+ | 'Asia/Kathmandu'
454
+ | 'Asia/Seoul'
455
+ | 'Australia/Sydney'
456
+ | 'America/Lima'
457
+ | 'Australia/LHI'
458
+ | 'America/St_Lucia'
459
+ | 'Europe/Madrid'
460
+ | 'America/Bahia_Banderas'
461
+ | 'America/Montserrat'
462
+ | 'Asia/Brunei'
463
+ | 'America/Santa_Isabel'
464
+ | 'Canada/Mountain'
465
+ | 'America/Cambridge_Bay'
466
+ | 'Asia/Colombo'
467
+ | 'Australia/West'
468
+ | 'Indian/Antananarivo'
469
+ | 'Australia/Brisbane'
470
+ | 'Indian/Mayotte'
471
+ | 'US/Indiana-Starke'
472
+ | 'Asia/Urumqi'
473
+ | 'US/Aleutian'
474
+ | 'Europe/Volgograd'
475
+ | 'America/Lower_Princes'
476
+ | 'America/Vancouver'
477
+ | 'Africa/Blantyre'
478
+ | 'America/Rio_Branco'
479
+ | 'America/Danmarkshavn'
480
+ | 'America/Detroit'
481
+ | 'America/Thule'
482
+ | 'Africa/Lusaka'
483
+ | 'Asia/Hong_Kong'
484
+ | 'Iran'
485
+ | 'America/Argentina/La_Rioja'
486
+ | 'Africa/Dakar'
487
+ | 'SystemV/CST6CDT'
488
+ | 'America/Tortola'
489
+ | 'America/Porto_Velho'
490
+ | 'Asia/Sakhalin'
491
+ | 'Etc/GMT+10'
492
+ | 'America/Scoresbysund'
493
+ | 'Asia/Kamchatka'
494
+ | 'Asia/Thimbu'
495
+ | 'Africa/Harare'
496
+ | 'Etc/GMT+12'
497
+ | 'Etc/GMT+11'
498
+ | 'Navajo'
499
+ | 'America/Nome'
500
+ | 'Europe/Tallinn'
501
+ | 'Turkey'
502
+ | 'Africa/Khartoum'
503
+ | 'Africa/Johannesburg'
504
+ | 'Africa/Bangui'
505
+ | 'Europe/Belgrade'
506
+ | 'Jamaica'
507
+ | 'Africa/Bissau'
508
+ | 'Asia/Tehran'
509
+ | 'WET'
510
+ | 'Europe/Astrakhan'
511
+ | 'Africa/Juba'
512
+ | 'America/Campo_Grande'
513
+ | 'America/Belem'
514
+ | 'Etc/Greenwich'
515
+ | 'Asia/Saigon'
516
+ | 'America/Ensenada'
517
+ | 'Pacific/Midway'
518
+ | 'America/Jujuy'
519
+ | 'Africa/Timbuktu'
520
+ | 'America/Bahia'
521
+ | 'America/Goose_Bay'
522
+ | 'America/Virgin'
523
+ | 'America/Pangnirtung'
524
+ | 'Asia/Katmandu'
525
+ | 'America/Phoenix'
526
+ | 'Africa/Niamey'
527
+ | 'America/Whitehorse'
528
+ | 'Pacific/Noumea'
529
+ | 'Asia/Tbilisi'
530
+ | 'America/Montreal'
531
+ | 'Asia/Makassar'
532
+ | 'America/Argentina/San_Juan'
533
+ | 'Hongkong'
534
+ | 'UCT'
535
+ | 'Asia/Nicosia'
536
+ | 'America/Indiana/Winamac'
537
+ | 'SystemV/MST7MDT'
538
+ | 'America/Argentina/ComodRivadavia'
539
+ | 'America/Boa_Vista'
540
+ | 'America/Grenada'
541
+ | 'Asia/Atyrau'
542
+ | 'Australia/Darwin'
543
+ | 'Asia/Khandyga'
544
+ | 'Asia/Kuala_Lumpur'
545
+ | 'Asia/Famagusta'
546
+ | 'Asia/Thimphu'
547
+ | 'Asia/Rangoon'
548
+ | 'Europe/Bratislava'
549
+ | 'Asia/Calcutta'
550
+ | 'America/Argentina/Tucuman'
551
+ | 'Asia/Kabul'
552
+ | 'Indian/Cocos'
553
+ | 'Japan'
554
+ | 'Pacific/Tongatapu'
555
+ | 'America/New_York'
556
+ | 'Etc/GMT-12'
557
+ | 'Etc/GMT-11'
558
+ | 'America/Nuuk'
559
+ | 'Etc/GMT-10'
560
+ | 'SystemV/YST9YDT'
561
+ | 'Europe/Ulyanovsk'
562
+ | 'Etc/GMT-14'
563
+ | 'Etc/GMT-13'
564
+ | 'W-SU'
565
+ | 'America/Merida'
566
+ | 'EET'
567
+ | 'America/Rosario'
568
+ | 'Canada/Saskatchewan'
569
+ | 'America/St_Kitts'
570
+ | 'Arctic/Longyearbyen'
571
+ | 'America/Fort_Nelson'
572
+ | 'America/Caracas'
573
+ | 'America/Guadeloupe'
574
+ | 'Asia/Hebron'
575
+ | 'Indian/Kerguelen'
576
+ | 'SystemV/PST8PDT'
577
+ | 'Africa/Monrovia'
578
+ | 'Asia/Ust-Nera'
579
+ | 'Egypt'
580
+ | 'Asia/Srednekolymsk'
581
+ | 'America/North_Dakota/New_Salem'
582
+ | 'Asia/Anadyr'
583
+ | 'Australia/Melbourne'
584
+ | 'Asia/Irkutsk'
585
+ | 'America/Shiprock'
586
+ | 'America/Winnipeg'
587
+ | 'Europe/Vatican'
588
+ | 'Asia/Amman'
589
+ | 'Etc/UTC'
590
+ | 'SystemV/AST4ADT'
591
+ | 'Asia/Tokyo'
592
+ | 'America/Toronto'
593
+ | 'Asia/Singapore'
594
+ | 'Australia/Lindeman'
595
+ | 'America/Los_Angeles'
596
+ | 'SystemV/EST5EDT'
597
+ | 'Pacific/Majuro'
598
+ | 'America/Argentina/Buenos_Aires'
599
+ | 'Europe/Nicosia'
600
+ | 'Pacific/Guadalcanal'
601
+ | 'Europe/Athens'
602
+ | 'US/Pacific'
603
+ | 'Europe/Monaco'
604
+
605
+ export type ErrorStatus = 400 | 401 | 403 | 409 | 500 | 503 | 501
606
+ export type OKStatus = 200 | 201 | 202 | 205
607
+
608
+ export interface Artifact {
609
+ type: string
610
+ version: string
611
+ }
612
+
613
+ export interface EmptySection {
614
+ id: string
615
+ body: []
616
+ class: 'Section'
617
+ }
618
+
619
+ export interface Timezone {
620
+ value: TimezoneValue
621
+ label: string
622
+ }
623
+
624
+ export type TimezoneMode = 'user' | 'plant'
625
+
626
+ export interface ConfigSection {
627
+ id: 'config'
628
+ view: {
629
+ id: 'view'
630
+ label: string
631
+ view_type: ViewType
632
+ parameters: {_ref: ['parameters']; class: 'Section'; _schema: '_ref'}
633
+ description: string
634
+ color_scheme: string
635
+ data_set_sets: {
636
+ _ref: ['data_set_sets']
637
+ class: 'Section'
638
+ _schema: '_ref'
639
+ }
640
+ }
641
+ class: 'SQView'
642
+ }
643
+
644
+ export interface BasicParametersSection {
645
+ id: 'parameters'
646
+ body: [
647
+ {
648
+ id: 'Period'
649
+ class: 'Parameter'
650
+ parameter: {class: 'Period'; label: 'Period'; initial: Period}
651
+ },
652
+ {
653
+ id: 'Granularity'
654
+ class: 'Parameter'
655
+ parameter: {
656
+ class: 'Granularity'
657
+ label: 'Granularity'
658
+ initial: Granularity
659
+ }
660
+ },
661
+ ]
662
+ class: 'Section'
663
+ }
664
+
665
+ export type Section = BasicParametersSection | ConfigSection | EmptySection
666
+
667
+ export interface SQView {
668
+ version: string
669
+ artifact: Artifact
670
+ body: Section[]
671
+ }
672
+
673
+ export type Parameters = {
674
+ class: string
675
+ id: string
676
+ }
677
+
678
+ export type ViewData = SQView & {
679
+ artifact: {
680
+ type: string
681
+ version: string
682
+ }
683
+ body: {
684
+ body: Parameters[]
685
+ class: string
686
+ id: string
687
+ }[]
688
+ version: string
689
+ }
690
+
691
+ export type ParameterOption = {
692
+ options: {value: string; label: string}[]
693
+ id: string
694
+ label: string
695
+ ldType: string
696
+ container?: string
697
+ value: string
698
+ }
699
+
700
+ export interface ApiConfig extends RequestInit {
701
+ token?: string
702
+ body?: any
703
+ }
704
+
705
+ export type ApiFn = (
706
+ endpoint: string,
707
+ config?: ApiConfig,
708
+ ) => Promise<
709
+ {status: ErrorStatus} | {body: Record<string, any>; status: OKStatus}
710
+ >
711
+
712
+ export type TokenThunk = () => Promise<
713
+ {status: OKStatus; body: {token: string}} | {status: ErrorStatus}
714
+ >
715
+
716
+ export interface InitialisationConfig {
717
+ apiFn: ApiFn
718
+ }
719
+
720
+ export type PeriodTimeMode = 'absolute' | 'local'
721
+
722
+ export type ViewType =
723
+ | 'time-chart'
724
+ | 'object-chart'
725
+ | 'object-heatmap'
726
+ | 'scatter-chart'
727
+ | 'object-table'
728
+ | 'time-table'
729
+ | 'kpis'
730
+
731
+ export type Granularity =
732
+ | '1-days'
733
+ | '1-hours'
734
+ | '1-minutes'
735
+ | '1-months'
736
+ | '1-weeks'
737
+ | '1-years'
738
+ | '10-minutes'
739
+ | '15-minutes'
740
+ | '3-months'
741
+ | '30-minutes'
742
+ | '5-minutes'
743
+ | 'change'
744
+ | 'normalized'
745
+ | 'raw'
746
+ | 'scaled'
747
+ | 'statelog'
748
+
749
+ export type Period =
750
+ | 'last-15-minutes'
751
+ | 'last-30-minutes'
752
+ | 'last-60-minutes'
753
+ | 'last-120-minutes'
754
+ | 'last-24-hours'
755
+ | 'today'
756
+ | 'yesterday'
757
+ | 'tomorrow'
758
+ | 'last-3-days'
759
+ | 'last-7-days'
760
+ | 'last-7x24-hours'
761
+ | 'last-3x24-hours'
762
+ | 'forecast-4-days'
763
+ | 'forecast-10-days'
764
+ | 'last-week'
765
+ | 'current-month'
766
+ | 'last-month'
767
+ | 'last-30-days'
768
+ | 'year-to-date'
769
+ | 'last-12-months'
770
+ | 'last-year'
771
+ | 'since-beginning'
772
+ | 'custom'
773
+
774
+ export type ShortLDTypeValue =
775
+ | 'ac-input'
776
+ | 'ac-node'
777
+ | 'ac-phase'
778
+ | 'account'
779
+ | 'battery'
780
+ | 'bearing'
781
+ | 'blade'
782
+ | 'connection'
783
+ | 'dc-input'
784
+ | 'dc-node'
785
+ | 'generator'
786
+ | 'inverter'
787
+ | 'inverter-device'
788
+ | 'logger'
789
+ | 'module-group'
790
+ | 'mppt'
791
+ | 'nacelle'
792
+ | 'portfolio'
793
+ | 'power-unit'
794
+ | 'rotor'
795
+ | 'sensor'
796
+ | 'site'
797
+ | 'site-group'
798
+ | 'spv'
799
+ | 'strings'
800
+ | 'tower'
801
+ | 'tracker'
802
+ | 'transmission'
803
+ | 'turbine'
804
+ | 'yaw'
805
+
806
+ export type LongLDTypeValue =
807
+ | 'sq/ld_type/ac_input'
808
+ | 'sq/ld_type/ac_node'
809
+ | 'sq/ld_type/ac_phase'
810
+ | 'sq/ld_type/account'
811
+ | 'sq/ld_type/battery'
812
+ | 'sq/ld_type/bearing'
813
+ | 'sq/ld_type/blade'
814
+ | 'sq/ld_type/connection'
815
+ | 'sq/ld_type/dc_input'
816
+ | 'sq/ld_type/dc_node'
817
+ | 'sq/ld_type/generator'
818
+ | 'sq/ld_type/inverter'
819
+ | 'sq/ld_type/inverter_device'
820
+ | 'sq/ld_type/logger'
821
+ | 'sq/ld_type/module_group'
822
+ | 'sq/ld_type/mppt'
823
+ | 'sq/ld_type/nacelle'
824
+ | 'sq/ld_type/portfolio'
825
+ | 'sq/ld_type/power_unit'
826
+ | 'sq/ld_type/rotor'
827
+ | 'sq/ld_type/sensor'
828
+ | 'sq/ld_type/site'
829
+ | 'sq/ld_type/site_group'
830
+ | 'sq/ld_type/spv'
831
+ | 'sq/ld_type/strings'
832
+ | 'sq/ld_type/tower'
833
+ | 'sq/ld_type/tracker'
834
+ | 'sq/ld_type/transmission'
835
+ | 'sq/ld_type/turbine'
836
+ | 'sq/ld_type/yaw'
837
+
838
+ export type LdTypeValue = ShortLDTypeValue | LongLDTypeValue
839
+
840
+ export type LevelValue =
841
+ | 'site-group'
842
+ | 'site'
843
+ | 'ac-node'
844
+ | 'ac-input'
845
+ | 'ac-phase'
846
+ | 'connection'
847
+ | 'dc-input'
848
+ | 'dc-node'
849
+ | 'inverter'
850
+ | 'inverter-device'
851
+ | 'logger'
852
+ | 'mppt'
853
+ | 'module-group'
854
+ | 'power-unit'
855
+ | 'sensor'
856
+ | 'strings'
857
+ | 'tracker'
858
+ | 'turbine'
859
+
860
+ export type DashboardLevel =
861
+ | 'site-group'
862
+ | 'site'
863
+ | 'ac-node'
864
+ | 'inverter'
865
+ | 'turbine'
866
+
867
+ export type RepresentationValue =
868
+ | 'line'
869
+ | 'line-and-marker'
870
+ | 'marker'
871
+ | 'spline'
872
+ | 'column'
873
+ | 'area'
874
+
875
+ export type StackingOptionValue = 'no' | 'normal' | 'percent'
876
+
877
+ export type StackingOption = {value: StackingOptionValue; label: string}
878
+
879
+ export type Representation = {
880
+ value: RepresentationValue
881
+ label: string
882
+ }
883
+
884
+ export type Level = {
885
+ value: LevelValue
886
+ label: string
887
+ models?: {label: string; value: string}[]
888
+ }
889
+
890
+ /**
891
+ * Logical device type
892
+ */
893
+ export type LdTypeOption = {
894
+ value: LdTypeValue
895
+ label: string
896
+ }
897
+
898
+ export type ContainerValue = string
899
+
900
+ /**
901
+ * Containers (Actually physical plants)
902
+ */
903
+ export type Container = {
904
+ value: string
905
+ label: string
906
+ }
907
+
908
+ export type Template = {
909
+ value: string
910
+ label: string
911
+ }
912
+
913
+ export interface EmptyViewOptions {
914
+ viewType: ViewType
915
+ label: string
916
+ /**
917
+ * @default "15-minutes"
918
+ */
919
+ granularity?: Granularity
920
+ /**
921
+ * @default "last-24-hours"
922
+ */
923
+ period?: Period
924
+ }
925
+
926
+ export interface VisualisationOptions {
927
+ showLegend: boolean
928
+ showTitle: boolean
929
+ }
930
+
931
+ /**
932
+ * ISO local datetime string (YYYY-MM-DDTHH:mm:ss.SSS).
933
+ */
934
+ export type ISODateString = string
935
+
936
+ export type ColorSchemeValue = 'scheme_blrd' | 'scheme_ylrdbl'
937
+
938
+ export type ColorSettings =
939
+ | {
940
+ label: string
941
+ value: string
942
+ type: 'palette'
943
+ colors: string[]
944
+ }
945
+ | {label: string; value: string; type: 'fixed'; color: string}
946
+
947
+ export type ColorScheme = {
948
+ value: ColorSchemeValue
949
+ label: string
950
+ type?: string
951
+ stops?: [number, string][]
952
+ }
953
+
954
+ export type MeasurementsRowExtraInfo = {
955
+ indicator?: {
956
+ label: string
957
+ indicator_label: string
958
+ reference_label: string
959
+ unit: string
960
+ unit_key: string
961
+ description: string
962
+ key: string
963
+ default_graphical_representation: string
964
+ level: LevelValue
965
+ }
966
+ object?: {
967
+ name: string
968
+ level: LevelValue
969
+ ref: string
970
+ }
971
+ }
972
+
973
+ /**
974
+ * Since in a table row the data is represented as: `[object-name, indicator1-value, indicator2-value, ...]`
975
+ * while the indicators in the meta are: `[indicator1, indicator2, ...]`
976
+ * In order to access the correct indicator in the meta, be sure to go for the `columnIndex - 1` indicator in the `indicators` array from the meta.
977
+ *
978
+ *
979
+ * For objects, the correct object index is the index of the full row
980
+ */
981
+ export type ObjectsTableMetaRowInfo = {
982
+ indicators: {
983
+ label: string
984
+ indicator_label: string
985
+ reference_label: string
986
+ unit?: string
987
+ unit_key: string
988
+ description: string
989
+ key: string
990
+ default_graphical_representation: string
991
+ level: LevelValue
992
+ }[]
993
+ objects: {
994
+ name: string
995
+ level: LevelValue
996
+ ref: string
997
+ label: string
998
+ }
999
+ }
1000
+
1001
+ export type TimeTableMetaRowInfo = {
1002
+ [key: string]: {
1003
+ indicator: Indicator
1004
+ object: Object
1005
+ }
1006
+ }
1007
+
1008
+ export type MeasurementsTable = {
1009
+ meta: {
1010
+ rows: MeasurementsRowExtraInfo[]
1011
+ primaryObject: string
1012
+ }
1013
+ header: string[]
1014
+ rows: (string | number | null)[][]
1015
+ }
1016
+
1017
+ export type HighChartsSpec = {
1018
+ display: 'highcharts'
1019
+ chart: {_SQ_: {type: ViewType}; zoomType: string; animation: boolean}
1020
+ } & Highcharts.Options
1021
+
1022
+ export type TableSpec = {
1023
+ display: 'table'
1024
+ meta?: {
1025
+ type: 'time_table'
1026
+ rows: TimeTableMetaRowInfo
1027
+ } | {
1028
+ type: 'object_table'
1029
+ rows: ObjectsTableMetaRowInfo
1030
+ }
1031
+ title?: string
1032
+ header: string[]
1033
+ rows: (number | string)[][]
1034
+ }
1035
+
1036
+ export type MessageSpec = {
1037
+ display: 'message'
1038
+ label: string
1039
+ value: string
1040
+ }
1041
+ export type KPI = {
1042
+ kpi: string
1043
+ value: string | number
1044
+ }
1045
+
1046
+ export type KPISpec = {
1047
+ display: 'kpis'
1048
+ title: {text: string}
1049
+ object: Object
1050
+ kpis: KPI[]
1051
+ }
1052
+
1053
+ export type VisualizationSpec = TableSpec | MessageSpec | HighChartsSpec | KPISpec
1054
+
1055
+
1056
+ export interface Visualization {
1057
+ data: {
1058
+ datasets: Dataset[]
1059
+ date_from: ISODateString
1060
+ date_to: ISODateString
1061
+ period_time_mode: string
1062
+ clock_or_calendar_mode: string
1063
+ granularity: Granularity
1064
+ }
1065
+ error?: boolean
1066
+ options: VisualisationOptions
1067
+ info: {title: string; type: ViewType; color_scheme: ColorSchemeValue}
1068
+ values: {}
1069
+ disableIncrementalUpdates: boolean
1070
+ spec: VisualizationSpec
1071
+ }
1072
+
1073
+ export interface LdType {
1074
+ sqid: string
1075
+ ref: string
1076
+ label: string
1077
+ }
1078
+
1079
+ export interface LDRoot {
1080
+ sqid: string
1081
+ ref: string
1082
+ label: string
1083
+ }
1084
+
1085
+ export interface Model {
1086
+ sqid: string
1087
+ ref: string
1088
+ label: string
1089
+ }
1090
+
1091
+ export interface LogicalDevice {
1092
+ sqid: string
1093
+ ld_type: string
1094
+ ref: string
1095
+ root: LDRoot
1096
+ label: string
1097
+ full_name: string
1098
+ act_to: Date
1099
+ act_from: Date
1100
+ model: Model
1101
+ }
1102
+
1103
+ export interface Indicator {
1104
+ default_graphical_representation: RepresentationValue
1105
+ description: string
1106
+ key: string
1107
+ label: string
1108
+ level: LevelValue
1109
+ unit: string
1110
+ unit_key: string
1111
+ }
1112
+
1113
+ export interface LDIndicator {
1114
+ indicator_key: string
1115
+ object_ref: string
1116
+ unit: string
1117
+ unit_key: string
1118
+ }
1119
+
1120
+ /**
1121
+ * Options for representing the dataset
1122
+ */
1123
+ export interface DatasetOptions {
1124
+ graphicalRepresentation?: string
1125
+ id?: string
1126
+ colorSetting?: string
1127
+ stacking?: StackingOptionValue
1128
+ showNullsAs?: string
1129
+ label?: string
1130
+ }
1131
+
1132
+ export interface DatasetTemplateSpec {
1133
+ selectedLevel: string
1134
+ selectedContainer?: string
1135
+ selectedTemplate: string
1136
+ }
1137
+
1138
+ export interface Object {
1139
+ name: string
1140
+ level: LevelValue
1141
+ ref: string
1142
+ type: string
1143
+ statistics?: {
1144
+ median: number
1145
+ mean: number
1146
+ sum: number
1147
+ min: number
1148
+ max: number
1149
+ }
1150
+ }
1151
+
1152
+ export interface ObjectSet {
1153
+ template: string
1154
+ level: string
1155
+ objects: Object[]
1156
+ }
1157
+
1158
+ export interface UnitScale {
1159
+ min?: any
1160
+ max?: any
1161
+ }
1162
+
1163
+ export type Scaling = Record<string, UnitScale>
1164
+
1165
+ export interface Dataset {
1166
+ objects?: Object[]
1167
+ colorSetting?: ColorSettings
1168
+ indicators: Indicator[]
1169
+ objectSet: ObjectSet
1170
+ stacking: StackingOptionValue
1171
+ showNullsAs?: any
1172
+ representation: string
1173
+ label?: unknown
1174
+ id: string
1175
+ scaling: Scaling
1176
+ stack?: unknown
1177
+ error?: unknown
1178
+ idx: number
1179
+ objectSetLabel: string
1180
+ }
1181
+
1182
+ // TODO: Better types for PacoViewParameters
1183
+ export type PacoViewParameters = unknown
1184
+
1185
+ type SaveDataJobStatus =
1186
+ | {
1187
+ status: 'terminated'
1188
+ respResult: {downloadUrl: string}
1189
+ completedTime: ISODateString
1190
+ respStatus: number
1191
+ }
1192
+ | {status: 'running'}
1193
+
1194
+ export type SaveDataJobResponse = SaveDataJobStatus & {
1195
+ actorSqid: string
1196
+ numRetries: number
1197
+ sqid: string
1198
+ maxRetries: number
1199
+
1200
+ /**
1201
+ * The arguments derived from the visualization given as argument
1202
+ * for the `createSaveDataJob` function
1203
+ */
1204
+ arguments: {
1205
+ toDate: ISODateString
1206
+ filename: string
1207
+ replyTz: string
1208
+ fromDate: string
1209
+ objectIndicatorSets: {object: string[]
1210
+ indicator: string[]}[]
1211
+ granularity: Granularity[] // must be a single value
1212
+ }
1213
+ /**
1214
+ * The place in the queue
1215
+ */
1216
+ priority: number
1217
+
1218
+ timeout: number
1219
+
1220
+ /**
1221
+ * currently can be just save_data
1222
+ */
1223
+ typeSqid: string
1224
+ }
1225
+
1226
+ export type Parameter = {
1227
+ id: string
1228
+ class: 'Parameter'
1229
+ parameter: {class: string; label: string; initial: unknown; value: unknown}
1230
+ }