@praxium/sdk 0.2.10 → 0.2.11

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.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,12 +14,13 @@ npm install @praxium/sdk
14
14
  import { createTenantClient } from '@praxium/sdk'
15
15
 
16
16
  const client = createTenantClient({
17
- baseUrl: process.env.PRAXIUM_API_URL!,
18
- apiKey: process.env.PRAXIUM_API_KEY!,
19
- tenantSlug: 'your-tenant',
20
- locale: 'nl',
17
+ baseUrl: process.env.PRAXIUM_API_URL!, // e.g. 'https://your-practice.praxium.nl'
18
+ apiKey: process.env.PRAXIUM_API_KEY!, // HMAC-signed key: 'hmac_v1_mytenant_1234567890_abc...'
19
+ tenantSlug: 'mytenant', // must match the slug in the API key
20
+ locale: 'nl', // 'nl' (Dutch) or 'en' (English)
21
21
  })
22
22
 
23
+ // Returns data directly — throws PraxiumError on failure
23
24
  const hours = await client.getOpeningHours()
24
25
  const team = await client.getTeamMembers()
25
26
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxium/sdk",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Official TypeScript SDK for the Praxium platform API",
5
5
  "type": "module",
6
6
  "exports": {