- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability) - OpenAPI: CalendarSubscription schema, Subscriptions tag - Frontend app - Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings - Config, rate limit, auth, calendar, booking, ICS, availability, user service updates Made-with: Cursor
26 lines
486 B
JavaScript
26 lines
486 B
JavaScript
import { ValueSetter } from "./Setter.js";
|
|
|
|
export class Parser {
|
|
run(dateString, token, match, options) {
|
|
const result = this.parse(dateString, token, match, options);
|
|
if (!result) {
|
|
return null;
|
|
}
|
|
|
|
return {
|
|
setter: new ValueSetter(
|
|
result.value,
|
|
this.validate,
|
|
this.set,
|
|
this.priority,
|
|
this.subPriority,
|
|
),
|
|
rest: result.rest,
|
|
};
|
|
}
|
|
|
|
validate(_utcDate, _value, _options) {
|
|
return true;
|
|
}
|
|
}
|