@go-labs-sg/event-tech 1.24.0 → 1.26.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 +77 -5
- package/command-reference.md +2 -2
- package/dist/index.js +6978 -22937
- package/dist/index.js.map +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ et passport claim --event-id <id> --code <station-code>
|
|
|
152
152
|
et passport participant detail --event-id <id> --participant-id <id>
|
|
153
153
|
et passport prize upsert --event-id <id> --prize-json '{"name":"Tote bag","description":null,"stock":50,"stampCost":5,"order":0}'
|
|
154
154
|
et passport redemption create --event-id <id> --participant-id <id> --prize-id <id> --quantity 2
|
|
155
|
-
et passport redemption create --event-id <id> --participant-id <id> --prize-id <id> --award-station-id <id> --request-id "$(uuidgen)"
|
|
155
|
+
et passport redemption create --event-id <id> --participant-id <id> --prize-id <id> --award-station-id <id> --bonus-stamps 3 --request-id "$(uuidgen)"
|
|
156
156
|
et passport station upsert --event-id <id> --station-json '{"name":"Ring toss","collection":{"collectionMode":"STAFF_SCAN","stampValue":3,"category":"GAME"}}'
|
|
157
157
|
et passport station upsert --event-id <id> --station-json '{"name":"Desk basketball","collection":{"collectionMode":"STAFF_SCAN","category":"GAME","info":{"subtitle":"Game 4 · Desk basketball","steps":["Stand behind the line","Sink 3 shots"]}}}'
|
|
158
158
|
et passport station upsert --event-id <id> --station-json '{"name":"Food counter","collection":{"collectionMode":"STAFF_SCAN","category":"FOOD","menuItems":[{"name":"Laksa","stock":40},{"name":"Teh","stock":null}]}}'
|
|
@@ -327,6 +327,7 @@ stored value. Prizes carry `stampCost` per unit (0 to 100000, default 0; omit on
|
|
|
327
327
|
update to keep it). `redemption create` takes `--quantity` (whole number 1 to 20,
|
|
328
328
|
default 1) and spends `stampCost x quantity` stamps. A participant's balance is
|
|
329
329
|
stamps earned minus stamps spent; reversing a redemption refunds its stamps.
|
|
330
|
+
`--bonus-stamps` adds a manual whole-number bonus (0 to 1000, default 0) once per redemption, independent of quantity and combinable with a station award. It contributes to earned and spendable stamps and the lucky draw, and reversal removes it. Redemption output includes `bonusStamps`.
|
|
330
331
|
`redemption create` also takes an optional `--award-station-id <id>`: the stamp of one station
|
|
331
332
|
that opted in with `collection.prizeDeskAward` (at most one per redemption) is given to the
|
|
332
333
|
participant together with the prize, in the same transaction, as if they had collected it (the
|
|
@@ -351,7 +352,7 @@ station, and the activity log records `awardedStationId`, `awardedStampId` and `
|
|
|
351
352
|
revoke itself is a `passport_stamp_revoked` entry). Optional `--request-id <uuid>` makes a retry
|
|
352
353
|
safe: sending the same id again for the same participant returns the first redemption
|
|
353
354
|
(`replayed: true`) instead of redeeming and awarding twice, and reusing it with a different prize,
|
|
354
|
-
quantity
|
|
355
|
+
quantity, award station or bonus stamps fails. Sending the id of a redemption that was since reversed also fails
|
|
355
356
|
("This redemption was reversed. Submit it again to hand over a new one.") and writes nothing; use a
|
|
356
357
|
new `--request-id` to redeem again.
|
|
357
358
|
`mine` also prints the participant's `profileCode` and `profileCodeExpiresAt`; the
|
|
@@ -443,8 +444,11 @@ names are then accepted in `roster import` and `roster upsert` (`"lastName":null
|
|
|
443
444
|
If the requirement is turned back on, those entries cannot sign in until they have
|
|
444
445
|
a last name; `roster counts` reports them as `missingLastNameCount`. One Staff ID owns one passport per event, so signing in
|
|
445
446
|
again on another device resumes it. Failed attempts lock a Staff ID for 10 minutes
|
|
446
|
-
after 5 misses, and an IP after 50.
|
|
447
|
-
|
|
447
|
+
after 5 misses, and an IP after 50. Event Managers and assigned Helpdesk staff can
|
|
448
|
+
read the roster and add new entries (`passport.roster.add`). Helpdesk cannot edit
|
|
449
|
+
existing entries, import, remove, purge, export, scan or use other event workspaces.
|
|
450
|
+
Editing an entry by passing `id`, importing, removing and purging still require
|
|
451
|
+
host setup permission. `roster import` reads a CSV or `.xlsx` file locally,
|
|
448
452
|
guesses the Staff ID, last-name, full-name and display-name columns from the
|
|
449
453
|
header row, and replaces the whole roster. Override a guess with the column
|
|
450
454
|
flags, or pass `none` to ignore an optional column. Without a last-name column
|
|
@@ -458,6 +462,26 @@ passports keep their stamps. A file may hold up to 20,000 rows with data and
|
|
|
458
462
|
roster is left unchanged; use `roster purge` to empty a roster on purpose. Participant search, detail and `export` include
|
|
459
463
|
`staffId`. Staff ID sign-in itself is browser-only.
|
|
460
464
|
|
|
465
|
+
For temporary helpdesk access, use the existing `event access invite` or
|
|
466
|
+
`event access assign` command with `role: "HELPDESK"`, `canExport: false` and
|
|
467
|
+
an explicit `expiresAt` in ISO 8601 format. Grant only the event they cover;
|
|
468
|
+
organization Owner/Admin and internal administrator permissions are inherited
|
|
469
|
+
and are not reduced by a Helpdesk assignment. For example:
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
et event access invite --input '{"organizationId":"<org-id>","eventId":"<event-id>","email":"helpdesk@example.com","role":"HELPDESK","expiresAt":"2026-11-17T16:00:00+08:00"}' --allow-state-change --allow-email --target 'helpdesk@example.com'
|
|
473
|
+
et passport roster list --event-id '<event-id>' --search 'EMP001'
|
|
474
|
+
et passport roster upsert --event-id '<event-id>' --entry-json '{"staffId":"EMP001","lastName":null,"displayName":"Alex"}'
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
The last name may be null only when the event does not require one. A duplicate
|
|
478
|
+
Staff ID fails with a conflict; it never updates an existing person implicitly.
|
|
479
|
+
Helpdesk sign in with their invited email using Google or email OTP, not the
|
|
480
|
+
crew station password or a participant Staff ID. Access ends at `expiresAt`,
|
|
481
|
+
or earlier through `event access revoke`; pending invitations can be revoked
|
|
482
|
+
with `event access invitation-revoke`. Expiry leaves organization membership
|
|
483
|
+
in place but removes the event's helpdesk tools.
|
|
484
|
+
|
|
461
485
|
Guest enrollment/account linking is browser-only: it requires the original guest
|
|
462
486
|
cookie and verified email/Google authentication. `mine` can read only the passport
|
|
463
487
|
owned by the current CLI identity; it cannot recover a guest by name or assume a
|
|
@@ -754,7 +778,21 @@ signed for one hour (`mediaUrlExpiresInSeconds`), so download media right after
|
|
|
754
778
|
exporting; the raw S3 keys are included too. Other event types are rejected with a pointer to
|
|
755
779
|
`et event export`. Nothing creates or edits these events.
|
|
756
780
|
|
|
757
|
-
### Event appearance and
|
|
781
|
+
### Event appearance and fullscreen displays
|
|
782
|
+
|
|
783
|
+
The event theme (colours and font) and display image/video apply to Photo Wall,
|
|
784
|
+
Post-it Note, Signature Wall, Human Bingo and Rating boards. Appearance
|
|
785
|
+
includes a sample screen preview for each. Dedicated desktop configuration
|
|
786
|
+
previews use that same saved display theme and background.
|
|
787
|
+
|
|
788
|
+
Photo Wall, Post-it Note and Signature Wall share the existing presentation
|
|
789
|
+
settings under `photoWall`: `durationSeconds` (10–40), `maxVisible` (1–16,
|
|
790
|
+
subject to available display space), and `motion` (`gentle`, `lively`, or
|
|
791
|
+
`roaming`, which bounces contributions off one another and the display edges).
|
|
792
|
+
These fields belong to the selected event; note and signature events do not
|
|
793
|
+
gain photo-submission, QR or screen-canvas options. Change them through
|
|
794
|
+
Settings → Appearance → Wall animation or the existing appearance update command.
|
|
795
|
+
Resetting Appearance restores the default theme and playback settings.
|
|
758
796
|
|
|
759
797
|
`event appearance get` returns the canonical appearance, its optimistic-lock
|
|
760
798
|
version, and resolved media URLs. It uses the authenticated event procedure by
|
|
@@ -769,6 +807,31 @@ et event appearance update \
|
|
|
769
807
|
--appearance '{"version":1,"theme":{"accentColor":"#f84404","backgroundColor":"#f6f7f9","textColor":"#20242a","fontFamily":"SYSTEM"},"guestBackground":{"type":"none","key":null},"displayBackground":{"type":"none","key":null},"photoWall":{"durationSeconds":18,"maxVisible":4,"motion":"gentle","showQrCode":true,"showEventName":true}}'
|
|
770
808
|
```
|
|
771
809
|
|
|
810
|
+
Human Bingo display copy and sizing use the optional `humanBingo` appearance
|
|
811
|
+
block. Read `event appearance get` first and retain its other settings in the
|
|
812
|
+
full JSON update; pass its current `appearanceVersion` through
|
|
813
|
+
`--appearance-version` (3 in this example):
|
|
814
|
+
|
|
815
|
+
```sh
|
|
816
|
+
et event appearance update \
|
|
817
|
+
--event-id <id> \
|
|
818
|
+
--appearance-version 3 \
|
|
819
|
+
--appearance '{"version":1,"theme":{"accentColor":"#f84404","backgroundColor":"#f6f7f9","textColor":"#20242a","fontFamily":"SYSTEM"},"guestBackground":{"type":"none","key":null},"displayBackground":{"type":"none","key":null},"photoWall":{"durationSeconds":18,"maxVisible":4,"motion":"gentle","showQrCode":true,"showEventName":true},"humanBingo":{"title":"Meet your team","joinHeading":"Scan to join","joinInstructions":"Open your camera, scan the QR code and enter your name.","titleFontSize":64,"nameFontSize":40}}'
|
|
820
|
+
```
|
|
821
|
+
|
|
822
|
+
Adding `humanBingo: {}` explicitly opts into the new display defaults. Text is
|
|
823
|
+
trimmed: `title` allows up to 80 characters and defaults to empty (use the
|
|
824
|
+
existing configured Bingo title); `joinHeading` requires 1–40 characters and
|
|
825
|
+
defaults to `Scan to join`; `joinInstructions` requires 1–180 characters and
|
|
826
|
+
defaults to `Open your camera, scan the QR code and enter your name.`.
|
|
827
|
+
`titleFontSize` is an integer from 32–96 (default 64), and `nameFontSize` is an
|
|
828
|
+
integer from 24–52 (default 40). Colors, fonts and backgrounds use the canonical
|
|
829
|
+
event theme and appearance media settings. Omitting `humanBingo` on save preserves
|
|
830
|
+
the stored block; an event without the block keeps its legacy layout and title.
|
|
831
|
+
Use appearance reset to clear all overrides and restore legacy Bingo behavior.
|
|
832
|
+
`human-bingo config get` and `human-bingo config update` continue to manage the
|
|
833
|
+
configured Bingo title and game rules.
|
|
834
|
+
|
|
772
835
|
Reset is an explicit, version-fenced null update:
|
|
773
836
|
|
|
774
837
|
```sh
|
|
@@ -1032,3 +1095,12 @@ contains `data.drawnCount` and `data.winners`, including each winner's participa
|
|
|
1032
1095
|
ID, name, lucky draw ID, and assigned prize. The command requires an authenticated
|
|
1033
1096
|
CLI session with access to the event and a deployment that includes the pre-draw
|
|
1034
1097
|
API.
|
|
1098
|
+
|
|
1099
|
+
## Build artifact compatibility
|
|
1100
|
+
|
|
1101
|
+
`bun run build` uses the shared CLI builder and checks the executable against
|
|
1102
|
+
the [Hermes artifact budgets](../../../docs/cli-artifact-budgets.md).
|
|
1103
|
+
`bun run pack:artifact --destination /absolute/output` checks the final tarball,
|
|
1104
|
+
including all packaged helper scripts. Keep the Bun shebang, executable bit,
|
|
1105
|
+
source map, and command/wrapper headroom. Source `prepack` rebuilds and checks
|
|
1106
|
+
before direct packaging; the release workflow publishes the checked tarball.
|
package/command-reference.md
CHANGED
|
@@ -125,7 +125,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
125
125
|
- `et event access list` → `access.listEventAssignments` (query)
|
|
126
126
|
- List event staff assignments and pending staff invitations (expired links included until resent or revoked), with each invitation's stored emailDeliveryStatus.
|
|
127
127
|
- `et event access invite` → `access.inviteEventStaff` (mutation)
|
|
128
|
-
- Invite event staff by email;
|
|
128
|
+
- Invite event staff by email; roles include HELPDESK for Event Passport roster lookup and new entries only. Reports deliveryStatus and the stored emailDeliveryStatus. startsAt/expiresAt are ISO date-times or null; set expiresAt for temporary access.
|
|
129
129
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.email>`
|
|
130
130
|
- Date fields: `expiresAt`, `startsAt`
|
|
131
131
|
- `et event access invitation-resend` → `access.resendEventStaffInvitation` (mutation)
|
|
@@ -135,7 +135,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
135
135
|
- Revoke a pending event staff invitation.
|
|
136
136
|
- Confirm: `--allow-state-change` `--target <input.invitationId>`
|
|
137
137
|
- `et event access assign` → `access.upsertEventAssignment` (mutation)
|
|
138
|
-
- Create or update an existing user's event staff assignment.
|
|
138
|
+
- Create or update an existing user's event staff assignment. HELPDESK can look up the Event Passport roster and add new entries only; set expiresAt for temporary access.
|
|
139
139
|
- Confirm: `--allow-state-change` `--target <input.userId>`
|
|
140
140
|
- Date fields: `expiresAt`, `startsAt`
|
|
141
141
|
- `et event access revoke` → `access.revokeEventAssignment` (mutation)
|