Kaizen
Browse modulesBookingsbookings/serverTypes

Type Alias: WaitlistParty

type WaitlistParty = {
  demand: number;
  groupId: string | null;
  members: {
     bookingId: string;
     capacityUnits: number;
     endsAt: Date;
     offerId: string;
     resourceId: string;
     startsAt: Date;
     version: number;
  }[];
  registeredAt: Date;
};

Defined in: server/bookings/waitlist-offer-repository.ts:49

A party in the waitlist queue (§6.10) — the bookings sharing a group_id (a groupless booking is a party of one), still actively queued. The party's FIFO position is its EARLIEST member registeredAt, and its demand is the SUM(capacity_units) across members.

Properties

demand

demand: number;

Defined in: server/bookings/waitlist-offer-repository.ts:54

Total capacity demand across the party's members.


groupId

groupId: string | null;

Defined in: server/bookings/waitlist-offer-repository.ts:50


members

members: {
  bookingId: string;
  capacityUnits: number;
  endsAt: Date;
  offerId: string;
  resourceId: string;
  startsAt: Date;
  version: number;
}[];

Defined in: server/bookings/waitlist-offer-repository.ts:55

bookingId

bookingId: string;

capacityUnits

capacityUnits: number;

endsAt

endsAt: Date;

offerId

offerId: string;

resourceId

resourceId: string;

startsAt

startsAt: Date;

version

version: number;

registeredAt

registeredAt: Date;

Defined in: server/bookings/waitlist-offer-repository.ts:52

FIFO key: the earliest registeredAt across the party's queued offers.

On this page