@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.js CHANGED
@@ -1555,10 +1555,12 @@ function createEvents(client, defaults) {
1555
1555
  /**
1556
1556
  * Check in a ticket
1557
1557
  *
1558
- * Check in an event ticket. Fails if the ticket is already checked in.
1558
+ * Check in an event ticket. Fails if the ticket is already checked in. Deprecated: this endpoint will be removed in a future release.
1559
1559
  *
1560
1560
  * @param id The id of the event ticket.
1561
1561
  * @param options Request options (abort signal).
1562
+ *
1563
+ * @deprecated Marked as deprecated in the OpenAPI spec.
1562
1564
  */
1563
1565
  async checkIn(id, options) {
1564
1566
  return unwrapProp(await client.POST("/events/tickets/v1/{id}/checkin", { params: { path: { id } }, signal: options?.signal }), "ticket", "POST /events/tickets/v1/{id}/checkin");
@@ -2022,7 +2024,18 @@ function createResources(client, defaults) {
2022
2024
  * 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.
2023
2025
  */
2024
2026
  async list(query, options) {
2025
- return unwrapProp(await client.GET("/resources/v1/assignments", { params: { query }, signal: options?.signal }), "assignments", "GET /resources/v1/assignments");
2027
+ return unwrap(await client.GET("/resources/v1/assignments", { params: { query }, signal: options?.signal }), "GET /resources/v1/assignments");
2028
+ },
2029
+ /**
2030
+ * Retrieve resource assignments — iterates every item across all pages.
2031
+ *
2032
+ * 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.
2033
+ */
2034
+ iterate(query, options) {
2035
+ return paginate(
2036
+ async (nextPageToken) => unwrap(await client.GET("/resources/v1/assignments", { params: { query: { ...query, nextPageToken } }, signal: options?.signal }), "GET /resources/v1/assignments"),
2037
+ "assignments"
2038
+ );
2026
2039
  },
2027
2040
  /**
2028
2041
  * Create a resource assignment