@go-labs-sg/event-tech 1.10.0 → 1.12.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 CHANGED
@@ -95,6 +95,8 @@ et event appearance update --event-id <id> --appearance-version <n> --appearance
95
95
  et event appearance reset --event-id <id> --appearance-version <n>
96
96
  et event appearance upload --event-id <id> --file ./background.mp4 --media-type video --content-type video/mp4
97
97
  et event photo-wall display-items --event-id <id> --limit 30
98
+ et passport skin get --event-id <id>
99
+ et passport station image-set --event-id <id> --station-id <id> --file ./cover.jpg --content-type image/jpeg
98
100
  et lucky-draw participants replace --event-id <id> --participants '[{"luckyDrawId":"illustrative-001","name":"Example Person","email":"example@example.test"}]' --allow-state-change --target <id>
99
101
  et lucky-draw participants list --event-id <id> --page 1 --per-page 100
100
102
  et lucky-draw config get --event-id <id>
@@ -133,6 +135,7 @@ et passport overview --event-id <id>
133
135
  et passport login-options --event-id <id>
134
136
  et passport mine --event-id <id>
135
137
  et passport bingo enable --event-id <id>
138
+ et passport bingo rename --event-id <id> --name "Staff Bingo"
136
139
  et passport bingo join --event-id <id>
137
140
  et passport bingo status --event-id <id>
138
141
  et passport bingo claim-stamp --event-id <id>
@@ -146,12 +149,19 @@ et passport participant detail --event-id <id> --participant-id <id>
146
149
  et passport prize upsert --event-id <id> --prize-json '{"name":"Tote bag","description":null,"stock":50,"stampCost":5,"order":0}'
147
150
  et passport redemption create --event-id <id> --participant-id <id> --prize-id <id> --quantity 2
148
151
  et passport station upsert --event-id <id> --station-json '{"name":"Ring toss","collection":{"collectionMode":"STAFF_SCAN","stampValue":3,"category":"GAME"}}'
152
+ 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"]}}}'
149
153
  et passport station upsert --event-id <id> --station-json '{"name":"Food counter","collection":{"collectionMode":"STAFF_TALLY","tallyItems":["Laksa","Teh"],"tallyEarnsStamp":true}}'
150
154
  et passport tally record --event-id <id> --station-id <id> --profile-code <participant-code> --item Laksa --quantity 2
151
155
  et passport tally list --event-id <id> --station-id <id>
152
156
  et passport tally summary --event-id <id>
153
157
  et passport tally reverse --event-id <id> --tally-id <id> --reason "Scanned twice" --allow-state-change --target <same-event-id>
154
158
  et passport export --event-id <id>
159
+ et passport station-access get --event-id <id>
160
+ printf '%s' "$STATION_PASSWORD" | et passport station-access set-password --event-id <id> --password-stdin --allow-state-change --target <same-event-id>
161
+ et passport station-access clear-password --event-id <id> --allow-state-change --target <same-event-id>
162
+ et passport stamps stats --event-id <id>
163
+ et passport stamps recipients --event-id <id> --station-id <id> --search tan --limit 25
164
+ et passport stamps recipient-counts --event-id <id> --station-id <id>
155
165
  et passport roster import --event-id <id> --file staff.xlsx
156
166
  et passport roster import --event-id <id> --file staff.csv --staff-id-column "Employee No" --full-name-column "Name" --surname-position first
157
167
  et passport roster list --event-id <id> --search tan
@@ -161,11 +171,35 @@ et passport roster remove --event-id <id> --entry-id <id> --allow-state-change -
161
171
  et passport roster purge --event-id <id> --allow-state-change --target <same-event-id>
