skailan-crm
Version:
Servicio de CRM y gestión de ventas para Skailan
37 lines • 1.12 kB
JavaScript
export class Activity {
id;
organizationId;
type;
description;
date;
relatedLeadId;
relatedOpportunityId;
assignedToUserId;
status;
createdAt;
updatedAt;
constructor(id, organizationId, type, // e.g., Call, Email, Meeting, Task
description, date, relatedLeadId, relatedOpportunityId, assignedToUserId, status, // e.g., Pending, Completed, Canceled
createdAt, updatedAt) {
this.id = id;
this.organizationId = organizationId;
this.type = type;
this.description = description;
this.date = date;
this.relatedLeadId = relatedLeadId;
this.relatedOpportunityId = relatedOpportunityId;
this.assignedToUserId = assignedToUserId;
this.status = status;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
}
updateStatus(newStatus) {
this.status = newStatus;
this.updatedAt = new Date();
}
updateDescription(newDescription) {
this.description = newDescription;
this.updatedAt = new Date();
}
}
//# sourceMappingURL=Activity.js.map