hud-ai
Version:
Hud.ai API Client
33 lines (32 loc) • 1.29 kB
TypeScript
/// <reference types="bluebird" />
import * as Promise from 'bluebird';
import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource';
import { RequestManager } from '../RequestManager';
import { UserIndustry } from '../entities';
export interface UserIndustryGetAttributes {
userId?: string;
industryId: string;
}
export interface UserIndustryListAttributes extends HudAiListAttributes {
userId?: string;
industryId?: string;
}
export interface UserIndustryCreateAttributes extends HudAiCreateAttributes {
userId?: string;
industryId: string;
}
export interface UserIndustryDestroyAttributes {
userId?: string;
industryId: string;
}
export declare class UserIndustryResource extends Resource<UserIndustry, UserIndustryListAttributes, UserIndustryCreateAttributes, any> {
constructor(requestManager: RequestManager);
list(listArgs: UserIndustryListAttributes): Promise<{
count: number;
rows: UserIndustry[];
}>;
create(createArgs: UserIndustryCreateAttributes): Promise<UserIndustry>;
get(getArgs: UserIndustryGetAttributes): Promise<UserIndustry>;
del(destroyArgs: UserIndustryDestroyAttributes): Promise<void>;
destroy(destroyArgs: UserIndustryDestroyAttributes): Promise<void>;
}