// DO NOT EDIT THIS SCHEMA UNLESS YOU KNOW WHAT YOU ARE DOING // This file is shared between several repositories and platforms, // and any edits will break compatibility between these apps // If changes to the schema need to be made, the schema version needs to // be incremented, an adapter added to the Video Management API // to convert from the previous schema version to the new one, and the // changes synced across all repos that use it // If you need to add calculated fields to the schema for internal app use, // use a factory to copy this data to a local view model // V2 Schema for Video Metadata import { InteractionData } from './interaction-data.model'; import { VideoLocationData } from './video-location-data.model'; import { VideoOwnerData } from './video-owner-data.model'; export interface VideoData { created_at: string; interactions: InteractionData[]; schema_version: number; updated_at: string; video: { description: string; duration: number; height: number; language: string; owner: VideoOwnerData; signature: string; source_url?: string; thumbnail_url: string; title: string; video_id: string; video_locations: VideoLocationData[]; width: number; }; }