amocrm-client
Version:
JS Library for AmoCRM
55 lines (54 loc) • 1.98 kB
TypeScript
import { ILeadEmbedded, ILossReason, ILeadAttributes } from '../interfaces/lead';
import ResourceEntity from '../api/ResourceEntity';
import { ILeadFactory } from '../api/factories/LeadFactory';
import { SelfLinkDTO } from './link.dto';
import { ITag } from '../api/models/Tag';
import { ICompany } from '../api/models/Company';
import { IContact } from '../api/models/Contact';
import { Moment } from '../interfaces/common';
import { CustomFieldValueDTO } from './custom_fields/field.dto';
import { ICatalogElement } from '../api/models/CatalogElement';
import { ResourceEntityEmbedded } from '../api/ResourceEntityEmbedded';
declare class LeadEmbeddedDTO extends ResourceEntityEmbedded<ILeadFactory, ILeadEmbedded> implements ILeadEmbedded {
tags: ITag[];
companies: ICompany[];
catalog_elements?: ICatalogElement[];
loss_reason?: LossReasonDTO[];
contacts?: IContact[];
constructor(factory: ILeadFactory, attributes: ILeadEmbedded);
}
export declare class LeadDTO extends ResourceEntity<ILeadFactory> implements ILeadAttributes {
id: number;
name: string;
price: number;
status_id: number;
pipeline_id: number;
loss_reason_id: number;
responsible_user_id: number;
group_id: number;
is_deleted: boolean;
score: number | null;
is_price_modified_by_robot?: boolean;
source_id?: string;
request_id?: string;
custom_fields_values: CustomFieldValueDTO[];
_embedded: LeadEmbeddedDTO;
created_by: number;
updated_by: number;
created_at: Date;
updated_at: Date;
closed_at: Date;
closest_task_at: Date;
account_id: number | undefined;
_links: SelfLinkDTO;
constructor(factory: ILeadFactory, attributes: ILeadAttributes);
}
declare class LossReasonDTO implements ILossReason {
id: number;
name: string;
sort: number;
created_at: Date;
updated_at: Date;
_links: SelfLinkDTO;
}
export {};