hud-ai
Version:
Hud.ai API Client
33 lines (32 loc) • 1.27 kB
TypeScript
/// <reference types="bluebird" />
import * as Promise from 'bluebird';
import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource';
import { RequestManager } from '../RequestManager';
import { ArticleCompany } from '../entities';
export interface ArticleCompanyListAttributes extends HudAiListAttributes {
articleId: string;
companyId?: string;
}
export interface ArticleCompanyCreateAttributes extends HudAiCreateAttributes {
articleId: string;
companyId: string;
}
export interface ArticleCompanyDestroyAttributes {
articleId: string;
companyId: string;
}
export declare class ArticleCompanyResource extends Resource<ArticleCompany, ArticleCompanyListAttributes, ArticleCompanyCreateAttributes, any> {
constructor(requestManager: RequestManager);
list(listArgs: ArticleCompanyListAttributes): Promise<{
count: number;
rows: ArticleCompany[];
}>;
related(companyId: string): Promise<{
rows: {
companyId: string;
}[];
}>;
create(createArgs: ArticleCompanyCreateAttributes): Promise<ArticleCompany>;
del(destroyArgs: ArticleCompanyDestroyAttributes): Promise<void>;
destroy(destroyArgs: ArticleCompanyDestroyAttributes): Promise<void>;
}