UNPKG

hud-ai

Version:
42 lines (41 loc) 1.39 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; export interface BasicVideoPerson { personId: string; } export interface VideoPerson extends BasicVideoPerson { id: string; videoId: string; personId: string; createdAt: Date; updatedAt: Date; } export interface VideoPersonListAttributes extends HudAiListAttributes { videoId: string; personId?: string; } export interface VideoPersonCreateAttributes extends HudAiCreateAttributes { videoId: string; personId: string; } export interface VideoPersonDestroyAttributes { videoId: string; personId: string; } export declare class VideoPersonResource extends Resource<VideoPerson, VideoPersonListAttributes, VideoPersonCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: VideoPersonListAttributes): Promise<{ count: number; rows: VideoPerson[]; }>; related(personId: string): Promise<{ rows: { personId: string; }[]; }>; create(createArgs: VideoPersonCreateAttributes): Promise<VideoPerson>; del(destroyArgs: VideoPersonDestroyAttributes): Promise<void>; destroy(destroyArgs: VideoPersonDestroyAttributes): Promise<void>; }