import { FileUpload } from '..'; import { FileUploadResponse } from './FileUpload'; import { LocationACL, LocationACLResponse } from './Location'; import { ResourceProfile, ResourceProfileResponse } from './Resource'; export interface LibraryFolderPathResponse { id: string; name: string; } export type LibraryFolderPath = LibraryFolderPathResponse; export interface LibraryPresentationDataResponse { application_thumbnail_url: string; thumbnail_url: string; application_icon_url: string; file_uploads: FileUploadResponse[] | null; } export interface LibraryPresentationData { applicationThumbnailUrl: string; thumbnailUrl: string; applicationIconUrl: string; fileUploads: FileUpload[] | null; } export type LibraryResource = 'folder' | 'presentation' | 'playlist'; export interface ContentResponse { id: string; name: string; resource_type: string; resource_id: string; last_activity_at: string; updated_at: string; created_at: string; owned_by: ResourceProfileResponse; acl: LocationACLResponse[]; presentation_data: LibraryPresentationDataResponse; } export interface Content { id: string; name: string; resourceType: string; resourceId: string; lastActivityAt: string; updatedAt: string; createdAt: string; ownedBy: ResourceProfile; acl: LocationACL[]; presentationData: LibraryPresentationData; } export type GetLibraryRequest = undefined; export interface GetLibraryResponse { total: number; data: ContentResponse[]; folder_path: LibraryFolderPathResponse[]; } export interface GetLibrary { total: number; data: Content[]; folderPath: LibraryFolderPath[]; }