@izak0s/spacebring-api 8.0.0 → 9.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/dist/index.cjs +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -55
- package/dist/index.d.ts +214 -55
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1582,10 +1582,12 @@ function createEvents(client, defaults) {
|
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Check in a ticket
|
|
1584
1584
|
*
|
|
1585
|
-
* Check in an event ticket. Fails if the ticket is already checked in.
|
|
1585
|
+
* Check in an event ticket. Fails if the ticket is already checked in. Deprecated: this endpoint will be removed in a future release.
|
|
1586
1586
|
*
|
|
1587
1587
|
* @param id The id of the event ticket.
|
|
1588
1588
|
* @param options Request options (abort signal).
|
|
1589
|
+
*
|
|
1590
|
+
* @deprecated Marked as deprecated in the OpenAPI spec.
|
|
1589
1591
|
*/
|
|
1590
1592
|
async checkIn(id, options) {
|
|
1591
1593
|
return unwrapProp(await client.POST("/events/tickets/v1/{id}/checkin", { params: { path: { id } }, signal: options?.signal }), "ticket", "POST /events/tickets/v1/{id}/checkin");
|
|
@@ -2049,7 +2051,18 @@ function createResources(client, defaults) {
|
|
|
2049
2051
|
* Retrieve resource assignments in the location. An assignment links a resource, or a number of seats in it, to a company or a member for the duration of a subscription.
|
|
2050
2052
|
*/
|
|
2051
2053
|
async list(query, options) {
|
|
2052
|
-
return
|
|
2054
|
+
return unwrap(await client.GET("/resources/v1/assignments", { params: { query }, signal: options?.signal }), "GET /resources/v1/assignments");
|
|
2055
|
+
},
|
|
2056
|
+
/**
|
|
2057
|
+
* Retrieve resource assignments — iterates every item across all pages.
|
|
2058
|
+
*
|
|
2059
|
+
* Retrieve resource assignments in the location. An assignment links a resource, or a number of seats in it, to a company or a member for the duration of a subscription.
|
|
2060
|
+
*/
|
|
2061
|
+
iterate(query, options) {
|
|
2062
|
+
return paginate(
|
|
2063
|
+
async (nextPageToken) => unwrap(await client.GET("/resources/v1/assignments", { params: { query: { ...query, nextPageToken } }, signal: options?.signal }), "GET /resources/v1/assignments"),
|
|
2064
|
+
"assignments"
|
|
2065
|
+
);
|
|
2053
2066
|
},
|
|
2054
2067
|
/**
|
|
2055
2068
|
* Create a resource assignment
|