UNPKG

hud-ai

Version:
33 lines (32 loc) 1.25 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; import { ArticlePerson } from '../entities'; export interface ArticlePersonListAttributes extends HudAiListAttributes { articleId: string; personId?: string; } export interface ArticlePersonCreateAttributes extends HudAiCreateAttributes { articleId: string; personId: string; } export interface ArticlePersonDestroyAttributes { articleId: string; personId: string; } export declare class ArticlePersonResource extends Resource<ArticlePerson, ArticlePersonListAttributes, ArticlePersonCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: ArticlePersonListAttributes): Promise<{ count: number; rows: ArticlePerson[]; }>; related(personId: string): Promise<{ rows: { personId: string; }[]; }>; create(createArgs: ArticlePersonCreateAttributes): Promise<ArticlePerson>; del(destroyArgs: ArticlePersonDestroyAttributes): Promise<void>; destroy(destroyArgs: ArticlePersonDestroyAttributes): Promise<void>; }