@qite/tide-client 1.1.74 → 1.1.76

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/build/index.js CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
 
5
+ var AllotmentKind;
6
+ (function (AllotmentKind) {
7
+ AllotmentKind[(AllotmentKind["perUnit"] = 0)] = "perUnit";
8
+ AllotmentKind[(AllotmentKind["perMember"] = 1)] = "perMember";
9
+ })(AllotmentKind || (AllotmentKind = {}));
10
+
11
+ var AllotmentStatus;
12
+ (function (AllotmentStatus) {
13
+ AllotmentStatus[(AllotmentStatus["bookable"] = 0)] = "bookable";
14
+ AllotmentStatus[(AllotmentStatus["closed"] = 1)] = "closed";
15
+ AllotmentStatus[(AllotmentStatus["hidden"] = 2)] = "hidden";
16
+ })(AllotmentStatus || (AllotmentStatus = {}));
17
+
5
18
  var AllotmentType = {
6
19
  freeSell: 0,
7
20
  onRequest: 1,
@@ -6644,6 +6657,22 @@ var changeEntryAgentSurcharge = function (config, request, signal) {
6644
6657
  var body = JSON.stringify(request);
6645
6658
  return post$1(url, apiKey, body, config.token, signal);
6646
6659
  };
6660
+ var getAllotmentList = function (config, filterItem, gridColumns, signal) {
6661
+ var params = createParams(filterItem, false, gridColumns);
6662
+ var queryString = Object.keys(params)
6663
+ .map(function (key) {
6664
+ return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
6665
+ })
6666
+ .join("&");
6667
+ var url = "" + config.host + ENDPOINT$3 + "/allotment/list?" + queryString;
6668
+ var apiKey = config.apiKey;
6669
+ return get(url, apiKey, config.token, signal, true);
6670
+ };
6671
+ var getAllotment = function (config, allotmentId, signal) {
6672
+ var url = "" + config.host + ENDPOINT$3 + "/allotment/" + allotmentId;
6673
+ var apiKey = config.apiKey;
6674
+ return get(url, apiKey, config.token, signal, true);
6675
+ };
6647
6676
 
6648
6677
  var ENDPOINT$2 = "/api/web";
6649
6678
  var ENDPOINT_CREATE_CRM_CONTACT = ENDPOINT$2 + "/crmcontact";
@@ -6785,7 +6814,9 @@ exports.forgotPassword = forgotPassword;
6785
6814
  exports.generateBookingAccommodations = generateBookingAccommodations;
6786
6815
  exports.getAffiliates = getAffiliates;
6787
6816
  exports.getAirports = getAirports;
6817
+ exports.getAllotment = getAllotment;
6788
6818
  exports.getAllotmentAvailability = getAllotmentAvailability;
6819
+ exports.getAllotmentList = getAllotmentList;
6789
6820
  exports.getCountries = getCountries;
6790
6821
  exports.getCustomEntryStatus = getCustomEntryStatus;
6791
6822
  exports.getEntryList = getEntryList;