CallLog
Stored in the calllogs collection. createdAt and updatedAt are maintained automatically.
Returned by GET /calllog, POST /calllog, GET /calllog/:id, PUT /calllog/:id, POST /calllog/bulk.
| Field | Type | Notes |
|---|---|---|
company | ObjectId -> Company | |
deviceId | string | |
id | string | |
fromPhoneNumber.number | string | |
fromPhoneNumber.countryCode | string | |
phoneNumber.number | string | |
phoneNumber.countryCode | string | |
timestamp | date | required |
duration | number | default 0 |
type | string | required · one of incoming, outgoing, missed |
contactName | string | |
createdBy | ObjectId -> Member | |
updatedBy | ObjectId -> Member | |
_id | ObjectId | default "6a95712f932657988a91c06c" |
createdAt | date | set once |
updatedAt | date |