@spoketech/hub-client 0.1.30 → 0.3.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
@@ -569,9 +569,49 @@ Do not treat an unsettled/timed-out response as completed registration; follow t
569
569
  existing command to completion. The workflow records `gaming_permissions_pending_retry`
570
570
  when permission verification is incomplete.
571
571
 
572
- Omitting the object leaves creation behaviour unchanged. Existing active matches
572
+ New Odyssey members default to `isGamingEnabled: false` when that flag is omitted,
573
+ including when other gaming permissions are supplied. Explicit `true` enables
574
+ gaming. The onsite agent applies and verifies this default after creation; deploying
575
+ the updated agent is required for physical venues. Demo creation uses the same default.
576
+ Existing active matches
573
577
  retain Ensure Active Membership's existing no-mutation behaviour; use
574
578
  `onsite.members.update` to change those members. Renewal-required matches apply
575
579
  requested permissions as part of profile preparation before renewal. Demo creation
576
580
  supports the same object. Nexus creation and the permission update remain separate
577
581
  calls, not an atomic operation.
582
+
583
+ ## Display-only offer catalogue (0.2.0)
584
+
585
+ Use `client.offers.catalogue.list({ organizationId })` or
586
+ `client.offers.catalogue.get({ organizationId, offerId })` with an
587
+ organization-bound `offers:read` service credential. Only currently active offers
588
+ are returned; hidden, expired and foreign IDs return 404. The returned `CatalogueOffer`
589
+ is a definition, with no eligibility, claim or payout capability.
590
+
591
+ Version 0.2.0 replaces the old constant `fulfilmentKind` with a typed `benefit`:
592
+ physical item (`itemName`, `quantity`), points (`pointTypeId`, `amount`), or SenPOS
593
+ voucher (`rewardId`, `quantity`, nullable `faceValue` in cents/currency). Create and
594
+ update require a full valid benefit. Existing unconfigured management records have
595
+ `benefit: null` and are excluded from the app catalogue. Catalogue voucher benefits
596
+ omit the internal provider and reward/template reference. Catalogue reads describe
597
+ definitions; physical member claims use the separate `client.rewards` flow below.
598
+ Points and POS voucher claims remain disabled.
599
+
600
+ Management uses `client.offers.list/get/create/update` and `offers:manage`.
601
+ Create produces a draft; update supplies the full editable definition, desired
602
+ status and `expectedUpdatedAt` from the previous management read. Retired offers
603
+ cannot be edited. All Promise methods return `[data, error]` tuples.
604
+
605
+ The generated equivalents are under `hubClient.offers`. See the repository's
606
+ [`docs/offers-catalogue.md`](../../docs/offers-catalogue.md) for exact contracts,
607
+ a create → activate → fetch example and Venue App gateway/CMS integration.
608
+
609
+ ## Physical offer rewards
610
+
611
+ The additive `client.rewards` API (0.3.0) supports verified-member physical offer
612
+ claims, member reward list/detail, presentation codes and staff collection. Points
613
+ and POS voucher definitions cannot be claimed. See [routes, scopes, schemas and gateway
614
+ examples](../../docs/physical-offer-rewards.md). Member calls require a registered
615
+ organization/venue gateway and a short-lived member capability; collection requires
616
+ a direct Hub staff session and explicit location grant. Never use reward UUIDs as
617
+ collection authority.