@go-labs-sg/event-tech 1.18.0 → 1.20.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 +32 -10
- package/command-reference.md +2 -64
- package/dist/index.js +18 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Event Tech CLI
|
|
2
2
|
|
|
3
|
+
S3 downloads use `/api/attachments/...`; media fields can be relative to the
|
|
4
|
+
app origin. Configured public artwork is fetched through CloudFront by the server. See the
|
|
5
|
+
[shared image delivery policy](../../s3/README.md). Commands and schemas are unchanged.
|
|
6
|
+
|
|
3
7
|
`@go-labs-sg/event-tech` provides the `event-tech` and `et` commands for working with Event Tech through its permission-aware API.
|
|
4
8
|
|
|
5
9
|
## First step: update before use
|
|
@@ -109,7 +113,7 @@ Commands emit deterministic JSON envelopes. Authentication credentials are never
|
|
|
109
113
|
|
|
110
114
|
### Registry commands (every staff and admin operation)
|
|
111
115
|
|
|
112
|
-
Besides the named commands above, `et` exposes every staff/admin Event Tech API procedure as a registry command. [`command-reference.md`](./command-reference.md) lists them all, plus the procedures that intentionally have none (participant-only, public/display, browser-only,
|
|
116
|
+
Besides the named commands above, `et` exposes every staff/admin Event Tech API procedure as a registry command. [`command-reference.md`](./command-reference.md) lists them all, plus the procedures that intentionally have none (participant-only, public/display, browser-only, and web navigation helpers).
|
|
113
117
|
|
|
114
118
|
```sh
|
|
115
119
|
et commands # list every registry command
|
|
@@ -645,15 +649,33 @@ it with the filters.
|
|
|
645
649
|
Both need the same counter access, so `event.operate` for the CLI:
|
|
646
650
|
`et staff-redemption counter claims --input '{"eventId":"<event-id>","siteId":"<site-id>","scope":"site"}'`.
|
|
647
651
|
|
|
648
|
-
###
|
|
652
|
+
### Retired event types
|
|
653
|
+
|
|
654
|
+
Scavenger Hunt (Amazing Race) and Gardens by the Bay were retired and their code
|
|
655
|
+
removed (#2401). Existing `event list`, `event get` and appearance commands retain
|
|
656
|
+
their contracts and can still return historical `SCAVENGER_HUNT` /
|
|
657
|
+
`GARDENS_BY_THE_BAY` values for the events kept in the database. The CLI has no
|
|
658
|
+
event-create, duplicate, type-change or scavenger-specific commands, and the
|
|
659
|
+
server rejects new events of these types and changes into them, including requests
|
|
660
|
+
from older/custom clients.
|
|
661
|
+
|
|
662
|
+
Their stored data can still be read with one read-only command (needs
|
|
663
|
+
`event.export` on the event; archived events are included):
|
|
664
|
+
|
|
665
|
+
```bash
|
|
666
|
+
et event retired export --input '{"eventId":"<event-id>"}' > retired-event.json
|
|
667
|
+
```
|
|
649
668
|
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
669
|
+
It is a full export of setup and results: the event, its saved config, teams,
|
|
670
|
+
stations and missions (answer options, correct answers, acceptable variations,
|
|
671
|
+
points, matching-game and spot-the-difference content), and every participant with
|
|
672
|
+
station progress and mission submissions (answer, points, status, approval state).
|
|
673
|
+
Every row has its stable `id`; archived rows are included with `archivedAt` set, so
|
|
674
|
+
an obsolete option or variation is distinguishable from its replacement. Station,
|
|
675
|
+
mission and game images (`imageUrl`) and photo/video submissions (`mediaUrl`) are
|
|
676
|
+
signed for one hour (`mediaUrlExpiresInSeconds`), so download media right after
|
|
677
|
+
exporting; the raw S3 keys are included too. Other event types are rejected with a pointer to
|
|
678
|
+
`et event export`. Nothing creates or edits these events.
|
|
657
679
|
|
|
658
680
|
### Event appearance and Photo Wall display
|
|
659
681
|
|
|
@@ -836,7 +858,7 @@ the 1920x1080 board.
|
|
|
836
858
|
`background upload` uploads through the same presigned
|
|
837
859
|
`lucky-draw/backgrounds` flow as the preview page, then stores the key in
|
|
838
860
|
`customBackgroundImage`. It prints the `config get` readback, where
|
|
839
|
-
`customBackgroundImage` is a signed `/api/
|
|
861
|
+
`customBackgroundImage` is a signed `/api/attachments/...` URL relative to the
|
|
840
862
|
Event Tech app. `background clear --allow-state-change --target <event-id>`
|
|
841
863
|
unsets it.
|
|
842
864
|
|
package/command-reference.md
CHANGED
|
@@ -166,6 +166,8 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
166
166
|
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
167
167
|
- `et event export` → `event.getEventDataToExport` (query)
|
|
168
168
|
- Export an event's submissions and results.
|
|
169
|
+
- `et event retired export` → `event.getRetiredEventExport` (query)
|
|
170
|
+
- Export a retired Scavenger Hunt or Gardens by the Bay event (read-only): full setup and results with stable IDs, archived rows marked by archivedAt, and 1-hour signed media links. These types cannot be created or edited.
|
|
169
171
|
- `et event background get` → `event.getEventBackgroundImage` (query)
|
|
170
172
|
- Get an event's background image URL.
|
|
171
173
|
- `et event story list` → `event.getStoryItemsByEventId` (query)
|
|
@@ -485,70 +487,6 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
485
487
|
- `event.passport.setPassportStationPassword`: hand-written
|
|
486
488
|
- `event.passport.setStationQueueStatusAsStationStaff`: hand-written
|
|
487
489
|
- `event.passport.signInToStationStaff`: browser-only
|
|
488
|
-
- `event.scavengerHunt.getScavengerHuntByEventId`: frozen-scavenger-hunt
|
|
489
|
-
- `event.scavengerHunt.getScavengerHuntBoardBackgroundByEventId`: frozen-scavenger-hunt
|
|
490
|
-
- `event.scavengerHunt.getPhotoSubmissionsOnly`: frozen-scavenger-hunt
|
|
491
|
-
- `event.scavengerHunt.getScavengerHuntConfig`: frozen-scavenger-hunt
|
|
492
|
-
- `event.scavengerHunt.getScavengerHuntConfigPublic`: frozen-scavenger-hunt
|
|
493
|
-
- `event.scavengerHunt.getScavengerHuntSubmissionsForApproval`: frozen-scavenger-hunt
|
|
494
|
-
- `event.scavengerHunt.respondToScavengerHuntSubmission`: frozen-scavenger-hunt
|
|
495
|
-
- `event.scavengerHunt.updateScavengerHuntConfig`: frozen-scavenger-hunt
|
|
496
|
-
- `event.scavengerHunt.station.createStation`: frozen-scavenger-hunt
|
|
497
|
-
- `event.scavengerHunt.station.updateStation`: frozen-scavenger-hunt
|
|
498
|
-
- `event.scavengerHunt.station.archiveStation`: frozen-scavenger-hunt
|
|
499
|
-
- `event.scavengerHunt.station.restoreStation`: frozen-scavenger-hunt
|
|
500
|
-
- `event.scavengerHunt.station.getStationsByEventId`: frozen-scavenger-hunt
|
|
501
|
-
- `event.scavengerHunt.station.updateStationOrder`: frozen-scavenger-hunt
|
|
502
|
-
- `event.scavengerHunt.station.getStationForNav`: frozen-scavenger-hunt
|
|
503
|
-
- `event.scavengerHunt.station.getStationsForUser`: frozen-scavenger-hunt
|
|
504
|
-
- `event.scavengerHunt.station.getStationByIdForUser`: frozen-scavenger-hunt
|
|
505
|
-
- `event.scavengerHunt.mission.upsertMission`: frozen-scavenger-hunt
|
|
506
|
-
- `event.scavengerHunt.mission.archiveMission`: frozen-scavenger-hunt
|
|
507
|
-
- `event.scavengerHunt.mission.deleteMissionOption`: frozen-scavenger-hunt
|
|
508
|
-
- `event.scavengerHunt.mission.deleteMissionAcceptableVariation`: frozen-scavenger-hunt
|
|
509
|
-
- `event.scavengerHunt.mission.deleteMatchingGameOption`: frozen-scavenger-hunt
|
|
510
|
-
- `event.scavengerHunt.mission.deleteSpotTheDifferenceVariant`: frozen-scavenger-hunt
|
|
511
|
-
- `event.scavengerHunt.mission.deleteSpotTheDifferenceCoordinates`: frozen-scavenger-hunt
|
|
512
|
-
- `event.scavengerHunt.mission.getMissionStationSegmentsByEventId`: frozen-scavenger-hunt
|
|
513
|
-
- `event.scavengerHunt.mission.getMissionsByStationId`: frozen-scavenger-hunt
|
|
514
|
-
- `event.scavengerHunt.mission.restoreMission`: frozen-scavenger-hunt
|
|
515
|
-
- `event.scavengerHunt.mission.updateMissionOrder`: frozen-scavenger-hunt
|
|
516
|
-
- `event.scavengerHunt.mission.upsertMissionOption`: frozen-scavenger-hunt
|
|
517
|
-
- `event.scavengerHunt.mission.upsertMissionAcceptableVariation`: frozen-scavenger-hunt
|
|
518
|
-
- `event.scavengerHunt.mission.updateMissionOptionOrder`: frozen-scavenger-hunt
|
|
519
|
-
- `event.scavengerHunt.mission.upsertMatchingGame`: frozen-scavenger-hunt
|
|
520
|
-
- `event.scavengerHunt.mission.upsertMatchingGameOption`: frozen-scavenger-hunt
|
|
521
|
-
- `event.scavengerHunt.mission.upsertSpotTheDifferenceGame`: frozen-scavenger-hunt
|
|
522
|
-
- `event.scavengerHunt.mission.upsertSpotTheDifferenceVariant`: frozen-scavenger-hunt
|
|
523
|
-
- `event.scavengerHunt.mission.upsertSpotTheDifferenceCoordinate`: frozen-scavenger-hunt
|
|
524
|
-
- `event.scavengerHunt.mission.getMissionByIdForUser`: frozen-scavenger-hunt
|
|
525
|
-
- `event.scavengerHunt.participant.requestParticipantOtp`: frozen-scavenger-hunt
|
|
526
|
-
- `event.scavengerHunt.participant.addSingleParticipant`: frozen-scavenger-hunt
|
|
527
|
-
- `event.scavengerHunt.participant.createTeamParticipant`: frozen-scavenger-hunt
|
|
528
|
-
- `event.scavengerHunt.participant.getParticipantsForEvent`: frozen-scavenger-hunt
|
|
529
|
-
- `event.scavengerHunt.participant.bulkAddParticipants`: frozen-scavenger-hunt
|
|
530
|
-
- `event.scavengerHunt.participant.getAllParticipantsToExport`: frozen-scavenger-hunt
|
|
531
|
-
- `event.scavengerHunt.participant.getMissionByIdForParticipant`: frozen-scavenger-hunt
|
|
532
|
-
- `event.scavengerHunt.participant.submitMissionAnswer`: frozen-scavenger-hunt
|
|
533
|
-
- `event.scavengerHunt.participant.getStationsForUser`: frozen-scavenger-hunt
|
|
534
|
-
- `event.scavengerHunt.participant.getStationByIdForUser`: frozen-scavenger-hunt
|
|
535
|
-
- `event.scavengerHunt.participant.checkDuplicate`: frozen-scavenger-hunt
|
|
536
|
-
- `event.scavengerHunt.participant.createParticipant`: frozen-scavenger-hunt
|
|
537
|
-
- `event.scavengerHunt.participant.updateMissionStatus`: frozen-scavenger-hunt
|
|
538
|
-
- `event.scavengerHunt.participant.getInProgressStationById`: frozen-scavenger-hunt
|
|
539
|
-
- `event.scavengerHunt.participant.deleteParticipants`: frozen-scavenger-hunt
|
|
540
|
-
- `event.scavengerHunt.participant.getScoreTable`: frozen-scavenger-hunt
|
|
541
|
-
- `event.scavengerHunt.participant.getParticipantLeaderboard`: frozen-scavenger-hunt
|
|
542
|
-
- `event.scavengerHunt.participant.getTeamParticipantLeaderboard`: frozen-scavenger-hunt
|
|
543
|
-
- `event.scavengerHunt.participant.getPaginatedParticipantLeaderboard`: frozen-scavenger-hunt
|
|
544
|
-
- `event.scavengerHunt.participant.getPaginatedTeamParticipantLeaderboard`: frozen-scavenger-hunt
|
|
545
|
-
- `event.scavengerHunt.participant.updateParticipantName`: frozen-scavenger-hunt
|
|
546
|
-
- `event.scavengerHunt.team.createTeam`: frozen-scavenger-hunt
|
|
547
|
-
- `event.scavengerHunt.team.updateTeam`: frozen-scavenger-hunt
|
|
548
|
-
- `event.scavengerHunt.team.archiveTeam`: frozen-scavenger-hunt
|
|
549
|
-
- `event.scavengerHunt.team.restoreTeam`: frozen-scavenger-hunt
|
|
550
|
-
- `event.scavengerHunt.team.getTeamsByEventId`: frozen-scavenger-hunt
|
|
551
|
-
- `event.scavengerHunt.team.getTeamForNav`: frozen-scavenger-hunt
|
|
552
490
|
- `event.staffRedemption.importStaffRedemptionRoster`: hand-written
|
|
553
491
|
- `event.staffRedemption.getStaffRedemptionExportData`: hand-written
|
|
554
492
|
- `event.staffRedemption.getStaffRedemptionCounterAccess`: browser-only
|
package/dist/index.js
CHANGED
|
@@ -10683,7 +10683,6 @@ var CLI_REFRESH_INACTIVITY_TTL_MS = 30 * 24 * 60 * 60 * 1000;
|
|
|
10683
10683
|
var cliProducts = [
|
|
10684
10684
|
"budget-builder",
|
|
10685
10685
|
"event-tech",
|
|
10686
|
-
"registration",
|
|
10687
10686
|
"rsvp",
|
|
10688
10687
|
"gosh"
|
|
10689
10688
|
];
|
|
@@ -19252,7 +19251,7 @@ Lucky draw:
|
|
|
19252
19251
|
excludeEmails, titlePositionX/Y, slotPositionX/Y, prizePositionX/Y, prizeDivWidth, prizeDivHeight.
|
|
19253
19252
|
Positions are pixels on the 1920x1080 board.
|
|
19254
19253
|
background upload stores the image (jpeg/png/webp/gif) and sets customBackgroundImage;
|
|
19255
|
-
the readback contains a signed /api/
|
|
19254
|
+
the readback contains a signed /api/attachments URL. background clear unsets it.
|
|
19256
19255
|
prizes create appends after the last prize; --prizes takes [{"name","description"?}].
|
|
19257
19256
|
prizes delete permanently removes unassigned prizes and renumbers the rest.
|
|
19258
19257
|
prizes reorder takes every active prize ID once, in the new order.
|
|
@@ -23568,6 +23567,23 @@ var command_manifest_default = [
|
|
|
23568
23567
|
required: ["eventId"]
|
|
23569
23568
|
}
|
|
23570
23569
|
},
|
|
23570
|
+
{
|
|
23571
|
+
path: ["event", "retired", "export"],
|
|
23572
|
+
procedure: "event.getRetiredEventExport",
|
|
23573
|
+
operation: "query",
|
|
23574
|
+
summary: "Export a retired Scavenger Hunt or Gardens by the Bay event (read-only): full setup and results with stable IDs, archived rows marked by archivedAt, and 1-hour signed media links. These types cannot be created or edited.",
|
|
23575
|
+
effects: [],
|
|
23576
|
+
dates: [],
|
|
23577
|
+
input: {
|
|
23578
|
+
type: "object",
|
|
23579
|
+
properties: {
|
|
23580
|
+
eventId: {
|
|
23581
|
+
type: "string"
|
|
23582
|
+
}
|
|
23583
|
+
},
|
|
23584
|
+
required: ["eventId"]
|
|
23585
|
+
}
|
|
23586
|
+
},
|
|
23571
23587
|
{
|
|
23572
23588
|
path: ["event", "background", "get"],
|
|
23573
23589
|
procedure: "event.getEventBackgroundImage",
|