@go-labs-sg/event-tech 1.27.0 → 1.28.1
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 +10 -4
- package/command-reference.md +2 -2
- package/dist/index.js +470 -721
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -511,7 +511,7 @@ et passport skin clear --event-id <id> --appearance-version 5
|
|
|
511
511
|
- `colors.graphic` paints shapes only, never text. `colors.dark` needs 4.5:1 contrast with white.
|
|
512
512
|
- `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.
|
|
513
513
|
- Uploads accept JPEG, PNG, WebP or GIF up to 25 MB. SVG is not allowed.
|
|
514
|
-
- 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`
|
|
514
|
+
- 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` also show on the Staff Redemption employee sign-in and QR page (the same layout as the Event Passport sign-in), but not on the crew counter. `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"}'`.
|
|
515
515
|
|
|
516
516
|
Station cover art uses the station's existing `imageKey`:
|
|
517
517
|
|
|
@@ -586,7 +586,10 @@ et event create --organization-id <org-id> --name "Example Staff Appreciation" \
|
|
|
586
586
|
# SERVE_FROM_COUNTER) and the draw (REMAINING_HEADCOUNT, or FIXED_RATE with
|
|
587
587
|
# fixedWinRatePercent). sessionRule is optional: OWN_SHIFT (the default) serves people
|
|
588
588
|
# only during their own shift's session; ANY_OPEN_SESSION serves them during whichever
|
|
589
|
-
# session is open now, from that session's sets.
|
|
589
|
+
# session is open now, from that session's sets and prizes. Both draws work with either
|
|
590
|
+
# session rule; under REMAINING_HEADCOUNT a walk-in from another shift or site draws from
|
|
591
|
+
# the open session's prizes as one extra person, so heavy walk-in traffic can use up
|
|
592
|
+
# prizes before that session's last arrivals. counterOrder is optional too:
|
|
590
593
|
# FOOD_THEN_DRAW (the default when unset: items first, then the wheel) or DRAW_THEN_FOOD
|
|
591
594
|
# (spin first, record the food afterwards). They lock once the first redemption exists;
|
|
592
595
|
# changing them then needs overrideReason.
|
|
@@ -758,8 +761,11 @@ it with the filters.
|
|
|
758
761
|
2,000 slots, 100 item groups, 200 items per group, 200 prizes, 10,000 prize stock rows).
|
|
759
762
|
- `stock summary` adds `truncated` and, to each `slots[]` row, `headcount` (active roster people
|
|
760
763
|
whose roster site and shift are the slot's), `collected` (how many of them have an active claim
|
|
761
|
-
anywhere)
|
|
762
|
-
claims are not counted)
|
|
764
|
+
anywhere), `items` (`[{ "itemId", "handedOut" }]`, only items handed out in that slot; voided
|
|
765
|
+
claims are not counted), `walkIns` (unreleased draws in the slot by people whose roster site or
|
|
766
|
+
shift, as the roster reads now, is not the slot's) and `walkInPrizes` (how many of those won).
|
|
767
|
+
Under `REMAINING_HEADCOUNT` each walk-in draws as one extra person, so `walkInPrizes` is roughly
|
|
768
|
+
how many fewer prizes the slot's own people share.
|
|
763
769
|
- `claims list` and `export` rows carry `groupName` on each item and `awayFromRosterSite` (true
|
|
764
770
|
when the person was served at a site other than their roster site; false when their roster
|
|
765
771
|
site matches no site). The CSV export adds "Roster site" and "Away from roster site" columns
|
package/command-reference.md
CHANGED
|
@@ -310,7 +310,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
310
310
|
- `et staff-redemption setup get` → `event.staffRedemption.getStaffRedemptionSetup` (query)
|
|
311
311
|
- Get the whole staff redemption setup: settings (including counterOrder, always resolved: FOOD_THEN_DRAW when never set, and the employee sign-in settings loginMethods, staffIdLabel and wrongSiteMessage, the two texts null while unset), employeeLogin.googleAvailable (whether Google sign-in can be turned on), 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.
|
|
312
312
|
- `et staff-redemption settings update` → `event.staffRedemption.updateStaffRedemptionSettings` (mutation)
|
|
313
|
-
- Update eligibleShifts, itemRule, wrongSite, sessionRule, drawPolicy, fixedWinRatePercent, counterOrder and the employee sign-in settings loginMethods (emailOtp, google, guest, staffId, staffIdRequiresLastName; every method is off until turned on; google needs the server's Google sign-in), staffIdLabel (what the roster identifier is called, default 'Employee ID') and wrongSiteMessage (the warning both counters show for a person rostered at another site, max 300 characters); null or blank resets a text to its default. Omitted fields are unchanged. sessionRule is OWN_SHIFT (the default when unset: only during the person's own shift's session) or ANY_OPEN_SESSION (whichever session is open now, from that session's sets;
|
|
313
|
+
- Update eligibleShifts, itemRule, wrongSite, sessionRule, drawPolicy, fixedWinRatePercent, counterOrder and the employee sign-in settings loginMethods (emailOtp, google, guest, staffId, staffIdRequiresLastName; every method is off until turned on; google needs the server's Google sign-in), staffIdLabel (what the roster identifier is called, default 'Employee ID') and wrongSiteMessage (the warning both counters show for a person rostered at another site, max 300 characters); null or blank resets a text to its default. Omitted fields are unchanged. sessionRule is OWN_SHIFT (the default when unset: only during the person's own shift's session) or ANY_OPEN_SESSION (whichever session is open now, from that session's sets and prizes; works with either drawPolicy, and under REMAINING_HEADCOUNT a walk-in from another shift or site draws from the open session's prizes as one extra person, so heavy walk-in traffic can use up prizes before that session's last arrivals). counterOrder is FOOD_THEN_DRAW (the default when never set) or DRAW_THEN_FOOD (the person spins first and the food is recorded afterwards); it is not a required policy (never in missingPolicies). Policies, sessionRule and counterOrder included, lock once a redemption exists (setup get shows policiesLocked): then a change needs overrideReason, recorded in the activity log. loginMethods, staffIdLabel and wrongSiteMessage are not policies: they never lock and never need overrideReason.
|
|
314
314
|
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
315
315
|
- `et staff-redemption site upsert` → `event.staffRedemption.upsertStaffRedemptionSite` (mutation)
|
|
316
316
|
- Create a site (omit siteId) or rename and reorder one (give siteId). Use staff-redemption archive set to archive or unarchive it.
|
|
@@ -371,7 +371,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
371
371
|
- 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.
|
|
372
372
|
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
373
373
|
- `et staff-redemption stock summary` → `event.staffRedemption.getStaffRedemptionStockSummary` (query)
|
|
374
|
-
- 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.
|
|
374
|
+
- 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, walk-ins (walkIns: unreleased draws in the slot by people whose roster site or shift is not the slot's) and how many of them won (walkInPrizes), plus event-wide item totals.
|
|
375
375
|
- `et staff-redemption counter context` → `event.staffRedemption.getStaffRedemptionCounterContext` (query)
|
|
376
376
|
- Counter view for one site (siteId): the event (name, status, dates), counterOrder (FOOD_THEN_DRAW or DRAW_THEN_FOOD, the order crew follow), items to choose from, the site's sessions with sets and prizes left, and any missing policies. wrongSite is the policy for people rostered at another site (null while unset), wrongSiteMessage the warning to show for them and staffIdLabel what the roster identifier is called (defaults applied). sessionRule is the session policy; under ANY_OPEN_SESSION, openSession is the session every counter serves from now (null when none is open) and openSessionChangesAt when that next changes (serverTime is the server clock at the read). Needs event.operate.
|
|
377
377
|
- `et staff-redemption lookup` → `event.staffRedemption.lookupStaffRedemptionEmployee` (mutation)
|