@izak0s/spacebring-api 9.3.0 → 9.4.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 +80 -20
- package/dist/index.d.ts +80 -20
- 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 -->195 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
|
@@ -2481,6 +2481,18 @@ function createSupport(client, defaults) {
|
|
|
2481
2481
|
async create(activity, options) {
|
|
2482
2482
|
return unwrapProp(await client.POST("/support/tickets/v1/comment", { body: { activity }, signal: options?.signal }), "activity", "POST /support/tickets/v1/comment");
|
|
2483
2483
|
},
|
|
2484
|
+
/**
|
|
2485
|
+
* Update a ticket comment
|
|
2486
|
+
*
|
|
2487
|
+
* Update the text of a support ticket comment. Only the comment author can edit it, and only comments without an attachment.
|
|
2488
|
+
*
|
|
2489
|
+
* @param id The id of the ticket activity.
|
|
2490
|
+
* @param activity The `activity` payload.
|
|
2491
|
+
* @param options Request options (abort signal).
|
|
2492
|
+
*/
|
|
2493
|
+
async update(id, activity, options) {
|
|
2494
|
+
return unwrapProp(await client.PATCH("/support/tickets/v1/comment/{id}", { params: { path: { id } }, body: { activity }, signal: options?.signal }), "activity", "PATCH /support/tickets/v1/comment/{id}");
|
|
2495
|
+
},
|
|
2484
2496
|
/**
|
|
2485
2497
|
* Delete a ticket comment
|
|
2486
2498
|
*
|