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 +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -48,6 +48,7 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
48
48
|
getUserLocation(options?: RequestOptions): Promise<any>;
|
|
49
49
|
getMe(options?: RequestOptions): Promise<any>;
|
|
50
50
|
searchUsers(params: GetUsersParams, options?: RequestOptions): Promise<any>;
|
|
51
|
+
getUsers(params: GetUsersParams, options?: RequestOptions): Promise<any>;
|
|
51
52
|
setUserRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
|
|
52
53
|
loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
|
|
53
54
|
registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
48
48
|
getUserLocation(options?: RequestOptions): Promise<any>;
|
|
49
49
|
getMe(options?: RequestOptions): Promise<any>;
|
|
50
50
|
searchUsers(params: GetUsersParams, options?: RequestOptions): Promise<any>;
|
|
51
|
+
getUsers(params: GetUsersParams, options?: RequestOptions): Promise<any>;
|
|
51
52
|
setUserRole(params: SetRoleParams, options?: RequestOptions): Promise<any>;
|
|
52
53
|
loginUser(params: LoginUserParams, options?: RequestOptions): Promise<any>;
|
|
53
54
|
registerUser(params: RegisterUserParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.js
CHANGED
|
@@ -202,6 +202,10 @@ var createUserApi = (apiConfig) => {
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
},
|
|
205
|
+
// Alias for backwards compatibility
|
|
206
|
+
async getUsers(params, options) {
|
|
207
|
+
return this.searchUsers(params, options);
|
|
208
|
+
},
|
|
205
209
|
async setUserRole(params, options) {
|
|
206
210
|
return apiConfig.httpClient.put("/v1/users/set-role", params, options);
|
|
207
211
|
},
|
|
@@ -770,7 +774,12 @@ var createReservationApi = (apiConfig) => {
|
|
|
770
774
|
return {
|
|
771
775
|
// ===== RESERVATIONS =====
|
|
772
776
|
async createReservation(params, options) {
|
|
773
|
-
|
|
777
|
+
const payload = {
|
|
778
|
+
businessId: apiConfig.businessId,
|
|
779
|
+
market: apiConfig.market,
|
|
780
|
+
...params
|
|
781
|
+
};
|
|
782
|
+
return apiConfig.httpClient.post(`/v1/reservations`, payload, {
|
|
774
783
|
successMessage: "Reservation created successfully",
|
|
775
784
|
errorMessage: "Failed to create reservation",
|
|
776
785
|
...options
|