@izak0s/spacebring-api 11.2.0 → 11.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 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 -->208 operations across 22 resource groups<!-- /coverage -->** — the full Spacebring API surface
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
  }
@@ -2819,7 +2835,7 @@ function createTransactions(client, defaults) {
2819
2835
  /**
2820
2836
  * Update a money transaction
2821
2837
  *
2822
- * Approve or cancel a pending money transaction paid externally.
2838
+ * Change the internal note of a money transaction, or approve or cancel a pending money transaction paid externally. A user needs the Billing permission in the transaction's location.
2823
2839
  *
2824
2840
  * @param transactionId The id of the transaction.
2825
2841
  * @param transaction The `transaction` payload.