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