@welldot/utils

getPermitEffectiveEnd

Effective end date of a permit: the day before its successor's start date when superseded; otherwise validuntil; none while the status is activependingrenewal or when there is no fixed expiry.

getPermitEffectiveEnd(well, permit, today?): string | undefined

Effective end date of a permit: the day before its successor's start date when superseded; otherwise valid_until; none while the status is active_pending_renewal or when there is no fixed expiry.

Parameters

well

Well

permit

Permit

today?

string = ...

Returns

string | undefined