@kohost/api-client 3.0.0-beta.69 → 3.0.0-beta.70

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.
@@ -5211,6 +5211,44 @@ var require_PurchaseReservationLateCheckOutProducts = __commonJS({
5211
5211
  }
5212
5212
  });
5213
5213
 
5214
+ // dist/useCases/UpdateReservationExpectedArrivalTime.js
5215
+ var require_UpdateReservationExpectedArrivalTime = __commonJS({
5216
+ "dist/useCases/UpdateReservationExpectedArrivalTime.js"(exports2, module2) {
5217
+ module2.exports = /* @__PURE__ */ __name(function UpdateReservationExpectedArrivalTime2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5218
+ if (!requestData)
5219
+ requestData = {};
5220
+ const pathParams = [":id"];
5221
+ const { data, query, headers } = requestData;
5222
+ let url = "/reservations/:id/expectedArrivalTime";
5223
+ if (pathParams && data) {
5224
+ for (const param of pathParams) {
5225
+ const paramName = param.replace(":", "");
5226
+ url = url.replace(param, data[paramName]);
5227
+ }
5228
+ }
5229
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5230
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5231
+ const missing = missingParams.map((param) => param.replace(":", ""));
5232
+ return Promise.reject(
5233
+ new Error("Missing parameters: " + missing.join(", "))
5234
+ );
5235
+ }
5236
+ const config = {
5237
+ method: "put",
5238
+ url,
5239
+ ...httpConfigOptions
5240
+ };
5241
+ if (data)
5242
+ config.data = data;
5243
+ if (query)
5244
+ config.params = query;
5245
+ if (headers)
5246
+ config.headers = headers;
5247
+ return this._http.request(config);
5248
+ }, "UpdateReservationExpectedArrivalTime");
5249
+ }
5250
+ });
5251
+
5214
5252
  // dist/useCases/OCRDocument.js
