@izak0s/spacebring-api 6.3.0 → 7.1.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
@@ -2056,6 +2056,18 @@ function createResources(client, defaults) {
2056
2056
  async create(booking, options) {
2057
2057
  return unwrapProp(await client.POST("/resources/bookings/v1", { body: { booking }, signal: options?.signal }), "booking", "POST /resources/bookings/v1");
2058
2058
  },
2059
+ /**
2060
+ * Update a booking
2061
+ *
2062
+ * Update a booking. Fields left out of the request keep their current value.
2063
+ *
2064
+ * @param bookingId ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: `_`.
2065
+ * @param body Request body.
2066
+ * @param options Request options (abort signal).
2067
+ */
2068
+ async update(bookingId, body, options) {
2069
+ return unwrapProp(await client.PATCH("/resources/bookings/v1/{bookingId}", { params: { path: { bookingId } }, body, signal: options?.signal }), "booking", "PATCH /resources/bookings/v1/{bookingId}");
2070
+ },
2059
2071
  /**
2060
2072
  * Delete a booking
2061
2073
  *