@msm-platform/customer-sdk 0.1.0 → 0.1.1

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 ADDED
@@ -0,0 +1,24 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@msm-platform/customer-sdk`. The format follows [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Versions are `0.x` until engine 1.0.0: a breaking change raises the minor version and is marked **Breaking**, anything else raises the patch version.
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [0.1.1] - 2026-11-13
8
+
9
+ ### Added
10
+
11
+ - This changelog ships in the package.
12
+
13
+ ## [0.1.0] - 2026-11-13
14
+
15
+ ### Added
16
+
17
+ - The first release: a typed client for MSM's customer API (`/web`), generated from the engine's customer contract on top of `openapi-fetch` 0.17.0.
18
+ - `createCustomerClient` in server mode sends your application client's ID and secret as HTTP Basic on every call and refuses to run where `window` exists. Proxy mode takes only a base URL, for a proxy on your server that adds the credentials.
19
+ - `sessionHeaders` sends a customer's session token as `X-Session-Token`.
20
+ - Customer sign-in, registration and logout on `/web/identity/*`: `initiateLogin`, `initiateRegistration`, `customerLogin`, `registerCustomer` and `logout`.
21
+ - Public reads: your partner's businesses, a business, its event types and its availability.
22
+ - Reservations and bookings: reserve, confirm, cancel and read a booking.
23
+ - The customer's own `/web/me`: details (name editable), bookings, passes, and ending all their sessions with your client.
24
+ - Every non-2xx response throws `CustomerApiError` with the engine's `code`, `message`, `retryAfterSeconds` and `issues`. `isCustomerApiError(error, method, path)` narrows `code` to the codes the contract declares for that operation.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MSM customer SDK (`@msm-platform/customer-sdk`)
2
2
 
3
- A typed client for MSM's customer API: sign-in, public business reads, reservations and bookings. Generated from the engine's customer contract with `openapi-typescript`, on top of `openapi-fetch` 0.17.0. Versions are `0.x` until engine 1.0.0; a minor version can break.
3
+ A typed client for MSM's customer API: sign-in, public business reads, reservations and bookings. Generated from the engine's customer contract with `openapi-typescript`, on top of `openapi-fetch` 0.17.0. Versions are `0.x` until engine 1.0.0; a minor version can break. `CHANGELOG.md` in the package lists each version's changes.
4
4
 
5
5
  ```sh
6
6
  npm install @msm-platform/customer-sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msm-platform/customer-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Typed server-side client for MSM's customer API (/web)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,7 +10,8 @@
10
10
  },
11
11
  "type": "module",
12
12
  "files": [
13
- "dist"
13
+ "dist",
14
+ "CHANGELOG.md"
14
15
  ],
15
16
  "exports": {
16
17
  ".": {