UNPKG

hud-ai

Version:
42 lines (41 loc) 1.41 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; export interface BasicVideoCompany { companyId: string; } export interface VideoCompany extends BasicVideoCompany { id: string; videoId: string; companyId: string; createdAt: Date; updatedAt: Date; } export interface VideoCompanyListAttributes extends HudAiListAttributes { videoId: string; companyId?: string; } export interface VideoCompanyCreateAttributes extends HudAiCreateAttributes { videoId: string; companyId: string; } export interface VideoCompanyDestroyAttributes { videoId: string; companyId: string; } export declare class VideoCompanyResource extends Resource<VideoCompany, VideoCompanyListAttributes, VideoCompanyCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: VideoCompanyListAttributes): Promise<{ count: number; rows: VideoCompany[]; }>; related(companyId: string): Promise<{ rows: { companyId: string; }[]; }>; create(createArgs: VideoCompanyCreateAttributes): Promise<VideoCompany>; del(destroyArgs: VideoCompanyDestroyAttributes): Promise<void>; destroy(destroyArgs: VideoCompanyDestroyAttributes): Promise<void>; }