@back23/promptly-sdk 1.3.1 → 1.3.2

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
@@ -971,14 +971,14 @@ var ReservationResource = class {
971
971
  * @returns Reservation settings for the tenant
972
972
  */
973
973
  async getSettings() {
974
- return this.http.get("/public/reservations/settings");
974
+ return this.http.get("/public/reservation/settings");
975
975
  }
976
976
  /**
977
977
  * List available services
978
978
  * @returns Array of services (always an array)
979
979
  */
980
980
  async listServices() {
981
- const response = await this.http.getList("/public/reservations/services");
981
+ const response = await this.http.getList("/public/reservation/services");
982
982
  return response.data;
983
983
  }
984
984
  /**
@@ -988,7 +988,7 @@ var ReservationResource = class {
988
988
  */
989
989
  async listStaff(serviceId) {
990
990
  const params = serviceId ? { service_id: serviceId } : void 0;
991
- const response = await this.http.getList("/public/reservations/staffs", params);
991
+ const response = await this.http.getList("/public/reservation/staffs", params);
992
992
  return response.data;
993
993
  }
994
994
  /**
@@ -996,7 +996,7 @@ var ReservationResource = class {
996
996
  * @returns Array of available date strings (YYYY-MM-DD)
997
997
  */
998
998
  async getAvailableDates(params) {
999
- const response = await this.http.get("/public/reservations/dates", params);
999
+ const response = await this.http.get("/public/reservation/available-dates", params);
1000
1000
  return Array.isArray(response) ? response : response?.data ?? [];
1001
1001
  }
1002
1002
  /**
@@ -1004,7 +1004,7 @@ var ReservationResource = class {
1004
1004
  * @returns Array of available slots (always an array)
1005
1005
  */
1006
1006
  async getAvailableSlots(params) {
1007
- const response = await this.http.get("/public/reservations/slots", params);
1007
+ const response = await this.http.get("/public/reservation/available-slots", params);
1008
1008
  return Array.isArray(response) ? response : response?.data ?? [];
1009
1009
  }
1010
1010
  // ============================================
package/dist/index.mjs CHANGED
@@ -943,14 +943,14 @@ var ReservationResource = class {
943
943
  * @returns Reservation settings for the tenant
944
944
  */
945
945
  async getSettings() {
946
- return this.http.get("/public/reservations/settings");
946
+ return this.http.get("/public/reservation/settings");
947
947
  }
948
948
  /**
949
949
  * List available services
950
950
  * @returns Array of services (always an array)
951
951
  */
952
952
  async listServices() {
953
- const response = await this.http.getList("/public/reservations/services");
953
+ const response = await this.http.getList("/public/reservation/services");
954
954
  return response.data;
955
955
  }
956
956
  /**
@@ -960,7 +960,7 @@ var ReservationResource = class {
960
960
  */
961
961
  async listStaff(serviceId) {
962
962
  const params = serviceId ? { service_id: serviceId } : void 0;
963
- const response = await this.http.getList("/public/reservations/staffs", params);
963
+ const response = await this.http.getList("/public/reservation/staffs", params);
964
964
  return response.data;
965
965
  }
966
966
  /**
@@ -968,7 +968,7 @@ var ReservationResource = class {
968
968
  * @returns Array of available date strings (YYYY-MM-DD)
969
969
  */
970
970
  async getAvailableDates(params) {
971
- const response = await this.http.get("/public/reservations/dates", params);
971
+ const response = await this.http.get("/public/reservation/available-dates", params);
972
972
  return Array.isArray(response) ? response : response?.data ?? [];
973
973
  }
974
974
  /**
@@ -976,7 +976,7 @@ var ReservationResource = class {
976
976
  * @returns Array of available slots (always an array)
977
977
  */
978
978
  async getAvailableSlots(params) {
979
- const response = await this.http.get("/public/reservations/slots", params);
979
+ const response = await this.http.get("/public/reservation/available-slots", params);
980
980
  return Array.isArray(response) ? response : response?.data ?? [];
981
981
  }
982
982
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@back23/promptly-sdk",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Promptly AI CMS SDK for JavaScript/TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",