@izak0s/spacebring-api 3.6.0 → 4.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 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 -->185 operations across 21 resource groups<!-- /coverage -->** — the full Spacebring API surface
18
+ - **<!-- coverage -->186 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
@@ -2487,6 +2487,17 @@ function createTransactions(client, defaults) {
2487
2487
  "transactions"
2488
2488
  );
2489
2489
  },
2490
+ /**
2491
+ * Retrieve a credit transaction
2492
+ *
2493
+ * Retrieve a credits transaction.
2494
+ *
2495
+ * @param id The id of the transaction
2496
+ * @param options Request options (abort signal).
2497
+ */
2498
+ async get(id, options) {
2499
+ return unwrapProp(await client.GET("/transactions/credits/v1/{id}", { params: { path: { id } }, signal: options?.signal }), "transaction", "GET /transactions/credits/v1/{id}");
2500
+ },
2490
2501
  /**
2491
2502
  * Create a credit transaction
2492
2503
  *