UNPKG

hud-ai

Version:
33 lines (32 loc) 1.36 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; import { ArticleGeography } from '../entities'; export interface ArticleGeographyGetAttributes { articleId: string; geography: string; } export interface ArticleGeographyListAttributes extends HudAiListAttributes { articleId: string; geography?: string; } export interface ArticleGeographyCreateAttributes extends HudAiCreateAttributes { articleId: string; geography: string; } export interface ArticleGeographyDestroyAttributes { articleId: string; geography: string; } export declare class ArticleGeographyResource extends Resource<ArticleGeography, ArticleGeographyListAttributes, ArticleGeographyCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: ArticleGeographyListAttributes): Promise<{ count: number; rows: ArticleGeography[]; }>; create(createArgs: ArticleGeographyCreateAttributes): Promise<ArticleGeography>; get(getArgs: ArticleGeographyGetAttributes): Promise<ArticleGeography>; del(destroyArgs: ArticleGeographyDestroyAttributes): Promise<void>; destroy(destroyArgs: ArticleGeographyDestroyAttributes): Promise<void>; }