162
172
  ```
163
173
 
174
+ Station links: instead of inviting operators by email, an event can share one
175
+ station password. Staff open `/events/<id>/event-passport/station` (or a single
176
+ station's link), enter the password, pick a station and stamp guests without an
177
+ account. `station-access get` reports `passwordSet`, `passwordUpdatedAt` and
178
+ `activeSessionCount`. `set-password` (6 to 128 characters, no leading or trailing
179
+ spaces) reads the password from stdin only (`--password-stdin`; it is never a
180
+ flag value) and `clear-password` turns links off; both need
181
+ `--allow-state-change --target <event-id>` and end every existing station
182
+ session. A duplicated event does not copy the password. `stamps stats` returns
183
+ per-station stamp counts, and `stamps recipients` / `recipient-counts` list the
184
+ participants (name, Staff ID) each station stamped and how (`issuedBy.kind`:
185
+ `participant` for a self-scan, `station-link`, `staff` with the staff member's name,
186
+ or `bingo` for a stamp awarded by completing bingo); recipients page with `--cursor` and
187
+ `--direction backward`. Station JSON also accepts `address` (up to 300
188
+ characters, `null` clears it). Signing in with the password is browser-only.
189
+
164
190
  Station collection modes are `SELF_SCAN`, `STAFF_SCAN`, `STAFF_SCORE` and `STAFF_TALLY`.
165
191
  `collection.stampValue` (0 to 1000, default 1) is the stamps one collection adds.
166
192
  `collection.category` is `GAME`, `FOOD`, `DRINK` or `BINGO` (default `GAME`) and
167
193
  groups stations for guests; the CLI rejects any other value before calling the API.
168
194
  Omit either field on an existing station to keep the stored value.
195
+ `collection.info` is the guest-facing station information shown when a guest taps
196
+ the station in their passport: `{"subtitle":"Game 4 · Desk basketball","steps":["Stand behind the line","Sink 3 shots"],"menu":[{"name":"Smash burger","detail":"Cooked to order","contains":"Gluten, dairy"}],"note":"Allergen info is indicative. Please ask our crew if unsure."}`.
197
+ `subtitle` is up to 80 characters, `steps` 1 to 8 lines of up to 160 (shown as "How to
198
+ play"), `menu` 1 to 15 items (`name` up to 80, `detail` and `contains` up to 200) and
199
+ `note` up to 240. Empty strings and empty lists are dropped; omit `info` to keep the
200
+ stored value and send `"info":null` (or an empty object) to clear it. Station reads
201
+ return it under `config.info`; `mine` also returns it as `info` on each station. Guests see how
202
+ many of each prize are left (`remaining`) in `mine`.
169
203
  `SELF_SCAN` uses a reusable printable QR; `STAFF_SCAN` is stamp-only; only
170
204
  `STAFF_SCORE` accepts `collection.maxPoints` and a collection `--points` value.
171
205
  Zero is valid. Repeat collection returns the original receipt without changing
@@ -180,11 +214,23 @@ them accidentally. Its JSON requires `linkedDrawEventId`,
180
214
  `luckyDrawStampThreshold`, `prizeStampThreshold` and
181
215
  `maxRedemptionsPerParticipant`; optional `loginMethods` is
182
216
  `{"emailOtp":true,"google":false,"guest":true,"staffId":false}` (`staffId` may be
183
- omitted and defaults to false). Omit `loginMethods` to preserve it. At least
217
+ omitted and defaults to false; `staffIdRequiresLastName` may be omitted and defaults to true, so include it as false each time you resend `loginMethods` on an event that has it off). Omit `loginMethods` to preserve it. At least
184
218
  email OTP, Google or Staff ID must remain enabled for recovery, and enabling
185
219
  Google requires configured provider credentials. Points never replace the
186
220
  existing stamp-based reward thresholds.
187
221
 
222
+ Guest scanning: optional `"guestScan": true|false` in `--settings-json` controls whether
223
+ guests can scan station QR codes themselves (for example
224
+ `settings update --event-id <id> --settings-json '{"linkedDrawEventId":null,"luckyDrawStampThreshold":null,"prizeStampThreshold":null,"maxRedemptionsPerParticipant":0,"guestScan":false}'`).
225
+ Omit it to keep the stored value; an event that never set it reads as on. While it is off,
226
+ `passport claim` is refused with "Station scanning is turned off for this event. Show your QR to
227
+ the station crew instead.", the guest passport hides the Scan tab and scan buttons, and
228
+ SELF_SCAN and legacy rotating-code stations (including printed QR codes) can only be collected
229
+ by staff or station crew, who may stamp them (`passport collect`, no `--points`) only while it is off. Staff and
230
+ station-session stamping of other stations is unaffected. Read the current state from
231
+ `overview` (`passport.guestScan`) or, as a guest, from `mine` (`settings.guestScanEnabled`).
232
+ Turn it back on by sending `"guestScan":true`.
233
+
188
234
  `stamp correct`, `redemption reverse`, station/prize archive and print revocation
189
235
  require `--allow-state-change --target <same-event-id>`; correction/reversal also
190
236
  require a reason. Scored corrections accept `--points` and preserve historical
@@ -216,11 +262,16 @@ returns per-item totals; `tally list` returns a station's tallies; `export`
216
262
  includes `tallies` and `tallySummary`. Plain `collect`, `claim` and rotating QR routes reject tally stations; only a manager stamp correction can add or remove the
217
263
  station stamp there. Reversing a tally keeps the station stamp, and a revoked station stamp is not restored by later tallies. The CLI prints the server response unchanged.
218
264
 
219
- Bingo: `bingo enable` (manager) creates the hunt and a hidden Bingo station (stamp value 3 by default). `bingo join`, `bingo status` and `bingo claim-stamp` act as the signed-in passport participant; `claim-stamp` is the catch-up for a completed card. Overview, participant detail and `export` report bingo joined, completed and stamp counts.
265
+ Bingo: `bingo enable` (manager) creates the hunt and a hidden Bingo station (stamp value 3 by default). The game's display name is that station's name (default "Human Bingo"); `bingo rename --name <name>` (manager, 1-100 characters, bingo must be enabled) changes it, and `bingo status` returns it as `name`, with the Bingo station's art as `station.imageUrl` (null without art) and its stamp value as `station.stampValue`. `bingo join`, `bingo status` and `bingo claim-stamp` act as the signed-in passport participant; `claim-stamp` is the catch-up for a completed card. Overview, participant detail and `export` report bingo joined, completed and stamp counts.
220
266
 
221
- Staff roster: with `loginMethods.staffId` on, guests sign in with a Staff ID and
222
- last name from the event roster (matched case-insensitively, ignoring spaces,
223
- punctuation and accents). One Staff ID owns one passport per event, so signing in
267
+ Staff roster: with `loginMethods.staffId` on, guests sign in with a Staff ID and,
268
+ unless `loginMethods.staffIdRequiresLastName` is false, a last name from the event
269
+ roster (matched case-insensitively, ignoring spaces, punctuation and accents). With
270
+ the requirement off, a Staff ID alone signs in, so anyone who knows or guesses one
271
+ can open that passport; use it only when Staff IDs are hard to guess. Blank last
272
+ names are then accepted in `roster import` and `roster upsert` (`"lastName":null`).
273
+ If the requirement is turned back on, those entries cannot sign in until they have
274
+ a last name; `roster counts` reports them as `missingLastNameCount`. One Staff ID owns one passport per event, so signing in
224
275
  again on another device resumes it. Failed attempts lock a Staff ID for 10 minutes
225
276
  after 5 misses, and an IP after 50. Only event hosts (setup permission) can read
226
277
  or change the roster. `roster import` reads a CSV or `.xlsx` file locally,
@@ -229,8 +280,8 @@ header row, and replaces the whole roster. Override a guess with the column
229
280
  flags, or pass `none` to ignore an optional column. Without a last-name column
230
281
  the last name is the last word of the full name, or the first word with
231
282
  `--surname-position first`. The response reports `imported`, `replaced` and
232
- each `rejected` row (`MISSING_STAFF_ID`, `MISSING_LAST_NAME`,
233
- `DUPLICATE_STAFF_ID` or `TOO_LONG`). Re-importing is safe: existing Staff ID
283
+ each `rejected` row (`MISSING_STAFF_ID`, `MISSING_LAST_NAME` when the event
284
+ requires one, `DUPLICATE_STAFF_ID` or `TOO_LONG`). Re-importing is safe: existing Staff ID
234
285
  passports keep their stamps. A file may hold up to 20,000 rows with data and
235
286
  200 columns. A file with data past those limits (including data below row
236
287
  50,000), a misplaced or unclosed CSV quote, or no importable rows at all is refused and the
@@ -243,6 +294,41 @@ owned by the current CLI identity; it cannot recover a guest by name or assume a
243
294
  participant ID. No CLI auth transport or organiser access boundary is bypassed.
244
295
  See the [Passport workflow and rollout gates](../../../docs/design/event-tech-passport-event-type.md).
245
296
 
297
+ #### Passport skin and station art
298
+
299
+ Every event renders the Go Labs default Passport look. An organiser may skin one
300
+ event through the optional `passport` block of the event appearance (hero key
301
+ visual with a focal point, logo, a graphics-only colour, a dark block colour and
302
+ `emphasis`). `skin` commands read and write only that block, using the same
303
+ version-fenced `updateEventAppearance` procedure and `event.setup` permission as
304
+ the web editor; every other appearance setting is preserved.
305
+
306
+ ```sh
307
+ et passport skin get --event-id <id>
308
+ et passport skin upload --event-id <id> --kind hero --file ./key-visual.jpg --content-type image/jpeg
309
+ et passport skin set --event-id <id> --appearance-version 3 \
310
+ --skin-json '{"heroImage":{"key":"<key from upload>","focalX":60,"focalY":30},"colors":{"graphic":"#e8483b","dark":"#0b2d5b"},"emphasis":"ink"}'
311
+ et passport skin set --event-id <id> --appearance-version 4 --skin-json '{"heroImage":{"focalX":30}}'
312
+ et passport skin clear --event-id <id> --appearance-version 5
313
+ ```
314
+
315
+ - `skin set` is a merge patch. Omitted keys keep their stored value, an object merges into the stored `heroImage`, `logo` or `colors`, and `null` clears `heroImage` or `logo`.
316
+ - `colors.graphic` paints shapes only, never text. `colors.dark` needs 4.5:1 contrast with white.
317
+ - `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
+ - Uploads accept JPEG, PNG, WebP or GIF up to 25 MB. SVG is not allowed.
319
+
320
+ Station cover art uses the station's existing `imageKey`:
321
+
322
+ ```sh
323
+ et passport station image-set --event-id <id> --station-id <id> --file ./cover.jpg --content-type image/jpeg
324
+ et passport station image-clear --event-id <id> --station-id <id>
325
+ ```
326
+
327
+ `image-set` uploads to the event's station-art folder and saves the key, keeping
328
+ every other station setting and the collection mode. `image-clear` removes it.
329
+ A new `imageKey` passed through `station upsert` must also be an upload to this
330
+ event's `event-passport/stations` folder; an unchanged key always passes.
331
+
246
332
  ### Deprecated event types
