@go-labs-sg/event-tech 1.14.0 → 1.15.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 +9 -0
- package/dist/index.js +24 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -231,6 +231,15 @@ station-session stamping of other stations is unaffected. Read the current state
|
|
|
231
231
|
`overview` (`passport.guestScan`) or, as a guest, from `mine` (`settings.guestScanEnabled`).
|
|
232
232
|
Turn it back on by sending `"guestScan":true`.
|
|
233
233
|
|
|
234
|
+
Simplified Chinese: optional `"simplifiedChinese": true|false` in `--settings-json` controls
|
|
235
|
+
whether the guest passport offers a 简体中文 language option next to English. It translates the
|
|
236
|
+
passport's own wording (buttons, labels, dates, messages); text the organiser entered, such as
|
|
237
|
+
event, station and prize names and descriptions, is shown as entered. Omit it to keep the stored
|
|
238
|
+
value; an event that never set it reads as off, so guests see English only. Read the current state
|
|
239
|
+
from `overview` (`passport.simplifiedChinese`) or, before or after sign-in, from `login-options`
|
|
240
|
+
(`simplifiedChinese`). Turn it off again by sending `"simplifiedChinese":false`; open signed-in passports
|
|
241
|
+
switch back to English.
|
|
242
|
+
|
|
234
243
|
`stamp correct`, `redemption reverse`, station/prize archive and print revocation
|
|
235
244
|
require `--allow-state-change --target <same-event-id>`; correction/reversal also
|
|
236
245
|
require a reason. Scored corrections accept `--points` and preserve historical
|
package/dist/index.js
CHANGED
|
@@ -18929,7 +18929,7 @@ Usage:
|
|
|
18929
18929
|
et passport bingo claim-stamp --event-id <id> (guest: catch-up award for a completed card)
|
|
18930
18930
|
et passport bingo status --event-id <id> (guest: own bingo progress and stamp)
|
|
18931
18931
|
et passport export --event-id <id>
|
|
18932
|
-
et passport settings update --event-id <id> --settings-json <json> (maxRedemptionsPerParticipant 0 = no cap; optional guestScan true|false)
|
|
18932
|
+
et passport settings update --event-id <id> --settings-json <json> (maxRedemptionsPerParticipant 0 = no cap; optional guestScan and simplifiedChinese true|false)
|
|
18933
18933
|
et passport station upsert --event-id <id> --station-json <json> (collection.stampValue 0-1000, default 1; collection.category GAME|FOOD|DRINK|BINGO, default GAME)
|
|
18934
18934
|
et passport station-access get --event-id <id>
|
|
18935
18935
|
et passport station-access set-password --event-id <id> --password-stdin --allow-state-change --target <same-event-id> (password read from stdin; 6-128 chars; ends every station session)
|
|
@@ -19009,7 +19009,9 @@ Event Passport:
|
|
|
19009
19009
|
Omit loginMethods to preserve it. Optional guestScan (boolean) turns guest station QR scanning
|
|
19010
19010
|
on or off; omit it to keep the stored value (absent means on). When off, guests cannot self-scan
|
|
19011
19011
|
(staff and station crew still stamp) and the guest passport hides the Scan tab. overview shows
|
|
19012
|
-
passport.guestScan and mine shows settings.guestScanEnabled.
|
|
19012
|
+
passport.guestScan and mine shows settings.guestScanEnabled. Optional simplifiedChinese (boolean,
|
|
19013
|
+
absent means off) offers a Simplified Chinese option on the guest passport; organiser-entered text
|
|
19014
|
+
stays as entered. overview shows passport.simplifiedChinese and login-options shows simplifiedChinese.
|
|
19013
19015
|
Staff roster (event hosts only): import replaces the roster and returns imported, replaced and
|
|
19014
19016
|
rejected rows (blank, too long, or a Staff ID repeated in the file). Columns are matched from
|
|
19015
19017
|
header names; override with the column flags. Without a last-name column, the last name is
|
|
@@ -19685,7 +19687,8 @@ var passportLoginMethodsSchema = object({
|
|
|
19685
19687
|
var passportConfigSchema = object({
|
|
19686
19688
|
version: literal(1),
|
|
19687
19689
|
loginMethods: passportLoginMethodsSchema,
|
|
19688
|
-
guestScan: boolean2().optional()
|
|
19690
|
+
guestScan: boolean2().optional(),
|
|
19691
|
+
simplifiedChinese: boolean2().optional()
|
|
19689
19692
|
});
|
|
19690
19693
|
var passportStationConfigSchema = object({
|
|
19691
19694
|
version: literal(1),
|
|
@@ -19814,7 +19817,8 @@ var passportSettingsSchema = passportEventIdSchema.extend({
|
|
|
19814
19817
|
maxRedemptionsPerParticipant: number2().int().min(0).max(2147483647),
|
|
19815
19818
|
linkedDrawEventId: string2().min(1).nullable(),
|
|
19816
19819
|
loginMethods: passportLoginMethodsSchema.optional(),
|
|
19817
|
-
guestScan: boolean2().optional()
|
|
19820
|
+
guestScan: boolean2().optional(),
|
|
19821
|
+
simplifiedChinese: boolean2().optional()
|
|
19818
19822
|
});
|
|
19819
19823
|
var renamePassportBingoSchema = passportEventIdSchema.extend({
|
|
19820
19824
|
name: string2().trim().min(1).max(100)
|
|
@@ -20537,6 +20541,18 @@ var parsePassportStationInput = (raw, eventId) => {
|
|
|
20537
20541
|
...collection ? { collection } : {}
|
|
20538
20542
|
};
|
|
20539
20543
|
};
|
|
20544
|
+
var parseSettingsSwitches = (value) => {
|
|
20545
|
+
const switches = {};
|
|
20546
|
+
for (const name of ["guestScan", "simplifiedChinese"]) {
|
|
20547
|
+
const item = value[name];
|
|
20548
|
+
if (item === undefined)
|
|
20549
|
+
continue;
|
|
20550
|
+
if (typeof item !== "boolean")
|
|
20551
|
+
throw new CliUsageError(`${name} must be a JSON boolean.`);
|
|
20552
|
+
switches[name] = item;
|
|
20553
|
+
}
|
|
20554
|
+
return switches;
|
|
20555
|
+
};
|
|
20540
20556
|
var parsePassportSettingsInput = (raw, eventId) => {
|
|
20541
20557
|
const value = json(raw, "--settings-json");
|
|
20542
20558
|
keys(value, [
|
|
@@ -20545,10 +20561,10 @@ var parsePassportSettingsInput = (raw, eventId) => {
|
|
|
20545
20561
|
"maxRedemptionsPerParticipant",
|
|
20546
20562
|
"linkedDrawEventId",
|
|
20547
20563
|
"loginMethods",
|
|
20548
|
-
"guestScan"
|
|
20564
|
+
"guestScan",
|
|
20565
|
+
"simplifiedChinese"
|
|
20549
20566
|
], "Settings");
|
|
20550
|
-
|
|
20551
|
-
throw new CliUsageError("guestScan must be a JSON boolean.");
|
|
20567
|
+
const switches = parseSettingsSwitches(value);
|
|
20552
20568
|
const threshold = (item, name) => item === null ? null : integer2(item, name, 1);
|
|
20553
20569
|
let loginMethods;
|
|
20554
20570
|
if (value.loginMethods !== undefined) {
|
|
@@ -20575,7 +20591,7 @@ var parsePassportSettingsInput = (raw, eventId) => {
|
|
|
20575
20591
|
maxRedemptionsPerParticipant: integer2(value.maxRedemptionsPerParticipant, "maxRedemptionsPerParticipant", 0),
|
|
20576
20592
|
linkedDrawEventId: value.linkedDrawEventId === null ? null : text(value.linkedDrawEventId, "linkedDrawEventId", 200),
|
|
20577
20593
|
...loginMethods ? { loginMethods } : {},
|
|
20578
|
-
...
|
|
20594
|
+
...switches
|
|
20579
20595
|
};
|
|
20580
20596
|
};
|
|
20581
20597
|
var parsePassportRosterEntryInput = (raw, eventId) => {
|