@izak0s/spacebring-api 2.1.0 → 3.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 +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +323 -8
- package/dist/index.d.ts +323 -8
- package/dist/index.js +11 -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 -->183 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
|
@@ -2508,6 +2508,17 @@ function createTransactions(client, defaults) {
|
|
|
2508
2508
|
"transactions"
|
|
2509
2509
|
);
|
|
2510
2510
|
},
|
|
2511
|
+
/**
|
|
2512
|
+
* Retrieve a day pass transaction
|
|
2513
|
+
*
|
|
2514
|
+
* Retrieve a day passes transaction.
|
|
2515
|
+
*
|
|
2516
|
+
* @param id The id of the transaction
|
|
2517
|
+
* @param options Request options (abort signal).
|
|
2518
|
+
*/
|
|
2519
|
+
async get(id, options) {
|
|
2520
|
+
return unwrapProp(await client.GET("/transactions/day_passes/v1/{id}", { params: { path: { id } }, signal: options?.signal }), "transaction", "GET /transactions/day_passes/v1/{id}");
|
|
2521
|
+
},
|
|
2511
2522
|
/**
|
|
2512
2523
|
* Create a day pass transaction
|
|
2513
2524
|
*
|