@izak0s/spacebring-api 5.6.0 → 6.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.cjs CHANGED
@@ -2016,11 +2016,11 @@ function createResources(client, defaults) {
2016
2016
  *
2017
2017
  * Get a certain resource.
2018
2018
  *
2019
- * @param id The id of the resource.
2019
+ * @param resourceId The id of the resource.
2020
2020
  * @param options Request options (abort signal).
2021
2021
  */
2022
- async get(id, options) {
2023
- return unwrapProp(await client.GET("/resources/v1/{id}", { params: { path: { id } }, signal: options?.signal }), "resource", "GET /resources/v1/{id}");
2022
+ async get(resourceId, options) {
2023
+ return unwrapProp(await client.GET("/resources/v1/{resourceId}", { params: { path: { resourceId } }, signal: options?.signal }), "resource", "GET /resources/v1/{resourceId}");
2024
2024
  },
2025
2025
  /**
2026
2026
  * Create a resource
@@ -2035,12 +2035,12 @@ function createResources(client, defaults) {
2035
2035
  *
2036
2036
  * Patch a certain resource.
2037
2037
  *
2038
- * @param id The id of the resource.
2038
+ * @param resourceId The id of the resource.
2039
2039
  * @param resource The `resource` payload.
2040
2040
  * @param options Request options (abort signal).
2041
2041
  */
2042
- async update(id, resource, options) {
2043
- return unwrap(await client.PATCH("/resources/v1/{id}", { params: { path: { id } }, body: { resource }, signal: options?.signal }), "PATCH /resources/v1/{id}");
2042
+ async update(resourceId, resource, options) {
2043
+ return unwrap(await client.PATCH("/resources/v1/{resourceId}", { params: { path: { resourceId } }, body: { resource }, signal: options?.signal }), "PATCH /resources/v1/{resourceId}");
2044
2044
  },
2045
2045
  /**
2046
2046
  * Retrieve resource assignments
@@ -2073,11 +2073,11 @@ function createResources(client, defaults) {
2073
2073
  /**
2074
2074
  * Get a booking
2075
2075
  *
2076
- * @param id The id of the booking.
2076
+ * @param bookingId ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: `_`.
2077
2077
  * @param options Request options (abort signal).
2078
2078
  */
2079
- async get(id, options) {
2080
- return unwrapProp(await client.GET("/resources/bookings/v1/{id}", { params: { path: { id } }, signal: options?.signal }), "booking", "GET /resources/bookings/v1/{id}");
2079
+ async get(bookingId, options) {
2080
+ return unwrapProp(await client.GET("/resources/bookings/v1/{bookingId}", { params: { path: { bookingId } }, signal: options?.signal }), "booking", "GET /resources/bookings/v1/{bookingId}");
2081
2081
  },
2082
2082
  /** Create a booking */
2083
2083
  async create(booking, options) {
@@ -2086,11 +2086,11 @@ function createResources(client, defaults) {
2086
2086
  /**
2087
2087
  * Delete a booking
2088
2088
  *
2089
- * @param id The id of the booking.
2089
+ * @param bookingId ID of the booking. For a single occurrence of a repeating booking, append the occurrence date: `_`.
2090
2090
  * @param options Request options (abort signal).
2091
2091
  */
2092
- async delete(id, options) {
2093
- return unwrap(await client.DELETE("/resources/bookings/v1/{id}", { params: { path: { id } }, signal: options?.signal }), "DELETE /resources/bookings/v1/{id}");
2092
+ async delete(bookingId, options) {
2093
+ return unwrap(await client.DELETE("/resources/bookings/v1/{bookingId}", { params: { path: { bookingId } }, signal: options?.signal }), "DELETE /resources/bookings/v1/{bookingId}");
2094
2094
  }
2095
2095
  }
2096
2096
  };