arky-sdk 0.3.11 → 0.3.13

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
@@ -204,6 +204,10 @@ var createUserApi = (apiConfig) => {
204
204
  }
205
205
  });
206
206
  },
207
+ // Alias for backwards compatibility
208
+ async getUsers(params, options) {
209
+ return this.searchUsers(params, options);
210
+ },
207
211
  async setUserRole(params, options) {
208
212
  return apiConfig.httpClient.put("/v1/users/set-role", params, options);
209
213
  },
@@ -772,7 +776,12 @@ var createReservationApi = (apiConfig) => {
772
776
  return {
773
777
  // ===== RESERVATIONS =====
774
778
  async createReservation(params, options) {
775
- return apiConfig.httpClient.post(`/v1/reservations`, params, {
779
+ const payload = {
780
+ businessId: apiConfig.businessId,
781
+ market: apiConfig.market,
782
+ ...params
783
+ };
784
+ return apiConfig.httpClient.post(`/v1/reservations`, payload, {
776
785
  successMessage: "Reservation created successfully",
777
786
  errorMessage: "Failed to create reservation",
778
787
  ...options