@izak0s/spacebring-api 6.2.0 → 7.0.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 +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1983 -225
- package/dist/index.d.ts +1983 -225
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ A fully-typed TypeScript client for the [Spacebring](https://www.spacebring.com)
|
|
|
15
15
|
|
|
16
16
|
## Features
|
|
17
17
|
|
|
18
|
-
- **<!-- coverage -->
|
|
18
|
+
- **<!-- coverage -->188 operations across 21 resource groups<!-- /coverage -->** — the full Spacebring API surface
|
|
19
19
|
- **Auto-generated** from the official OpenAPI spec — types and facade regenerate anytime the spec changes
|
|
20
20
|
- **Nested, discoverable API** — `sb.billing.invoices.pay(id)`, `sb.visitors.visits.checkIn(body)`
|
|
21
21
|
- **Auto-pagination** — every paginated list endpoint has an `iterate()` async generator that walks `nextPageToken` for you
|
package/dist/index.cjs
CHANGED
|
@@ -2083,6 +2083,18 @@ function createResources(client, defaults) {
|
|
|
2083
2083
|
async create(booking, options) {
|
|
2084
2084
|
return unwrapProp(await client.POST("/resources/bookings/v1", { body: { booking }, signal: options?.signal }), "booking", "POST /resources/bookings/v1");
|
|
2085
2085
|
},
|
|
2086
|
+
/**
|
|
2087
|
+
* Update a booking
|
|
2088
|
+
*
|
|
2089
|
+
* Update a booking. Fields left out of the request keep their current value.
|
|
2090
|
+
*
|
|
2091
|
+
* @param bookingId ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: `_`.
|
|
2092
|
+
* @param body Request body.
|
|
2093
|
+
* @param options Request options (abort signal).
|
|
2094
|
+
*/
|
|
2095
|
+
async update(bookingId, body, options) {
|
|
2096
|
+
return unwrapProp(await client.PATCH("/resources/bookings/v1/{bookingId}", { params: { path: { bookingId } }, body, signal: options?.signal }), "booking", "PATCH /resources/bookings/v1/{bookingId}");
|
|
2097
|
+
},
|
|
2086
2098
|
/**
|
|
2087
2099
|
* Delete a booking
|
|
2088
2100
|
*
|