@izak0s/spacebring-api 11.2.0 → 11.3.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 +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -14
- package/dist/index.d.ts +146 -14
- package/dist/index.js +16 -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 -->210 operations across 22 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
|
@@ -2065,6 +2065,22 @@ function createPlans(client, defaults) {
|
|
|
2065
2065
|
*/
|
|
2066
2066
|
async delete(planId, options) {
|
|
2067
2067
|
return unwrap(await client.DELETE("/plans/v1/{planId}", { params: { path: { planId } }, signal: options?.signal }), "DELETE /plans/v1/{planId}");
|
|
2068
|
+
},
|
|
2069
|
+
/**
|
|
2070
|
+
* Delete plans
|
|
2071
|
+
*
|
|
2072
|
+
* Delete up to 100 plans at once. Plans that are already deleted are skipped.
|
|
2073
|
+
*/
|
|
2074
|
+
async deletePlans(planIds, options) {
|
|
2075
|
+
return unwrap(await client.DELETE("/plans/v1", { body: { planIds }, signal: options?.signal }), "DELETE /plans/v1");
|
|
2076
|
+
},
|
|
2077
|
+
/**
|
|
2078
|
+
* Update plans
|
|
2079
|
+
*
|
|
2080
|
+
* Turn sign-up on with a type, or off, for up to 100 plans at once. Plans that already have this sign-up are left unchanged. A free plan can't use immediate sign-up.
|
|
2081
|
+
*/
|
|
2082
|
+
async patchPlans(plans, options) {
|
|
2083
|
+
return unwrap(await client.PATCH("/plans/v1", { body: { plans }, signal: options?.signal }), "PATCH /plans/v1");
|
|
2068
2084
|
}
|
|
2069
2085
|
};
|
|
2070
2086
|
}
|