UNPKG

amocrm-client

Version:
10 lines (9 loc) 769 B
import { ICriteria, IResourceEntityWithEmbedded } from "../../../interfaces/api"; import { TConstructor, TEntityEmbeddedConstructor } from "../../../types"; import { IRequestOptions } from "../../../interfaces/common"; import { ICanGetByIdFactory } from "../../factories/mixins/hasGetById"; import { ICompany } from "../Company"; export interface IHasCompaniesEntity<T extends ICanGetByIdFactory<IResourceEntityWithEmbedded<T>>> extends IResourceEntityWithEmbedded<T> { companies(criteria?: Pick<ICriteria, "with">, options?: IRequestOptions): Promise<ICompany | false>; } export declare function hasCompanies<T extends ICanGetByIdFactory<IResourceEntityWithEmbedded<T>>>(Base: TEntityEmbeddedConstructor<T>): TConstructor<IResourceEntityWithEmbedded<T>>;