UNPKG

amocrm-client

Version:
13 lines (12 loc) 1.02 kB
import { IResourceEntityWithEmbedded } from "../../../interfaces/api"; import { TConstructor, TEntityEmbeddedConstructor } from "../../../types"; import { IRequestOptions } from "../../../interfaces/common"; import { ICanGetByIdFactory } from "../../factories/mixins/hasGetById"; import { ICatalogElement } from "../CatalogElement"; import { CatalogCriteria, CatalogElementCriteria } from "../../../interfaces/catalog"; import { ICatalog } from "../Catalog"; export interface IHasCatalogsEntity<T extends ICanGetByIdFactory<IResourceEntityWithEmbedded<T>>> extends IResourceEntityWithEmbedded<T> { catalogs(criteria?: CatalogCriteria, options?: IRequestOptions): Promise<ICatalog[] | false>; catalogElements(criteria?: Pick<CatalogElementCriteria, "with">, options?: IRequestOptions): Promise<ICatalogElement[]>; } export declare function hasCompanies<T extends ICanGetByIdFactory<IResourceEntityWithEmbedded<T>>>(Base: TEntityEmbeddedConstructor<T>): TConstructor<IResourceEntityWithEmbedded<T>>;