amocrm-client
Version:
JS Library for AmoCRM
39 lines (37 loc) • 1.6 kB
text/typescript
import { IAccountFactory } from "../api/factories/AccountFactory";
import ResourceEntity from "../api/ResourceEntity";
import { IAccountAttributes, IAccountEmbedded } from "../interfaces/account";
import { Moment } from "../interfaces/common";
import { ITaskType } from "../interfaces/task";
import { SelfLinkDTO } from "./link.dto";
export class AccountDTO extends ResourceEntity<IAccountFactory> implements IAccountAttributes {
id: number;
name: string;
subdomain: string;
country: string;
currency: string;
currency_symbol: string;
customer_mode: string;
is_unsorted_on: boolean;
current_user_id: number;
mobile_feature_vision: boolean;
is_loss_reason_enabled: boolean;
is_helpbod_enabled: false;
contact_name_display_order: number;
version?: number | undefined;
amojo_id?: string | undefined;
is_api_filter_enabled?: number | undefined;
_embedded: AccountEmbeddedDTO;
updated_at: Date;
created_at: Date;
created_by: number;
updated_by: number;
account_id?: number;
_links?: SelfLinkDTO;
}
export class AccountEmbeddedDTO implements IAccountEmbedded {
datetime_settings?: { date_pattern: string; short_date_pattern: string; short_time_pattern: string; date_format: string; time_format: string; timezone: string; timezone_offset: string; } | undefined;
amojo_rights?: { can_direct: boolean; can_create_groups: boolean; } | undefined;
user_groups: { id: number; name: string; uuid?: string | undefined; }[];
task_types?: ITaskType[] | undefined;
}