UNPKG

hud-ai

Version:
33 lines (32 loc) 1.23 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; import { ArticleTag } from '../entities'; export interface ArticleTagGetAttributes { articleId: string; tag: string; } export interface ArticleTagListAttributes extends HudAiListAttributes { articleId: string; tag?: string; } export interface ArticleTagCreateAttributes extends HudAiCreateAttributes { articleId: string; tag: string; } export interface ArticleTagDestroyAttributes { articleId: string; tag: string; } export declare class ArticleTagResource extends Resource<ArticleTag, ArticleTagListAttributes, ArticleTagCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: ArticleTagListAttributes): Promise<{ count: number; rows: ArticleTag[]; }>; create(createArgs: ArticleTagCreateAttributes): Promise<ArticleTag>; get(getArgs: ArticleTagGetAttributes): Promise<ArticleTag>; del(destroyArgs: ArticleTagDestroyAttributes): Promise<void>; destroy(destroyArgs: ArticleTagDestroyAttributes): Promise<void>; }