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