UNPKG

hud-ai

Version:
33 lines (32 loc) 1.3 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; import { CompanyKeyTerm } from '../entities'; export interface CompanyKeyTermGetAttributes { companyId: string; term: string; } export interface CompanyKeyTermListAttributes extends HudAiListAttributes { companyId: string; term?: string; } export interface CompanyKeyTermCreateAttributes extends HudAiCreateAttributes { companyId: string; term: string; } export interface CompanyKeyTermDestroyAttributes { companyId: string; term: string; } export declare class CompanyKeyTermResource extends Resource<CompanyKeyTerm, CompanyKeyTermListAttributes, CompanyKeyTermCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: CompanyKeyTermListAttributes): Promise<{ count: number; rows: CompanyKeyTerm[]; }>; create(createArgs: CompanyKeyTermCreateAttributes): Promise<CompanyKeyTerm>; get(getArgs: CompanyKeyTermGetAttributes): Promise<CompanyKeyTerm>; del(destroyArgs: CompanyKeyTermDestroyAttributes): Promise<void>; destroy(destroyArgs: CompanyKeyTermDestroyAttributes): Promise<void>; }