amocrm-client
Version:
JS Library for AmoCRM
13 lines (12 loc) • 716 B
TypeScript
import { TConstructor } from "../../types";
import { IRequestOptions } from "../../interfaces/common";
import { IResourceEntity } from "../../interfaces/api";
import { CatalogCriteria, ICatalogAttributes } from "../../interfaces/catalog";
import { ICatalogFactory } from "../factories/CatalogFactory";
export interface ICatalog extends IResourceEntity<ICatalogFactory>, ICatalogAttributes {
create(options?: IRequestOptions): Promise<ICatalog>;
update(options?: IRequestOptions): Promise<ICatalog>;
save(options?: IRequestOptions): Promise<ICatalog>;
fetch(criteria?: CatalogCriteria, options?: IRequestOptions): Promise<ICatalog>;
}
export declare const Catalog: TConstructor<ICatalog>;