/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { ItemTypeEnum } from './ItemTypeEnum'; import type { MediaTypeEnum } from './MediaTypeEnum'; export type PatchedMediaResource = { readonly id?: number; /** * Title of the media resource */ title?: string; /** * Description of the media resource */ description?: string | null; /** * Type of media * * * `video` - Video * * `image` - Image * * `document` - Document * * `audio` - Audio * * `other` - Other */ media_type?: MediaTypeEnum; /** * Type of item this media is associated with * * * `course` - Course * * `unit` - Unit * * `resource` - Resource * * `course_unit` - Course and Unit * * `course_resource` - Course and Resource * * `unit_resource` - Unit and Resource * * `all` - Course, Unit, and Resource */ readonly item_type?: ItemTypeEnum; /** * ID of the associated course */ course_id?: string | null; /** * ID of the associated unit */ unit_id?: string | null; /** * ID of the associated item (resource) */ item_id?: string | null; /** * The platform this media resource belongs to */ readonly platform?: number; /** * External URL for the media resource */ file_url?: string | null; /** * Uploaded media file */ file?: string | null; /** * User who created this media resource */ readonly created_by?: number | null; /** * When this record was created */ readonly created_at?: string; /** * When this record was last updated */ readonly updated_at?: string; };