@vidispine/vdt-js 23.2.0-pre.1 → 23.2.0
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/dist/index.d.ts +1469 -1376
- package/dist/index.js +1585 -214
- package/dist/index.umd.cjs +5 -0
- package/package.json +43 -34
- package/dist/index.es.js +0 -271
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,1376 +1,1469 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
type
|
|
165
|
-
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* @
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
*
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
* @
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
* @
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
*
|
|
387
|
-
* @
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
type
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
[
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
type
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
*
|
|
798
|
-
*
|
|
799
|
-
* @
|
|
800
|
-
*
|
|
801
|
-
*
|
|
802
|
-
* @
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
* @
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
*
|
|
818
|
-
*
|
|
819
|
-
* @param
|
|
820
|
-
* @returns A
|
|
821
|
-
*
|
|
822
|
-
* @category
|
|
823
|
-
*/
|
|
824
|
-
declare const
|
|
825
|
-
|
|
826
|
-
type
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
* @
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
*
|
|
1026
|
-
*
|
|
1027
|
-
*
|
|
1028
|
-
*
|
|
1029
|
-
*
|
|
1030
|
-
*
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
*/
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
*
|
|
1048
|
-
*
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
*
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
* @category
|
|
1059
|
-
*/
|
|
1060
|
-
declare const
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
readonly
|
|
1157
|
-
readonly
|
|
1158
|
-
readonly
|
|
1159
|
-
readonly
|
|
1160
|
-
readonly
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
readonly
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
type
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
*
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1208
|
-
* @
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
*/
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
*/
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Documentation of vdt-js
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { AudioComponentType } from '@vidispine/types';
|
|
8
|
+
import type { BinaryComponentType } from '@vidispine/types';
|
|
9
|
+
import type { ContainerComponentType } from '@vidispine/types';
|
|
10
|
+
import type { FacetType } from '@vidispine/types';
|
|
11
|
+
import type { FileType } from '@vidispine/types';
|
|
12
|
+
import type { ItemType } from '@vidispine/types';
|
|
13
|
+
import type { KeyValuePairType } from '@vidispine/types';
|
|
14
|
+
import type { MetadataFieldType } from '@vidispine/types';
|
|
15
|
+
import type { MetadataFieldValueType } from '@vidispine/types';
|
|
16
|
+
import type { MetadataGroupValueType } from '@vidispine/types';
|
|
17
|
+
import type { MetadataType } from '@vidispine/types';
|
|
18
|
+
import type { MetadataValueType } from '@vidispine/types';
|
|
19
|
+
import type { RationalType } from '@vidispine/types';
|
|
20
|
+
import type { SearchFacetType } from '@vidispine/types';
|
|
21
|
+
import type { SearchResultEntryTimespanType } from '@vidispine/types';
|
|
22
|
+
import type { ShapeType } from '@vidispine/types';
|
|
23
|
+
import type { SimpleMetadataType } from '@vidispine/types';
|
|
24
|
+
import type { TimeBaseType } from '@vidispine/types';
|
|
25
|
+
import type { TimeCodeType } from '@vidispine/types';
|
|
26
|
+
import type { TranscodePresetType } from '@vidispine/types';
|
|
27
|
+
import type { VideoComponentType } from '@vidispine/types';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Create a VidiCore metadata object from a more dense/simplified structure
|
|
31
|
+
*
|
|
32
|
+
* @param input To create VidiCore metadata object of
|
|
33
|
+
* @returns A VidiCore metadata object
|
|
34
|
+
*
|
|
35
|
+
* @category Metadata
|
|
36
|
+
*/
|
|
37
|
+
export declare const createMetadataType: (input: CreateMetadataTypeInput) => MetadataType;
|
|
38
|
+
|
|
39
|
+
export declare type CreateMetadataTypeInput = InputTimespan | InputTimespan[];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Create a Vidicore search facet list
|
|
43
|
+
*
|
|
44
|
+
* @param input array of field names or actual search facet objects
|
|
45
|
+
* @param options Options for creating the facet
|
|
46
|
+
* @returns A VidiCore facet list
|
|
47
|
+
*
|
|
48
|
+
* @category Search
|
|
49
|
+
*/
|
|
50
|
+
export declare const createSearchFacetList: (input?: CreateSearchFacetListInput, options?: Partial<CreateSearchFacetListOptions>) => SearchFacetType[];
|
|
51
|
+
|
|
52
|
+
export declare type CreateSearchFacetListInput = (string | SearchFacetType)[];
|
|
53
|
+
|
|
54
|
+
export declare type CreateSearchFacetListOptions = {
|
|
55
|
+
count?: boolean;
|
|
56
|
+
exclude?: boolean;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Create a TimeBase Instance from a number, string or object representation of a time base
|
|
61
|
+
*
|
|
62
|
+
* @param timeBase Input to create time base from
|
|
63
|
+
* @returns A TimeBase instance
|
|
64
|
+
*
|
|
65
|
+
* @category Time
|
|
66
|
+
*/
|
|
67
|
+
export declare const createTimeBase: (timeBase: TimeBaseInput | string | number) => TimeBase;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Create a TimeCode instance from smpte, seconds/samples, timeCode object or string
|
|
71
|
+
*
|
|
72
|
+
* @param timeCode Smpte, seconds/samples, timeCode object or string
|
|
73
|
+
* @param options For the format functions
|
|
74
|
+
* @returns A TimeCode instance
|
|
75
|
+
*
|
|
76
|
+
* @category Time
|
|
77
|
+
*/
|
|
78
|
+
export declare const createTimeCode: (timeCode: TimeCodeInput | string | number, options?: CreateTimeCodeOptions) => TimeCode;
|
|
79
|
+
|
|
80
|
+
export declare type CreateTimeCodeOptions = TimeCodeInputOptions | FormatTimeCodeSmpteOptions | FormatTimeCodeSecondsOptions | FormatTimeCodeTextOptions;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Const object with document types
|
|
84
|
+
*
|
|
85
|
+
* @category Shape
|
|
86
|
+
*/
|
|
87
|
+
export declare const DOCUMENT_TYPES: {
|
|
88
|
+
readonly PDF: "PDF";
|
|
89
|
+
readonly TEXT: "TEXT";
|
|
90
|
+
readonly MSWORD: "MSWORD";
|
|
91
|
+
readonly JSON: "JSON";
|
|
92
|
+
readonly XML: "XML";
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare type DocumentType_2 = keyof typeof DOCUMENT_TYPES;
|
|
96
|
+
export { DocumentType_2 as DocumentType }
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Array with all available metadata field attributes
|
|
100
|
+
*
|
|
101
|
+
* @category Metadata
|
|
102
|
+
*/
|
|
103
|
+
export declare const FIELD_ATTRIBUTE_KEYS: (keyof MetadataFieldValueType)[];
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Array with all VidiCore system field definition types
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* The `-noindex` and `-sortable` suffix for types has been replaced with boolean options in field definitions (since 4.1).
|
|
110
|
+
*
|
|
111
|
+
* @category Field
|
|
112
|
+
*/
|
|
113
|
+
export declare const FIELD_DEFINITION_TYPES: readonly ["date", "float", "integer", "long", "string", "string-exact", "boolean", "timeCode"];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Array with all available metadata field value attributes
|
|
117
|
+
*
|
|
118
|
+
* @category Metadata
|
|
119
|
+
*/
|
|
120
|
+
export declare const FIELD_VALUE_ATTRIBUTE_KEYS: (keyof MetadataValueType)[];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Const object with all file states in VidiCore
|
|
124
|
+
* (see https://apidoc.vidispine.com/latest/storage/storage.html#file-states for more info)
|
|
125
|
+
*
|
|
126
|
+
* @category File
|
|
127
|
+
*/
|
|
128
|
+
export declare const FILE_STATES: {
|
|
129
|
+
/** Just created, not used. */
|
|
130
|
+
readonly NONE: "NONE";
|
|
131
|
+
/** Discovered or created, not yet marked as finished. */
|
|
132
|
+
readonly OPEN: "OPEN";
|
|
133
|
+
/** File does no longer grow. */
|
|
134
|
+
readonly CLOSED: "CLOSED";
|
|
135
|
+
/** The current state is not known. */
|
|
136
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
137
|
+
/** File is missing from the file system/storage. */
|
|
138
|
+
readonly MISSING: "MISSING";
|
|
139
|
+
/** File has been missing for a longer period. Candidate for restoration from archive. */
|
|
140
|
+
readonly LOST: "LOST";
|
|
141
|
+
/** File will appear on file system/storage, transfer subsystem or transcoder will create it. */
|
|
142
|
+
readonly TO_APPEAR: "TO_APPEAR";
|
|
143
|
+
/** The file is no longer in use, and will be deleted at the next clean-up sweep. */
|
|
144
|
+
readonly TO_BE_DELETED: "TO_BE_DELETED";
|
|
145
|
+
/** File is in use by transfer subsystem or transcoder. */
|
|
146
|
+
readonly BEING_READ: "BEING_READ";
|
|
147
|
+
/** File is archived. */
|
|
148
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
149
|
+
/** File will be synchronized by multi-site agent. */
|
|
150
|
+
readonly AWAITING_SYNC: "AWAITING_SYNC";
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export declare type FileStateTypes = keyof typeof FILE_STATES;
|
|
154
|
+
|
|
155
|
+
export declare type FilteredShapeListObject = {
|
|
156
|
+
src: string;
|
|
157
|
+
type: string;
|
|
158
|
+
shape: ShapeType;
|
|
159
|
+
parsedShape: ParsedShapeType;
|
|
160
|
+
[key: string]: string | ParsedShapeType | ShapeType;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Filter a shape type list to get shapes that are playable in a browser
|
|
165
|
+
*
|
|
166
|
+
* @param itemType
|
|
167
|
+
* @param options
|
|
168
|
+
* @returns
|
|
169
|
+
*
|
|
170
|
+
* @category Shape
|
|
171
|
+
*/
|
|
172
|
+
export declare const filterShapeSource: (itemType: ItemType, options?: FilterShapeSourceOption) => FilteredShapeListObject[];
|
|
173
|
+
|
|
174
|
+
export declare type FilterShapeSourceOption = {
|
|
175
|
+
sortPriority?: Function;
|
|
176
|
+
allowedMimeTypes?: string[];
|
|
177
|
+
allowedMethods?: string[];
|
|
178
|
+
sourceKey?: string;
|
|
179
|
+
mimeTypeKey?: string;
|
|
180
|
+
shapeKey?: string;
|
|
181
|
+
parsedShapeKey?: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Find the thumbnail uri in a VidiCore item object that's nearest a timeCode
|
|
186
|
+
*
|
|
187
|
+
* @remarks
|
|
188
|
+
* Time code is included in path of VidiCore thumbnail uris
|
|
189
|
+
*
|
|
190
|
+
* @param itemType A VidiCore item object
|
|
191
|
+
* @param timeCode A timeCode to find nearest thumbnail to
|
|
192
|
+
* @returns A URI of a thumbnail, `undefined` if item has no thumbnails
|
|
193
|
+
*
|
|
194
|
+
* @category Thumbnail
|
|
195
|
+
*/
|
|
196
|
+
export declare const findNearestThumbnail: (itemType: ItemType, timeCode: TimeCode | TimeCodeInput) => string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Format a string representation of a time base to a TimeBase Instance
|
|
200
|
+
*
|
|
201
|
+
* @param timeBaseText The string to format to a TimeBase instance
|
|
202
|
+
* @returns A TimeBase Instance
|
|
203
|
+
*
|
|
204
|
+
* @category Time
|
|
205
|
+
*/
|
|
206
|
+
export declare const formatTimeBaseText: (timeBaseText?: string | number) => TimeBase;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Create a TimeBase instance of an object
|
|
210
|
+
*
|
|
211
|
+
* @param timeBase A TimeBase object
|
|
212
|
+
* @returns A TimeBase instance
|
|
213
|
+
*
|
|
214
|
+
* @category Time
|
|
215
|
+
*/
|
|
216
|
+
export declare const formatTimeBaseType: (timeBase: TimeBaseInput) => TimeBase;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Format seconds to TimeCode object
|
|
220
|
+
*
|
|
221
|
+
* @remarks
|
|
222
|
+
* Input time base is always considered as 1:1 since it expects seconds as input
|
|
223
|
+
*
|
|
224
|
+
* Note: Max 15 digits accuracy (double precision float64), e.g.
|
|
225
|
+
* - 10^6 seconds can have 10^9 decimals (nanosecond) precision
|
|
226
|
+
* - 10^9 seconds can have 10^6 decimals (microsecond) precision
|
|
227
|
+
* - 10^12 seconds can have 10^3 decimals (millisecond) precision
|
|
228
|
+
*
|
|
229
|
+
* @param seconds With or without decimals ("." and "," are both interpreted as decimal)
|
|
230
|
+
* @param options Options for how to format the seconds to a TimeCode
|
|
231
|
+
* @returns A TimeCode instance
|
|
232
|
+
*
|
|
233
|
+
* @category Time
|
|
234
|
+
*/
|
|
235
|
+
export declare const formatTimeCodeSeconds: (seconds: string | number, options?: FormatTimeCodeSecondsOptions) => TimeCode;
|
|
236
|
+
|
|
237
|
+
export declare interface FormatTimeCodeSecondsOptions extends TimeCodeInputOptions {
|
|
238
|
+
/**
|
|
239
|
+
* The TimeBase the output TimeCode should have
|
|
240
|
+
*
|
|
241
|
+
* Note: if unset and useGCD=false, denominator will be 10^(amount-of-decimals)
|
|
242
|
+
*/
|
|
243
|
+
timeBase?: number | string | TimeBaseInput;
|
|
244
|
+
/**
|
|
245
|
+
* Samples and denominator are divided with GCD
|
|
246
|
+
*
|
|
247
|
+
* e.g. `1.04 => 104@100 => 26@25` (if no explicit `timeBase` is set)
|
|
248
|
+
*/
|
|
249
|
+
useGCD?: boolean;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Format smpte text to a TimeCode Instance
|
|
254
|
+
*
|
|
255
|
+
* Options for `exceedingMode`:
|
|
256
|
+
* - `add` will be overflow to higher unit (e.g. PAL and 00:00:00:25 => 00:00:01:00)
|
|
257
|
+
* - `ignore` will be truncated (e.g. PAL and 00:00:00:25 => 00:00:00:24)
|
|
258
|
+
* - `error` will throw error (e.g. PAL and 00:00:00:25 => Error)
|
|
259
|
+
*
|
|
260
|
+
* @param smpte String representation of smpte
|
|
261
|
+
* @param options Options for creating the time code from smpte
|
|
262
|
+
* @returns TimeCode instance created from smpte string
|
|
263
|
+
*
|
|
264
|
+
* @category Time
|
|
265
|
+
*/
|
|
266
|
+
export declare const formatTimeCodeSmpte: (smpte: string, options?: FormatTimeCodeSmpteOptions) => TimeCode;
|
|
267
|
+
|
|
268
|
+
export declare interface FormatTimeCodeSmpteOptions extends TimeCodeInputOptions {
|
|
269
|
+
/** TimeBase of smpte (and consequently TimeBase of output TimeCode) */
|
|
270
|
+
timeBase?: number | string | TimeBaseInput;
|
|
271
|
+
/** How to handle exceeding values (default `error`) */
|
|
272
|
+
exceedingMode?: 'add' | 'ignore' | 'error';
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Format text to a TimeCode instance
|
|
277
|
+
*
|
|
278
|
+
* @returns A TimeCode instance
|
|
279
|
+
*
|
|
280
|
+
* @category Time
|
|
281
|
+
*/
|
|
282
|
+
export declare const formatTimeCodeText: (timeCodeText?: number | string, options?: FormatTimeCodeTextOptions) => TimeCode;
|
|
283
|
+
|
|
284
|
+
export declare interface FormatTimeCodeTextOptions extends TimeCodeInputOptions {
|
|
285
|
+
/** The time base the returned TimeCode should have */
|
|
286
|
+
timeBase?: number | string | TimeBaseInput;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Format an object to a TimeCode instance
|
|
291
|
+
*
|
|
292
|
+
* @param timeCode To create TimeCode instance of
|
|
293
|
+
* @param options For the TimeCode constructor
|
|
294
|
+
* @returns A TimeCode instance
|
|
295
|
+
*
|
|
296
|
+
* @category Time
|
|
297
|
+
*/
|
|
298
|
+
export declare const formatTimeCodeType: (timeCode: TimeCodeInput, options?: TimeCodeInputOptions) => TimeCode;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Return a const for the document type of a shape (looks at mimeType)
|
|
302
|
+
*
|
|
303
|
+
* @param shape A VidiCore shape
|
|
304
|
+
* @returns The document type for a shape
|
|
305
|
+
*
|
|
306
|
+
* @category Shape
|
|
307
|
+
*/
|
|
308
|
+
export declare const getShapeDocumentType: (shape?: ShapeType) => DocumentType_2;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Returns a const for which media type a shape has
|
|
312
|
+
*
|
|
313
|
+
* @param shape
|
|
314
|
+
* @returns
|
|
315
|
+
*
|
|
316
|
+
* @category Shape
|
|
317
|
+
*/
|
|
318
|
+
export declare const getShapeMediaType: (shape: ShapeType) => ShapeMediaType;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Array with all available metadata group attributes
|
|
322
|
+
*
|
|
323
|
+
* @category Metadata
|
|
324
|
+
*/
|
|
325
|
+
export declare const GROUP_ATTRIBUTE_KEYS: (keyof MetadataGroupValueType)[];
|
|
326
|
+
|
|
327
|
+
/** Input to create a field of */
|
|
328
|
+
export declare type InputField = InputFieldValue | InputFieldObject;
|
|
329
|
+
|
|
330
|
+
/** Input object to create field of */
|
|
331
|
+
export declare type InputFieldObject = {
|
|
332
|
+
value: InputFieldValue;
|
|
333
|
+
} & MetadataFieldValueType;
|
|
334
|
+
|
|
335
|
+
export declare type InputFieldValue = InputValueObject | InputValue | InputValueObject[] | InputValue[];
|
|
336
|
+
|
|
337
|
+
/** Input object to create group of */
|
|
338
|
+
export declare type InputGroup = {
|
|
339
|
+
[groupOrFieldName: string]: InputGroupsOrFields;
|
|
340
|
+
} & Partial<MetadataGroupValueType>;
|
|
341
|
+
|
|
342
|
+
/** Input to create one or multiple groups and/or fields of */
|
|
343
|
+
export declare type InputGroupsOrFields = InputGroup | InputGroup[] | InputField | InputField[];
|
|
344
|
+
|
|
345
|
+
/** Input to create a timespan of */
|
|
346
|
+
export declare type InputTimespan = {
|
|
347
|
+
/** Start for timespan */
|
|
348
|
+
start?: string | number;
|
|
349
|
+
/** End for timespan */
|
|
350
|
+
end?: string | number;
|
|
351
|
+
/** Base for timespan (typically undefined) */
|
|
352
|
+
base?: string;
|
|
353
|
+
/** Group or field metadata */
|
|
354
|
+
[groupOrFieldName: string]: InputGroupsOrFields;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
/** Possible input values for the field value */
|
|
358
|
+
export declare type InputValue = InputValueTypes | InputValueTypes[];
|
|
359
|
+
|
|
360
|
+
/** Input value object for the field value */
|
|
361
|
+
export declare type InputValueObject = {
|
|
362
|
+
value: string | InputValue;
|
|
363
|
+
} & Omit<MetadataValueType, 'value'>;
|
|
364
|
+
|
|
365
|
+
export declare type InputValueTypes = string | boolean | number | Date;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Convert metadata subtitle groups to WebVtt subtitles
|
|
369
|
+
*
|
|
370
|
+
* @param metadataType - Vidicore metadata object (should include subtitleGroup and subtitleField)
|
|
371
|
+
* @param options - options for how to map subtitle group
|
|
372
|
+
* @returns WebVtt subtitles
|
|
373
|
+
*
|
|
374
|
+
* @category Metadata
|
|
375
|
+
*/
|
|
376
|
+
export declare const metadataTypeToWebVtt: (metadataType: MetadataType, options?: MetadataTypeToWebVttOptions) => string;
|
|
377
|
+
|
|
378
|
+
export declare type MetadataTypeToWebVttOptions = {
|
|
379
|
+
/** Name of group containing subtitle field/text */
|
|
380
|
+
subtitleGroup?: string;
|
|
381
|
+
/** Name of field (text) to use for the subtitles */
|
|
382
|
+
subtitleField?: string;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Parses the technical information of a AudioComponentType.
|
|
387
|
+
* @param audioComponentType - A AudioComponentType from VidiCore.
|
|
388
|
+
* @returns Parsed component object.
|
|
389
|
+
*
|
|
390
|
+
* @category Shape
|
|
391
|
+
*/
|
|
392
|
+
export declare const parseAudioComponent: (audioComponentType: AudioComponentType) => ParsedAudioComponentType;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Parses the technical information of a BinaryComponentType.
|
|
396
|
+
* @param binaryComponentType - A BinaryComponentType from VidiCore.
|
|
397
|
+
* @returns Parsed component object.
|
|
398
|
+
*
|
|
399
|
+
* @category Shape
|
|
400
|
+
*/
|
|
401
|
+
export declare const parseBinaryComponent: (binaryComponentType?: BinaryComponentType) => ParsedBinaryComponentType;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Parses the technical information of a ContainerComponentType.
|
|
405
|
+
* @param containerComponentType - A ContainerComponentType from VidiCore.
|
|
406
|
+
* @returns Parsed component object.
|
|
407
|
+
*
|
|
408
|
+
* @category Shape
|
|
409
|
+
*/
|
|
410
|
+
export declare const parseContainerComponent: (containerComponentType?: ContainerComponentType) => ParsedContainerComponentType;
|
|
411
|
+
|
|
412
|
+
export declare type ParsedAudioComponentType = {
|
|
413
|
+
audioFormat?: string;
|
|
414
|
+
audioCodec?: string;
|
|
415
|
+
audioSamplerate?: string;
|
|
416
|
+
audioSamplerateSamples?: number;
|
|
417
|
+
audioBitDepth?: string;
|
|
418
|
+
audioBitrate?: string;
|
|
419
|
+
audioBitrateKbps?: number;
|
|
420
|
+
audioBitRateMode?: string;
|
|
421
|
+
audioChannels?: number;
|
|
422
|
+
audioMetadata?: {
|
|
423
|
+
[key: string]: string;
|
|
424
|
+
};
|
|
425
|
+
audioMediaInfo?: ParsedAudioMediaInfoType;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
export declare type ParsedAudioMediaInfoType = ParsedBaseMediaInfoType;
|
|
429
|
+
|
|
430
|
+
export declare type ParsedBaseMediaInfoType = {
|
|
431
|
+
Bit_rate_mode?: string;
|
|
432
|
+
Source?: string;
|
|
433
|
+
} & {
|
|
434
|
+
[key: string]: string;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
export declare type ParsedBinaryComponentType = {
|
|
438
|
+
binaryMetadata?: {
|
|
439
|
+
[key: string]: string;
|
|
440
|
+
};
|
|
441
|
+
binaryMediaInfo?: ParsedBinaryMediaInfoType;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export declare type ParsedBinaryMediaInfoType = ParsedBaseMediaInfoType;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Parsed container component
|
|
448
|
+
*/
|
|
449
|
+
export declare type ParsedContainerComponentType = {
|
|
450
|
+
containerFormat?: string;
|
|
451
|
+
videoFormat?: string;
|
|
452
|
+
audioFormat?: string;
|
|
453
|
+
textFormat?: string;
|
|
454
|
+
originalFilename?: string;
|
|
455
|
+
durationTimeCode?: TimeCodeType;
|
|
456
|
+
duration?: string;
|
|
457
|
+
startTimestamp?: TimeCodeType;
|
|
458
|
+
startTimecode?: TimeCodeType;
|
|
459
|
+
containerMetadata?: {
|
|
460
|
+
[key: string]: string;
|
|
461
|
+
};
|
|
462
|
+
containerMediaInfo?: ParsedBaseMediaInfoType;
|
|
463
|
+
} & ParsedFileType;
|
|
464
|
+
|
|
465
|
+
export declare type ParsedFacetList = {
|
|
466
|
+
facetName?: string;
|
|
467
|
+
fieldName?: string;
|
|
468
|
+
count?: {
|
|
469
|
+
[fieldValue: string]: number;
|
|
470
|
+
};
|
|
471
|
+
range?: {
|
|
472
|
+
start: number | string;
|
|
473
|
+
end: number | string;
|
|
474
|
+
count: number;
|
|
475
|
+
}[];
|
|
476
|
+
}[];
|
|
477
|
+
|
|
478
|
+
/** Parsed facet type */
|
|
479
|
+
export declare type ParsedFacetType = {
|
|
480
|
+
[fieldName: string]: ParsedFacetTypeCount;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
export declare type ParsedFacetTypeCount = {
|
|
484
|
+
[fieldValue: string]: number;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
export declare type ParsedField<TOptions> = TOptions extends {
|
|
488
|
+
includeFieldAttributes?: false;
|
|
489
|
+
} ? ParsedValueList<TOptions> : ParsedFieldObject<TOptions>;
|
|
490
|
+
|
|
491
|
+
export declare type ParsedFieldAttributes = Partial<Omit<MetadataFieldValueType, 'value'>>;
|
|
492
|
+
|
|
493
|
+
declare type ParsedFieldDefinition = {
|
|
494
|
+
name?: string;
|
|
495
|
+
type?: string;
|
|
496
|
+
defaultValue?: string;
|
|
497
|
+
restrictions?: {
|
|
498
|
+
min?: number;
|
|
499
|
+
max?: number;
|
|
500
|
+
minLength?: number;
|
|
501
|
+
maxLength?: number;
|
|
502
|
+
pattern?: RegExp;
|
|
503
|
+
};
|
|
504
|
+
required?: boolean;
|
|
505
|
+
data?: {
|
|
506
|
+
[key: string]: string;
|
|
507
|
+
};
|
|
508
|
+
options?: Array<{
|
|
509
|
+
label: string;
|
|
510
|
+
value: string;
|
|
511
|
+
}>;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export declare type ParsedFieldDefinitionList = ParsedFieldDefinition[];
|
|
515
|
+
|
|
516
|
+
export declare type ParsedFieldList<TOptions> = TOptions extends {
|
|
517
|
+
fieldAsList?: true;
|
|
518
|
+
} ? ParsedField<TOptions>[] : TOptions extends {
|
|
519
|
+
arrayOnSingle?: true;
|
|
520
|
+
arrayOnSingleField?: undefined | true;
|
|
521
|
+
} | {
|
|
522
|
+
arrayOnSingleField?: true;
|
|
523
|
+
} ? {
|
|
524
|
+
[name: string]: ParsedField<TOptions>[];
|
|
525
|
+
} : TOptions extends {
|
|
526
|
+
flat?: true;
|
|
527
|
+
overrideField?: true | undefined;
|
|
528
|
+
} | {
|
|
529
|
+
overrideField?: true;
|
|
530
|
+
} ? {
|
|
531
|
+
[name: string]: ParsedField<TOptions>;
|
|
532
|
+
} : {
|
|
533
|
+
[name: string]: ParsedField<TOptions> | ParsedField<TOptions>[];
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
export declare type ParsedFieldObject<TOptions> = {
|
|
537
|
+
value: ParsedValueList<TOptions>;
|
|
538
|
+
} & ParsedFieldAttributes;
|
|
539
|
+
|
|
540
|
+
export declare type ParsedFileType = {
|
|
541
|
+
uri?: string;
|
|
542
|
+
hash?: string;
|
|
543
|
+
fileSize?: string;
|
|
544
|
+
fileSizeBytes?: number;
|
|
545
|
+
path?: string;
|
|
546
|
+
fileName?: string;
|
|
547
|
+
fileId?: string;
|
|
548
|
+
storageId?: string;
|
|
549
|
+
folderPath?: string;
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
export declare type ParsedGroup<TOptions> = ((TOptions extends {
|
|
553
|
+
groupAsList?: true;
|
|
554
|
+
} ? {
|
|
555
|
+
group?: ParsedGroupList<TOptions>;
|
|
556
|
+
} : {
|
|
557
|
+
[name: string]: ParsedGroupList<TOptions>;
|
|
558
|
+
}) & (TOptions extends {
|
|
559
|
+
fieldAsList?: true;
|
|
560
|
+
} ? {
|
|
561
|
+
field?: ParsedFieldList<TOptions>;
|
|
562
|
+
} : {
|
|
563
|
+
[name: string]: ParsedFieldList<TOptions>;
|
|
564
|
+
})) & ParsedGroupAttributes;
|
|
565
|
+
|
|
566
|
+
export declare type ParsedGroupAttributes = Omit<MetadataGroupValueType, 'field' | 'group'>;
|
|
567
|
+
|
|
568
|
+
export declare type ParsedGroupList<TOptions> = TOptions extends {
|
|
569
|
+
groupAsList?: true;
|
|
570
|
+
} ? ParsedGroup<TOptions>[] : TOptions extends {
|
|
571
|
+
arrayOnSingle?: true;
|
|
572
|
+
arrayOnSingleGroup?: true | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
arrayOnSingleGroup?: true;
|
|
575
|
+
} ? {
|
|
576
|
+
[groupName: string]: ParsedGroup<TOptions>[];
|
|
577
|
+
} : TOptions extends {
|
|
578
|
+
flat?: true;
|
|
579
|
+
overrideGroup?: true | undefined;
|
|
580
|
+
} | {
|
|
581
|
+
overrideGroup?: true;
|
|
582
|
+
} ? {
|
|
583
|
+
[groupName: string]: ParsedGroup<TOptions>;
|
|
584
|
+
} : {
|
|
585
|
+
[groupName: string]: ParsedGroup<TOptions> | ParsedGroup<TOptions>[];
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
export declare type ParsedHighlightTimespan = {
|
|
589
|
+
start?: string;
|
|
590
|
+
end?: string;
|
|
591
|
+
[key: string]: string | string[];
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* TODO
|
|
596
|
+
*/
|
|
597
|
+
export declare type ParsedMediaConvertTranscodePreset = {
|
|
598
|
+
description?: string;
|
|
599
|
+
containerFormat?: any;
|
|
600
|
+
videoFormat?: string;
|
|
601
|
+
height?: number;
|
|
602
|
+
width?: number;
|
|
603
|
+
dimension?: string;
|
|
604
|
+
aspectRatio?: string;
|
|
605
|
+
fieldOrder?: string;
|
|
606
|
+
videoBitrate?: number;
|
|
607
|
+
timeBase?: TimeBase;
|
|
608
|
+
frameRate?: string | number;
|
|
609
|
+
audioFormat?: string;
|
|
610
|
+
audioSamplerate?: string;
|
|
611
|
+
audioBitrate?: string;
|
|
612
|
+
audioBitRateMode?: string;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export declare type ParsedMetadataAttributes = Partial<Omit<MetadataType, 'timespan' | 'revision'> & {
|
|
616
|
+
revision?: string[];
|
|
617
|
+
}>;
|
|
618
|
+
|
|
619
|
+
export declare type ParsedMetadataType<TOptions> = (TOptions extends {
|
|
620
|
+
timespanAsList?: true;
|
|
621
|
+
} ? {
|
|
622
|
+
timespan: ParsedTimespanList<TOptions>;
|
|
623
|
+
} : TOptions extends {
|
|
624
|
+
flat?: true;
|
|
625
|
+
} ? ParsedTimespanList<TOptions> : {
|
|
626
|
+
[timespanKey: string]: ParsedTimespanList<TOptions>;
|
|
627
|
+
}) & (TOptions extends {
|
|
628
|
+
includeMetadataAttributes?: true | string[];
|
|
629
|
+
} ? ParsedMetadataAttributes : {});
|
|
630
|
+
|
|
631
|
+
export declare type ParsedShapeType = {
|
|
632
|
+
uri?: string;
|
|
633
|
+
tag?: string;
|
|
634
|
+
mimeType?: string;
|
|
635
|
+
} & ParsedContainerComponentType & ParsedBinaryComponentType & ParsedAudioComponentType & ParsedVideoComponentType;
|
|
636
|
+
|
|
637
|
+
export declare type ParsedTimespan<TOptions> = ((TOptions extends {
|
|
638
|
+
groupAsList?: true;
|
|
639
|
+
} ? {
|
|
640
|
+
group?: ParsedGroupList<TOptions>;
|
|
641
|
+
} : {
|
|
642
|
+
[name: string]: ParsedGroupList<TOptions>;
|
|
643
|
+
}) & (TOptions extends {
|
|
644
|
+
fieldAsList?: true;
|
|
645
|
+
} ? {
|
|
646
|
+
field?: ParsedFieldList<TOptions>;
|
|
647
|
+
} : {
|
|
648
|
+
[name: string]: ParsedFieldList<TOptions>;
|
|
649
|
+
})) & ParsedTimespanAttributes;
|
|
650
|
+
|
|
651
|
+
export declare type ParsedTimespanAttributes = Omit<MetadataType['timespan'][number], 'field' | 'group'>;
|
|
652
|
+
|
|
653
|
+
export declare type ParsedTimespanList<TOptions> = TOptions extends {
|
|
654
|
+
timespanAsList?: true;
|
|
655
|
+
} ? ParsedTimespan<TOptions>[] : TOptions extends {
|
|
656
|
+
flat?: true;
|
|
657
|
+
onlyGeneric?: true | undefined;
|
|
658
|
+
} | {
|
|
659
|
+
onlyGeneric?: true;
|
|
660
|
+
} ? ParsedTimespan<TOptions> : {
|
|
661
|
+
[timespanKey: string]: ParsedTimespan<TOptions>[];
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
export declare type ParsedTranscodePreset = {
|
|
665
|
+
description?: string;
|
|
666
|
+
containerFormat?: any;
|
|
667
|
+
videoFormat?: string;
|
|
668
|
+
height?: number;
|
|
669
|
+
width?: number;
|
|
670
|
+
dimension?: string;
|
|
671
|
+
aspectRatio?: string;
|
|
672
|
+
fieldOrder?: string;
|
|
673
|
+
videoBitrate?: number;
|
|
674
|
+
timeBase?: TimeBase;
|
|
675
|
+
frameRate?: string | number;
|
|
676
|
+
audioFormat?: string;
|
|
677
|
+
audioSamplerate?: string;
|
|
678
|
+
audioBitrate?: string;
|
|
679
|
+
audioBitRateMode?: string;
|
|
680
|
+
audioChannels?: number;
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
export declare type ParsedValue<TOptions> = TOptions extends {
|
|
684
|
+
includeValueAttributes?: false;
|
|
685
|
+
} ? string : {
|
|
686
|
+
value: string;
|
|
687
|
+
} & ParsedValueAttributes;
|
|
688
|
+
|
|
689
|
+
export declare type ParsedValueAttributes = Partial<Omit<MetadataValueType, 'value'>>;
|
|
690
|
+
|
|
691
|
+
export declare type ParsedValueList<TOptions> = TOptions extends {
|
|
692
|
+
joinValue?: string;
|
|
693
|
+
includeValueAttributes?: false;
|
|
694
|
+
} ? string : TOptions extends {
|
|
695
|
+
arrayOnSingleValue?: true;
|
|
696
|
+
} ? ParsedValue<TOptions>[] : ParsedValue<TOptions> | ParsedValue<TOptions>[];
|
|
697
|
+
|
|
698
|
+
export declare type ParsedVideoComponentType = {
|
|
699
|
+
videoFormat?: string;
|
|
700
|
+
dimension?: string;
|
|
701
|
+
frameRate?: string | number;
|
|
702
|
+
height?: number;
|
|
703
|
+
width?: number;
|
|
704
|
+
timeBase?: TimeBase;
|
|
705
|
+
timeCode?: TimeCode;
|
|
706
|
+
videoCodec?: string;
|
|
707
|
+
smpte?: string;
|
|
708
|
+
videoBitrate?: string;
|
|
709
|
+
videoBitrateMbps?: number;
|
|
710
|
+
fieldOrder?: string;
|
|
711
|
+
colorSpace?: string;
|
|
712
|
+
chromaSubsampling?: string;
|
|
713
|
+
aspectRatio?: string;
|
|
714
|
+
colorPrimaries?: string;
|
|
715
|
+
videoMetadata?: {
|
|
716
|
+
[key: string]: string;
|
|
717
|
+
};
|
|
718
|
+
videoMediaInfo?: ParsedVideoMediaInfoType;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
export declare type ParsedVideoMediaInfoType = ParsedBaseMediaInfoType & {
|
|
722
|
+
Format_Settings_GOP?: string;
|
|
723
|
+
intra_dc_precision?: string;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Parse a VidiCore facet list
|
|
728
|
+
*
|
|
729
|
+
* @param facetType A facet list to parse
|
|
730
|
+
* @returns A parsed facet list
|
|
731
|
+
*
|
|
732
|
+
* @category Search
|
|
733
|
+
*/
|
|
734
|
+
export declare const parseFacetList: (facetList?: FacetType[]) => ParsedFacetList;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Parse a VidiCore facet type list
|
|
738
|
+
*
|
|
739
|
+
* @param facetType A facet type list to parse
|
|
740
|
+
* @returns A parsed facet type list
|
|
741
|
+
*
|
|
742
|
+
* @category Search
|
|
743
|
+
*/
|
|
744
|
+
export declare const parseFacetType: (facetType?: FacetType[]) => ParsedFacetType;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Parse a metadata field definition list
|
|
748
|
+
*
|
|
749
|
+
* @remarks
|
|
750
|
+
* - `values` are parsed to an options array (as `[{ label, value }, ...]`)
|
|
751
|
+
* - Include values using the `includeValues: true` query parameter
|
|
752
|
+
* - `restrictions.required` is parsed from restrictions having defined minInclusive or minLength > 0
|
|
753
|
+
*
|
|
754
|
+
* @param fieldList Field definition list to parse
|
|
755
|
+
* @returns A parsed field list
|
|
756
|
+
*
|
|
757
|
+
* @category Field
|
|
758
|
+
*/
|
|
759
|
+
export declare const parseFieldDefinitionList: (fieldList: MetadataFieldType[]) => ParsedFieldDefinitionList;
|
|
760
|
+
|
|
761
|
+
export declare type ParseFieldDefinitionListOptions = {};
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Parse a metadata field list according to selected options
|
|
765
|
+
*
|
|
766
|
+
* @remarks
|
|
767
|
+
* When parsing duplicate fields (same field name in the same field list) it will:
|
|
768
|
+
* - with default options: combine field values to one array within the same field name key
|
|
769
|
+
* - with `joinValue` enabled: join values within each field (returns array with string for each field value)
|
|
770
|
+
* - with `fieldAsList` enabled: separate fields in the list/array (as usual, even if not duplicate)
|
|
771
|
+
* - with `includeFieldAttributes` enabled: return an array of field objects
|
|
772
|
+
* - with `overrideField` enabled: return the latest duplicated field it parses
|
|
773
|
+
*
|
|
774
|
+
* @param fieldList Field list to parse
|
|
775
|
+
* @param [options=defaultOptions] Options for how to parse the field list
|
|
776
|
+
* @returns A parsed field list
|
|
777
|
+
*
|
|
778
|
+
* @category Metadata
|
|
779
|
+
*/
|
|
780
|
+
export declare const parseFieldList: <TOptions extends ParseFieldListOptions = ParseFieldListOptions>(fieldList: MetadataFieldValueType[], options?: TOptions) => ParsedFieldList<TOptions>;
|
|
781
|
+
|
|
782
|
+
export declare interface ParseFieldListOptions extends ParseFieldOptions {
|
|
783
|
+
/** Return fields as list */
|
|
784
|
+
fieldAsList?: boolean;
|
|
785
|
+
/** Return fields as array even if only one field */
|
|
786
|
+
arrayOnSingleField?: boolean;
|
|
787
|
+
/** Return all fields flattened (Note: keys might be overridden) */
|
|
788
|
+
overrideField?: boolean;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export declare interface ParseFieldOptions extends ParseValueListOptions {
|
|
792
|
+
/** Include attributes on field (`true` for all) */
|
|
793
|
+
includeFieldAttributes?: boolean | (keyof ParsedFieldAttributes)[];
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Parses a VidiCore file object
|
|
798
|
+
*
|
|
799
|
+
* @remarks
|
|
800
|
+
* File sizes are parsed with JEDEC standard (base 2)
|
|
801
|
+
*
|
|
802
|
+
* @param fileType VidiCore file object
|
|
803
|
+
* @returns A parsed file object
|
|
804
|
+
*
|
|
805
|
+
* @category File
|
|
806
|
+
*/
|
|
807
|
+
export declare const parseFileType: (fileType: FileType) => ParsedFileType;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Parse a metadata group list according to selected options
|
|
811
|
+
*
|
|
812
|
+
* @remarks
|
|
813
|
+
* Parsing duplicate groups (same group name in the same group list) it will:
|
|
814
|
+
* - with default options: combine group objects to one array within the same group name key
|
|
815
|
+
* - with `groupAsList` enabled: return separate group objects in a list/array (as usual, even if not duplicate)
|
|
816
|
+
* - with `overrideGroup` enabled: return the latest duplicated group it parses
|
|
817
|
+
*
|
|
818
|
+
* @param groupList Group list to parse
|
|
819
|
+
* @param options options for how to parse list
|
|
820
|
+
* @returns A parsed group list
|
|
821
|
+
*
|
|
822
|
+
* @category Metadata
|
|
823
|
+
*/
|
|
824
|
+
export declare const parseGroupList: <TOptions extends ParseGroupOptions = ParseGroupOptions>(groupList: MetadataGroupValueType[], options?: TOptions) => ParsedGroupList<TOptions>;
|
|
825
|
+
|
|
826
|
+
export declare type ParseGroupListOptions = ParseGroupOptions;
|
|
827
|
+
|
|
828
|
+
export declare interface ParseGroupOptions extends ParseFieldListOptions {
|
|
829
|
+
/** Include group attributes (`true` for all) */
|
|
830
|
+
includeGroupAttributes?: boolean | (keyof ParsedGroupAttributes)[];
|
|
831
|
+
/** Return groups as list */
|
|
832
|
+
groupAsList?: boolean;
|
|
833
|
+
/** Return groups as array even if only one group */
|
|
834
|
+
arrayOnSingleGroup?: boolean;
|
|
835
|
+
/** Return all groups flattened (Note: keys might be overridden) */
|
|
836
|
+
overrideGroup?: boolean;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Parses highlight timespan in VidiCore into key/value object.
|
|
841
|
+
* The attributes can be targeted for each sub-type.
|
|
842
|
+
* @param timespan - A VidiCore search timespan
|
|
843
|
+
* @param options - Options which change how the timespans are parsed
|
|
844
|
+
*
|
|
845
|
+
* @category Search
|
|
846
|
+
*/
|
|
847
|
+
export declare const parseHighlightTimespan: (timespan: SearchResultEntryTimespanType, options: ParseHighlightTimespanOptions) => ParsedHighlightTimespan;
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Parses highlight timespans from VidiCore into key/value object.
|
|
851
|
+
* The attributes can be targeted for each sub-type.
|
|
852
|
+
*
|
|
853
|
+
* @param highlightTimespanList - A list of timespans from VidiCore.
|
|
854
|
+
* @param options - Options to change how the timespans are parsed
|
|
855
|
+
*
|
|
856
|
+
* @category Search
|
|
857
|
+
*/
|
|
858
|
+
export declare const parseHighlightTimespanList: (highlightTimespanList?: SearchResultEntryTimespanType[], options?: ParseHighlightTimespanListOptions) => ParsedHighlightTimespan | ParsedHighlightTimespan[];
|
|
859
|
+
|
|
860
|
+
export declare interface ParseHighlightTimespanListOptions extends ParseHighlightTimespanOptions {
|
|
861
|
+
/** Return parsed timespan as list (in an array) */
|
|
862
|
+
timespanAsList?: boolean;
|
|
863
|
+
/** Character to join the start/end time codes with */
|
|
864
|
+
joinTimespan?: string;
|
|
865
|
+
/** Flatten to field-name/field-value (Note: field-values may be overwritten) */
|
|
866
|
+
flat?: boolean;
|
|
867
|
+
/** Flatten timespan to object with start/end as key */
|
|
868
|
+
flatTimespan?: boolean;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export declare type ParseHighlightTimespanOptions = {
|
|
872
|
+
/** Return an array if there is a single value */
|
|
873
|
+
arrayOnSingle?: boolean;
|
|
874
|
+
/** Return timespans as list */
|
|
875
|
+
timespanAsList?: boolean;
|
|
876
|
+
/** String to join the values (e.g. `,`) */
|
|
877
|
+
joinValue?: string;
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @param keyValuePairTypes
|
|
883
|
+
* @returns
|
|
884
|
+
*
|
|
885
|
+
* @category Other
|
|
886
|
+
*/
|
|
887
|
+
export declare const parseKeyValuePairType: (keyValuePairTypes: KeyValuePairType[]) => {
|
|
888
|
+
[k: string]: string;
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* TODO
|
|
893
|
+
*
|
|
894
|
+
* @param mediaconvert
|
|
895
|
+
* @returns
|
|
896
|
+
*
|
|
897
|
+
* @category Transcode
|
|
898
|
+
*/
|
|
899
|
+
export declare const parseMediaConvertPreset: (mediaconvert: TranscodePresetType['mediaconvert']) => ParsedMediaConvertTranscodePreset;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Parses MetadataType according to specified options
|
|
903
|
+
*
|
|
904
|
+
* @remarks
|
|
905
|
+
* Be aware that you need to take into account that the returned groups and fields can be an array if it has multiple values or groups/fields with same name.
|
|
906
|
+
* If you are certain your metadata type won't return multiple groups/fields/values with same name or don't mind that they _might_ be overridden:
|
|
907
|
+
* you can use the option `flat` along with `joinValue` or `arrayOnSingleValue: false`.
|
|
908
|
+
*
|
|
909
|
+
* @param metadataType - A MetadataType from VidiCore
|
|
910
|
+
* @param options - Options which change how the metadataType is parsed
|
|
911
|
+
* @returns Metadata object parsed according to options
|
|
912
|
+
*
|
|
913
|
+
* @see {@link parseTimespanList} for more info
|
|
914
|
+
*
|
|
915
|
+
* @category Metadata
|
|
916
|
+
*/
|
|
917
|
+
export declare function parseMetadataType<TOptions extends ParseMetadataTypeOptions = ParseMetadataTypeOptions>(metadataType: MetadataType, options?: TOptions): ParsedMetadataType<TOptions>;
|
|
918
|
+
|
|
919
|
+
export declare interface ParseMetadataTypeOptions extends ParseTimespanListOptions {
|
|
920
|
+
/** Include metadata attributes (`true` for all) */
|
|
921
|
+
includeMetadataAttributes?: boolean | (keyof ParsedMetadataAttributes)[];
|
|
922
|
+
/** Flatten timespans, groups and fields (Note: keys might be overridden) */
|
|
923
|
+
flat?: boolean;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Parse Vidicore "NOW" constants to a date object
|
|
928
|
+
*
|
|
929
|
+
* Format: `NOW[+/-][number][HOUR/DAY/MONTH/YEAR(s)]` (e.g. "NOW-2HOURS")
|
|
930
|
+
*
|
|
931
|
+
* @remarks
|
|
932
|
+
* Returns an approximate date since it's created client side
|
|
933
|
+
*
|
|
934
|
+
* @param value A "NOW" constant
|
|
935
|
+
* @returns A date from the NOW constant
|
|
936
|
+
*
|
|
937
|
+
* @category Search
|
|
938
|
+
*/
|
|
939
|
+
export declare const parseNowDate: (value?: string) => Date;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Parses the technical information of a ShapeType and its various components.
|
|
943
|
+
*
|
|
944
|
+
* Will only parse the first videoComponent, audioComponent, binaryComponent in the corresponding array.
|
|
945
|
+
* To parse a selected component see:
|
|
946
|
+
* - {@link parseContainerComponent}
|
|
947
|
+
* - {@link parseVideoComponent}
|
|
948
|
+
* - {@link parseAudioComponent}
|
|
949
|
+
* - {@link parseBinaryComponent}
|
|
950
|
+
* @param shapeType - A ShapeType from VidiCore.
|
|
951
|
+
* @returns Parsed shape object.
|
|
952
|
+
*
|
|
953
|
+
* @category Shape
|
|
954
|
+
*/
|
|
955
|
+
export declare const parseShapeType: (shapeType?: ShapeType) => ParsedShapeType;
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Parse simple (key/value) metadata
|
|
959
|
+
*
|
|
960
|
+
* Not indexed metadata, available on almost all entities (storages, library, user, group, etc...)
|
|
961
|
+
*
|
|
962
|
+
* @param simpleMetadataType A VidiCore simple metadata object
|
|
963
|
+
* @returns A parsed simple metadata object
|
|
964
|
+
*
|
|
965
|
+
* @category Metadata
|
|
966
|
+
*/
|
|
967
|
+
export declare const parseSimpleMetadataType: (simpleMetadataType: SimpleMetadataType) => {
|
|
968
|
+
[key: string]: string;
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
*
|
|
973
|
+
* Parses timespan according to specified options
|
|
974
|
+
*
|
|
975
|
+
* @remarks
|
|
976
|
+
* To ensure a flat (no array) representation when using `flat: true`, the parser will also set `overrideGroup` and `overrideField` to true (unless those are explicitly set false)
|
|
977
|
+
*
|
|
978
|
+
* @param timespan - A VidiCore metadata timespan
|
|
979
|
+
* @param options - Options to change how it is parsed
|
|
980
|
+
* @returns Timespan parsed according to options
|
|
981
|
+
*
|
|
982
|
+
* @see {@link parseGroupList} and {@link parseFieldList} for more info
|
|
983
|
+
*
|
|
984
|
+
* @category Metadata
|
|
985
|
+
*/
|
|
986
|
+
export declare const parseTimespan: <TOptions extends ParseTimespanOptions = ParseTimespanOptions>(timespan: MetadataType['timespan'][number], options?: TOptions) => ParsedTimespan<TOptions>;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Parses timespanList according to specified options.
|
|
990
|
+
* The attributes can be targeted for each sub-type.
|
|
991
|
+
*
|
|
992
|
+
* @param timespanList - A Vidicore metadata timespan list
|
|
993
|
+
* @param options - Options which change how the metadataType is parsed.
|
|
994
|
+
* @returns Timespan list parsed according to options
|
|
995
|
+
*
|
|
996
|
+
* @see {@link parseTimespan} for more info
|
|
997
|
+
*
|
|
998
|
+
* @category Metadata
|
|
999
|
+
*/
|
|
1000
|
+
export declare const parseTimespanList: <TOptions extends ParseTimespanListOptions = ParseTimespanListOptions>(timespanList: MetadataType['timespan'], options?: TOptions) => ParsedTimespanList<TOptions>;
|
|
1001
|
+
|
|
1002
|
+
export declare interface ParseTimespanListOptions extends ParseTimespanOptions {
|
|
1003
|
+
/** Return timespans as list */
|
|
1004
|
+
timespanAsList?: boolean;
|
|
1005
|
+
/** String to join timespans with (defaults to '_') */
|
|
1006
|
+
joinTimespan?: string;
|
|
1007
|
+
/** Sort timespanList by ascending start then end time */
|
|
1008
|
+
sortTimespan?: boolean;
|
|
1009
|
+
/** Return a flat representation - only one timespan with groups/fields named the same as single - of the timespan list (Note: timespans/fields/groups can be overridden) */
|
|
1010
|
+
flat?: boolean;
|
|
1011
|
+
/** Flatten timespans to one object with generic timespan having highest priority (Note: fields/groups might be overridden) */
|
|
1012
|
+
flatTimespan?: boolean;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export declare interface ParseTimespanOptions extends ParseGroupListOptions {
|
|
1016
|
+
/** Include attributes on timespan (`true` for all) */
|
|
1017
|
+
includeTimespanAttributes?: boolean | (keyof ParsedTimespanAttributes)[];
|
|
1018
|
+
/** Return groups, fields, and values as array */
|
|
1019
|
+
arrayOnSingle?: boolean;
|
|
1020
|
+
/** Flatten timespan, groups and fields (Note: keys might be overridden) */
|
|
1021
|
+
flat?: boolean;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Parse a VidiCore transcode preset
|
|
1026
|
+
*
|
|
1027
|
+
* @param transcodePresetType a VidiCore transcode preset
|
|
1028
|
+
* @returns A parsed transcode preset
|
|
1029
|
+
*
|
|
1030
|
+
* @category Transcode
|
|
1031
|
+
*/
|
|
1032
|
+
export declare const parseTranscodePreset: (transcodePresetType: TranscodePresetType) => ParsedTranscodePreset;
|
|
1033
|
+
|
|
1034
|
+
export declare interface ParseValueListOptions extends ParseValueOptions {
|
|
1035
|
+
/** String to join the values, (e.g. `,`) */
|
|
1036
|
+
joinValue?: string;
|
|
1037
|
+
/** Return values as array even if single value */
|
|
1038
|
+
arrayOnSingleValue?: boolean;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
export declare type ParseValueOptions = {
|
|
1042
|
+
/** Include attributes on value (`true` for all) */
|
|
1043
|
+
includeValueAttributes?: boolean | (keyof ParsedValueAttributes)[];
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Parses the technical information of a VideoComponentType.
|
|
1048
|
+
* @param {Object} videoComponentType - A VideoComponentType from VidiCore.
|
|
1049
|
+
* @returns {Object} Parsed component object.
|
|
1050
|
+
*
|
|
1051
|
+
* @category Shape
|
|
1052
|
+
*/
|
|
1053
|
+
export declare const parseVideoComponent: (videoComponentType?: VideoComponentType) => ParsedVideoComponentType;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Const object with VidiCore role names
|
|
1057
|
+
*
|
|
1058
|
+
* @category Auth
|
|
1059
|
+
*/
|
|
1060
|
+
export declare const ROLE_NAMES: {
|
|
1061
|
+
readonly ACCESSCONTROL_READ: "_accesscontrol_read";
|
|
1062
|
+
readonly ACCESSCONTROL_WRITE: "_accesscontrol_write";
|
|
1063
|
+
readonly ADMINISTRATOR: "_administrator";
|
|
1064
|
+
readonly AUTO_PROJECTION_READ: "_auto_projection_read";
|
|
1065
|
+
readonly AUTO_PROJECTION_WRITE: "_auto_projection_write";
|
|
1066
|
+
readonly COLLECTION_NOTIFICATION_READ: "_collection_notification_read";
|
|
1067
|
+
readonly COLLECTION_NOTIFICATION_WRITE: "_collection_notification_write";
|
|
1068
|
+
readonly COLLECTION_READ: "_collection_read";
|
|
1069
|
+
readonly COLLECTION_WRITE: "_collection_write";
|
|
1070
|
+
readonly CONFIGURATION_READ: "_configuration_read";
|
|
1071
|
+
readonly DELETION_LOCK_NOTIFICATION_READ: "_deletion_lock_notification_read";
|
|
1072
|
+
readonly DELETION_LOCK_NOTIFICATION_WRITE: "_deletion_lock_notification_write";
|
|
1073
|
+
readonly DELETION_LOCK_READ: "_deletion_lock_read";
|
|
1074
|
+
readonly DELETION_LOCK_WRITE: "_deletion_lock_write";
|
|
1075
|
+
readonly DOCUMENT_NOTIFICATION_READ: "_document_notification_read";
|
|
1076
|
+
readonly DOCUMENT_NOTIFICATION_WRITE: "_document_notification_write";
|
|
1077
|
+
readonly DOCUMENT_READ: "_document_read";
|
|
1078
|
+
readonly DOCUMENT_WRITE: "_document_write";
|
|
1079
|
+
readonly ERROR_READ: "_error_read";
|
|
1080
|
+
readonly ERROR_WRITE: "_error_write";
|
|
1081
|
+
readonly EXPORT: "_export";
|
|
1082
|
+
readonly EXPORT_TEMPLATE_READ: "_export_template_read";
|
|
1083
|
+
readonly EXPORT_TEMPLATE_WRITE: "_export_template_write";
|
|
1084
|
+
readonly EXTERNAL_ID_READ: "_external_id_read";
|
|
1085
|
+
readonly EXTERNAL_ID_WRITE: "_external_id_write";
|
|
1086
|
+
readonly FILE_NOTIFICATION_READ: "_file_notification_read";
|
|
1087
|
+
readonly FILE_NOTIFICATION_WRITE: "_file_notification_write";
|
|
1088
|
+
readonly FILE_READ: "_file_read";
|
|
1089
|
+
readonly FILE_WRITE: "_file_write";
|
|
1090
|
+
readonly GROUP_READ: "_group_read";
|
|
1091
|
+
readonly GROUP_WRITE: "_group_write";
|
|
1092
|
+
readonly IMPORT_WRITE: "_import";
|
|
1093
|
+
readonly ITEM_ID_READ: "_item_id_read";
|
|
1094
|
+
readonly ITEM_ID_WRITE: "_item_id_write";
|
|
1095
|
+
readonly ITEM_NOTIFICATION_READ: "_item_notification_read";
|
|
1096
|
+
readonly ITEM_NOTIFICATION_WRITE: "_item_notification_write";
|
|
1097
|
+
readonly ITEM_WRITE: "_item_write";
|
|
1098
|
+
readonly ITEM_SEARCH: "_item_search";
|
|
1099
|
+
readonly ITEM_SHAPE_READ: "_item_shape_read";
|
|
1100
|
+
readonly ITEM_SHAPE_WRITE: "_item_shape_write";
|
|
1101
|
+
readonly ITEM_TIMELINE_READ: "_item_timeline_read";
|
|
1102
|
+
readonly ITEM_TIMELINE_WRITE: "_item_timeline_write";
|
|
1103
|
+
readonly ITEM_URI: "_item_uri";
|
|
1104
|
+
readonly JOB_NOTIFICATION_READ: "_job_notification_read";
|
|
1105
|
+
readonly JOB_NOTIFICATION_WRITE: "_job_notification_write";
|
|
1106
|
+
readonly JOB_READ: "_job_read";
|
|
1107
|
+
readonly JOB_WRITE: "_job_write";
|
|
1108
|
+
readonly LIBRARY_READ: "_library_read";
|
|
1109
|
+
readonly LIBRARY_WRITE: "_library_write";
|
|
1110
|
+
readonly LOCK_READ: "_lock_read";
|
|
1111
|
+
readonly LOCK_WRITE: "_lock_write";
|
|
1112
|
+
readonly LOG_READ: "_log_read";
|
|
1113
|
+
readonly METADATA_DATASET_READ: "_metadata_dataset_read";
|
|
1114
|
+
readonly METADATA_DATASET_WRITE: "_metadata_dataset_write";
|
|
1115
|
+
readonly METADATA_FIELD_GROUP_READ: "_metadata_field_group_read";
|
|
1116
|
+
readonly METADATA_FIELD_GROUP_WRITE: "_metadata_field_group_write";
|
|
1117
|
+
readonly METADATA_FIELD_READ: "_metadata_field_read";
|
|
1118
|
+
readonly METADATA_FIELD_WRITE: "_metadata_field_write";
|
|
1119
|
+
readonly METADATA_GLOBAL_READ: "_metadata_global_read";
|
|
1120
|
+
readonly METADATA_GLOBAL_WRITE: "_metadata_global_write";
|
|
1121
|
+
readonly METADATA_LOCK_READ: "_metadata_lock_read";
|
|
1122
|
+
readonly METADATA_LOCK_WRITE: "_metadata_lock_write";
|
|
1123
|
+
readonly METADATA_READ: "_metadata_read";
|
|
1124
|
+
readonly METADATA_SCHEMA_READ: "_metadata_schema_read";
|
|
1125
|
+
readonly METADATA_SCHEMA_WRITE: "_metadata_schema_write";
|
|
1126
|
+
readonly METADATA_WRITE: "_metadata_write";
|
|
1127
|
+
readonly OTIF_ANALYZE: "_otif_analyze";
|
|
1128
|
+
readonly OTIF_READ: "_otif_read";
|
|
1129
|
+
readonly OTIF_WRITE: "_otif_write";
|
|
1130
|
+
readonly PLACEHOLDER_NOTIFICATION_READ: "_placeholder_notification_read";
|
|
1131
|
+
readonly PLACEHOLDER_NOTIFICATION_WRITE: "_placeholder_notification_write";
|
|
1132
|
+
readonly PROJECTION_READ: "_projection_read";
|
|
1133
|
+
readonly PROJECTION_WRITE: "_projection_write";
|
|
1134
|
+
readonly QUOTA_NOTIFICATION_READ: "_quota_notification_read";
|
|
1135
|
+
readonly QUOTA_NOTIFICATION_WRITE: "_quota_notification_write";
|
|
1136
|
+
readonly QUOTA_READ: "_quota_read";
|
|
1137
|
+
readonly QUOTA_WRITE: "_quota_write";
|
|
1138
|
+
readonly RELATION_READ: "_relation_read";
|
|
1139
|
+
readonly RELATION_WRITE: "_relation_write";
|
|
1140
|
+
readonly RESOURCE_READ: "_resource_read";
|
|
1141
|
+
readonly RESOURCE_WRITE: "_resource_write";
|
|
1142
|
+
readonly RUN_AS: "_run_as";
|
|
1143
|
+
readonly SEARCH: "_search";
|
|
1144
|
+
readonly SEQUENCE_READ: "_sequence_read";
|
|
1145
|
+
readonly SEQUENCE_WRITE: "_sequence_write";
|
|
1146
|
+
readonly SHAPE_TAG_READ: "_shape_tag_read";
|
|
1147
|
+
readonly SHAPE_TAG_WRITE: "_shape_tag_write";
|
|
1148
|
+
readonly SITE_MANAGER: "_site_manager";
|
|
1149
|
+
readonly SITE_RULE_READ: "_site_rule_read";
|
|
1150
|
+
readonly SITE_RULE_WRITE: "_site_rule_write";
|
|
1151
|
+
readonly STORAGE_GROUP_READ: "_storage_group_read";
|
|
1152
|
+
readonly STORAGE_GROUP_WRITE: "_storage_group_write";
|
|
1153
|
+
readonly STORAGE_NOTIFICATION_READ: "_storage_notification_read";
|
|
1154
|
+
readonly STORAGE_NOTIFICATION_WRITE: "_storage_notification_write";
|
|
1155
|
+
readonly STORAGE_READ: "_storage_read";
|
|
1156
|
+
readonly STORAGE_RULE_READ: "_storage_rule_read";
|
|
1157
|
+
readonly STORAGE_RULE_WRITE: "_storage_rule_write";
|
|
1158
|
+
readonly STORAGE_WRITE: "_storage_write";
|
|
1159
|
+
readonly SUPER_ACCESS_USER: "_super_access_user";
|
|
1160
|
+
readonly TASKDEFINITION_READ: "_taskdefinition_read";
|
|
1161
|
+
readonly TASKDEFINITION_WRITE: "_taskdefinition_write";
|
|
1162
|
+
readonly THUMBNAIL_READ: "_thumbnail_read";
|
|
1163
|
+
readonly THUMBNAIL_WRITE: "_thumbnail_write";
|
|
1164
|
+
readonly TRANSCODER: "_transcoder";
|
|
1165
|
+
readonly TRANSFER_READ: "_transfer_read";
|
|
1166
|
+
readonly TRANSFER_WRITE: "_transfer_write";
|
|
1167
|
+
readonly USER: "_user";
|
|
1168
|
+
readonly VXA: "_vxa";
|
|
1169
|
+
readonly VXA_READ: "_vxa_read";
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
export declare type RoleNameTypes = keyof typeof ROLE_NAMES;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Const object with media types
|
|
1176
|
+
*
|
|
1177
|
+
* @category Shape
|
|
1178
|
+
*/
|
|
1179
|
+
export declare const SHAPE_MEDIA_TYPES: {
|
|
1180
|
+
readonly IMAGE: "IMAGE";
|
|
1181
|
+
readonly AUDIO: "AUDIO";
|
|
1182
|
+
readonly VIDEO: "VIDEO";
|
|
1183
|
+
readonly DOCUMENT: "DOCUMENT";
|
|
1184
|
+
readonly BINARY: "BINARY";
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
export declare type ShapeMediaType = keyof typeof SHAPE_MEDIA_TYPES;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Array with all available VidiCore system/default field group names
|
|
1191
|
+
*
|
|
1192
|
+
* @category Metadata
|
|
1193
|
+
*/
|
|
1194
|
+
export declare const SYSTEM_FIELDGROUPS: readonly ["stl_subtitle", "stl_tti", "stl_gsi", "mrk_marker", "pho_validation", "pho_resource", "pho_error", "facedetect_rect", "facedetect_face", "originalTrackFilename", "stl_gsiHeader"];
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Array with all available VidiCore system/default field names (including transient)
|
|
1198
|
+
*
|
|
1199
|
+
* @category Metadata
|
|
1200
|
+
*/
|
|
1201
|
+
export declare const SYSTEM_FIELDS: readonly ["title", "user", "shapeTag", "representativeThumbnail", "representativeThumbnailNoAuth", "representativeItems", "itemId", "collectionId", "mediaType", "mimeType", "created", "startTimeCode", "startSeconds", "fieldValidationError", "schemaValidationError", "originalFilename", "originalUri", "originalAudioCodec", "originalVideoCodec", "originalHeight", "originalWidth", "originalFormat", "durationSeconds", "durationTimeCode", "solr-index", "__user", "__collection", "__collection_size", "__ancestor_collection", "__ancestor_collection_size", "__shape", "__shape_size", "__shape_last_added", "__placeholder_shape_size", "__version", "__version_count", "__storage", "__storage_size", "__shapetag_{tag}_hash_{hash}", "__storage_{tag}", "__storage_{tag}_size", "__storagegroup", "__storagegroup_size", "__sequence", "__sequence_size", "__metadata_last_modified", "__external_id", "__deletion_lock_id", "__deletion_lock_expiry", "__child_collection", "__child_collection_size", "__parent_collection", "__parent_collection_size", "__items_size", "stl_text", "stl_justification", "stl_xrelative", "stl_yrelative", "stl_vertical", "stl_verticalbase", "stl_horizontalbase", "stl_sizerelative", "stl_color", "stl_outline", "stl_outlinecolor", "stl_outlinesize", "stl_font", "stl_service", "stl_tti", "stl_gsi", "cct", "tcd", "tcf", "oet", "cd", "mnc", "cpn", "dfc", "tcp", "tcs", "tet", "tnb", "tnd", "en", "co", "tng", "rd", "mnr", "dsc", "opt", "lc", "tpt", "tn", "slr", "tns", "rn", "pub", "dsn", "ecd", "mrk_zerolength", "mrk_text", "mrk_color", "pho_resource_name", "pho_error_level", "pho_error_code", "pho_error_description", "facedetect_rect_width", "facedetect_rect_height", "facedetect_rect_y", "facedetect_rect_x", "facedetect_pid", "facedetect_rect", "trackId", "eidr_actor", "eidr_alternateId", "eidr_countryOfOrigin", "eidr_director", "eidr_id", "eidr_referentType", "eidr_releaseDate", "eidr_resourceName", "eidr_status", "eidr_sync", "ttml_div", "ttml_root", "vxa_collection_id", "vxaId", "vxaLocalPath", "tco", "cs", "ebn", "tf", "cf", "sgn", "tci", "jc", "vp", "sn"];
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* TimeBase class representing the TimeBaseType in VidiCore
|
|
1205
|
+
*
|
|
1206
|
+
* For more info, see the [Time bases section in VidiCore API Docs](https://apidoc.vidispine.com/latest/time.html#time-bases)
|
|
1207
|
+
*
|
|
1208
|
+
* @category Time
|
|
1209
|
+
*/
|
|
1210
|
+
export declare class TimeBase {
|
|
1211
|
+
/** The numerator for the TimeBase */
|
|
1212
|
+
numerator: number;
|
|
1213
|
+
/** The denominator for the TimeBase */
|
|
1214
|
+
denominator: number;
|
|
1215
|
+
/**
|
|
1216
|
+
* Constructor for TimeBase
|
|
1217
|
+
*
|
|
1218
|
+
* @param timeBaseType A TimeBaseType object
|
|
1219
|
+
*/
|
|
1220
|
+
constructor(timeBaseType?: TimeBaseInput);
|
|
1221
|
+
/**
|
|
1222
|
+
* Get TimeBase in a constant representation (e.g. "PAL") if possible, otherwise undefined
|
|
1223
|
+
* @returns Constant representation of the TimeBase
|
|
1224
|
+
*/
|
|
1225
|
+
toConstant(): string;
|
|
1226
|
+
/**
|
|
1227
|
+
* Get TimeBase as a VidiCore TimeBaseType string
|
|
1228
|
+
*
|
|
1229
|
+
* @remarks
|
|
1230
|
+
* Default format: denominator(:numerator if > 1)
|
|
1231
|
+
*
|
|
1232
|
+
* `constant` has precedence over `fraction` if both are true (e.g. NTSC > 30000:1001)
|
|
1233
|
+
*
|
|
1234
|
+
* @param options For how to display it as text
|
|
1235
|
+
* @returns Text representation of the TimeBase
|
|
1236
|
+
*/
|
|
1237
|
+
toText(options?: {
|
|
1238
|
+
/** Show time base as constant (e.g. PAL) */
|
|
1239
|
+
constant?: boolean;
|
|
1240
|
+
/** Show time base as fraction (25:1) even when numerator is 1 */
|
|
1241
|
+
fraction?: boolean;
|
|
1242
|
+
}): string;
|
|
1243
|
+
/**
|
|
1244
|
+
* Output TimeBase as frame rate (by default max 16 decimal places)
|
|
1245
|
+
*
|
|
1246
|
+
* @remarks
|
|
1247
|
+
* Default format: rate with two decimals if needed (i.e. decimals are > 0)
|
|
1248
|
+
*
|
|
1249
|
+
* `rounded` has precedence over `fixed`
|
|
1250
|
+
*
|
|
1251
|
+
* @param options On how to return the rate
|
|
1252
|
+
*
|
|
1253
|
+
* @return Rate of the TimeBase
|
|
1254
|
+
*/
|
|
1255
|
+
toRate(options?: {
|
|
1256
|
+
/** Rounded to nearest integer */
|
|
1257
|
+
rounded?: boolean;
|
|
1258
|
+
/** Amount of decimal places
|
|
1259
|
+
* - `true` two decimal places
|
|
1260
|
+
* - `false` max amount of decimal places
|
|
1261
|
+
* - `number` that amount of decimal places
|
|
1262
|
+
*/
|
|
1263
|
+
fixed?: boolean | number;
|
|
1264
|
+
}): number;
|
|
1265
|
+
/**
|
|
1266
|
+
* Get TimeBase in a object representation
|
|
1267
|
+
*
|
|
1268
|
+
* @returns TimeBase as `{denominator, numerator}` object
|
|
1269
|
+
*/
|
|
1270
|
+
toObject(): TimeBaseType;
|
|
1271
|
+
/**
|
|
1272
|
+
* @deprecated Use {@link TimeBase#toObject | toObject} instead
|
|
1273
|
+
*
|
|
1274
|
+
* @returns TimeBase as `{denominator, numerator}` object
|
|
1275
|
+
*/
|
|
1276
|
+
toJson(): TimeBaseType;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
export declare type TimeBaseInput = {
|
|
1280
|
+
/** The numerator for the TimeBase */
|
|
1281
|
+
numerator?: number | string;
|
|
1282
|
+
/** The denominator for the TimeBase */
|
|
1283
|
+
denominator?: number | string;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* TimeCode class representing the TimeCodeType in VidiCore
|
|
1288
|
+
*
|
|
1289
|
+
* For more info, see the [Time Codes section of VidiCore API Docs](https://apidoc.vidispine.com/latest/time.html#time-codes)
|
|
1290
|
+
*
|
|
1291
|
+
* @category Time
|
|
1292
|
+
*/
|
|
1293
|
+
export declare class TimeCode {
|
|
1294
|
+
/** Amount of samples for the time code */
|
|
1295
|
+
samples: number;
|
|
1296
|
+
/** The time base for the time code */
|
|
1297
|
+
timeBase: TimeBase;
|
|
1298
|
+
/** If time code is dropFrame or not (by default checks timeBase) */
|
|
1299
|
+
dropFrame: boolean;
|
|
1300
|
+
/** Separator for frame in smpte output (default ":" for non dropFrame and ";" for dropFrame) */
|
|
1301
|
+
frameSeparator: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* Constructor for TimeCode
|
|
1304
|
+
*
|
|
1305
|
+
* @param timeCodeType Object to create TimeCode of
|
|
1306
|
+
* @param options Options for the timeCode
|
|
1307
|
+
*/
|
|
1308
|
+
constructor(timeCodeType: TimeCodeInput, options?: TimeCodeInputOptions);
|
|
1309
|
+
/**
|
|
1310
|
+
* Return this TimeCode added with the supplied timeCodeType
|
|
1311
|
+
* - If time bases differ, it will retain the time base of this TimeCode instance
|
|
1312
|
+
* - If supplied time code has a more granular time base, it will round down exceeding samples (hasn't reached that sample yet)
|
|
1313
|
+
*
|
|
1314
|
+
* @remarks
|
|
1315
|
+
* If you don't want to "lose" frames in the manner described above, make sure time code you're operating on has higher time base granularity
|
|
1316
|
+
*
|
|
1317
|
+
* To exemplify:
|
|
1318
|
+
* - "51@50".add("25@25") => "101@50"
|
|
1319
|
+
* - while "25@25".add("51@50") => "50@25"
|
|
1320
|
+
*
|
|
1321
|
+
* @param timeCode A TimeCode instance you want to add with
|
|
1322
|
+
* @returns A new TimeCode instance with the addition applied
|
|
1323
|
+
*/
|
|
1324
|
+
add(timeCode: TimeCode): TimeCode;
|
|
1325
|
+
/**
|
|
1326
|
+
* Return this TimeCode subtracted with the supplied timeCodeType
|
|
1327
|
+
* - If time bases differ, it will retain the time base of the instance time code
|
|
1328
|
+
* - If supplied time code has a more granular time base, it will round down exceeding samples (hasn't reached that sample yet)
|
|
1329
|
+
*
|
|
1330
|
+
* @remarks
|
|
1331
|
+
* If you don't want to "lose" frames in the manner described above, make sure time code you're operating on has higher time base granularity
|
|
1332
|
+
|
|
1333
|
+
* To exemplify:
|
|
1334
|
+
* - "101@50".subtract("25@25") => "51@50"
|
|
1335
|
+
* - while "50@25".subtract("51@50") => "25@25"
|
|
1336
|
+
*
|
|
1337
|
+
* @param timeCode A TimeCode instance you want to subtract with
|
|
1338
|
+
* @returns A new TimeCode instance with the subtraction applied
|
|
1339
|
+
*/
|
|
1340
|
+
subtract(timeCode: TimeCode): TimeCode;
|
|
1341
|
+
/**
|
|
1342
|
+
* Creates a new TimeCode instance with specified timeBase and samples adjusted to that.
|
|
1343
|
+
*
|
|
1344
|
+
* @remarks
|
|
1345
|
+
* If it conforms to a less granular time base - it will floor samples (hasn't reached that sample yet)
|
|
1346
|
+
* - e.g. "51@50".conformTo("PAL") => "25@PAL" (not "26@PAL")
|
|
1347
|
+
*
|
|
1348
|
+
* @param timeBase The TimeBase it should conform the TimeCode to
|
|
1349
|
+
* @param options Explicitly set TimeCode options, by default these are derived from `timeBase`
|
|
1350
|
+
* @returns A new TimeCode instance with the conformTo timeBase applied
|
|
1351
|
+
*/
|
|
1352
|
+
conformTimeBase(timeBase: TimeCodeInput['timeBase'], options?: TimeCodeInputOptions): TimeCode;
|
|
1353
|
+
/**
|
|
1354
|
+
* Get TimeCode as a text representation
|
|
1355
|
+
*
|
|
1356
|
+
* @remarks
|
|
1357
|
+
* Default format: `samples@denominator[:numerator (if > 1)])`
|
|
1358
|
+
*
|
|
1359
|
+
* `constant` has precedence over `fraction` if both are true
|
|
1360
|
+
*
|
|
1361
|
+
* @param options Options for how to format text
|
|
1362
|
+
* @returns Text representation of TimeCode
|
|
1363
|
+
*/
|
|
1364
|
+
toText(options?: {
|
|
1365
|
+
/** Include time base even if seconds (i.e. append @1 or @1:1) */
|
|
1366
|
+
includeTimeBaseForSeconds?: boolean;
|
|
1367
|
+
/** show as constant (e.g. @PAL) */
|
|
1368
|
+
constant?: boolean;
|
|
1369
|
+
/** show as fraction (e.g. @25:1) */
|
|
1370
|
+
fraction?: boolean;
|
|
1371
|
+
}): string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Get TimeCode in a units object representation
|
|
1374
|
+
*
|
|
1375
|
+
* @remarks
|
|
1376
|
+
* If samples is `Infinity` it also returns `Infinity` for all units
|
|
1377
|
+
*
|
|
1378
|
+
* @returns Units (time and frames) for the time code
|
|
1379
|
+
*/
|
|
1380
|
+
toUnits(): {
|
|
1381
|
+
hours: number;
|
|
1382
|
+
minutes: number;
|
|
1383
|
+
seconds: number;
|
|
1384
|
+
frames: number;
|
|
1385
|
+
};
|
|
1386
|
+
/**
|
|
1387
|
+
* Get TimeCode in a time object representation
|
|
1388
|
+
*
|
|
1389
|
+
* Note: "milliseconds" is rounded down - use "partialSeconds" for another representation
|
|
1390
|
+
*
|
|
1391
|
+
* @returns Time for the time code
|
|
1392
|
+
*/
|
|
1393
|
+
toTime(): {
|
|
1394
|
+
hours: number;
|
|
1395
|
+
minutes: number;
|
|
1396
|
+
seconds: number;
|
|
1397
|
+
milliseconds: number;
|
|
1398
|
+
partialSeconds: number;
|
|
1399
|
+
};
|
|
1400
|
+
/**
|
|
1401
|
+
* Get TimeCode in a seconds representation
|
|
1402
|
+
*
|
|
1403
|
+
* @returns Total seconds for the time code
|
|
1404
|
+
*/
|
|
1405
|
+
toSeconds(): number;
|
|
1406
|
+
/**
|
|
1407
|
+
* Get TimeCode in a duration representation
|
|
1408
|
+
*
|
|
1409
|
+
* The time unit keys for the format string are:
|
|
1410
|
+
* - `h` for hour
|
|
1411
|
+
* - `m` for minute
|
|
1412
|
+
* - `s` for seconds
|
|
1413
|
+
* - `S` for milliseconds
|
|
1414
|
+
* - Any other char will be kept in the duration output string
|
|
1415
|
+
*
|
|
1416
|
+
* Note: Add several consecutive chars for zero padding.
|
|
1417
|
+
*
|
|
1418
|
+
* By default it:
|
|
1419
|
+
* - uses colon delimiter (e.g. for format "hhmmss")
|
|
1420
|
+
* - shows "m:ss" or "h:mm:ss" if format is undefined
|
|
1421
|
+
*
|
|
1422
|
+
* @param options Options for how to display duration
|
|
1423
|
+
* @returns Duration representation of the TimeCode
|
|
1424
|
+
*/
|
|
1425
|
+
toDuration(options?: {
|
|
1426
|
+
/** Specify format of duration string, (e.g. `hh:mm:ss.S` for "01:23:04.5") */
|
|
1427
|
+
format?: string;
|
|
1428
|
+
}): string;
|
|
1429
|
+
/**
|
|
1430
|
+
* Get TimeCode in a smpte representation
|
|
1431
|
+
*
|
|
1432
|
+
* @returns Smpte representation of the TimeCode
|
|
1433
|
+
*/
|
|
1434
|
+
toSmpte(): string;
|
|
1435
|
+
/**
|
|
1436
|
+
* Get TimeCode as a VidiCore TimeCodeType object
|
|
1437
|
+
*
|
|
1438
|
+
* @returns TimeCode as `{ samples, timeBase }`
|
|
1439
|
+
*/
|
|
1440
|
+
toObject(): {
|
|
1441
|
+
samples: number;
|
|
1442
|
+
timeBase: RationalType;
|
|
1443
|
+
};
|
|
1444
|
+
/**
|
|
1445
|
+
* @deprecated Use {@link TimeCode#toObject | toObject} instead
|
|
1446
|
+
*
|
|
1447
|
+
* @returns TimeCode as `{ samples, timeBase }`
|
|
1448
|
+
*/
|
|
1449
|
+
toJson(): {
|
|
1450
|
+
samples: number;
|
|
1451
|
+
timeBase: RationalType;
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export declare type TimeCodeInput = {
|
|
1456
|
+
/** Amount of samples for the time code */
|
|
1457
|
+
samples?: number | string;
|
|
1458
|
+
/** The time base for the time code */
|
|
1459
|
+
timeBase?: string | TimeBaseInput | TimeBase;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
export declare type TimeCodeInputOptions = {
|
|
1463
|
+
/** If time code is dropFrame or not (by default checks timeBase) */
|
|
1464
|
+
dropFrame?: boolean;
|
|
1465
|
+
/** Separator for frame in smpte output (default ":" for non-drop-frame and ";" for dropFrame) */
|
|
1466
|
+
frameSeparator?: string;
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
export { }
|