Kaizen
Browse modulesBookingsbookings/sharedTypes

Type Alias: CapSeriesRuleResult

type CapSeriesRuleResult = {
  cappedBy: "count" | "until";
  occurrencesBefore: number | null;
  recurrenceRule: string;
  remainingCount: number | null;
};

Defined in: shared/bookings/series-template.ts:166

Properties

cappedBy

cappedBy: "count" | "until";

Defined in: shared/bookings/series-template.ts:170

Which RFC-legal mechanism expressed the cap.


occurrencesBefore

occurrencesBefore: number | null;

Defined in: shared/bookings/series-template.ts:177

Rule occurrences strictly before the split โ€” counts EVERY rule occurrence regardless of exception status (a cancelled exception still consumed one of the purchased N, spec ยง6.8). Null for non-COUNT rules (computing it would require unbounded iteration and nothing needs it).


recurrenceRule

recurrenceRule: string;

Defined in: shared/bookings/series-template.ts:168

The capped rule for the OLD (predecessor) series.


remainingCount

remainingCount: number | null;

Defined in: shared/bookings/series-template.ts:182

Remaining purchased occurrences for the successor's COUNT (total โˆ’ occurrencesBefore), or null when the old rule had no COUNT.

On this page