@3e/sqa-common 7.4.0-2 → 7.4.0-5

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/types.ts DELETED
@@ -1,1314 +0,0 @@
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 | 404 | 409 | 500 | 501 | 502 | 503 | 505
606
- export type OKStatus = 200 | 201 | 202 | 203 | 204 | 206 | 205 | 207 | 208 | 226
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' | 'device'
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
- description?: string
917
- /**
918
- * @default "15-minutes"
919
- */
920
- granularity?: Granularity
921
- /**
922
- * @default "last-24-hours"
923
- */
924
- period?: Period
925
- }
926
-
927
- export interface VisualisationOptions {
928
- showLegend: boolean
929
- showTitle: boolean
930
- }
931
-
932
- /**
933
- * ISO local datetime string (YYYY-MM-DDTHH:mm:ss.SSS).
934
- */
935
- export type ISODateString = string
936
-
937
- export type ColorSchemeValue = 'scheme_blrd' | 'scheme_ylrdbl'
938
-
939
- export type ColorSettings =
940
- | {
941
- label: string
942
- value: string
943
- type: 'palette'
944
- colors: string[]
945
- }
946
- | {label: string; value: string; type: 'fixed'; color: string}
947
-
948
- export type ColorScheme = {
949
- value: ColorSchemeValue
950
- label: string
951
- type?: string
952
- stops?: [number, string][]
953
- }
954
-
955
- export type MeasurementsRowExtraInfo = {
956
- indicator?: {
957
- label: string
958
- indicator_label: string
959
- reference_label: string
960
- unit: string
961
- unit_key: string
962
- description: string
963
- key: string
964
- default_graphical_representation: string
965
- level: LevelValue
966
- }
967
- object?: {
968
- name: string
969
- level: LevelValue
970
- ref: string
971
- }
972
- }
973
-
974
- /**
975
- * Since in a table row the data is represented as: `[object-name, indicator1-value, indicator2-value, ...]`
976
- * while the indicators in the meta are: `[indicator1, indicator2, ...]`
977
- * 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.
978
- *
979
- *
980
- * For objects, the correct object index is the index of the full row
981
- */
982
- export type ObjectsTableMetaRowInfo = {
983
- indicators: {
984
- label: string
985
- indicator_label: string
986
- reference_label: string
987
- unit?: string
988
- unit_key: string
989
- description: string
990
- key: string
991
- default_graphical_representation: string
992
- level: LevelValue
993
- }[]
994
- objects: {
995
- name: string
996
- level: LevelValue
997
- ref: string
998
- label: string
999
- }[]
1000
- }
1001
-
1002
- export type TimeTableMetaRowInfo = {
1003
- [key: string]: {
1004
- indicator: Indicator
1005
- object: Object
1006
- }
1007
- }
1008
-
1009
- export type MeasurementsTable = {
1010
- meta: {
1011
- rows: MeasurementsRowExtraInfo[]
1012
- primaryObject: string
1013
- }
1014
- header: string[]
1015
- rows: (string | number | null)[][]
1016
- }
1017
-
1018
- export type HighChartsSpec = {
1019
- display: 'highcharts'
1020
- chart: {_SQ_: {type: ViewType}; zoomType: string; animation: boolean}
1021
- } & Highcharts.Options
1022
-
1023
- export type TableSpec = {
1024
- display: 'table'
1025
- meta?:
1026
- | {
1027
- type: 'time_table'
1028
- rows: TimeTableMetaRowInfo
1029
- }
1030
- | {
1031
- type: 'object_table'
1032
- rows: ObjectsTableMetaRowInfo
1033
- }
1034
- title?: string
1035
- header: string[]
1036
- rows: (number | string)[][]
1037
- }
1038
-
1039
- export type MessageSpec = {
1040
- display: 'message'
1041
- label: string
1042
- value: string
1043
- }
1044
- export type KPI = {
1045
- kpi: string
1046
- unit: string
1047
- description: string
1048
- value: string | number
1049
- }
1050
-
1051
- export type KPISpec = {
1052
- display: 'kpis'
1053
- title: {text: string}
1054
- object: Object
1055
- kpis: KPI[]
1056
- }
1057
-
1058
- export type VisualizationSpec =
1059
- | TableSpec
1060
- | MessageSpec
1061
- | HighChartsSpec
1062
- | KPISpec
1063
-
1064
- export interface Visualization {
1065
- data: {
1066
- datasets: Dataset[]
1067
- date_from: ISODateString
1068
- date_to: ISODateString
1069
- period_time_mode: string
1070
- clock_or_calendar_mode: string
1071
- granularity: Granularity
1072
- }
1073
- error?: boolean
1074
- options: VisualisationOptions
1075
- info: {title: string; type: ViewType; color_scheme: ColorSchemeValue}
1076
- values: {}
1077
- disableIncrementalUpdates: boolean
1078
- spec: VisualizationSpec
1079
- }
1080
-
1081
- export interface LdType {
1082
- sqid: string
1083
- ref: string
1084
- label: string
1085
- }
1086
-
1087
- export interface LDRoot {
1088
- sqid: string
1089
- ref: string
1090
- label: string
1091
- }
1092
-
1093
- export interface Model {
1094
- sqid: string
1095
- ref: string
1096
- label: string
1097
- }
1098
-
1099
- export interface LogicalDevice {
1100
- sqid: string
1101
- ld_type: string
1102
- ref: string
1103
- root: LDRoot
1104
- label: string
1105
- full_name: string
1106
- act_to: Date
1107
- act_from: Date
1108
- model: Model
1109
- }
1110
-
1111
- export interface Indicator {
1112
- default_graphical_representation: RepresentationValue
1113
- description: string
1114
- key: string
1115
- label: string
1116
- level: LevelValue
1117
- unit: string
1118
- unit_key: string
1119
- }
1120
-
1121
- export interface LDIndicator {
1122
- indicator_key: string
1123
- object_ref: string
1124
- unit: string
1125
- unit_key: string
1126
- }
1127
-
1128
- /**
1129
- * Options for representing the dataset
1130
- */
1131
-
1132
- export interface getDatasetsOptions {
1133
- resolveParameters: boolean
1134
- onError: "default" | "inline"
1135
- }
1136
-
1137
-
1138
- export interface DatasetOptions {
1139
- graphicalRepresentation?: string
1140
- id?: string
1141
- colorSetting?: ColorSettings
1142
- stacking?: StackingOptionValue
1143
- showNullsAs?: string
1144
- label?: string
1145
- }
1146
-
1147
- export interface DatasetTemplateSpec {
1148
- selectedLevel: string
1149
- selectedContainer?: string
1150
- selectedTemplate: string
1151
- }
1152
-
1153
- export interface Object {
1154
- name: string
1155
- level: LevelValue
1156
- ref: string
1157
- type: string
1158
- statistics?: {
1159
- median: number
1160
- mean: number
1161
- sum: number
1162
- min: number
1163
- max: number
1164
- }
1165
- }
1166
-
1167
- export interface ObjectSet {
1168
- template: string
1169
- level: string
1170
- objects: Object[]
1171
- }
1172
-
1173
- export interface UnitScale {
1174
- min?: any
1175
- max?: any
1176
- }
1177
-
1178
- export type Scaling = Record<string, UnitScale>
1179
-
1180
- export interface Dataset {
1181
- objects?: Object[]
1182
- colorSetting?: ColorSettings
1183
- indicators: Indicator[]
1184
- objectSet: ObjectSet
1185
- stacking: StackingOptionValue
1186
- showNullsAs?: any
1187
- representation: string
1188
- label?: unknown
1189
- id: string
1190
- scaling: Scaling
1191
- stack?: unknown
1192
- error?: unknown
1193
- idx: number
1194
- objectSetLabel: string
1195
- }
1196
-
1197
- // TODO: Better types for PacoViewParameters
1198
- export type PacoViewParameters = unknown
1199
-
1200
- type SaveDataJobStatus =
1201
- | {
1202
- status: 'terminated'
1203
- respResult: {downloadUrl: string}
1204
- completedTime: ISODateString
1205
- respStatus: number
1206
- }
1207
- | {status: 'running'}
1208
-
1209
- export type SaveDataJobResponse = SaveDataJobStatus & {
1210
- actorSqid: string
1211
- numRetries: number
1212
- sqid: string
1213
- maxRetries: number
1214
-
1215
- /**
1216
- * The arguments derived from the visualization given as argument
1217
- * for the `createSaveDataJob` function
1218
- */
1219
- arguments: {
1220
- toDate: ISODateString
1221
- filename: string
1222
- replyTz: string
1223
- fromDate: string
1224
- objectIndicatorSets: {
1225
- object: string[]
1226
- indicator: string[]
1227
- }[]
1228
- granularity: Granularity[] // must be a single value
1229
- }
1230
- /**
1231
- * The place in the queue
1232
- */
1233
- priority: number
1234
-
1235
- timeout: number
1236
-
1237
- /**
1238
- * currently can be just save_data
1239
- */
1240
- typeSqid: string
1241
- }
1242
-
1243
- export type PeriodParameter = {
1244
- id: 'Period'
1245
- class: 'Parameter'
1246
- parameter: {
1247
- class: 'Period'
1248
- label: 'Period'
1249
- initial: Period
1250
- }
1251
- }
1252
-
1253
- export type GranularityParameter = {
1254
- id: 'Granularity'
1255
- class: 'Parameter'
1256
- parameter: {
1257
- class: 'Granularity'
1258
- label: 'Granularity'
1259
- initial: Granularity
1260
- }
1261
- }
1262
-
1263
- /**
1264
- * Dynamic parameters for a view. Usually come with a initial value
1265
- * A view can only have only one object parameter. If the user attempts
1266
- * to add a 2nd object parameter, the operation will throw an error.
1267
- */
1268
- export type ObjectParameter = {
1269
- id: string
1270
- class: 'Parameter'
1271
- parameter: {
1272
- class: 'ObjectRef'
1273
- label: string
1274
- constraint: {
1275
- container?: string | null
1276
- object_category: ShortLDTypeValue
1277
- }
1278
- initial: ShortLDTypeValue
1279
- }
1280
- }
1281
-
1282
- /**
1283
- * Dynamic parameters for a view. Usually come with a initial value
1284
- * Can be modified by the user using:
1285
- * - sqa.common.setObjectParameter
1286
- * - sqa.common.setGranularityParameter
1287
- * - sqa.common.setPeriodParameter
1288
- */
1289
- export type Parameter = PeriodParameter | GranularityParameter | ObjectParameter
1290
-
1291
- export enum ViewExportFormat {
1292
- CSV = 'text/csv',
1293
- EXCEL = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
1294
- }
1295
-
1296
- export enum ViewExportLayout {
1297
- OBJECT_X_INDICATOR = 'object_x_indicator',
1298
- TIME_X_OBJECT_INDICATOR = 'time_x_object_indicator'
1299
- }
1300
-
1301
- export type SaveDataArguments = {
1302
- to_date: ISODateString
1303
- from_date: ISODateString
1304
- filename: string
1305
- 'reply-tz'?: TimezoneValue
1306
- object_indicator_sets: {
1307
- object: string[]
1308
- indicator: string[]
1309
- }[]
1310
- granularity: Granularity
1311
- format?: ViewExportFormat
1312
- compression?: "zip" | "none"
1313
- layout?: ViewExportLayout
1314
- }