amocrm-client
Version:
JS Library for AmoCRM
28 lines (25 loc) • 723 B
text/typescript
import { IEntityAttributes } from "./api";
import { Moment } from "./common";
import { EmbeddedContact } from "./contact";
import { EmbeddedCustomer } from "./customer";
import { EmbeddedLead } from "./lead";
export interface ITalkAttributes extends IEntityAttributes {
talk_id: number;
created_at: Date;
updated_at: Date;
rate: number;
contact_id: number;
chat_id: string;
entity_id: number;
entity_type: string;
is_in_work: boolean;
is_read: boolean;
origin: string;
missed_at: Date;
_embedded: TalkEmbedded;
}
export interface TalkEmbedded {
contacts: EmbeddedContact[];
leads: EmbeddedLead[];
customers: EmbeddedCustomer[];
}