mozrest-sdk-react-dev 0.1.55 → 0.1.56

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.
Files changed (2) hide show
  1. package/mozrest-sdk.es.js +21 -8
  2. package/package.json +1 -1
package/mozrest-sdk.es.js CHANGED
@@ -95784,7 +95784,11 @@ const Form$2 = ({
95784
95784
  const GetTableManagement = async ({
95785
95785
  venue_id
95786
95786
  }) => {
95787
- const responseData = await instance$1.get(`resbook/venue/${venue_id}/tables`);
95787
+ const responseData = await instance$1.get(`resbook/venue/${venue_id}/tables`, {
95788
+ params: {
95789
+ "sortby[orderPriority]": "ASC"
95790
+ }
95791
+ });
95788
95792
  const data2 = responseData.data;
95789
95793
  return formatData$3(data2);
95790
95794
  };
@@ -96090,7 +96094,12 @@ const Form$1 = ({
96090
96094
  const GetSeatingRules = async ({
96091
96095
  venue_id
96092
96096
  }) => {
96093
- const responseData = await instance$1.get(`/resbook/venue/${venue_id}/seating-rules`);
96097
+ const responseData = await instance$1.get(`/resbook/venue/${venue_id}/seating-rules`, {
96098
+ params: {
96099
+ "sortby[partySize]": "ASC",
96100
+ limit: 100
96101
+ }
96102
+ });
96094
96103
  const data2 = responseData.data;
96095
96104
  return formatSeating(data2);
96096
96105
  };
@@ -96104,10 +96113,14 @@ const formatSeating = (data2) => {
96104
96113
  });
96105
96114
  };
96106
96115
  const TimeFormatter = ({ seconds: seconds2, type: type4 = "hours" }) => {
96107
- const days2 = hooks.duration(seconds2).days();
96108
- const hours2 = hooks.duration(seconds2).hours();
96109
- const minutes2 = hooks.duration(seconds2).minutes();
96110
- return /* @__PURE__ */ React__default.createElement("span", null, `${days2 && days2 !== 0 ? days2 + "d" : ""} ${hours2 && hours2 !== 0 ? hours2 + "h" : ""} ${minutes2 && minutes2 !== 0 ? minutes2 + "m" : ""}`);
96116
+ const days2 = hooks.duration(seconds2 * 60).days();
96117
+ const hours2 = hooks.duration(seconds2 * 60).hours();
96118
+ const minutes2 = hooks.duration(seconds2 * 60).minutes();
96119
+ return /* @__PURE__ */ React__default.createElement("span", null, `
96120
+ ${days2 && days2 !== 0 ? days2 + "d" : ""}
96121
+ ${hours2 && hours2 !== 0 ? hours2 + "h" : ""}
96122
+ ${minutes2 && minutes2 !== 0 ? minutes2 + "m" : ""}
96123
+ `);
96111
96124
  };
96112
96125
  const BookingTextComp = ({
96113
96126
  id: id2,
@@ -96601,7 +96614,7 @@ const GetBookings = async ({
96601
96614
  params = {}
96602
96615
  }) => {
96603
96616
  const responseData = await instance$1.get(`resbook/venue/${venue_id}/bookings`, {
96604
- params: { ...params, limit: 10 }
96617
+ params: { ...params, limit: 100 }
96605
96618
  });
96606
96619
  const data2 = responseData.data;
96607
96620
  return formatData(data2);
@@ -97265,7 +97278,7 @@ const GetTableAvailability = async ({
97265
97278
  }) => {
97266
97279
  if (params && params.startSec) {
97267
97280
  const responseData = await instance$1.get(`/resbook/venue/${venue_id}/table-availablity`, {
97268
- params
97281
+ params: { ...params, limit: 100 }
97269
97282
  });
97270
97283
  const data2 = responseData != null ? responseData : [];
97271
97284
  return data2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {