UNPKG

hud-ai

Version:
33 lines (32 loc) 1.26 kB
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { HudAiCreateAttributes, HudAiListAttributes, Resource } from '../utils/Resource'; import { RequestManager } from '../RequestManager'; import { UserCompany } from '../entities'; export interface UserCompanyGetAttributes { userId?: string; companyId: string; } export interface UserCompanyListAttributes extends HudAiListAttributes { userId?: string; companyId?: string; } export interface UserCompanyCreateAttributes extends HudAiCreateAttributes { userId?: string; companyId: string; } export interface UserCompanyDestroyAttributes { userId?: string; companyId: string; } export declare class UserCompanyResource extends Resource<UserCompany, UserCompanyListAttributes, UserCompanyCreateAttributes, any> { constructor(requestManager: RequestManager); list(listArgs: UserCompanyListAttributes): Promise<{ count: number; rows: UserCompany[]; }>; create(createArgs: UserCompanyCreateAttributes): Promise<UserCompany>; get(getArgs: UserCompanyGetAttributes): Promise<UserCompany>; del(destroyArgs: UserCompanyDestroyAttributes): Promise<void>; destroy(destroyArgs: UserCompanyDestroyAttributes): Promise<void>; }