amocrm-client
Version:
JS Library for AmoCRM
40 lines (35 loc) • 1.24 kB
text/typescript
import ResourceEntity from "../api/ResourceEntity";
import { ICatalogAttributes, ICatalogElementAttributes } from "../interfaces/catalog";
import { Moment } from "../interfaces/common";
import { ICustomFieldValue } from "../interfaces/custom_field";
import { SelfLinkDTO } from "./link.dto";
export class CatalogDTO extends ResourceEntity<any> implements ICatalogAttributes {
id: number;
name: string;
sort: number;
type: string;
can_add_elements: boolean;
can_show_in_cards: boolean;
can_link_multiple: boolean;
can_be_deleted: boolean;
sdk_widget_code: string;
created_by: number;
updated_by: number;
created_at: Date;
metadata?: { quantity: number; catalog_id: number; price_id: number; } | undefined;
account_id?: number | undefined;
_links?: SelfLinkDTO;
}
export class CatalogElementDTO extends ResourceEntity<any> implements ICatalogElementAttributes {
id: number;
catalog_id: number;
name: string;
is_deleted: boolean;
custom_fields_value: ICustomFieldValue[] | null;
created_by: number;
updated_by: number;
created_at: Date;
updated_at: Date;
account_id?: number;
_links?: SelfLinkDTO;
}