@go-labs-sg/event-tech 1.19.0 → 1.21.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 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
@@ -642,8 +646,11 @@ it with the filters.
642
646
  - Draw-first claims: `claims list`, `export` and `counter claims` rows and receipts carry `itemsPending` (true until the food is recorded) and `itemsRecordedAt` (null until then; also null on food-first claims). `claims counts` returns `totalCount`, `activeCount`, `itemsPendingCount` and `voidedCount`. Voiding a claim that is still pending releases its set; a redo reuses the same prize outcome and is pending again.
643
647
  - `counter claims` takes `scope`: `mine` (default) is the claims made by you at the site (a crew
644
648
  device sees its own crew session's), `site` is every claim at the site whoever served it.
645
- Both need the same counter access, so `event.operate` for the CLI:
646
- `et staff-redemption counter claims --input '{"eventId":"<event-id>","siteId":"<site-id>","scope":"site"}'`.
649
+ `status` is `all` by default; `items-pending` filters to active claims whose food is not
650
+ recorded before selecting the newest rows (`limit` 1–50, default 20). This is a bounded
651
+ recent list, not the complete pending queue. Both scopes need the same counter access,
652
+ so `event.operate` for the CLI:
653
+ `et staff-redemption counter claims --input '{"eventId":"<event-id>","siteId":"<site-id>","scope":"site","status":"items-pending"}'`.
647
654
 
648
655
  ### Retired event types
649
656
 
@@ -854,7 +861,7 @@ the 1920x1080 board.
854
861
  `background upload` uploads through the same presigned
855
862
  `lucky-draw/backgrounds` flow as the preview page, then stores the key in
856
863
  `customBackgroundImage`. It prints the `config get` readback, where
857
- `customBackgroundImage` is a signed `/api/images/...` URL relative to the
864
+ `customBackgroundImage` is a signed `/api/attachments/...` URL relative to the
858
865
  Event Tech app. `background clear --allow-state-change --target <event-id>`
859
866
  unsets it.
860
867
 
@@ -383,7 +383,7 @@ Run `et <command> --help` for the full input JSON Schema.
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
385
  - `et staff-redemption counter claims` → `event.staffRedemption.getStaffRedemptionCounterClaims` (query)
386
- - 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. Each receipt carries itemsPending and itemsRecordedAt. Needs event.operate.
386
+ - 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
387
 
388
388
  ## Procedures without a registry command
389
389
 
package/dist/index.js CHANGED
@@ -17350,7 +17350,7 @@ var DEPRECATED_EVENT_TYPES = [
17350
17350
  var activeEventTypeSchema = _enum(EventType).exclude(DEPRECATED_EVENT_TYPES);
17351
17351
  var ACTIVE_EVENT_TYPES = activeEventTypeSchema.options;
17352
17352
 
17353
- // ../../../node_modules/.bun/@trpc+server@11.28.0+431a08decb845963/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
17353
+ // ../../../node_modules/.bun/@trpc+server@11.28.3+431a08decb845963/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
17354
17354
  function observable(subscribe) {
17355
17355
  const self2 = {
17356
17356
  subscribe(observer) {
@@ -17566,7 +17566,7 @@ function observableToAsyncIterable(observable, signal) {
17566
17566
  return iterator;
17567
17567
  }
17568
17568
 
17569
- // ../../../node_modules/.bun/@trpc+server@11.28.0+431a08decb845963/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
17569
+ // ../../../node_modules/.bun/@trpc+server@11.28.3+431a08decb845963/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
17570
17570
  function share(_opts) {
17571
17571
  return (source) => {
17572
17572
  let refCount = 0;
@@ -17688,7 +17688,7 @@ function behaviorSubject(initialValue) {
17688
17688
  return obs;
17689
17689
  }
17690
17690
 
17691
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
17691
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
17692
17692
  function createChain(opts) {
17693
17693
  return observable((observer) => {
17694
17694
  function execute(index = 0, op = opts.op) {
@@ -17706,7 +17706,7 @@ function createChain(opts) {
17706
17706
  });
17707
17707
  }
17708
17708
 
17709
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
17709
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
17710
17710
  function _typeof(o) {
17711
17711
  "@babel/helpers - typeof";
17712
17712
  return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
@@ -17761,7 +17761,7 @@ function _objectSpread2(e) {
17761
17761
  return e;
17762
17762
  }
17763
17763
 
17764
- // ../../../node_modules/.bun/@trpc+server@11.28.0+431a08decb845963/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
17764
+ // ../../../node_modules/.bun/@trpc+server@11.28.3+431a08decb845963/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
17765
17765
  function isObject2(value) {
17766
17766
  return !!value && !Array.isArray(value) && typeof value === "object";
17767
17767
  }
@@ -17798,7 +17798,7 @@ var retryableRpcCodes = [
17798
17798
  TRPC_ERROR_CODES_BY_KEY.INTERNAL_SERVER_ERROR
17799
17799
  ];
17800
17800
 
17801
- // ../../../node_modules/.bun/@trpc+server@11.28.0+431a08decb845963/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
17801
+ // ../../../node_modules/.bun/@trpc+server@11.28.3+431a08decb845963/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
17802
17802
  var noop = () => {};
17803
17803
  var freezeIfAvailable = (obj) => {
17804
17804
  if (Object.freeze)
@@ -17901,7 +17901,7 @@ function _objectSpread22(e) {
17901
17901
  return e;
17902
17902
  }
17903
17903
 
17904
- // ../../../node_modules/.bun/@trpc+server@11.28.0+431a08decb845963/node_modules/@trpc/server/dist/asyncGeneratorDelegate-BRQGtkYG.mjs
17904
+ // ../../../node_modules/.bun/@trpc+server@11.28.3+431a08decb845963/node_modules/@trpc/server/dist/asyncGeneratorDelegate-BRQGtkYG.mjs
17905
17905
  function transformResultInner(response, transformer) {
17906
17906
  if ("error" in response) {
17907
17907
  const error = transformer.deserialize(response.error);
@@ -17997,7 +17997,7 @@ AsyncGenerator.prototype[typeof Symbol == "function" && Symbol.asyncIterator ||
17997
17997
  };
17998
17998
  var trackedSymbol = Symbol();
17999
17999
 
18000
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
18000
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
18001
18001
  function isTRPCClientError(cause) {
18002
18002
  return cause instanceof TRPCClientError;
18003
18003
  }
@@ -18043,7 +18043,7 @@ var TRPCClientError = class TRPCClientError extends Error {
18043
18043
  }
18044
18044
  };
18045
18045
 
18046
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/unstable-internals.mjs
18046
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/unstable-internals.mjs
18047
18047
  function getTransformer(transformer) {
18048
18048
  const _transformer = transformer;
18049
18049
  if (!_transformer)
@@ -18065,7 +18065,7 @@ function getTransformer(transformer) {
18065
18065
  };
18066
18066
  }
18067
18067
 
18068
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
18068
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
18069
18069
  var isFunction2 = (fn) => typeof fn === "function";
18070
18070
  function getFetch(customFetchImpl) {
18071
18071
  if (customFetchImpl)
@@ -18218,7 +18218,7 @@ async function httpRequest(opts) {
18218
18218
  };
18219
18219
  }
18220
18220
 
18221
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/httpBatchLink-BkVNtNND.mjs
18221
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/httpBatchLink-BkVNtNND.mjs
18222
18222
  var throwFatalError = () => {
18223
18223
  throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new");
18224
18224
  };
@@ -18413,7 +18413,7 @@ function httpBatchLink(opts) {
18413
18413
  };
18414
18414
  }
18415
18415
 
18416
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/wsLink-BiIe_j6D.mjs
18416
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/wsLink-BiIe_j6D.mjs
18417
18417
  var resultOf = (value, ...args) => {
18418
18418
  return typeof value === "function" ? value(...args) : value;
18419
18419
  };
@@ -18566,7 +18566,7 @@ var WsConnection = class WsConnection {
18566
18566
  };
18567
18567
  _defineProperty(WsConnection, "connectCount", 0);
18568
18568
 
18569
- // ../../../node_modules/.bun/@trpc+client@11.28.0+86c0a2ff0813b553/node_modules/@trpc/client/dist/index.mjs
18569
+ // ../../../node_modules/.bun/@trpc+client@11.28.3+82479501839ae062/node_modules/@trpc/client/dist/index.mjs
18570
18570
  var observerKeys = [
18571
18571
  "onStarted",
18572
18572
  "onData",
@@ -19251,7 +19251,7 @@ Lucky draw:
19251
19251
  excludeEmails, titlePositionX/Y, slotPositionX/Y, prizePositionX/Y, prizeDivWidth, prizeDivHeight.
19252
19252
  Positions are pixels on the 1920x1080 board.
19253
19253
  background upload stores the image (jpeg/png/webp/gif) and sets customBackgroundImage;
19254
- the readback contains a signed /api/images URL. background clear unsets it.
19254
+ the readback contains a signed /api/attachments URL. background clear unsets it.
19255
19255
  prizes create appends after the last prize; --prizes takes [{"name","description"?}].
19256
19256
  prizes delete permanently removes unassigned prizes and renumbers the rest.
19257
19257
  prizes reorder takes every active prize ID once, in the new order.
@@ -21596,7 +21596,8 @@ var recordStaffRedemptionClaimItemsSchema = staffRedemptionSiteIdSchema.extend({
21596
21596
  var STAFF_REDEMPTION_COUNTER_CLAIM_SCOPES = ["mine", "site"];
21597
21597
  var staffRedemptionCounterClaimsSchema = staffRedemptionSiteIdSchema.extend({
21598
21598
  limit: number2().int().min(1).max(50).default(20),
21599
- scope: _enum(STAFF_REDEMPTION_COUNTER_CLAIM_SCOPES).default("mine")
21599
+ scope: _enum(STAFF_REDEMPTION_COUNTER_CLAIM_SCOPES).default("mine"),
21600
+ status: _enum(["all", "items-pending"]).default("all")
21600
21601
  }).strict();
21601
21602
  var STAFF_REDEMPTION_CLAIM_STATUSES = [
21602
21603
  "active",
@@ -26333,7 +26334,7 @@ var command_manifest_default = [
26333
26334
  path: ["staff-redemption", "counter", "claims"],
26334
26335
  procedure: "event.staffRedemption.getStaffRedemptionCounterClaims",
26335
26336
  operation: "query",
26336
- summary: "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. Each receipt carries itemsPending and itemsRecordedAt. Needs event.operate.",
26337
+ summary: "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.",
26337
26338
  effects: [],
26338
26339
  dates: [],
26339
26340
  input: {
@@ -26359,6 +26360,11 @@ var command_manifest_default = [
26359
26360
  default: "mine",
26360
26361
  type: "string",
26361
26362
  enum: ["mine", "site"]
26363
+ },
26364
+ status: {
26365
+ default: "all",
26366
+ type: "string",
26367
+ enum: ["all", "items-pending"]
26362
26368
  }
26363
26369
  },
26364
26370
  required: ["eventId", "siteId"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-labs-sg/event-tech",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "Event Tech CLI for managing Event Tech resources through the Go Labs API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",