@go-labs-sg/event-tech 1.23.0 → 1.25.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 +39 -5
- package/command-reference.md +3 -2
- package/dist/index.js +6872 -22841
- 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,12 +327,14 @@ 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
|
|
333
334
|
station's `stampValue` at that moment, an activity-log entry, the lucky draw and bingo/progress
|
|
334
335
|
rules, source `PRIZE_DESK`). The redemption's own checks (threshold, balance, per-person limit,
|
|
335
|
-
stock)
|
|
336
|
+
stock) include that station's stamps in the earned and spendable balance for this
|
|
337
|
+
redemption. A failed redemption rolls back the stamp too. It is refused when the participant already holds that
|
|
336
338
|
station's stamp, when the station is not opted in, archived or outside its opening window, when
|
|
337
339
|
the event takes no stamps (not ongoing), and when a manager revoked their stamp there. A stamp that
|
|
338
340
|
a redemption reversal revoked is back to how it was: it can be awarded again, and the guest can
|
|
@@ -350,7 +352,7 @@ station, and the activity log records `awardedStationId`, `awardedStampId` and `
|
|
|
350
352
|
revoke itself is a `passport_stamp_revoked` entry). Optional `--request-id <uuid>` makes a retry
|
|
351
353
|
safe: sending the same id again for the same participant returns the first redemption
|
|
352
354
|
(`replayed: true`) instead of redeeming and awarding twice, and reusing it with a different prize,
|
|
353
|
-
quantity
|
|
355
|
+
quantity, award station or bonus stamps fails. Sending the id of a redemption that was since reversed also fails
|
|
354
356
|
("This redemption was reversed. Submit it again to hand over a new one.") and writes nothing; use a
|
|
355
357
|
new `--request-id` to redeem again.
|
|
356
358
|
`mine` also prints the participant's `profileCode` and `profileCodeExpiresAt`; the
|
|
@@ -442,8 +444,11 @@ names are then accepted in `roster import` and `roster upsert` (`"lastName":null
|
|
|
442
444
|
If the requirement is turned back on, those entries cannot sign in until they have
|
|
443
445
|
a last name; `roster counts` reports them as `missingLastNameCount`. One Staff ID owns one passport per event, so signing in
|
|
444
446
|
again on another device resumes it. Failed attempts lock a Staff ID for 10 minutes
|
|
445
|
-
after 5 misses, and an IP after 50.
|
|
446
|
-
|
|
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,
|
|
447
452
|
guesses the Staff ID, last-name, full-name and display-name columns from the
|
|
448
453
|
header row, and replaces the whole roster. Override a guess with the column
|
|
449
454
|
flags, or pass `none` to ignore an optional column. Without a last-name column
|
|
@@ -457,6 +462,26 @@ passports keep their stamps. A file may hold up to 20,000 rows with data and
|
|
|
457
462
|
roster is left unchanged; use `roster purge` to empty a roster on purpose. Participant search, detail and `export` include
|
|
458
463
|
`staffId`. Staff ID sign-in itself is browser-only.
|
|
459
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
|
+
|
|
460
485
|
Guest enrollment/account linking is browser-only: it requires the original guest
|
|
461
486
|
cookie and verified email/Google authentication. `mine` can read only the passport
|
|
462
487
|
owned by the current CLI identity; it cannot recover a guest by name or assume a
|
|
@@ -1031,3 +1056,12 @@ contains `data.drawnCount` and `data.winners`, including each winner's participa
|
|
|
1031
1056
|
ID, name, lucky draw ID, and assigned prize. The command requires an authenticated
|
|
1032
1057
|
CLI session with access to the event and a deployment that includes the pre-draw
|
|
1033
1058
|
API.
|
|
1059
|
+
|
|
1060
|
+
## Build artifact compatibility
|
|
1061
|
+
|
|
1062
|
+
`bun run build` uses the shared CLI builder and checks the executable against
|
|
1063
|
+
the [Hermes artifact budgets](../../../docs/cli-artifact-budgets.md).
|
|
1064
|
+
`bun run pack:artifact --destination /absolute/output` checks the final tarball,
|
|
1065
|
+
including all packaged helper scripts. Keep the Bun shebang, executable bit,
|
|
1066
|
+
source map, and command/wrapper headroom. Source `prepack` rebuilds and checks
|
|
1067
|
+
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)
|
|
@@ -426,6 +426,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
426
426
|
- `event.luckyDraw.preDrawPrizes`: hand-written
|
|
427
427
|
- `event.luckyDraw.updateLuckyDrawPrizesOrder`: hand-written
|
|
428
428
|
- `event.luckyDraw.updateLuckyDrawConfigJson`: hand-written
|
|
429
|
+
- `event.passport.getStationStaffStampRecipients`: browser-only
|
|
429
430
|
- `event.passport.getPassportLoginOptions`: hand-written
|
|
430
431
|
- `event.passport.getPassportQueueStatuses`: hand-written
|
|
431
432
|
- `event.passport.getStationPrintQr`: hand-written
|