@welldot/utils
getPermitTimeline
Merges a permit's history and every condition's fulfillments into one list ordered by local calendar date, newest first. Fulfillments are placed at the local date of their datetime in timeZone (the well's location.properties.timezone), or as written when no zone is given.
getPermitTimeline(
permit,timeZone?):PermitTimelineItem
Merges a permit's history and every condition's fulfillments into one
list ordered by local calendar date, newest first. Fulfillments are placed
at the local date of their datetime in timeZone (the well's
location.properties.timezone), or as written when no zone is given.
Parameters
permit
Permit
timeZone?
string