amocrm-client
Version:
JS Library for AmoCRM
20 lines (18 loc) • 744 B
text/typescript
import { IUserFactory } from "../api/factories/UserFactory";
import { IUserRoleFactory } from "../api/factories/UserRoleFactory";
import ResourceEntity from "../api/ResourceEntity";
import { IRightAttributes, IUserAttributes, IUserRightAttributes, IUserRoleAttributes } from "../interfaces/user";
export class UserDTO extends ResourceEntity<IUserFactory> implements IUserAttributes {
id: number;
name: string;
email: string;
lang: string;
rights: IUserRightAttributes;
uuid?: string | null | undefined;
amojo_id?: string | null;
}
export class UserRoleDTO extends ResourceEntity<IUserRoleFactory> implements IUserRoleAttributes {
id: number;
name: string;
rights: IRightAttributes;
}