@go-labs-sg/event-tech 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +220 -1
- package/command-reference.md +81 -0
- package/dist/index.js +1923 -81
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -231,6 +231,39 @@ station-session stamping of other stations is unaffected. Read the current state
|
|
|
231
231
|
`overview` (`passport.guestScan`) or, as a guest, from `mine` (`settings.guestScanEnabled`).
|
|
232
232
|
Turn it back on by sending `"guestScan":true`.
|
|
233
233
|
|
|
234
|
+
Simplified Chinese: optional `"simplifiedChinese": true|false` in `--settings-json` controls
|
|
235
|
+
whether the guest passport offers a 简体中文 language option next to English. It translates the
|
|
236
|
+
passport's own wording (buttons, labels, dates, messages); text the organiser entered, such as
|
|
237
|
+
event, station and prize names and descriptions, is shown as entered. Omit it to keep the stored
|
|
238
|
+
value; an event that never set it reads as off, so guests see English only. Read the current state
|
|
239
|
+
from `overview` (`passport.simplifiedChinese`) or, before or after sign-in, from `login-options`
|
|
240
|
+
(`simplifiedChinese`). Turn it off again by sending `"simplifiedChinese":false`; open signed-in passports
|
|
241
|
+
switch back to English.
|
|
242
|
+
|
|
243
|
+
Identifier label: optional `"staffIdLabel": "<text>"` (up to 40 characters) in `--settings-json`
|
|
244
|
+
names the roster identifier that guests sign in with, station crew look up and organisers see on
|
|
245
|
+
the roster. It defaults to `Employee Number`; send `"staffIdLabel":"Staff ID"` for an event that
|
|
246
|
+
calls it that. Only the wording changes: the `staffId` fields, `loginMethods.staffId` and the
|
|
247
|
+
roster flags keep their names, and the Simplified Chinese passport keeps 员工编号 whatever the
|
|
248
|
+
label. Omit it to keep the stored label; send `"staffIdLabel":null` (or a blank string) to reset
|
|
249
|
+
it to `Employee Number`. Read the current label from `overview` (`passport.staffIdLabel`), from
|
|
250
|
+
`login-options` (`staffIdLabel`), as a guest from `mine` (`settings.staffIdLabel`), or from
|
|
251
|
+
`export` (`staffIdLabel`, for column headers). Changing it is recorded in the activity log.
|
|
252
|
+
|
|
253
|
+
Queue status: optional `"queueStatus": true|false` in `--settings-json` lets station crew set how
|
|
254
|
+
long the queue is at each station (`< 10 mins`, `< 30 mins` or `> 30 mins`), which guests then see
|
|
255
|
+
on the station in their passport. It is off for an event that never set it. Optional
|
|
256
|
+
`"queueStatusStaleMinutes": <1-240>` is how long a set wait stays trusted before guests see "Not
|
|
257
|
+
updated recently" instead of the age (default 20; `null` resets it). Omit either to keep the stored
|
|
258
|
+
value. Crew set the wait in the browser; `passport station queue-status --event-id <id> --station-id
|
|
259
|
+
<id> --status under-10|under-30|over-30|clear` does the same as an event operator. It is refused
|
|
260
|
+
while queue status is off, setting the same wait again refreshes its time, `clear` removes the wait,
|
|
261
|
+
and every change is recorded in the activity log with the station and who set it. Turning the
|
|
262
|
+
setting off hides waits from guests without deleting them. Read the switch from `overview`
|
|
263
|
+
(`passport.queueStatus`, `passport.queueStatusStaleMinutes`), each station's wait from `overview`
|
|
264
|
+
(`stations[].queueStatus`: `{status,updatedAt}` or `null`, hidden stations included) and the guest
|
|
265
|
+
view from `passport queue-status` (`enabled`, `staleMinutes`, and only visible stations with a wait).
|
|
266
|
+
|
|
234
267
|
`stamp correct`, `redemption reverse`, station/prize archive and print revocation
|
|
235
268
|
require `--allow-state-change --target <same-event-id>`; correction/reversal also
|
|
236
269
|
require a reason. Scored corrections accept `--points` and preserve historical
|
|
@@ -301,7 +334,8 @@ event through the optional `passport` block of the event appearance (hero key
|
|
|
301
334
|
visual with a focal point, logo, a graphics-only colour, a dark block colour and
|
|
302
335
|
`emphasis`). `skin` commands read and write only that block, using the same
|
|
303
336
|
version-fenced `updateEventAppearance` procedure and `event.setup` permission as
|
|
304
|
-
the web editor; every other appearance setting is preserved.
|
|
337
|
+
the web editor; every other appearance setting is preserved. They work for Staff
|
|
338
|
+
Redemption events too (colours and emphasis only, see below).
|
|
305
339
|
|
|
306
340
|
```sh
|
|
307
341
|
et passport skin get --event-id <id>
|
|
@@ -316,6 +350,7 @@ et passport skin clear --event-id <id> --appearance-version 5
|
|
|
316
350
|
- `colors.graphic` paints shapes only, never text. `colors.dark` needs 4.5:1 contrast with white.
|
|
317
351
|
- `skin clear` returns the event to the Go Labs default look (the reverse of `skin set`). Appearance saves that omit `passport`, including `event appearance update`, keep the stored skin.
|
|
318
352
|
- Uploads accept JPEG, PNG, WebP or GIF up to 25 MB. SVG is not allowed.
|
|
353
|
+
- The same commands theme a Staff Redemption event: `colors.graphic`, `colors.dark` and `emphasis`, together with the event theme (`et event appearance`), also colour the crew counter and its prize wheel (Settings > Appearance > Counter look in the web app). `heroImage` and `logo` are used only by Event Passport; the Staff Redemption counter ignores them. `skin set` leaves a stored `heroImage` or `logo` as it is unless the patch names it; `skin clear` resets the whole block, including them. To match the Micron Passport look: theme `accentColor` `#06befe`, `backgroundColor` `#e3f7ff`, `textColor` `#0b2d5b` (`et event appearance update`), then `skin set --skin-json '{"colors":{"graphic":"#e8483b","dark":"#0b2d5b"},"emphasis":"ink"}'`.
|
|
319
354
|
|
|
320
355
|
Station cover art uses the station's existing `imageKey`:
|
|
321
356
|
|
|
@@ -347,6 +382,190 @@ stored photo, pass `null` to clear it. A new key must be an upload to this
|
|
|
347
382
|
event's `event-passport/prizes` folder; an unchanged key always passes. `overview`
|
|
348
383
|
returns `imageKey` and a signed `imageUrl` for each prize.
|
|
349
384
|
|
|
385
|
+
### Staff redemption
|
|
386
|
+
|
|
387
|
+
`et staff-redemption` sets up and runs a staff food redemption with an instant prize draw
|
|
388
|
+
(`STAFF_REDEMPTION` events): crew at a site counter look up an Employee ID, record the food
|
|
389
|
+
items handed over and reveal a prize outcome the server decides in the same transaction.
|
|
390
|
+
Everything uses the same tRPC procedures and permissions as the web app. Setup and the roster
|
|
391
|
+
need `event.setup`, the export needs `event.export`, and the counter commands (`counter`,
|
|
392
|
+
`lookup`, `redeem`) need `event.operate`. Site crew sign in with a site password in the browser
|
|
393
|
+
only; crew sign-in and the counter access check have no CLI command.
|
|
394
|
+
|
|
395
|
+
All commands except `roster import` and `export` are registry commands: pass the procedure input
|
|
396
|
+
with `--input`/`--input-file`, run `et staff-redemption <command> --help` for the schema, and
|
|
397
|
+
confirm every write with `--allow-state-change --target <event-id>`. The commands are:
|
|
398
|
+
|
|
399
|
+
| Area | Commands |
|
|
400
|
+
| --- | --- |
|
|
401
|
+
| Setup | `setup get`, `settings update`, `site upsert`, `crew-password set`, `crew-password clear`, `session upsert`, `slot set`, `item-group upsert`, `item upsert`, `prize upsert`, `prize-stock set`, `rollover preview`, `rollover run`, `rollover list`, `rollover undo`, `archive set` |
|
|
402
|
+
| Roster | `roster list`, `roster counts`, `roster upsert`, `roster import` |
|
|
403
|
+
| Redemption log | `claims list`, `claims counts`, `claims void`, `draw release`, `stock summary`, `export` |
|
|
404
|
+
| Counter | `counter context`, `lookup`, `redeem`, `counter claims` |
|
|
405
|
+
|
|
406
|
+
A walkthrough with made-up names and IDs. Nothing here is an instruction to change a live event;
|
|
407
|
+
`<...>` values come from the previous command's output (`setup get` lists every ID).
|
|
408
|
+
|
|
409
|
+
```sh
|
|
410
|
+
# 1. The event. The organization must have STAFF_REDEMPTION enabled as an event type
|
|
411
|
+
# (organization create --allowed-event-types, or a global admin enables it).
|
|
412
|
+
et event create --organization-id <org-id> --name "Example Staff Appreciation" \
|
|
413
|
+
--type STAFF_REDEMPTION --location "Example Campus" --start 2026-11-19T07:00:00+08:00
|
|
414
|
+
|
|
415
|
+
# 2. Policies. All four are required before anyone can redeem: eligible shifts, how many
|
|
416
|
+
# items a person may take (ONE_FROM_EACH_GROUP, AT_MOST_ONE_PER_GROUP or
|
|
417
|
+
# AT_MOST_ONE_PER_GROUP_OR_NONE), what happens at the wrong site (REFUSE or
|
|
418
|
+
# SERVE_FROM_COUNTER) and the draw (REMAINING_HEADCOUNT, or FIXED_RATE with
|
|
419
|
+
# fixedWinRatePercent). They lock once the first redemption exists; changing them then
|
|
420
|
+
# needs overrideReason.
|
|
421
|
+
et staff-redemption settings update --allow-state-change --target <event-id> \
|
|
422
|
+
--input '{"eventId":"<event-id>","eligibleShifts":["A","B","C","D"],"itemRule":"ONE_FROM_EACH_GROUP","wrongSite":"REFUSE","drawPolicy":"REMAINING_HEADCOUNT"}'
|
|
423
|
+
|
|
424
|
+
# 3. Sites, and one crew password per site (6-128 characters; this turns the site's crew link
|
|
425
|
+
# on and ends that site's crew sessions). Keep the password out of shell history: put
|
|
426
|
+
# {"eventId":"<event-id>","siteId":"<site-id>","password":"..."} in a file only you can
|
|
427
|
+
# read, pass it with --input-file and delete it afterwards.
|
|
428
|
+
et staff-redemption site upsert --allow-state-change --target <event-id> \
|
|
429
|
+
--input '{"eventId":"<event-id>","name":"North Building"}'
|
|
430
|
+
et staff-redemption crew-password set --allow-state-change --target <event-id> \
|
|
431
|
+
--input-file ./crew-password.json
|
|
432
|
+
et staff-redemption crew-password clear --allow-state-change --target <event-id> \
|
|
433
|
+
--input '{"eventId":"<event-id>","siteId":"<site-id>"}' # turns that site's link off
|
|
434
|
+
|
|
435
|
+
# 4. One session per shift, then the sets each site has for it. A session with
|
|
436
|
+
# redemptions keeps its shift. startsAt and endsAt are optional: an unset
|
|
437
|
+
# time is not enforced, so the session is open whenever the event is.
|
|
438
|
+
et staff-redemption session upsert --allow-state-change --target <event-id> \
|
|
439
|
+
--input '{"eventId":"<event-id>","name":"C shift","shift":"C"}'
|
|
440
|
+
et staff-redemption slot set --allow-state-change --target <event-id> \
|
|
441
|
+
--input '{"eventId":"<event-id>","sessionId":"<session-id>","siteId":"<site-id>","setQuantity":300}'
|
|
442
|
+
|
|
443
|
+
# 5. Items come in groups (a choice of one); crew pick from each group at the counter.
|
|
444
|
+
et staff-redemption item-group upsert --allow-state-change --target <event-id> \
|
|
445
|
+
--input '{"eventId":"<event-id>","name":"Main"}'
|
|
446
|
+
et staff-redemption item upsert --allow-state-change --target <event-id> \
|
|
447
|
+
--input '{"eventId":"<event-id>","groupId":"<group-id>","name":"Chicken wrap"}'
|
|
448
|
+
|
|
449
|
+
# 6. Prizes, and how many of each a slot holds (slotId is in setup get). Stock cannot be set
|
|
450
|
+
# below the prizes already drawn there.
|
|
451
|
+
et staff-redemption prize upsert --allow-state-change --target <event-id> \
|
|
452
|
+
--input '{"eventId":"<event-id>","name":"Insulated bottle"}'
|
|
453
|
+
et staff-redemption prize-stock set --allow-state-change --target <event-id> \
|
|
454
|
+
--input '{"eventId":"<event-id>","slotId":"<slot-id>","prizeId":"<prize-id>","quantity":20}'
|
|
455
|
+
|
|
456
|
+
# 7. The roster, then check it. Columns are matched from the header row (Employee ID,
|
|
457
|
+
# Worker/Name, Site, Shift, Work Shift, Allowance); override with the column flags.
|
|
458
|
+
et staff-redemption roster import --event-id <event-id> --file ./roster.csv \
|
|
459
|
+
--allow-state-change --target <event-id>
|
|
460
|
+
et staff-redemption roster counts --input '{"eventId":"<event-id>"}'
|
|
461
|
+
et staff-redemption setup get --input '{"eventId":"<event-id>"}' # missingPolicies must be []
|
|
462
|
+
|
|
463
|
+
# 8. Day of: look an Employee ID up, then redeem. lookup writes nothing but failed-lookup
|
|
464
|
+
# throttle records. Generate one clientRequestId per redemption; retrying with the same
|
|
465
|
+
# UUID returns the stored receipt and never redeems twice.
|
|
466
|
+
et staff-redemption lookup \
|
|
467
|
+
--input '{"eventId":"<event-id>","siteId":"<site-id>","employeeId":"E1001"}'
|
|
468
|
+
et staff-redemption redeem --allow-state-change --target <event-id> \
|
|
469
|
+
--input "{\"eventId\":\"<event-id>\",\"siteId\":\"<site-id>\",\"employeeId\":\"E1001\",\"clientRequestId\":\"$(uuidgen | tr A-Z a-z)\",\"itemIds\":[\"<item-id>\"]}"
|
|
470
|
+
|
|
471
|
+
# 9. Fix a mistake. void returns the set (the prize outcome stays, so a redo shows the same
|
|
472
|
+
# result); draw release also returns a won prize to stock so the person draws again.
|
|
473
|
+
# draw release is refused while an active redemption still shows the draw (claims list
|
|
474
|
+
# draw.activeClaimCount > 0): void that redemption first.
|
|
475
|
+
et staff-redemption claims list --input '{"eventId":"<event-id>","search":"E1001"}'
|
|
476
|
+
et staff-redemption claims void --allow-state-change --target <event-id> \
|
|
477
|
+
--input '{"eventId":"<event-id>","claimId":"<claim-id>","reason":"Wrong items handed over"}'
|
|
478
|
+
et staff-redemption draw release --allow-state-change --target <event-id> \
|
|
479
|
+
--input '{"eventId":"<event-id>","drawId":"<draw-id>","reason":"Prize not handed over"}'
|
|
480
|
+
# Explicit override, only when the redemption must stay recorded with no prize (a paper
|
|
481
|
+
# entry that never spun): allowWhileClaimActive true. It is written to the activity log.
|
|
482
|
+
et staff-redemption draw release --allow-state-change --target <event-id> \
|
|
483
|
+
--input '{"eventId":"<event-id>","drawId":"<draw-id>","reason":"Paper redemption, no draw","allowWhileClaimActive":true}'
|
|
484
|
+
|
|
485
|
+
# 10. Roll leftovers over (a manager action, never automatic): after C and D on 19 Nov, move
|
|
486
|
+
# what is left at each site into B on 23 Nov. Preview first (it writes nothing), then run
|
|
487
|
+
# it with a reason. sets and prizes both default to true; pass one as false to move only
|
|
488
|
+
# the other. The source keeps exactly what it issued. Only target slots that already exist
|
|
489
|
+
# with sets receive anything (a rollover never creates a slot, so nobody becomes eligible
|
|
490
|
+
# at a site that had no sets); other sites come back with a skipped reason. Nothing to
|
|
491
|
+
# move writes nothing (moved false, rolloverId null). A moved rollover returns its
|
|
492
|
+
# rolloverId. Redo or release voided redemptions first, and roll over only after
|
|
493
|
+
# the source session is over (a site that issued nothing is left at 0 sets).
|
|
494
|
+
et staff-redemption rollover preview \
|
|
495
|
+
--input '{"eventId":"<event-id>","fromSessionId":"<session-c-id>","toSessionId":"<session-b-id>"}'
|
|
496
|
+
et staff-redemption rollover run --allow-state-change --target <event-id> \
|
|
497
|
+
--input '{"eventId":"<event-id>","fromSessionId":"<session-c-id>","toSessionId":"<session-b-id>","sets":true,"prizes":true,"reason":"19 Nov C leftovers into 23 Nov B"}'
|
|
498
|
+
|
|
499
|
+
# 10b. See the rollovers and undo one exactly. list is newest first (limit 1-50, default 20)
|
|
500
|
+
# with undone (null, or who, when and why) and undoable per rollover. undo takes back
|
|
501
|
+
# exactly what that rollover moved: the moved sets and prize quantities leave the
|
|
502
|
+
# target's slots and return to the source's, including a source left at 0 sets; the
|
|
503
|
+
# target's own sets and prizes are not touched. It is all or nothing and needs the
|
|
504
|
+
# moved amounts to be still unissued in the target: otherwise CONFLICT, listing the
|
|
505
|
+
# sites and prizes that are short, and nothing changes (void or release first, or
|
|
506
|
+
# leave it). A second undo is a CONFLICT, another event's rolloverId is NOT_FOUND, and
|
|
507
|
+
# the undo is its own activity entry. A rollover from before undo existed cannot be
|
|
508
|
+
# undone this way (use slot set and prize-stock set).
|
|
509
|
+
et staff-redemption rollover list --input '{"eventId":"<event-id>"}'
|
|
510
|
+
et staff-redemption rollover undo --allow-state-change --target <event-id> \
|
|
511
|
+
--input '{"eventId":"<event-id>","rolloverId":"<rollover-id>","reason":"Rolled over the wrong sessions"}'
|
|
512
|
+
|
|
513
|
+
# 11. Totals and the export.
|
|
514
|
+
et staff-redemption stock summary --input '{"eventId":"<event-id>"}'
|
|
515
|
+
et staff-redemption export --event-id <event-id> --csv-file ./redemptions.csv
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
**Roster import.** `roster import --file <path.csv|path.xlsx>` adds new Employee IDs and updates
|
|
519
|
+
existing ones by Employee ID; it never deletes, so redemptions survive a re-import. Add
|
|
520
|
+
`--archive-missing` to archive active entries that are not in the file (`archive set` with
|
|
521
|
+
`"entity":"rosterEntry"` and `"archived":false` brings one back, and `roster list` with
|
|
522
|
+
`"archived":"all"` shows the state). Entries that reappear in the file are restored. The result reports
|
|
523
|
+
created, updated, unchanged and archived counts, `rejectedCount` with the first rejected rows
|
|
524
|
+
(blank or repeated Employee ID, too long, bad shift or allowance, or an allowance below the sets
|
|
525
|
+
already collected; the first occurrence of an ID wins) and `unmatchedSites`, the site names in
|
|
526
|
+
the file that match no site. Column flags: `--employee-id-column`, `--name-column`,
|
|
527
|
+
`--site-column`, `--shift-column`, `--work-shift-column`, `--allowance-column`, each taking an
|
|
528
|
+
exact header name (case-insensitive); `none` clears an optional column. Files over 20,000 data
|
|
529
|
+
rows or 200 columns are refused and nothing changes. The roster file is confidential: do not
|
|
530
|
+
commit it. An `.xlsx` is read from its **first sheet** unless `--sheet <name>` names another
|
|
531
|
+
(for example `--sheet "Master list"`; the exact name, else ignoring case and surrounding spaces).
|
|
532
|
+
An unknown name fails and lists the workbook's sheets; nothing changes. A CSV has no sheets, so
|
|
533
|
+
`--sheet` with a CSV fails.
|
|
534
|
+
|
|
535
|
+
**Export.** `export --event-id <id>` prints the redemption rows as JSON, oldest first. Filters:
|
|
536
|
+
`--search`, `--site-id`, `--session-id` and `--status active|voided|all` (default all). With
|
|
537
|
+
`--csv-file <path>` it writes a CSV instead and prints `{ "file", "rows" }`. The CSV has one row
|
|
538
|
+
per claim with the columns Created at, Employee ID, Name, Site, Session, Items, Outcome, Prize,
|
|
539
|
+
Operator kind, Voided at, Void reason and Draw released at. It is UTF-8 with a byte order mark and
|
|
540
|
+
CRLF line ends so Excel opens it correctly; text that would run as a spreadsheet formula (a
|
|
541
|
+
leading `=`, `+`, `-` or `@`) gets a leading apostrophe. An existing file is never overwritten
|
|
542
|
+
unless you pass `--force`. The export needs `event.export` and fails above 20,000 rows; narrow
|
|
543
|
+
it with the filters.
|
|
544
|
+
|
|
545
|
+
**Reading the setup, stock and log.**
|
|
546
|
+
|
|
547
|
+
- `setup get` adds `readiness` to its output: `{ "ready": boolean, "items": [{ "code", "text" }] }`.
|
|
548
|
+
An empty `items` means nothing is missing. Codes: `POLICIES_MISSING`, `NO_SITES`,
|
|
549
|
+
`SITE_WITHOUT_PASSWORD`, `NO_SESSIONS`, `NO_SLOTS`, `SLOT_WITHOUT_SETS`, `NO_ITEM_GROUPS`,
|
|
550
|
+
`GROUP_WITHOUT_ITEMS`, `NO_PRIZES`, `NO_PRIZE_STOCK` (the two prize codes only once a draw policy
|
|
551
|
+
is set), `ROSTER_EMPTY` and `EVENT_NOT_ONGOING`. Archived sites, sessions, groups and prizes are
|
|
552
|
+
ignored. It also adds `truncated` (true when a list was cut at its cap) and `itemsTruncated` on
|
|
553
|
+
each group. Every list in `setup get` and `stock summary` is capped (200 sites, 200 sessions,
|
|
554
|
+
2,000 slots, 100 item groups, 200 items per group, 200 prizes, 10,000 prize stock rows).
|
|
555
|
+
- `stock summary` adds `truncated` and, to each `slots[]` row, `headcount` (active roster people
|
|
556
|
+
whose roster site and shift are the slot's), `collected` (how many of them have an active claim
|
|
557
|
+
anywhere) and `items` (`[{ "itemId", "handedOut" }]`, only items handed out in that slot; voided
|
|
558
|
+
claims are not counted).
|
|
559
|
+
- `claims list` and `export` rows carry `groupName` on each item and `awayFromRosterSite` (true
|
|
560
|
+
when the person was served at a site other than their roster site; false when their roster
|
|
561
|
+
site matches no site). The CSV export adds "Roster site" and "Away from roster site" columns
|
|
562
|
+
and writes items as `Group: Item`.
|
|
563
|
+
- `counter context` adds `event` (`{ id, name, status, startDateTime, endDateTime }`).
|
|
564
|
+
- `counter claims` takes `scope`: `mine` (default) is the claims made by you at the site (a crew
|
|
565
|
+
device sees its own crew session's), `site` is every claim at the site whoever served it.
|
|
566
|
+
Both need the same counter access, so `event.operate` for the CLI:
|
|
567
|
+
`et staff-redemption counter claims --input '{"eventId":"<event-id>","siteId":"<site-id>","scope":"site"}'`.
|
|
568
|
+
|
|
350
569
|
### Deprecated event types
|
|
351
570
|
|
|
352
571
|
Scavenger Hunt (Amazing Race) and Gardens by the Bay are deprecated and frozen.
|
package/command-reference.md
CHANGED
|
@@ -305,6 +305,80 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
305
305
|
- `et human-bingo submissions respond` → `event.humanBingo.admin.respondToBingoCardItemSubmission` (mutation)
|
|
306
306
|
- Approve or reject a Human Bingo card item submission.
|
|
307
307
|
- Confirm: `--allow-state-change` `--target <input.id>`
|
|
308
|
+
- `et staff-redemption setup get` → `event.staffRedemption.getStaffRedemptionSetup` (query)
|
|
309
|
+
- Get the whole staff redemption setup: settings, missingPolicies and policiesLocked, sites (with crew access status), sessions, slots with setsIssued, item groups and items, prizes and prize stock. readiness lists what is still missing before counters can serve people (ready, and items of code plus short text); truncated is true when a list was cut at its cap. Archived rows are included with archivedAt; holds no personal data. Needs event.operate.
|
|
310
|
+
- `et staff-redemption settings update` → `event.staffRedemption.updateStaffRedemptionSettings` (mutation)
|
|
311
|
+
- Update eligibleShifts, itemRule, wrongSite, drawPolicy and fixedWinRatePercent; omitted fields are unchanged. Policies lock once a redemption exists (setup get shows policiesLocked): then a change needs overrideReason, recorded in the activity log.
|
|
312
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
313
|
+
- `et staff-redemption site upsert` → `event.staffRedemption.upsertStaffRedemptionSite` (mutation)
|
|
314
|
+
- Create a site (omit siteId) or rename and reorder one (give siteId). Use staff-redemption archive set to archive or unarchive it.
|
|
315
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
316
|
+
- `et staff-redemption crew-password set` → `event.staffRedemption.setStaffRedemptionCrewPassword` (mutation)
|
|
317
|
+
- Set a site's shared crew password (6-128 characters), which turns the site's crew link on. Ends every crew session at that site. Prefer --input-file over --input so the password stays out of shell history.
|
|
318
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
319
|
+
- `et staff-redemption crew-password clear` → `event.staffRedemption.clearStaffRedemptionCrewPassword` (mutation)
|
|
320
|
+
- Clear a site's crew password, which turns its crew link off and ends every crew session at that site.
|
|
321
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
322
|
+
- `et staff-redemption session upsert` → `event.staffRedemption.upsertStaffRedemptionSession` (mutation)
|
|
323
|
+
- Create a session (omit sessionId) or update one: name, shift letter, and optional startsAt and endsAt (ISO date-times; null or omitted means the session is open whenever the event is). Each shift has one session; a session with redemptions keeps its shift.
|
|
324
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
325
|
+
- Date fields: `startsAt`, `endsAt`
|
|
326
|
+
- `et staff-redemption slot set` → `event.staffRedemption.setStaffRedemptionSlot` (mutation)
|
|
327
|
+
- Set how many sets a site has for a session (setQuantity). It cannot go below the sets already issued.
|
|
328
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
329
|
+
- `et staff-redemption item-group upsert` → `event.staffRedemption.upsertStaffRedemptionItemGroup` (mutation)
|
|
330
|
+
- Create an item group (omit groupId; a choice such as wrap or pancake) or rename and reorder one.
|
|
331
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
332
|
+
- `et staff-redemption item upsert` → `event.staffRedemption.upsertStaffRedemptionItem` (mutation)
|
|
333
|
+
- Create an item in a group (omit itemId) or rename, reorder or move one to another groupId; past claims keep their group.
|
|
334
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
335
|
+
- `et staff-redemption prize upsert` → `event.staffRedemption.upsertStaffRedemptionPrize` (mutation)
|
|
336
|
+
- Create a prize (omit prizeId) or rename and reorder one. Stock is set per slot with staff-redemption prize-stock set.
|
|
337
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
338
|
+
- `et staff-redemption prize-stock set` → `event.staffRedemption.setStaffRedemptionPrizeStock` (mutation)
|
|
339
|
+
- Set a prize's stock for one slot (slotId from setup get). An optional reason is recorded; stock cannot go below the prizes already drawn there and not released.
|
|
340
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
341
|
+
- `et staff-redemption rollover preview` → `event.staffRedemption.getStaffRedemptionRolloverPreview` (query)
|
|
342
|
+
- Preview rolling leftovers from fromSessionId into toSessionId, per site: sets left (set quantity minus active, not voided, redemptions) and prizes left (stock minus prizes drawn and not released) in the source, what would move and the target afterwards. A site is skipped, with a reason, unless the target session already has a slot there with sets (a rollover never creates a slot). Advisory; rollover run recomputes under lock. Needs event.setup.
|
|
343
|
+
- `et staff-redemption rollover run` → `event.staffRedemption.rolloverStaffRedemptionStock` (mutation)
|
|
344
|
+
- Move the leftover sets (sets) and/or prizes (prizes), both default true, of every site from fromSessionId into toSessionId, with a required reason (1-300 characters) that is logged. The source keeps exactly what it issued, so it never drops below issued. Skipped sites come back with a reason; moved is false and nothing is written (no quantity, log entry or lock) when nothing would move. Undo it exactly with rollover undo (the result's rolloverId is the id); running it the other way is not an undo. Returns rolloverId, null when nothing moved. Not automatic: a manager runs it. Needs event.setup.
|
|
345
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
346
|
+
- `et staff-redemption rollover list` → `event.staffRedemption.getStaffRedemptionRollovers` (query)
|
|
347
|
+
- List the event's rollovers, newest first (limit 1-50, default 20): id (use it for rollover undo), who ran it and when, reason, from and to sessions, totals, the sets and prizes moved per site, undoable, and undone (null, or who, when and why). total counts all of them. Needs event.setup.
|
|
348
|
+
- `et staff-redemption rollover undo` → `event.staffRedemption.undoStaffRedemptionRollover` (mutation)
|
|
349
|
+
- Undo one rollover exactly (rolloverId from rollover list), with a required reason (1-300 characters) that is logged: subtract exactly the sets and prizes it moved from the target session's slots and add them back to the source's, including a source left at 0 sets. The target's own sets and prizes are untouched. All or nothing: refused with CONFLICT, listing the sites and prizes, when a target site has since handed out or drawn part of what moved (it must still have the moved amount unissued), and with CONFLICT when already undone. A rolloverId of another event is NOT_FOUND. Does not check archived state: it restores exactly even if a session, site or prize was archived since. Redo or release voided target redemptions first, as an unreleased void's set counts as free. Recorded as its own activity entry. Needs event.setup.
|
|
350
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
351
|
+
- `et staff-redemption archive set` → `event.staffRedemption.setStaffRedemptionArchived` (mutation)
|
|
352
|
+
- Archive (archived true) or unarchive (archived false) a site, session, itemGroup, item, prize or rosterEntry by entity and id. Setup get and roster list show the current state.
|
|
353
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
354
|
+
- `et staff-redemption roster list` → `event.staffRedemption.getStaffRedemptionRoster` (query)
|
|
355
|
+
- List roster entries (cursor paged); filter by search, siteId, shift, archived (active, archived, all) and collected (any, collected, not-collected).
|
|
356
|
+
- `et staff-redemption roster counts` → `event.staffRedemption.getStaffRedemptionRosterCounts` (query)
|
|
357
|
+
- Count roster entries matching the same filters as roster list.
|
|
358
|
+
- `et staff-redemption roster upsert` → `event.staffRedemption.upsertStaffRedemptionRosterEntry` (mutation)
|
|
359
|
+
- Add or update one roster entry by employeeId (name, siteName, shift and workShift are required and can be null; allowance is optional). The site is matched by name, and allowance cannot go below the sets the person already collected. The archived state is unchanged (use staff-redemption archive set).
|
|
360
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
361
|
+
- `et staff-redemption claims list` → `event.staffRedemption.getStaffRedemptionClaims` (query)
|
|
362
|
+
- List redemption claims, newest first (cursor paged), with items (with groupName), draw outcome, site, awayFromRosterSite (served at a site other than the roster site), session and void state; filter by search, siteId, sessionId and status (active, voided, all).
|
|
363
|
+
- `et staff-redemption claims counts` → `event.staffRedemption.getStaffRedemptionClaimCounts` (query)
|
|
364
|
+
- Count claims matching the same filters as claims list.
|
|
365
|
+
- `et staff-redemption claims void` → `event.staffRedemption.voidStaffRedemptionClaim` (mutation)
|
|
366
|
+
- Void a claim with a reason. The set returns to the person and the slot; the prize draw is kept, so a redo shows the same outcome until staff-redemption draw release. Claims list shows each draw's activeClaimCount.
|
|
367
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
368
|
+
- `et staff-redemption draw release` → `event.staffRedemption.releaseStaffRedemptionDraw` (mutation)
|
|
369
|
+
- Release a person's prize draw (draw.id from claims list) with a reason: a won prize returns to its slot's stock and the person draws again on their next redemption. Refused (CONFLICT) while an active, not voided redemption still shows the draw (claims list draw.activeClaimCount > 0); void it first, or pass the explicit override allowWhileClaimActive: true to release a prize while its redemption stays recorded (for example a paper entry). The override is recorded in the activity log.
|
|
370
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
371
|
+
- `et staff-redemption stock summary` → `event.staffRedemption.getStaffRedemptionStockSummary` (query)
|
|
372
|
+
- Show sets and prizes issued and left per site and session, with per-slot item counts (items), roster headcount and how many of them collected, plus event-wide item totals.
|
|
373
|
+
- `et staff-redemption counter context` → `event.staffRedemption.getStaffRedemptionCounterContext` (query)
|
|
374
|
+
- Counter view for one site (siteId): the event (name, status, dates), items to choose from, the site's sessions with sets and prizes left, and any missing policies. Needs event.operate.
|
|
375
|
+
- `et staff-redemption lookup` → `event.staffRedemption.lookupStaffRedemptionEmployee` (mutation)
|
|
376
|
+
- Look up an Employee ID at a site: who they are, what they already collected and whether a redemption would go ahead (refusal code otherwise). Writes nothing but failed-lookup throttle records, so it needs no confirmation flags. Needs event.operate.
|
|
377
|
+
- `et staff-redemption redeem` → `event.staffRedemption.redeemStaffRedemption` (mutation)
|
|
378
|
+
- Redeem for an Employee ID at a site: records the chosen itemIds and reveals the prize outcome the server decides in the same transaction. clientRequestId is a UUID you generate; retry with the same one and you get the stored receipt, never a second redemption. Needs event.operate.
|
|
379
|
+
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
380
|
+
- `et staff-redemption counter claims` → `event.staffRedemption.getStaffRedemptionCounterClaims` (query)
|
|
381
|
+
- List a site's recent claims (limit 1-50, default 20) as the counter sees them. scope mine (default) is the claims you made at the site, site is every claim at the site. Needs event.operate.
|
|
308
382
|
|
|
309
383
|
## Procedures without a registry command
|
|
310
384
|
|
|
@@ -348,6 +422,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
348
422
|
- `event.luckyDraw.updateLuckyDrawPrizesOrder`: hand-written
|
|
349
423
|
- `event.luckyDraw.updateLuckyDrawConfigJson`: hand-written
|
|
350
424
|
- `event.passport.getPassportLoginOptions`: hand-written
|
|
425
|
+
- `event.passport.getPassportQueueStatuses`: hand-written
|
|
351
426
|
- `event.passport.getStationPrintQr`: hand-written
|
|
352
427
|
- `event.passport.issueStationPrintQr`: hand-written
|
|
353
428
|
- `event.passport.revokeStationPrintQr`: hand-written
|
|
@@ -358,6 +433,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
358
433
|
- `event.passport.beginPassportGoogleLogin`: participant-only
|
|
359
434
|
- `event.passport.joinPassport`: participant-only
|
|
360
435
|
- `event.passport.getMyPassport`: hand-written
|
|
436
|
+
- `event.passport.getMyPassportPrizeStock`: participant-only
|
|
361
437
|
- `event.passport.getMyPassportCode`: participant-only
|
|
362
438
|
- `event.passport.getPassportParticipantDetail`: hand-written
|
|
363
439
|
- `event.passport.getPassportOverview`: hand-written
|
|
@@ -404,6 +480,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
404
480
|
- `event.passport.redeemPrizeAsStationStaff`: browser-only
|
|
405
481
|
- `event.passport.recordTallyAsStationStaff`: browser-only
|
|
406
482
|
- `event.passport.setPassportStationPassword`: hand-written
|
|
483
|
+
- `event.passport.setStationQueueStatusAsStationStaff`: hand-written
|
|
407
484
|
- `event.passport.signInToStationStaff`: browser-only
|
|
408
485
|
- `event.scavengerHunt.getScavengerHuntByEventId`: frozen-scavenger-hunt
|
|
409
486
|
- `event.scavengerHunt.getScavengerHuntBoardBackgroundByEventId`: frozen-scavenger-hunt
|
|
@@ -469,6 +546,10 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
469
546
|
- `event.scavengerHunt.team.restoreTeam`: frozen-scavenger-hunt
|
|
470
547
|
- `event.scavengerHunt.team.getTeamsByEventId`: frozen-scavenger-hunt
|
|
471
548
|
- `event.scavengerHunt.team.getTeamForNav`: frozen-scavenger-hunt
|
|
549
|
+
- `event.staffRedemption.importStaffRedemptionRoster`: hand-written
|
|
550
|
+
- `event.staffRedemption.getStaffRedemptionExportData`: hand-written
|
|
551
|
+
- `event.staffRedemption.getStaffRedemptionCounterAccess`: browser-only
|
|
552
|
+
- `event.staffRedemption.signInToStaffRedemptionCrew`: browser-only
|
|
472
553
|
- `event.getEventForNav`: hand-written
|
|
473
554
|
- `event.getEventsByOrgId`: hand-written
|
|
474
555
|
- `event.createRecentEvent`: web-navigation
|