AlmondTill/G3N API

SchedulableResource

object type

A SchedulableResource — a bookable entity at a LogicalFacility: the staff member / station / equipment Appointments book against. capacity = concurrent bookings (default 1); the confirm gate checks CAPACITY ONLY. workingHours are ADVISORY v1 — naive wall-clock weekly windows (the estate carries no timezone — the map disclosed boundary): the availability read returns them, NO gate consumes them. The OPERATIONAL lifecycle verbatim. The gate: a RESERVED booking (a confirmed/in_progress Appointment) blocks deactivate AND doom, CONFLICT/REFERENCED naming the appointments; requested Appointments deliberately do NOT block (they refuse honestly at confirm via the ACTIVE re-read).

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The group-scoped human-facing system id (SR-…).
typeString String!The kind of record — always SchedulableResource here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: active | inactive | doomed.
parentIdID ID!The parent LogicalFacility; rootId = the org group; parentId!== rootId always.
rootIdID ID!The org-group family root.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
resourceTypeSchedulableResourceType SchedulableResourceType!The canned resource kind — set at creation, IMMUTABLE (re-kind = create + doom).
userIdIDThe optional staff link — staff-kind resources only; in-tenant + ACTIVE at set; editable (re-staffing is operational reality); null = no link.
capacityInt Int!Concurrent-booking capacity (1..100; default 1) — the confirm gate refuses CONFLICT/DOUBLE_BOOKED at this ceiling unless the appointment.overbook_allowed policy admits.
workingHoursWorkingHoursWindow [WorkingHoursWindow!]!The weekly working-hours calendar (≤28 windows; split shifts legal; empty = none declared) — ADVISORY v1: naive wall-clock minutes at the facility, returned by the availability read, consumed by NO gate.
codeStringOptional mutable merchant reference code; uniqueness NOT enforced.

Used by