hud-ai
Version:
Hud.ai API Client
30 lines (29 loc) • 1.24 kB
TypeScript
/// <reference types="bluebird" />
import * as Promise from 'bluebird';
import { HudAiCreateAttributes, HudAiListAttributes, HudAiUpdateAttributes, Resource } from '../utils/Resource';
import { RequestManager } from '../RequestManager';
import { Industry } from '../entities';
export interface IndustryListAttributes extends HudAiListAttributes {
name?: string;
textCorpus?: string;
}
export interface IndustryCreateAttributes extends HudAiCreateAttributes {
name: string;
textCorpus?: string;
}
export interface IndustryUpdateAttributes extends HudAiUpdateAttributes {
name?: string;
textCorpus?: string;
}
export declare class IndustryResource extends Resource<Industry, IndustryListAttributes, IndustryCreateAttributes, IndustryUpdateAttributes> {
constructor(requestManager: RequestManager);
list(listArgs: IndustryListAttributes): Promise<{
count: number;
rows: Industry[];
}>;
create(createArgs: IndustryCreateAttributes): Promise<Industry>;
get(id: string | number): Promise<Industry>;
update(id: string | number, updateArgs: IndustryUpdateAttributes): Promise<Industry>;
del(id: string | number): Promise<void>;
destroy(id: string | number): Promise<void>;
}