@welldot/utils
getPermitWarnings
Returns the validation warnings of the permits block defined by .well v2.3. Warnings never make a file invalid:
getPermitWarnings(
well,today?):PermitWarning
Returns the validation warnings of the permits block defined by .well
v2.3. Warnings never make a file invalid:
valid_until_before_valid_from—valid_untilearlier than the start date.supersedes_unresolved/supersedes_cycle— broken succession chain.overlapping_validity— two granted, non-superseded permits of the sametypewith overlapping validity.daily_operating_time_normalized— a permit or monthly value above 24, read as 24 by every derivation (v2.4; renamed fromdaily_operating_time_out_of_range). The stored value is not rewritten.monthly_above_max— amonthly_schedulevalue above the permit maximum.duplicate_month/duplicate_volume_period/duplicate_condition_id/duplicate_history_id/duplicate_fulfillment_id.condition_due_conflict— a condition with bothfirst_dueanddue_after.invalid_duration— adue_afterorrecurrencethat is not a date duration.missing_identifier— neitheridentifiernorrequest_identifier.granted_without_identifier— a granted permit with noidentifier.unmatched_fulfillment— a fulfillment whosedue_datematches no generated deadline, or with nodue_dateon a dated condition.missing_timezone— the well has nolocation.properties.timezonebut some permits have condition fulfillments (listed inids). v2.4.
Parameters
well
Well
today?
string = ...