hud-ai
Version:
Hud.ai API Client
33 lines (32 loc) • 1.28 kB
TypeScript
/// <reference types="bluebird" />
import * as Promise from 'bluebird';
import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource';
import { RequestManager } from '../RequestManager';
import { PersonKeyTerm } from '../entities';
export interface PersonKeyTermGetAttributes {
personId: string;
term: string;
}
export interface PersonKeyTermListAttributes extends HudAiListAttributes {
personId: string;
term?: string;
}
export interface PersonKeyTermCreateAttributes extends HudAiCreateAttributes {
personId: string;
term: string;
}
export interface PersonKeyTermDestroyAttributes {
personId: string;
term: string;
}
export declare class PersonKeyTermResource extends Resource<PersonKeyTerm, PersonKeyTermListAttributes, PersonKeyTermCreateAttributes, any> {
constructor(requestManager: RequestManager);
list(listArgs: PersonKeyTermListAttributes): Promise<{
count: number;
rows: PersonKeyTerm[];
}>;
create(createArgs: PersonKeyTermCreateAttributes): Promise<PersonKeyTerm>;
get(getArgs: PersonKeyTermGetAttributes): Promise<PersonKeyTerm>;
del(destroyArgs: PersonKeyTermDestroyAttributes): Promise<void>;
destroy(destroyArgs: PersonKeyTermDestroyAttributes): Promise<void>;
}