@vidispine/vdt-js 22.4.0-pre.9 → 22.4.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 +78 -82
- package/dist/index.es.js +339 -706
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +339 -706
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
package/dist/index.d.ts
CHANGED
|
@@ -129,34 +129,34 @@ declare const ROLE_NAMES: {
|
|
|
129
129
|
readonly VXA_READ: "_vxa_read";
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
type InputValueTypes = string | boolean | number | Date;
|
|
133
133
|
/** Possible input values for the field value */
|
|
134
|
-
|
|
134
|
+
type InputValue = InputValueTypes | InputValueTypes[];
|
|
135
135
|
/** Input value object for the field value */
|
|
136
|
-
|
|
136
|
+
type InputValueObject = {
|
|
137
137
|
value: string | InputValue;
|
|
138
138
|
} & Omit<MetadataValueType, 'value'>;
|
|
139
|
-
|
|
139
|
+
type InputFieldValue = InputValueObject | InputValue | InputValueObject[] | InputValue[];
|
|
140
140
|
/** Input object to create field of */
|
|
141
|
-
|
|
141
|
+
type InputFieldObject = {
|
|
142
142
|
value: InputFieldValue;
|
|
143
143
|
} & MetadataFieldValueType;
|
|
144
144
|
/** Input to create a field of */
|
|
145
|
-
|
|
145
|
+
type InputField = InputFieldValue | InputFieldObject;
|
|
146
146
|
/** Input to create one or multiple groups and/or fields of */
|
|
147
|
-
|
|
147
|
+
type InputGroupsOrFields = InputGroup | InputGroup[] | InputField | InputField[];
|
|
148
148
|
/** Input object to create group of */
|
|
149
|
-
|
|
149
|
+
type InputGroup = {
|
|
150
150
|
[groupOrFieldName: string]: InputGroupsOrFields;
|
|
151
151
|
} & Partial<MetadataGroupValueType>;
|
|
152
152
|
/** Input to create a timespan of */
|
|
153
|
-
|
|
153
|
+
type InputTimespan = {
|
|
154
154
|
start?: string | number;
|
|
155
155
|
end?: string | number;
|
|
156
156
|
base?: string;
|
|
157
157
|
[groupOrFieldName: string]: InputGroupsOrFields;
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
type CreateMetadataTypeInput = InputTimespan | InputTimespan[];
|
|
160
160
|
/**
|
|
161
161
|
* Create a VidiCore metadata object from a more dense/simplified structure
|
|
162
162
|
*
|
|
@@ -167,44 +167,44 @@ declare type CreateMetadataTypeInput = InputTimespan | InputTimespan[];
|
|
|
167
167
|
*/
|
|
168
168
|
declare const createMetadataType: (input: CreateMetadataTypeInput) => MetadataType;
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
type ParsedValueAttributes = Partial<Omit<MetadataValueType, 'value'>>;
|
|
171
|
+
type ParsedValue<TOptions> = TOptions extends {
|
|
172
172
|
includeValueAttributes?: false;
|
|
173
173
|
} ? string : {
|
|
174
174
|
value: string;
|
|
175
175
|
} & ParsedValueAttributes;
|
|
176
|
-
|
|
176
|
+
type ParseValueOptions = {
|
|
177
177
|
includeValueAttributes?: boolean | (keyof ParsedValueAttributes)[];
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
type ParsedValueList<TOptions> = TOptions extends {
|
|
181
181
|
joinValue?: string;
|
|
182
182
|
includeValueAttributes?: false;
|
|
183
183
|
} ? string : TOptions extends {
|
|
184
184
|
arrayOnSingleValue?: true;
|
|
185
185
|
} ? ParsedValue<TOptions>[] : ParsedValue<TOptions> | ParsedValue<TOptions>[];
|
|
186
|
-
|
|
186
|
+
type ParseValueListOptions = {
|
|
187
187
|
joinValue?: string;
|
|
188
188
|
arrayOnSingleValue?: boolean;
|
|
189
189
|
} & ParseValueOptions;
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
type ParsedFieldAttributes = Partial<Omit<MetadataFieldValueType, 'value'>>;
|
|
192
|
+
type ParsedFieldObject<TOptions> = {
|
|
193
193
|
value: ParsedValueList<TOptions>;
|
|
194
194
|
} & ParsedFieldAttributes;
|
|
195
|
-
|
|
195
|
+
type ParsedField<TOptions> = TOptions extends {
|
|
196
196
|
includeFieldAttributes?: false;
|
|
197
197
|
} ? ParsedValueList<TOptions> : ParsedFieldObject<TOptions>;
|
|
198
|
-
|
|
198
|
+
type ParseFieldOptions = {
|
|
199
199
|
includeFieldAttributes?: boolean | (keyof ParsedFieldAttributes)[];
|
|
200
200
|
} & ParseValueListOptions;
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
type ParseFieldListOptions = {
|
|
203
203
|
fieldAsList?: boolean;
|
|
204
204
|
arrayOnSingleField?: boolean;
|
|
205
205
|
overrideField?: boolean;
|
|
206
206
|
} & ParseFieldOptions;
|
|
207
|
-
|
|
207
|
+
type ParsedFieldList<TOptions> = TOptions extends {
|
|
208
208
|
fieldAsList?: true;
|
|
209
209
|
} ? ParsedField<TOptions>[] : TOptions extends {
|
|
210
210
|
arrayOnSingle?: true;
|
|
@@ -227,13 +227,12 @@ declare type ParsedFieldList<TOptions> = TOptions extends {
|
|
|
227
227
|
* Parse a metadata field list according to selected options
|
|
228
228
|
*
|
|
229
229
|
* @remarks
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* - with
|
|
234
|
-
* - with `
|
|
235
|
-
* - with `
|
|
236
|
-
* - with `overrideField` enabled - Override so it returns the latest "duplicated" field it parses
|
|
230
|
+
* When parsing duplicate fields (same field name in the same field list) it will:
|
|
231
|
+
* - with default options: combine field values to one array within the same field name key
|
|
232
|
+
* - with `joinValue` enabled: join values within each field (returns array with string for each field value)
|
|
233
|
+
* - with `fieldAsList` enabled: separate fields in the list/array (as usual, even if not duplicate)
|
|
234
|
+
* - with `includeFieldAttributes` enabled: return an array of field objects
|
|
235
|
+
* - with `overrideField` enabled: return the latest duplicated field it parses
|
|
237
236
|
*
|
|
238
237
|
* @param fieldList Field list to parse
|
|
239
238
|
* @param [options=defaultOptions] Options for how to parse the field list
|
|
@@ -243,14 +242,14 @@ declare type ParsedFieldList<TOptions> = TOptions extends {
|
|
|
243
242
|
*/
|
|
244
243
|
declare const parseFieldList: <TOptions extends ParseFieldListOptions = ParseFieldListOptions>(fieldList: MetadataFieldValueType[], options?: TOptions) => ParsedFieldList<TOptions>;
|
|
245
244
|
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
type ParsedGroupAttributes = Omit<MetadataGroupValueType, 'field' | 'group'>;
|
|
246
|
+
type ParseGroupOptions = {
|
|
248
247
|
includeGroupAttributes?: boolean | (keyof ParsedGroupAttributes)[];
|
|
249
248
|
groupAsList?: boolean;
|
|
250
249
|
arrayOnSingleGroup?: boolean;
|
|
251
250
|
overrideGroup?: boolean;
|
|
252
251
|
} & ParseFieldListOptions;
|
|
253
|
-
|
|
252
|
+
type ParsedGroup<TOptions> = ((TOptions extends {
|
|
254
253
|
groupAsList?: true;
|
|
255
254
|
} ? {
|
|
256
255
|
group?: ParsedGroupList<TOptions>;
|
|
@@ -263,8 +262,8 @@ declare type ParsedGroup<TOptions> = ((TOptions extends {
|
|
|
263
262
|
} : {
|
|
264
263
|
[name: string]: ParsedFieldList<TOptions>;
|
|
265
264
|
})) & ParsedGroupAttributes;
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
type ParseGroupListOptions = ParseGroupOptions;
|
|
266
|
+
type ParsedGroupList<TOptions> = TOptions extends {
|
|
268
267
|
groupAsList?: true;
|
|
269
268
|
} ? ParsedGroup<TOptions>[] : TOptions extends {
|
|
270
269
|
arrayOnSingle?: true;
|
|
@@ -287,10 +286,10 @@ declare type ParsedGroupList<TOptions> = TOptions extends {
|
|
|
287
286
|
* Parse a metadata group list according to selected options
|
|
288
287
|
*
|
|
289
288
|
* @remarks
|
|
290
|
-
* Parsing duplicate groups (
|
|
291
|
-
* - with default options
|
|
292
|
-
* - with `groupAsList` enabled
|
|
293
|
-
* - with `overrideGroup` enabled
|
|
289
|
+
* Parsing duplicate groups (same group name in the same group list) it will:
|
|
290
|
+
* - with default options: combine group objects to one array within the same group name key
|
|
291
|
+
* - with `groupAsList` enabled: return separate group objects in a list/array (as usual, even if not duplicate)
|
|
292
|
+
* - with `overrideGroup` enabled: return the latest duplicated group it parses
|
|
294
293
|
*
|
|
295
294
|
* @param groupList Group list to parse
|
|
296
295
|
* @param options options for how to parse list
|
|
@@ -300,7 +299,7 @@ declare type ParsedGroupList<TOptions> = TOptions extends {
|
|
|
300
299
|
*/
|
|
301
300
|
declare const parseGroupList: <TOptions extends ParseGroupOptions = ParseGroupOptions>(groupList: MetadataGroupValueType[], options?: TOptions) => ParsedGroupList<TOptions>;
|
|
302
301
|
|
|
303
|
-
|
|
302
|
+
type ParsedTimespanAttributes = Omit<MetadataType['timespan'][number], 'field' | 'group'>;
|
|
304
303
|
/**
|
|
305
304
|
* __includeTimespanAttributes__:
|
|
306
305
|
* Include attributes on timespan
|
|
@@ -314,12 +313,12 @@ declare type ParsedTimespanAttributes = Omit<MetadataType['timespan'][number], '
|
|
|
314
313
|
*
|
|
315
314
|
* @defaultValue `{ includeTimespanAttributes: false, arrayOnSingle: true, flat: false }`
|
|
316
315
|
*/
|
|
317
|
-
|
|
316
|
+
type ParseTimespanOptions = {
|
|
318
317
|
includeTimespanAttributes?: boolean | (keyof ParsedTimespanAttributes)[];
|
|
319
318
|
arrayOnSingle?: boolean;
|
|
320
319
|
flat?: boolean;
|
|
321
320
|
} & ParseGroupListOptions;
|
|
322
|
-
|
|
321
|
+
type ParsedTimespan<TOptions> = ((TOptions extends {
|
|
323
322
|
groupAsList?: true;
|
|
324
323
|
} ? {
|
|
325
324
|
group?: ParsedGroupList<TOptions>;
|
|
@@ -349,7 +348,7 @@ declare type ParsedTimespan<TOptions> = ((TOptions extends {
|
|
|
349
348
|
*/
|
|
350
349
|
declare const parseTimespan: <TOptions extends ParseTimespanOptions = ParseTimespanOptions>(timespan: MetadataType['timespan'][number], options?: TOptions) => ParsedTimespan<TOptions>;
|
|
351
350
|
|
|
352
|
-
|
|
351
|
+
type ParsedTimespanList<TOptions> = TOptions extends {
|
|
353
352
|
timespanAsList?: true;
|
|
354
353
|
} ? ParsedTimespan<TOptions>[] : TOptions extends {
|
|
355
354
|
flat?: true;
|
|
@@ -359,7 +358,7 @@ declare type ParsedTimespanList<TOptions> = TOptions extends {
|
|
|
359
358
|
} ? ParsedTimespan<TOptions> : {
|
|
360
359
|
[timespanKey: string]: ParsedTimespan<TOptions>[];
|
|
361
360
|
};
|
|
362
|
-
|
|
361
|
+
type ParseTimespanListOptions = {
|
|
363
362
|
timespanAsList?: boolean;
|
|
364
363
|
joinTimespan?: string;
|
|
365
364
|
sortTimespan?: boolean;
|
|
@@ -380,10 +379,10 @@ declare type ParseTimespanListOptions = {
|
|
|
380
379
|
*/
|
|
381
380
|
declare const parseTimespanList: <TOptions extends ParseTimespanListOptions = ParseTimespanListOptions>(timespanList: MetadataType['timespan'], options?: TOptions) => ParsedTimespanList<TOptions>;
|
|
382
381
|
|
|
383
|
-
|
|
382
|
+
type ParsedMetadataAttributes = Partial<Omit<MetadataType, 'timespan' | 'revision'> & {
|
|
384
383
|
revision?: string[];
|
|
385
384
|
}>;
|
|
386
|
-
|
|
385
|
+
type ParsedMetadataType<TOptions> = (TOptions extends {
|
|
387
386
|
timespanAsList?: true;
|
|
388
387
|
} ? {
|
|
389
388
|
timespan: ParsedTimespanList<TOptions>;
|
|
@@ -394,7 +393,7 @@ declare type ParsedMetadataType<TOptions> = (TOptions extends {
|
|
|
394
393
|
}) & (TOptions extends {
|
|
395
394
|
includeMetadataAttributes?: true | string[];
|
|
396
395
|
} ? ParsedMetadataAttributes : {});
|
|
397
|
-
|
|
396
|
+
type ParseMetadataTypeOptions = {
|
|
398
397
|
includeMetadataAttributes?: boolean | (keyof ParsedMetadataAttributes)[];
|
|
399
398
|
flat?: boolean;
|
|
400
399
|
} & ParseTimespanListOptions;
|
|
@@ -430,7 +429,7 @@ declare const parseSimpleMetadataType: (simpleMetadataType: SimpleMetadataType)
|
|
|
430
429
|
[key: string]: string;
|
|
431
430
|
};
|
|
432
431
|
|
|
433
|
-
|
|
432
|
+
type MetadataTypeToWebVttOptions = {
|
|
434
433
|
subtitleGroup?: string;
|
|
435
434
|
subtitleField?: string;
|
|
436
435
|
};
|
|
@@ -477,8 +476,8 @@ declare const SYSTEM_FIELDGROUPS: readonly ["stl_subtitle", "stl_tti", "stl_gsi"
|
|
|
477
476
|
*/
|
|
478
477
|
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"];
|
|
479
478
|
|
|
480
|
-
|
|
481
|
-
|
|
479
|
+
type CreateFacetTypeFieldList = string[];
|
|
480
|
+
type CreateFacetTypeOptions = {
|
|
482
481
|
count: boolean;
|
|
483
482
|
};
|
|
484
483
|
/**
|
|
@@ -497,11 +496,11 @@ declare const createFacetType: (fieldList?: CreateFacetTypeFieldList, options?:
|
|
|
497
496
|
exclude: CreateFacetTypeFieldList;
|
|
498
497
|
}[];
|
|
499
498
|
|
|
500
|
-
|
|
499
|
+
type ParsedFacetTypeCount = {
|
|
501
500
|
[fieldValue: string]: number;
|
|
502
501
|
};
|
|
503
502
|
/** Parsed facet type */
|
|
504
|
-
|
|
503
|
+
type ParsedFacetType = {
|
|
505
504
|
[fieldName: string]: ParsedFacetTypeCount;
|
|
506
505
|
};
|
|
507
506
|
/**
|
|
@@ -514,12 +513,12 @@ declare type ParsedFacetType = {
|
|
|
514
513
|
*/
|
|
515
514
|
declare const parseFacetType: (facetType?: FacetType[]) => ParsedFacetType;
|
|
516
515
|
|
|
517
|
-
|
|
516
|
+
type ParseHighlightTimespanOptions = {
|
|
518
517
|
arrayOnSingle?: boolean;
|
|
519
518
|
timespanAsList?: boolean;
|
|
520
519
|
joinValue?: string;
|
|
521
520
|
};
|
|
522
|
-
|
|
521
|
+
type ParsedHighlightTimespan = {
|
|
523
522
|
start?: string;
|
|
524
523
|
end?: string;
|
|
525
524
|
[key: string]: string | string[];
|
|
@@ -534,7 +533,7 @@ declare type ParsedHighlightTimespan = {
|
|
|
534
533
|
*/
|
|
535
534
|
declare const parseHighlightTimespan: (timespan: SearchResultEntryTimespanType, options: ParseHighlightTimespanOptions) => ParsedHighlightTimespan;
|
|
536
535
|
|
|
537
|
-
|
|
536
|
+
type ParseHighlightTimespanListOptions = {
|
|
538
537
|
timespanAsList?: boolean;
|
|
539
538
|
joinTimespan?: string;
|
|
540
539
|
flat?: boolean;
|
|
@@ -553,20 +552,20 @@ declare const parseHighlightTimespanList: (highlightTimespanList?: SearchResultE
|
|
|
553
552
|
|
|
554
553
|
declare const parseNowDate: (value?: string) => Date;
|
|
555
554
|
|
|
556
|
-
|
|
555
|
+
type ParsedBaseMediaInfoType = {
|
|
557
556
|
Bit_rate_mode?: string;
|
|
558
557
|
Source?: string;
|
|
559
558
|
} & {
|
|
560
559
|
[key: string]: string;
|
|
561
560
|
};
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
561
|
+
type ParsedAudioMediaInfoType = ParsedBaseMediaInfoType;
|
|
562
|
+
type ParsedBinaryMediaInfoType = ParsedBaseMediaInfoType;
|
|
563
|
+
type ParsedVideoMediaInfoType = ParsedBaseMediaInfoType & {
|
|
565
564
|
Format_Settings_GOP?: string;
|
|
566
565
|
intra_dc_precision?: string;
|
|
567
566
|
};
|
|
568
567
|
|
|
569
|
-
|
|
568
|
+
type ParsedAudioComponentType = {
|
|
570
569
|
audioFormat?: string;
|
|
571
570
|
audioCodec?: string;
|
|
572
571
|
audioSamplerate?: string;
|
|
@@ -589,7 +588,7 @@ declare type ParsedAudioComponentType = {
|
|
|
589
588
|
*/
|
|
590
589
|
declare const parseAudioComponent: (audioComponentType: AudioComponentType) => ParsedAudioComponentType;
|
|
591
590
|
|
|
592
|
-
|
|
591
|
+
type ParsedBinaryComponentType = {
|
|
593
592
|
binaryMetadata?: {
|
|
594
593
|
[key: string]: string;
|
|
595
594
|
};
|
|
@@ -604,7 +603,7 @@ declare type ParsedBinaryComponentType = {
|
|
|
604
603
|
*/
|
|
605
604
|
declare const parseBinaryComponent: (binaryComponentType?: BinaryComponentType) => ParsedBinaryComponentType;
|
|
606
605
|
|
|
607
|
-
|
|
606
|
+
type ParsedFileType = {
|
|
608
607
|
uri?: string;
|
|
609
608
|
hash?: string;
|
|
610
609
|
fileSize?: string;
|
|
@@ -626,7 +625,7 @@ declare const parseFileType: (fileType: FileType) => ParsedFileType;
|
|
|
626
625
|
/**
|
|
627
626
|
* Parsed container component
|
|
628
627
|
*/
|
|
629
|
-
|
|
628
|
+
type ParsedContainerComponentType = {
|
|
630
629
|
containerFormat?: string;
|
|
631
630
|
videoFormat?: string;
|
|
632
631
|
audioFormat?: string;
|
|
@@ -650,7 +649,7 @@ declare type ParsedContainerComponentType = {
|
|
|
650
649
|
*/
|
|
651
650
|
declare const parseContainerComponent: (containerComponentType?: ContainerComponentType) => ParsedContainerComponentType;
|
|
652
651
|
|
|
653
|
-
|
|
652
|
+
type TimeBaseInput = {
|
|
654
653
|
numerator?: number | string;
|
|
655
654
|
denominator?: number | string;
|
|
656
655
|
};
|
|
@@ -755,11 +754,11 @@ declare const formatTimeBaseText: (timeBaseText?: string | number) => TimeBase;
|
|
|
755
754
|
*/
|
|
756
755
|
declare const formatTimeBaseType: (timeBase: TimeBaseInput) => TimeBase;
|
|
757
756
|
|
|
758
|
-
|
|
757
|
+
type TimeCodeInput = {
|
|
759
758
|
samples?: number | string;
|
|
760
759
|
timeBase?: string | TimeBaseInput | TimeBase;
|
|
761
760
|
};
|
|
762
|
-
|
|
761
|
+
type TimeCodeInputOptions = {
|
|
763
762
|
dropFrame?: boolean;
|
|
764
763
|
frameSeparator?: string;
|
|
765
764
|
};
|
|
@@ -912,7 +911,7 @@ declare class TimeCode {
|
|
|
912
911
|
};
|
|
913
912
|
}
|
|
914
913
|
|
|
915
|
-
|
|
914
|
+
type FormatTimeCodeSecondsOptions = {
|
|
916
915
|
timeBase?: number | string | TimeBaseInput;
|
|
917
916
|
useGCD?: boolean;
|
|
918
917
|
} & TimeCodeInputOptions;
|
|
@@ -933,7 +932,7 @@ declare type FormatTimeCodeSecondsOptions = {
|
|
|
933
932
|
*/
|
|
934
933
|
declare const formatTimeCodeSeconds: (seconds: string | number, options?: FormatTimeCodeSecondsOptions) => TimeCode;
|
|
935
934
|
|
|
936
|
-
|
|
935
|
+
type FormatTimeCodeSmpteOptions = {
|
|
937
936
|
timeBase?: number | string | TimeBaseInput;
|
|
938
937
|
exceedingMode?: 'add' | 'ignore' | 'error';
|
|
939
938
|
dropFrame?: boolean;
|
|
@@ -955,7 +954,7 @@ declare type FormatTimeCodeSmpteOptions = {
|
|
|
955
954
|
*/
|
|
956
955
|
declare const formatTimeCodeSmpte: (smpte: string, options?: FormatTimeCodeSmpteOptions) => TimeCode;
|
|
957
956
|
|
|
958
|
-
|
|
957
|
+
type FormatTimeCodeTextOptions = {
|
|
959
958
|
timeBase?: number | string | TimeBaseInput;
|
|
960
959
|
} & TimeCodeInputOptions;
|
|
961
960
|
/**
|
|
@@ -967,7 +966,7 @@ declare type FormatTimeCodeTextOptions = {
|
|
|
967
966
|
*/
|
|
968
967
|
declare const formatTimeCodeText: (timeCodeText?: number | string, options?: FormatTimeCodeTextOptions) => TimeCode;
|
|
969
968
|
|
|
970
|
-
|
|
969
|
+
type CreateTimeCodeOptions = TimeCodeInputOptions | FormatTimeCodeSmpteOptions | FormatTimeCodeSecondsOptions | FormatTimeCodeTextOptions;
|
|
971
970
|
/**
|
|
972
971
|
* Create a TimeCode instance from smpte, seconds/samples, timeCode object or string
|
|
973
972
|
*
|
|
@@ -990,7 +989,7 @@ declare const createTimeCode: (timeCode: TimeCodeInput | string | number, option
|
|
|
990
989
|
*/
|
|
991
990
|
declare const formatTimeCodeType: (timeCode: TimeCodeInput, options?: TimeCodeInputOptions) => TimeCode;
|
|
992
991
|
|
|
993
|
-
|
|
992
|
+
type ParsedVideoComponentType = {
|
|
994
993
|
videoFormat?: string;
|
|
995
994
|
dimension?: string;
|
|
996
995
|
frameRate?: string | number;
|
|
@@ -1020,7 +1019,7 @@ declare type ParsedVideoComponentType = {
|
|
|
1020
1019
|
*/
|
|
1021
1020
|
declare const parseVideoComponent: (videoComponentType?: VideoComponentType) => ParsedVideoComponentType;
|
|
1022
1021
|
|
|
1023
|
-
|
|
1022
|
+
type ParsedShapeType = {
|
|
1024
1023
|
uri?: string;
|
|
1025
1024
|
tag?: string;
|
|
1026
1025
|
mimeType?: string;
|
|
@@ -1048,7 +1047,7 @@ declare const DOCUMENT_TYPES: {
|
|
|
1048
1047
|
readonly JSON: "JSON";
|
|
1049
1048
|
readonly XML: "XML";
|
|
1050
1049
|
};
|
|
1051
|
-
|
|
1050
|
+
type DocumentType = keyof typeof DOCUMENT_TYPES;
|
|
1052
1051
|
/**
|
|
1053
1052
|
* Return a const for the document type of a shape (looks at mimeType)
|
|
1054
1053
|
*
|
|
@@ -1059,14 +1058,14 @@ declare type DocumentType = keyof typeof DOCUMENT_TYPES;
|
|
|
1059
1058
|
*/
|
|
1060
1059
|
declare const getShapeDocumentType: (shape?: ShapeType) => DocumentType;
|
|
1061
1060
|
|
|
1062
|
-
|
|
1061
|
+
type FilteredShapeListObject = {
|
|
1063
1062
|
src: string;
|
|
1064
1063
|
type: string;
|
|
1065
1064
|
shape: ShapeType;
|
|
1066
1065
|
parsedShape: ParsedShapeType;
|
|
1067
1066
|
[key: string]: string | ParsedShapeType | ShapeType;
|
|
1068
1067
|
};
|
|
1069
|
-
|
|
1068
|
+
type FilterShapeSourceOption = {
|
|
1070
1069
|
sortPriority?: Function;
|
|
1071
1070
|
allowedMimeTypes?: string[];
|
|
1072
1071
|
allowedMethods?: string[];
|
|
@@ -1093,7 +1092,7 @@ declare const SHAPE_MEDIA_TYPES: {
|
|
|
1093
1092
|
readonly DOCUMENT: "DOCUMENT";
|
|
1094
1093
|
readonly BINARY: "BINARY";
|
|
1095
1094
|
};
|
|
1096
|
-
|
|
1095
|
+
type ShapeMediaType = keyof typeof SHAPE_MEDIA_TYPES;
|
|
1097
1096
|
/**
|
|
1098
1097
|
* Returns a const for which media type a shape has
|
|
1099
1098
|
*
|
|
@@ -1121,7 +1120,7 @@ declare const findNearestThumbnail: (itemType: ItemType, timeCode: TimeCode | Ti
|
|
|
1121
1120
|
/**
|
|
1122
1121
|
* TODO
|
|
1123
1122
|
*/
|
|
1124
|
-
|
|
1123
|
+
type ParsedMediaConvertTranscodePreset = {
|
|
1125
1124
|
description?: string;
|
|
1126
1125
|
containerFormat?: any;
|
|
1127
1126
|
videoFormat?: string;
|
|
@@ -1148,10 +1147,7 @@ declare type ParsedMediaConvertTranscodePreset = {
|
|
|
1148
1147
|
*/
|
|
1149
1148
|
declare const parseMediaConvertPreset: (mediaconvert: TranscodePresetType['mediaconvert']) => ParsedMediaConvertTranscodePreset;
|
|
1150
1149
|
|
|
1151
|
-
|
|
1152
|
-
* TODO
|
|
1153
|
-
*/
|
|
1154
|
-
declare type ParsedTranscodePreset = {
|
|
1150
|
+
type ParsedTranscodePreset = {
|
|
1155
1151
|
description?: string;
|
|
1156
1152
|
containerFormat?: any;
|
|
1157
1153
|
videoFormat?: string;
|
|
@@ -1170,10 +1166,10 @@ declare type ParsedTranscodePreset = {
|
|
|
1170
1166
|
audioChannels?: number;
|
|
1171
1167
|
};
|
|
1172
1168
|
/**
|
|
1173
|
-
*
|
|
1169
|
+
* Parse a VidiCore transcode preset
|
|
1174
1170
|
*
|
|
1175
|
-
* @param transcodePresetType
|
|
1176
|
-
* @returns
|
|
1171
|
+
* @param transcodePresetType a VidiCore transcode preset
|
|
1172
|
+
* @returns A parsed transcode preset
|
|
1177
1173
|
*
|
|
1178
1174
|
* @category Transcode
|
|
1179
1175
|
*/
|