amocrm-client
Version:
JS Library for AmoCRM
10 lines (9 loc) • 769 B
TypeScript
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>>;