247
333
 
248
334
  Scavenger Hunt (Amazing Race) and Gardens by the Bay are deprecated and frozen.
@@ -376,11 +462,18 @@ access invite` and `event access invitation-resend` return `deliveryStatus`
376
462
  (`SENT`, `FAILED`, or `SENDING` when no outcome was recorded),
377
463
  `emailLastError` and `emailSentAt`. A rejected or uncertain send is saved as
378
464
  `FAILED`; resending replaces the invitation and sends a new email.
379
- `organization member list`, `event access list` and `admin organization list`
380
- show the same fields on pending invitations (`null` for invitations created
381
- before tracking). Legacy (policy v1) member invitations store the same fields on
382
- the member row; `organization member invitation-resend` re-sends a pending
465
+ `organization member list`, `event access list`, `admin organization list` and
466
+ `admin organization members` show the same fields on pending invitations (`null` for invitations created
467
+ before tracking). Legacy member invitations (pending membership rows created
468
+ before organization invitations) store the same fields on the member row; `organization member invitation-resend` re-sends a pending
383
469
  legacy member's email with a new idempotency key and updates those fields.
470
+
471
+ Pending invitations stay in `organization member list` and `event access list`
472
+ after their 48-hour link expires (compare `expiresAt` with the current time), and
473
+ both resend commands replace an expired invitation with a fresh link. `event access invite` returns `CONFLICT` when the recipient already has current or
474
+ scheduled access to the event; use `event access assign` to change it.
475
+ `event access my-assignments --input '{"organizationId":"<id>"}'` lists your own
476
+ assignments with `status` `ACTIVE`, `SCHEDULED`, `ENDED` or `REVOKED`.
384
477
  Owners and admins can resend to members; owner and admin invitations need an
385
478
  owner or global admin, as for other member changes. Active members are refused.
386
479
 
@@ -6,14 +6,14 @@ Run `et <command> --help` for the full input JSON Schema.
6
6
  ## Registry commands
7
7
 
8
8
  - `et organization member list` → `organization.getOrganizationMembersById` (query)
9
- - List an organization's members and pending invitations (paged), with each invitation's stored emailDeliveryStatus.
9
+ - List an organization's members and pending invitations (paged; expired links included until resent or canceled), with each invitation's stored emailDeliveryStatus.
10
10
  - `et organization member list-all` → `organization.getMembersByOrganization` (query)
11
11
  - List every member of an organization without paging.
12
12
  - `et organization member invite` → `organization.createOrganizationMember` (mutation)
13
13
  - Invite a member to an organization and email the invitation; reports deliveryStatus and the stored emailDeliveryStatus.
14
14
  - Confirm: `--allow-state-change` `--allow-email` `--target <input.email>`
15
15
  - `et organization member invitation-resend` → `organization.resendOrganizationMemberInvitation` (mutation)
16
- - Resend the invitation email to a pending legacy (policy v1) member; reports deliveryStatus and the stored emailDeliveryStatus.
16
+ - Resend the invitation email to a pending legacy member invitation created before organization invitations; reports deliveryStatus and the stored emailDeliveryStatus.
17
17
  - Confirm: `--allow-state-change` `--allow-email` `--target <input.memberId>`
18
18
  - `et organization member remove` → `organization.deleteOrganizationMember` (mutation)
19
19
  - Remove a member (or leave with isLeaving) and revoke their event access.
@@ -46,7 +46,7 @@ Run `et <command> --help` for the full input JSON Schema.
46
46
  - Cancel a pending organization invitation.
47
47
  - Confirm: `--allow-state-change` `--target <input.invitationId>`
48
48
  - `et organization invitation resend` → `organization.resendInvitation` (mutation)
49
- - Replace a pending organization invitation and email it; reports deliveryStatus and the stored emailDeliveryStatus.
49
+ - Replace a pending organization invitation (including an expired one) and email a fresh link; reports deliveryStatus and the stored emailDeliveryStatus.
50
50
  - Confirm: `--allow-state-change` `--allow-email` `--target <input.invitationId>`
51
51
  - `et organization update` → `organization.updateOrganizationById` (mutation)
52
52
  - Update organization details. name is required; omitted optional fields are unchanged.
@@ -72,7 +72,7 @@ Run `et <command> --help` for the full input JSON Schema.
72
72
  - `et admin organization get` → `admin.organization.getOrganization` (query)
73
73
  - Get any organization by ID as a global admin.
74
74
  - `et admin organization members` → `admin.organization.getOrganizationMembers` (query)
75
- - List an organization's members as a global admin.
75
+ - List an organization's members as a global admin, plus pendingInvitations not yet accepted (expired links included; shown when status is ALL or PENDING, filtered by search and role).
76
76
  - `et admin organization stats` → `organization.getOrganizationStats` (query)
77
77
  - Get platform-wide organization totals as a global admin.
78
78
  - `et admin organization archive` → `admin.organization.archiveOrganization` (mutation)
@@ -120,14 +120,16 @@ Run `et <command> --help` for the full input JSON Schema.
120
120
  - Confirm: `--allow-state-change` `--target <input.userId>`
121
121
  - `et event access mine` → `access.getMyEventAccess` (query)
122
122
  - Show the current user's role and permissions for an event.
123
+ - `et event access my-assignments` → `access.listMyEventAssignments` (query)
124
+ - List the current user's own event staff assignments in an organization (optionally one eventId), each with status ACTIVE, SCHEDULED, ENDED or REVOKED.
123
125
  - `et event access list` → `access.listEventAssignments` (query)
124
- - List event staff assignments and pending staff invitations, with each invitation's stored emailDeliveryStatus.
126
+ - List event staff assignments and pending staff invitations (expired links included until resent or revoked), with each invitation's stored emailDeliveryStatus.
125
127
  - `et event access invite` → `access.inviteEventStaff` (mutation)
126
128
  - Invite event staff by email; reports deliveryStatus and the stored emailDeliveryStatus. startsAt/expiresAt are ISO date-times or null.
127
129
  - Confirm: `--allow-state-change` `--allow-email` `--target <input.email>`
128
130
  - Date fields: `expiresAt`, `startsAt`
129
131
  - `et event access invitation-resend` → `access.resendEventStaffInvitation` (mutation)
130
- - Replace a pending event staff invitation and email it; reports deliveryStatus and the stored emailDeliveryStatus.
132
+ - Replace a pending event staff invitation (including an expired one) and email a fresh link; reports deliveryStatus and the stored emailDeliveryStatus.
131
133
  - Confirm: `--allow-state-change` `--allow-email` `--target <input.invitationId>`
132
134
  - `et event access invitation-revoke` → `access.revokeEventStaffInvitation` (mutation)
133
135
  - Revoke a pending event staff invitation.
@@ -378,6 +380,7 @@ Run `et <command> --help` for the full input JSON Schema.
378
380
  - `event.passport.getPassportTallySummary`: hand-written
379
381
  - `event.passport.getPassportStationTallies`: hand-written
380
382
  - `event.passport.enablePassportBingo`: hand-written
383
+ - `event.passport.renamePassportBingo`: hand-written
381
384
  - `event.passport.joinPassportBingo`: hand-written
382
385
  - `event.passport.claimPassportBingoStamp`: hand-written
383
386
  - `event.passport.getMyPassportBingo`: hand-written
@@ -388,6 +391,20 @@ Run `et <command> --help` for the full input JSON Schema.
388
391
  - `event.passport.deletePassportRosterEntry`: hand-written
389
392
  - `event.passport.purgePassportRoster`: hand-written
390
393
  - `event.passport.importPassportRoster`: hand-written
394
+ - `event.passport.clearPassportStationPassword`: hand-written
395
+ - `event.passport.collectStampAsStationStaff`: browser-only
396
+ - `event.passport.getPassportStationAccess`: hand-written
397
+ - `event.passport.getPassportStationStampRecipientCounts`: hand-written
398
+ - `event.passport.getPassportStationStampRecipients`: hand-written
399
+ - `event.passport.getPassportStationStampStats`: hand-written
400
+ - `event.passport.getStationStaffAccess`: browser-only
401
+ - `event.passport.getStationStaffStations`: browser-only
402
+ - `event.passport.previewStationStaffParticipant`: browser-only
403
+ - `event.passport.previewStationStaffPrizeClaim`: browser-only
404
+ - `event.passport.redeemPrizeAsStationStaff`: browser-only
405
+ - `event.passport.recordTallyAsStationStaff`: browser-only
406
+ - `event.passport.setPassportStationPassword`: hand-written
407
+ - `event.passport.signInToStationStaff`: browser-only
391
408
  - `event.scavengerHunt.getScavengerHuntByEventId`: frozen-scavenger-hunt
392
409
  - `event.scavengerHunt.getScavengerHuntBoardBackgroundByEventId`: frozen-scavenger-hunt
393
410
  - `event.scavengerHunt.getPhotoSubmissionsOnly`: frozen-scavenger-hunt