@msm-platform/customer-sdk 0.3.1 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to `@msm-platform/customer-sdk`. The format follows [Keep a
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.3.2] - 2026-11-20
8
+
9
+ ### Added
10
+
11
+ - Each item `GET /web/businesses/{businessId}/availability` returns has `resources`: the event's resources in its order, or a slot's resource when the query names one (empty otherwise), each `{ id, displayName, person }`. `person` is true for a resource linked to staff, such as an instructor, and false for a place, such as a room. An event can now have several resources: its first person is its instructor, its places are its room, and its other people are guest instructors.
12
+
13
+ ### Changed
14
+
15
+ - An event's `resource` in `GET /web/businesses/{businessId}/availability` is now its first resource, the first of `resources`, instead of null; a slot's is unchanged.
16
+
7
17
  ## [0.3.1] - 2026-11-16
8
18
 
9
19
  ### Added
package/README.md CHANGED
@@ -146,4 +146,4 @@ To run it against a local engine, see the example's README.
146
146
 
147
147
  ## Inside msm-platform
148
148
 
149
- `pnpm generate` writes `src/generated/api.ts` from the customer contract, `contracts/openapi/customer.json`, and `pnpm generate:check` fails when it is stale. Never edit it by hand. Publishing is manual and only Daníel does it: [docs/runbooks/customer-sdk.md](../../docs/runbooks/customer-sdk.md). Every changelog entry says its `Web impact:` on this package's users.
149
+ `pnpm generate` writes `src/generated/api.ts` from the customer contract, `contracts/openapi/customer.json`, and `pnpm generate:check` fails when it is stale. Never edit it by hand. Publishing is manual and only Daníel does it: [docs/runbooks/customer-sdk.md](../../docs/runbooks/customer-sdk.md). A pull request that changes this package or the customer contract adds an entry to its `CHANGELOG.md`, or says `Web impact: none` in its description.
@@ -605,6 +605,12 @@ export interface operations {
605
605
  /** Format: uuid */
606
606
  id: string;
607
607
  } | null;
608
+ resources: {
609
+ displayName: string;
610
+ /** Format: uuid */
611
+ id: string;
612
+ person: boolean;
613
+ }[];
608
614
  seatsLeft: number;
609
615
  /** Format: date-time */
610
616
  startsAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msm-platform/customer-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Typed server-side client for MSM's customer API (/web)",
5
5
  "license": "MIT",
6
6
  "repository": {