hud-ai
Version:
Hud.ai API Client
23 lines (22 loc) • 923 B
TypeScript
/// <reference types="bluebird" />
import * as Promise from 'bluebird';
import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource';
import { RequestManager } from '../RequestManager';
import { KeyTerm } from '../entities';
export interface KeyTermListAttributes extends HudAiListAttributes {
term?: string;
}
export interface KeyTermCreateAttributes extends HudAiCreateAttributes {
term: string;
}
export declare class KeyTermResource extends Resource<KeyTerm, KeyTermListAttributes, KeyTermCreateAttributes, any> {
constructor(requestManager: RequestManager);
list(listArgs: KeyTermListAttributes): Promise<{
count: number;
rows: KeyTerm[];
}>;
create(createArgs: KeyTermCreateAttributes): Promise<KeyTerm>;
get(id: string | number): Promise<KeyTerm>;
del(id: string | number): Promise<void>;
destroy(id: string | number): Promise<void>;
}