amocrm-client
Version:
JS Library for AmoCRM
11 lines (10 loc) • 449 B
TypeScript
import { IEntityAttributes, IResourceEntity, IResourceFactory } from "../interfaces/api";
import { Moment } from "../interfaces/common";
export default class ResourceEntity<T extends IResourceFactory<IResourceEntity<T>>, V = IEntityAttributes> implements IResourceEntity<T> {
id: number;
updated_at: Date;
protected readonly factory: T;
constructor(factory: T, attributes?: V);
getFactory(): T;
isNew(): boolean;
}