@go-labs-sg/event-tech 1.7.0 → 1.9.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 +26 -2
- package/command-reference.md +7 -0
- package/dist/index.js +11841 -977
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -152,6 +152,13 @@ et passport tally list --event-id <id> --station-id <id>
|
|
|
152
152
|
et passport tally summary --event-id <id>
|
|
153
153
|
et passport tally reverse --event-id <id> --tally-id <id> --reason "Scanned twice" --allow-state-change --target <same-event-id>
|
|
154
154
|
et passport export --event-id <id>
|
|
155
|
+
et passport roster import --event-id <id> --file staff.xlsx
|
|
156
|
+
et passport roster import --event-id <id> --file staff.csv --staff-id-column "Employee No" --full-name-column "Name" --surname-position first
|
|
157
|
+
et passport roster list --event-id <id> --search tan
|
|
158
|
+
et passport roster counts --event-id <id>
|
|
159
|
+
et passport roster upsert --event-id <id> --entry-json '{"staffId":"MT-0042","lastName":"Tan","displayName":"Tan Wei Ming"}'
|
|
160
|
+
et passport roster remove --event-id <id> --entry-id <id> --allow-state-change --target <same-event-id>
|
|
161
|
+
et passport roster purge --event-id <id> --allow-state-change --target <same-event-id>
|
|
155
162
|
```
|
|
156
163
|
|
|
157
164
|
Station collection modes are `SELF_SCAN`, `STAFF_SCAN`, `STAFF_SCORE` and `STAFF_TALLY`.
|
|
@@ -172,8 +179,9 @@ and copy the existing link, thresholds and redemption cap rather than clearing
|
|
|
172
179
|
them accidentally. Its JSON requires `linkedDrawEventId`,
|
|
173
180
|
`luckyDrawStampThreshold`, `prizeStampThreshold` and
|
|
174
181
|
`maxRedemptionsPerParticipant`; optional `loginMethods` is
|
|
175
|
-
`{"emailOtp":true,"google":false,"guest":true}
|
|
176
|
-
|
|
182
|
+
`{"emailOtp":true,"google":false,"guest":true,"staffId":false}` (`staffId` may be
|
|
183
|
+
omitted and defaults to false). Omit `loginMethods` to preserve it. At least
|
|
184
|
+
email OTP, Google or Staff ID must remain enabled for recovery, and enabling
|
|
177
185
|
Google requires configured provider credentials. Points never replace the
|
|
178
186
|
existing stamp-based reward thresholds.
|
|
179
187
|
|
|
@@ -210,6 +218,22 @@ station stamp there. Reversing a tally keeps the station stamp, and a revoked st
|
|
|
210
218
|
|
|
211
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.
|
|
212
220
|
|
|
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
|
|
224
|
+
again on another device resumes it. Failed attempts lock a Staff ID for 10 minutes
|
|
225
|
+
after 5 misses, and an IP after 50. Only event hosts (setup permission) can read
|
|
226
|
+
or change the roster. `roster import` reads a CSV or `.xlsx` file locally,
|
|
227
|
+
guesses the Staff ID, last-name, full-name and display-name columns from the
|
|
228
|
+
header row, and replaces the whole roster. Override a guess with the column
|
|
229
|
+
flags, or pass `none` to ignore an optional column. Without a last-name column
|
|
230
|
+
the last name is the last word of the full name, or the first word with
|
|
231
|
+
`--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
|
|
234
|
+
passports keep their stamps. Participant search, detail and `export` include
|
|
235
|
+
`staffId`. Staff ID sign-in itself is browser-only.
|
|
236
|
+
|
|
213
237
|
Guest enrollment/account linking is browser-only: it requires the original guest
|
|
214
238
|
cookie and verified email/Google authentication. `mine` can read only the passport
|
|
215
239
|
owned by the current CLI identity; it cannot recover a guest by name or assume a
|
package/command-reference.md
CHANGED
|
@@ -381,6 +381,13 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
381
381
|
- `event.passport.joinPassportBingo`: hand-written
|
|
382
382
|
- `event.passport.claimPassportBingoStamp`: hand-written
|
|
383
383
|
- `event.passport.getMyPassportBingo`: hand-written
|
|
384
|
+
- `event.passport.signInWithStaffId`: participant-only
|
|
385
|
+
- `event.passport.getPassportRoster`: hand-written
|
|
386
|
+
- `event.passport.getPassportRosterCounts`: hand-written
|
|
387
|
+
- `event.passport.upsertPassportRosterEntry`: hand-written
|
|
388
|
+
- `event.passport.deletePassportRosterEntry`: hand-written
|
|
389
|
+
- `event.passport.purgePassportRoster`: hand-written
|
|
390
|
+
- `event.passport.importPassportRoster`: hand-written
|
|
384
391
|
- `event.scavengerHunt.getScavengerHuntByEventId`: frozen-scavenger-hunt
|
|
385
392
|
- `event.scavengerHunt.getScavengerHuntBoardBackgroundByEventId`: frozen-scavenger-hunt
|
|
386
393
|
- `event.scavengerHunt.getPhotoSubmissionsOnly`: frozen-scavenger-hunt
|