@brandfine/client 0.6.0 → 0.6.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 +9 -0
- package/README.md +11 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @brandfine/client
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 85e6b08: Docs: mention the new `bf.appointments` namespace in the package
|
|
8
|
+
README alongside Submissions/Posts/etc., with links to the full SDK
|
|
9
|
+
guide and REST API reference. README-only update missed in the
|
|
10
|
+
0.6.0 release — no code changes.
|
|
11
|
+
|
|
3
12
|
## 0.6.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -54,9 +54,17 @@ await bf.submissions.create({
|
|
|
54
54
|
email: 'alex@example.com',
|
|
55
55
|
message: 'Hello!',
|
|
56
56
|
})
|
|
57
|
+
|
|
58
|
+
// Appointments — for workspaces running the Appointments plugin
|
|
59
|
+
const { slots } = await bf.appointments.getAvailability()
|
|
60
|
+
await bf.appointments.createRequest({
|
|
61
|
+
visitorName: 'Alex',
|
|
62
|
+
visitorEmail: 'alex@example.com',
|
|
63
|
+
requestedAt: slots[0].start,
|
|
64
|
+
})
|
|
57
65
|
```
|
|
58
66
|
|
|
59
|
-
The full surface lives under
|
|
67
|
+
The full surface lives under seven namespaces — `posts`, `categories`, `workspace`, `navigations`, `analytics`, `submissions`, `appointments` — plus a `get(path)` escape hatch.
|
|
60
68
|
|
|
61
69
|
## Analytics
|
|
62
70
|
|
|
@@ -82,6 +90,8 @@ Full walkthrough with framework recipes: [docs.brandfine.co/docs/sdk/analytics](
|
|
|
82
90
|
- [SDK quickstart](https://docs.brandfine.co/docs/sdk/quickstart) — minimal Astro integration end-to-end.
|
|
83
91
|
- [`createBrandfineClient`](https://docs.brandfine.co/docs/sdk/client) — full options + method reference.
|
|
84
92
|
- [Analytics install](https://docs.brandfine.co/docs/sdk/analytics) — runtime vs build-time, framework recipes.
|
|
93
|
+
- [Submissions](https://docs.brandfine.co/docs/sdk/submissions) — POST a contact-form submission.
|
|
94
|
+
- [Appointments](https://docs.brandfine.co/docs/sdk/appointments) — booking availability + visitor requests for workspaces running the Appointments plugin (server-side only).
|
|
85
95
|
- [Webhook handler](https://docs.brandfine.co/docs/sdk/webhooks) — verify + parse + dispatch.
|
|
86
96
|
- [REST API reference](https://docs.brandfine.co/docs/api/authentication) — for non-TypeScript consumers.
|
|
87
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brandfine/client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Brandfine consumer SDK — typed HTTP client, server-side caches, locale + navigation resolvers, and webhook helpers for landing-page integrations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|