Interface: NormalizedHubstaffEntry
Defined in: src/lib/hubstaff/index.ts:11
Pure Hubstaff data normalization (no I/O). Turns a webhook payload or a CSV export into a list of normalized time entries we can map to contractors/assignments and upsert.
IMPORTANT: Hubstaff's exact webhook payload shape is not pinned down here — normalizeActivities
is deliberately tolerant (accepts an array, an events/activities wrapper, or a single
activity, and several field-name variants). Confirm against a real Hubstaff delivery and
tighten as needed. The CSV path expects a defined header set (member_id, date, hours|time).
Properties
date
date:
string
Defined in: src/lib/hubstaff/index.ts:15
externalId
externalId:
string|null
Defined in: src/lib/hubstaff/index.ts:12
hours
hours:
number
Defined in: src/lib/hubstaff/index.ts:16
memberId
memberId:
string
Defined in: src/lib/hubstaff/index.ts:13
projectId
projectId:
string|null
Defined in: src/lib/hubstaff/index.ts:14