@go-labs-sg/event-tech 1.29.0 → 1.30.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 +14 -2
- package/command-reference.md +5 -0
- package/dist/index.js +525 -446
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -552,8 +552,10 @@ need `event.setup`, the export needs `event.export`, and the counter commands (`
|
|
|
552
552
|
`lookup`, `redeem`, `claims record-items`) need `event.operate`. Site crew sign in with a site password in the browser
|
|
553
553
|
only; crew sign-in and the counter access check have no CLI command. The same goes for the
|
|
554
554
|
employee QR page: employee sign-in (Employee ID, email code, Google, guest), claiming an Employee
|
|
555
|
-
ID, reading the employee's own QR code
|
|
556
|
-
|
|
555
|
+
ID, reading the employee's own QR code with their food choices, the sign-in options and the
|
|
556
|
+
page's problem report (QR did not show, device check, Reload page) are participant-only procedures
|
|
557
|
+
used by the web page and have no `et` command. What the page reported is read back with
|
|
558
|
+
`device-issues list` and `device-issues counts`. Their settings are managed with
|
|
557
559
|
`settings update` (`loginMethods`, `staffIdLabel`, `wrongSiteMessage`) and read back with
|
|
558
560
|
`setup get` (`config.loginMethods`, `employeeLogin.googleAvailable`). The Lucky Draw and Food
|
|
559
561
|
Collection counter pages use the same `counter context`, `lookup`, `redeem` and
|
|
@@ -568,6 +570,7 @@ confirm every write with `--allow-state-change --target <event-id>`. The command
|
|
|
568
570
|
| Setup | `setup get`, `settings update`, `site upsert`, `crew-password set`, `crew-password clear`, `session upsert`, `slot set`, `item-group upsert`, `item upsert`, `prize upsert`, `prize-stock set`, `rollover preview`, `rollover run`, `rollover list`, `rollover undo`, `archive set` |
|
|
569
571
|
| Roster | `roster list`, `roster counts`, `roster upsert`, `roster import` |
|
|
570
572
|
| Redemption log | `claims list`, `claims counts`, `claims void`, `claims record-items`, `draw release`, `stock summary`, `export` |
|
|
573
|
+
| Employee QR problems | `device-issues list`, `device-issues counts` |
|
|
571
574
|
| Counter | `counter context`, `lookup`, `redeem`, `counter claims` |
|
|
572
575
|
|
|
573
576
|
A walkthrough with made-up names and IDs. Nothing here is an instruction to change a live event;
|
|
@@ -690,6 +693,15 @@ et staff-redemption claims list --input '{"eventId":"<event-id>","status":"items
|
|
|
690
693
|
# draw release is refused while an active redemption still shows the draw (claims list
|
|
691
694
|
# draw.activeClaimCount > 0): void that redemption first.
|
|
692
695
|
et staff-redemption claims list --input '{"eventId":"<event-id>","search":"E1001"}'
|
|
696
|
+
# Employee QR problems. When an employee's QR does not show or their device has a problem, the
|
|
697
|
+
# page logs it (kind, device problems found, page state, the person when signed in, a device
|
|
698
|
+
# snapshot). Read them newest first, one cursor page per call (limit 1-100, default 50), optionally
|
|
699
|
+
# one kind (qr-not-visible, qr-render-failed, qr-refresh-failed, qr-expired, page-load-failed,
|
|
700
|
+
# device-problem, reload-tapped). The output is { items, pageInfo }; pass pageInfo.nextCursor as
|
|
701
|
+
# cursor for the next page. `counts` gives totalCount, allCount and the count per kind. Needs
|
|
702
|
+
# event.setup.
|
|
703
|
+
et staff-redemption device-issues list --input '{"eventId":"<event-id>","kind":"qr-not-visible","limit":50}'
|
|
704
|
+
et staff-redemption device-issues counts --input '{"eventId":"<event-id>"}'
|
|
693
705
|
et staff-redemption claims void --allow-state-change --target <event-id> \
|
|
694
706
|
--input '{"eventId":"<event-id>","claimId":"<claim-id>","reason":"Wrong items handed over"}'
|
|
695
707
|
et staff-redemption draw release --allow-state-change --target <event-id> \
|
package/command-reference.md
CHANGED
|
@@ -382,6 +382,10 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
382
382
|
- `et staff-redemption claims record-items` → `event.staffRedemption.recordStaffRedemptionClaimItems` (mutation)
|
|
383
383
|
- Record the food (itemIds, checked against the item rule) for a claim that was drawn first (itemsPending true, counterOrder DRAW_THEN_FOOD). siteId must be the claim's own site (claims list shows it). Writes the items, sets itemsPending false and itemsRecordedAt, and logs it; it deducts no set and makes no draw. Idempotent: the same items again return replayed true with the stored receipt. CONFLICT when different items were already recorded, when the claim is voided, or when the claim was food-first (nothing pending). Needs event.operate at that site (a manager has it). Returns status recorded, replayed and the receipt.
|
|
384
384
|
- Confirm: `--allow-state-change` `--target <input.eventId>`
|
|
385
|
+
- `et staff-redemption device-issues list` → `event.staffRedemption.getStaffRedemptionDeviceIssues` (query)
|
|
386
|
+
- List the problems the employee QR page reported, newest first, one cursor page per call (limit 1-100, default 50; cursor and direction forward from the previous pageInfo.nextCursor; optional kind filter; a cursor from other filters is rejected, so restart without it): returns { items, pageInfo: { hasNextPage, nextCursor } }. Each item has id, createdAt, kind (qr-not-visible, qr-render-failed, qr-refresh-failed, qr-expired, page-load-failed, device-problem or reload-tapped), problems found by the device check (offline, site-data-blocked, in-app-browser, forced-colors, forced-dark-mode, old-browser, data-saver, clock-wrong), detail, pageState, employeeId and employeeName when the browser was signed in as an employee, the device snapshot (browser, OS, screen, viewport, language, time zone, connection, clockOffsetMs and more), userAgent and ipAddress. Totals are in device-issues counts. Holds names and device details; needs event.setup.
|
|
387
|
+
- `et staff-redemption device-issues counts` → `event.staffRedemption.getStaffRedemptionDeviceIssueCounts` (query)
|
|
388
|
+
- Count the employee QR page reports for the same optional kind filter as device-issues list: returns totalCount (follows the kind filter), allCount (every report of the event) and counts (reports per kind, never filtered). Needs event.setup.
|
|
385
389
|
- `et staff-redemption counter claims` → `event.staffRedemption.getStaffRedemptionCounterClaims` (query)
|
|
386
390
|
- List a site's recent claims (limit 1-50, default 20) as the counter sees them. scope mine (default) is the claims you made at the site, site is every claim at the site. status all (default) includes every recent claim; items-pending selects active claims whose food is not recorded before applying the limit. Each receipt carries itemsPending and itemsRecordedAt. Needs event.operate.
|
|
387
391
|
|
|
@@ -499,6 +503,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
499
503
|
- `event.staffRedemption.beginStaffRedemptionEmployeeGoogleLogin`: participant-only
|
|
500
504
|
- `event.staffRedemption.claimStaffRedemptionEmployee`: participant-only
|
|
501
505
|
- `event.staffRedemption.getMyStaffRedemptionEmployee`: participant-only
|
|
506
|
+
- `event.staffRedemption.reportStaffRedemptionEmployeeIssue`: participant-only
|
|
502
507
|
- `event.getEventForNav`: hand-written
|
|
503
508
|
- `event.getEventsByOrgId`: hand-written
|
|
504
509
|
- `event.createRecentEvent`: web-navigation
|