Event types
Lumora sends one event type per kind of record, named <entity>.updated, with the whole record in data. An app receives an event only if the business granted a scope that covers it; the sync.read scope covers all of them.
| Event | Data | Scope |
|---|---|---|
ping | A test event from the dashboard or console. | Always sent |
tax_rate.updated | TaxRate | catalog.read |
category.updated | Category | catalog.read |
item.updated | Item | catalog.read |
item_variant.updated | ItemVariantItemVariant is what is actually sold: every item has at least one. | catalog.read |
modifier_group.updated | ModifierGroup | catalog.read |
modifier.updated | Modifier | catalog.read |
location_price.updated | LocationPriceLocationPrice sells a variant at one location for a different price than the catalog's. Managers can set them for their own locations; the catalog itself is shared by every location. | catalog.read |
department.updated | DepartmentDepartment is a part of the business that makes or serves what is sold: Kitchen, Bar, Barista. Categories and items belong to one; kitchen tickets go to it, and sales are reported by it. | catalog.read |
discount.updated | DiscountDiscount is a preset discount the register offers: "Staff 20%", "Happy hour", "$5 off $50". The register applies it to an order as an orders.v1.AppliedDiscount, a snapshot of these terms. See docs/adr/0026-discounts.md for how the rules work offline. | catalog.read |
order.updated | OrderOrder is pushed whole while it is open. Amounts are integer minor units in the organization's currency. Names and prices are snapshots taken at sale time, so later catalog edits never change an old order. A tab (an order with a table or a tab name) is often changed by several devices: a server's handheld, the bar, the counter. Pushes merge rather than replace: - The order's own fields (table, guests, note, discount, customer, state) come from the push with the newest clock. - Each line carries the clock of its last change and is merged on its own, so lines added or changed on different devices all survive. - A removed line stays in removed_lines with the clock of its removal, which beats any older copy of the line another device still sends. The server prices the merged order and sends it back through the feed. Completing an order is refused when the merge changes it: the device that took payment had not seen everything on the tab. | orders.read |
payment.updated | PaymentPayment is an immutable fact: it is pushed once and never changed. | orders.read |
drawer_session.updated | DrawerSessionDrawerSession is one shift of a device's cash drawer, from opening float to closing count. A device has at most one open session. | orders.read |
drawer_movement.updated | DrawerMovementDrawerMovement is cash added to or taken from an open drawer outside a sale. | orders.read |
refund.updated | RefundRefund is an immutable fact, created offline like a payment. It returns units of a completed order, at the location of the device that takes it back. Each line gives back its share of the line's sales (net of discounts and of inclusive tax) and of its tax, each counted cumulatively so that refunding every unit, in any number of refunds, gives back exactly what was paid: share(x) = round(x × (before + quantity) / sold) - round(x × before / sold) amount = share(sales) + share(tax) where before is how many units of the line earlier refunds returned and rounding is half away from zero. The shared pricing packages implement it as refundShare. Tips are not refunded. | orders.read |
kitchen_ticket.updated | KitchenTicketKitchenTicket is what one station has to make for one course of an order. The device that sends it creates it offline and pushes it once; after that only its status changes, from any device at the location (newest clock wins), as the kitchen starts and bumps it, strikes items or marks it a priority. | orders.read |
customer.updated | Customer | customers.read |
loyalty_program.updated | LoyaltyProgramLoyaltyProgram is the organization's loyalty program; its id is the organization's id. Amounts are minor units. Tiers, rewards and campaigns are part of the program document: an owner edits them together on the dashboard and each list is replaced whole when it changes (ADR 120). | customers.read |
stock_level.updated | StockLevelStockLevel is what a register sees: how many of a variant a location has. It is synced through the feed and kept by the server. | inventory.read |
dining_area.updated | DiningAreaDiningArea groups tables: "Patio", "Bar", "Main room". | dining.read |
dining_table.updated | DiningTableDiningTable is a table on the floor plan. Its place is a cell on a grid 12 cells wide and 8 deep per area, so a plan drawn on the dashboard looks the same on every register. A square or round table takes one cell, a long one two side by side. | dining.read |
kitchen_station.updated | KitchenStationKitchenStation is a screen in the kitchen or bar: grill, cold, bar. Items in its departments or categories go to its tickets. A station with neither takes whatever no other station takes; with no stations at all, every ticket goes to every kitchen screen, which can show one department. | dining.read |
printer.updated | PrinterPrinter is a printer at a location. What it prints comes from its profiles; a printer with none prints nothing until one is added. | dining.read |
printer_profile.updated | PrinterProfilePrinterProfile says what a printer prints: "Front counter" prints receipts and bills, "Kitchen" prints the kitchen's tickets, "Bar" the bar's. Printers share profiles, so a second kitchen printer takes the same tickets by adding the same profile. | dining.read |
staff_member.updated | StaffMemberStaffMember is someone customers book: a stylist, a therapist. They take bookings for their services during their hours. | appointments.read |
booking_resource.updated | BookingResourceBookingResource is something a service needs one of: a chair, a treatment room, a wash basin. A service listed by any resource takes one free resource for each booking. | appointments.read |
booking.updated | BookingBooking holds a person (and a resource, when the service needs one) for a stretch of time. Booked, arrived and completed bookings hold their time; cancelled ones and no-shows free it. | appointments.read |
timecard.updated | TimecardTimecard is time someone clocked at a location. A register pushes it when they clock in and again as it changes; it is the register's until a manager edits it on the dashboard. | team.read |
register_event.updated | RegisterEventRegisterEvent is one thing a team member did on a register, for the audit log: signing in, clocking in, opening a screen, a refund, a manager approval, a refused action. Registers push them through sync, offline too. | orders.read |
team_member.updated | TeamMemberTeamMember is someone who works at the business. Registers receive the team through the change feed, with the passcode check (salt and hash); the dashboard never sees those. | team.read |
shift.updated | ScheduledShiftShift is a scheduled stretch of work at a location. | team.read |
time_off_request.updated | TimeOffRequest | team.read |
shift_request.updated | ShiftRequest | team.read |
availability.updated | AvailabilityAvailability is one team member's week. Registers push it whole when someone changes their own. | team.read |
announcement.updated | Announcement | team.read |
announcement_ack.updated | AnnouncementAckAnnouncementAck is a team member confirming they read an announcement, on a register; pushed through sync. | team.read |
position.updated | Position | team.read |
till_prompt.updated | TillPromptTillPrompt is Nuru at the register and handheld (ADR 90): an item about to run out today, or a prep task due. Made on the server and synced to the location's devices through the change feed, so a register shows it offline; a register dismisses it with TillPromptDismiss. | insights.read |
named_shift.updated | NamedShift | team.read |
shift_run.updated | ShiftRunShiftRun is a shift someone works: started on the register, open across clock-ins and clock-outs, and ended by them (or a manager). | team.read |