5215
5253
  var require_OCRDocument = __commonJS({
5216
5254
  "dist/useCases/OCRDocument.js"(exports2, module2) {
@@ -5995,6 +6033,7 @@ var DescribeReservationRoomUpgrades = require_DescribeReservationRoomUpgrades();
5995
6033
  var PurchaseReservationRoomUpgrades = require_PurchaseReservationRoomUpgrades();
5996
6034
  var DescribeReservationLateCheckOutProducts = require_DescribeReservationLateCheckOutProducts();
5997
6035
  var PurchaseReservationLateCheckOutProducts = require_PurchaseReservationLateCheckOutProducts();
6036
+ var UpdateReservationExpectedArrivalTime = require_UpdateReservationExpectedArrivalTime();
5998
6037
  var OCRDocument = require_OCRDocument();
5999
6038
  var CreateOrganization = require_CreateOrganization();
6000
6039
  var AdminUpdateCustomer = require_AdminUpdateCustomer();
@@ -6261,6 +6300,7 @@ KohostApiClient.prototype.DescribeReservationRoomUpgrades = DescribeReservationR
6261
6300
  KohostApiClient.prototype.PurchaseReservationRoomUpgrades = PurchaseReservationRoomUpgrades;
6262
6301
  KohostApiClient.prototype.DescribeReservationLateCheckOutProducts = DescribeReservationLateCheckOutProducts;
6263
6302
  KohostApiClient.prototype.PurchaseReservationLateCheckOutProducts = PurchaseReservationLateCheckOutProducts;
6303
+ KohostApiClient.prototype.UpdateReservationExpectedArrivalTime = UpdateReservationExpectedArrivalTime;
6264
6304
  KohostApiClient.prototype.OCRDocument = OCRDocument;
6265
6305
  KohostApiClient.prototype.CreateOrganization = CreateOrganization;
6266
6306
  KohostApiClient.prototype.AdminUpdateCustomer = AdminUpdateCustomer;
@@ -72,6 +72,14 @@ export interface Reservation {
72
72
  | "checkInTimeNotStarted";
73
73
  mobileCheckInStatusMessage?: string;
74
74
  confirmationNumber?: string;
75
+ /**
76
+ * Expected arrival time of guest.
77
+ */
78
+ expectedCheckInDateTime?:
79
+ | string
80
+ | {
81
+ [k: string]: unknown;
82
+ };
75
83
  checkInDateTime:
76
84
  | string
77
85
  | {
@@ -359,6 +359,7 @@ export interface Thermostat {
359
359
  batteryLevel?: number;
360
360
  systemId?: string;
361
361
  watts?: number;
362
+ [k: string]: unknown;
362
363
  }
363
364
  export interface Setpoint {
364
365
  value?: number;
@@ -162,6 +162,7 @@ export interface Thermostat {
162
162
  batteryLevel?: number;
163
163
  systemId?: string;
164
164
  watts?: number;
165
+ [k: string]: unknown;
165
166
  }
166
167
  export interface Setpoint {
167
168
  value?: SetpointValue;
@@ -240,6 +240,14 @@ export interface Reservation {
240
240
  | "checkInTimeNotStarted";
241
241
  mobileCheckInStatusMessage?: string;
242
242
  confirmationNumber?: string;
243
+ /**
244
+ * Expected arrival time of guest.
245
+ */
246
+ expectedCheckInDateTime?:
247
+ | string
248
+ | {
249
+ [k: string]: unknown;
250
+ };
243
251
  checkInDateTime:
244
252
  | string
245
253
  | {
@@ -61,6 +61,11 @@
61
61
  "confirmationNumber": {
62
62
  "type": "string"
63
63
  },
64
+ "expectedCheckInDateTime": {
65
+ "type": ["string", "object"],
66
+ "format": "date-time",
67
+ "description": "Expected arrival time of guest."
68
+ },
64
69
  "checkInDateTime": {
65
70
  "type": ["string", "object"],
66
71
  "format": "date-time"
@@ -107,7 +107,6 @@
107
107
  "$ref": "definitions.json#/definitions/watts"
108
108
  }
109
109
  },
110
- "additionalProperties": false,
111
110
  "$defs": {
112
111
  "setpoint": {
113
112
  "type": "object",
@@ -5211,6 +5211,44 @@ var require_PurchaseReservationLateCheckOutProducts = __commonJS({
5211
5211
  }
5212
5212
  });
5213
5213
 
5214
+ // dist/useCases/UpdateReservationExpectedArrivalTime.js
5215
+ var require_UpdateReservationExpectedArrivalTime = __commonJS({
5216
+ "dist/useCases/UpdateReservationExpectedArrivalTime.js"(exports, module) {
5217
+ module.exports = /* @__PURE__ */ __name(function UpdateReservationExpectedArrivalTime(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5218
+ if (!requestData)
5219
+ requestData = {};
5220
+ const pathParams = [":id"];
5221
+ const { data, query, headers } = requestData;
5222
+ let url = "/reservations/:id/expectedArrivalTime";
5223
+ if (pathParams && data) {
5224
+ for (const param of pathParams) {
5225
+ const paramName = param.replace(":", "");
5226
+ url = url.replace(param, data[paramName]);
5227
+ }
5228
+ }
5229
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5230
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5231
+ const missing = missingParams.map((param) => param.replace(":", ""));
5232
+ return Promise.reject(
5233
+ new Error("Missing parameters: " + missing.join(", "))
5234
+ );
5235
+ }
5236
+ const config = {
5237
+ method: "put",
5238
+ url,
5239
+ ...httpConfigOptions
5240
+ };
5241
+ if (data)
5242
+ config.data = data;
5243
+ if (query)
5244
+ config.params = query;
5245
+ if (headers)
5246
+ config.headers = headers;
5247
+ return this._http.request(config);
5248
+ }, "UpdateReservationExpectedArrivalTime");
5249
+ }
5250
+ });
5251
+
5214
5252
  // dist/useCases/OCRDocument.js
5215
5253
  var require_OCRDocument = __commonJS({
5216
5254
  "dist/useCases/OCRDocument.js"(exports, module) {
@@ -8470,6 +8508,7 @@ var require_Client = __commonJS({
8470
8508
  var PurchaseReservationRoomUpgrades = require_PurchaseReservationRoomUpgrades();
8471
8509
  var DescribeReservationLateCheckOutProducts = require_DescribeReservationLateCheckOutProducts();
8472
8510
  var PurchaseReservationLateCheckOutProducts = require_PurchaseReservationLateCheckOutProducts();
8511
+ var UpdateReservationExpectedArrivalTime = require_UpdateReservationExpectedArrivalTime();
8473
8512
  var OCRDocument = require_OCRDocument();
8474
8513
  var CreateOrganization = require_CreateOrganization();
8475
8514
  var AdminUpdateCustomer = require_AdminUpdateCustomer();
@@ -8736,6 +8775,7 @@ var require_Client = __commonJS({
8736
8775
  KohostApiClient.prototype.PurchaseReservationRoomUpgrades = PurchaseReservationRoomUpgrades;
8737
8776
  KohostApiClient.prototype.DescribeReservationLateCheckOutProducts = DescribeReservationLateCheckOutProducts;
8738
8777
  KohostApiClient.prototype.PurchaseReservationLateCheckOutProducts = PurchaseReservationLateCheckOutProducts;
8778
+ KohostApiClient.prototype.UpdateReservationExpectedArrivalTime = UpdateReservationExpectedArrivalTime;
8739
8779
  KohostApiClient.prototype.OCRDocument = OCRDocument;
8740
8780
  KohostApiClient.prototype.CreateOrganization = CreateOrganization;
8741
8781
  KohostApiClient.prototype.AdminUpdateCustomer = AdminUpdateCustomer;