@kohost/api-client 3.0.0-beta.81 → 3.0.0-beta.83
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/cjs/Client/index.js +135 -15
- package/dist/cjs/Commands/CheckInReservationCommand.js +3 -3
- package/dist/cjs/Commands/CheckOutReservationCommand.js +19 -0
- package/dist/cjs/Commands/index.js +2 -0
- package/dist/cjs/Models/Scene.js +4 -4
- package/dist/cjs/schemas/SpaceSchema.d.ts +5 -1
- package/dist/cjs/schemas/TicketSchema.d.ts +1 -0
- package/dist/cjs/schemas/space.json +1 -1
- package/dist/cjs/schemas/ticket.json +3 -0
- package/dist/esm/Client.js +135 -15
- package/dist/esm/Client.js.map +3 -3
- package/dist/esm/Commands.js +30 -3
- package/dist/esm/Commands.js.map +3 -3
- package/dist/esm/Models.js +8 -5
- package/dist/esm/Models.js.map +2 -2
- package/dist/useCases/BatchNotifyCheckOut.js +32 -0
- package/dist/useCases/BatchNotifyMissedCheckOut.js +32 -0
- package/dist/useCases/{DescribeReservationCheckinStatus.js → CheckOutReservation.js} +3 -3
- package/dist/useCases/SendRoomControlSMS.js +32 -0
- package/package.json +1 -1
package/dist/cjs/Client/index.js
CHANGED
|
@@ -4679,15 +4679,15 @@ var require_DescribeReservation = __commonJS({
|
|
|
4679
4679
|
}
|
|
4680
4680
|
});
|
|
4681
4681
|
|
|
4682
|
-
// dist/useCases/
|
|
4683
|
-
var
|
|
4684
|
-
"dist/useCases/
|
|
4685
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
4682
|
+
// dist/useCases/CheckInReservation.js
|
|
4683
|
+
var require_CheckInReservation = __commonJS({
|
|
4684
|
+
"dist/useCases/CheckInReservation.js"(exports2, module2) {
|
|
4685
|
+
module2.exports = /* @__PURE__ */ __name(function CheckInReservation2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4686
4686
|
if (!requestData)
|
|
4687
4687
|
requestData = {};
|
|
4688
4688
|
const pathParams = [":id"];
|
|
4689
4689
|
const { data, query, headers } = requestData;
|
|
4690
|
-
let url = "/reservations/:id/
|
|
4690
|
+
let url = "/reservations/:id/checkin";
|
|
4691
4691
|
if (pathParams && data) {
|
|
4692
4692
|
for (const param of pathParams) {
|
|
4693
4693
|
const paramName = param.replace(":", "");
|
|
@@ -4702,7 +4702,7 @@ var require_DescribeReservationCheckinStatus = __commonJS({
|
|
|
4702
4702
|
);
|
|
4703
4703
|
}
|
|
4704
4704
|
const config = {
|
|
4705
|
-
method: "
|
|
4705
|
+
method: "post",
|
|
4706
4706
|
url,
|
|
4707
4707
|
...httpConfigOptions
|
|
4708
4708
|
};
|
|
@@ -4713,19 +4713,19 @@ var require_DescribeReservationCheckinStatus = __commonJS({
|
|
|
4713
4713
|
if (headers)
|
|
4714
4714
|
config.headers = headers;
|
|
4715
4715
|
return this._http.request(config);
|
|
4716
|
-
}, "
|
|
4716
|
+
}, "CheckInReservation");
|
|
4717
4717
|
}
|
|
4718
4718
|
});
|
|
4719
4719
|
|
|
4720
|
-
// dist/useCases/
|
|
4721
|
-
var
|
|
4722
|
-
"dist/useCases/
|
|
4723
|
-
module2.exports = /* @__PURE__ */ __name(function
|
|
4720
|
+
// dist/useCases/CheckOutReservation.js
|
|
4721
|
+
var require_CheckOutReservation = __commonJS({
|
|
4722
|
+
"dist/useCases/CheckOutReservation.js"(exports2, module2) {
|
|
4723
|
+
module2.exports = /* @__PURE__ */ __name(function CheckOutReservation2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4724
4724
|
if (!requestData)
|
|
4725
4725
|
requestData = {};
|
|
4726
4726
|
const pathParams = [":id"];
|
|
4727
4727
|
const { data, query, headers } = requestData;
|
|
4728
|
-
let url = "/reservations/:id/
|
|
4728
|
+
let url = "/reservations/:id/checkout";
|
|
4729
4729
|
if (pathParams && data) {
|
|
4730
4730
|
for (const param of pathParams) {
|
|
4731
4731
|
const paramName = param.replace(":", "");
|
|
@@ -4751,7 +4751,7 @@ var require_CheckInReservation = __commonJS({
|
|
|
4751
4751
|
if (headers)
|
|
4752
4752
|
config.headers = headers;
|
|
4753
4753
|
return this._http.request(config);
|
|
4754
|
-
}, "
|
|
4754
|
+
}, "CheckOutReservation");
|
|
4755
4755
|
}
|
|
4756
4756
|
});
|
|
4757
4757
|
|
|
@@ -4869,6 +4869,44 @@ var require_SendPreArrivalEmail = __commonJS({
|
|
|
4869
4869
|
}
|
|
4870
4870
|
});
|
|
4871
4871
|
|
|
4872
|
+
// dist/useCases/SendRoomControlSMS.js
|
|
4873
|
+
var require_SendRoomControlSMS = __commonJS({
|
|
4874
|
+
"dist/useCases/SendRoomControlSMS.js"(exports2, module2) {
|
|
4875
|
+
module2.exports = /* @__PURE__ */ __name(function SendRoomControlSMS2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4876
|
+
if (!requestData)
|
|
4877
|
+
requestData = {};
|
|
4878
|
+
const pathParams = [":id"];
|
|
4879
|
+
const { data, query, headers } = requestData;
|
|
4880
|
+
let url = "/reservations/:id/sendRoomControlSMS";
|
|
4881
|
+
if (pathParams && data) {
|
|
4882
|
+
for (const param of pathParams) {
|
|
4883
|
+
const paramName = param.replace(":", "");
|
|
4884
|
+
url = url.replace(param, data[paramName]);
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
4888
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
4889
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
4890
|
+
return Promise.reject(
|
|
4891
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
4892
|
+
);
|
|
4893
|
+
}
|
|
4894
|
+
const config = {
|
|
4895
|
+
method: "post",
|
|
4896
|
+
url,
|
|
4897
|
+
...httpConfigOptions
|
|
4898
|
+
};
|
|
4899
|
+
if (data)
|
|
4900
|
+
config.data = data;
|
|
4901
|
+
if (query)
|
|
4902
|
+
config.params = query;
|
|
4903
|
+
if (headers)
|
|
4904
|
+
config.headers = headers;
|
|
4905
|
+
return this._http.request(config);
|
|
4906
|
+
}, "SendRoomControlSMS");
|
|
4907
|
+
}
|
|
4908
|
+
});
|
|
4909
|
+
|
|
4872
4910
|
// dist/useCases/BatchNotifyPreArrival.js
|
|
4873
4911
|
var require_BatchNotifyPreArrival = __commonJS({
|
|
4874
4912
|
"dist/useCases/BatchNotifyPreArrival.js"(exports2, module2) {
|
|
@@ -4945,6 +4983,82 @@ var require_BatchNotifyCheckIn = __commonJS({
|
|
|
4945
4983
|
}
|
|
4946
4984
|
});
|
|
4947
4985
|
|
|
4986
|
+
// dist/useCases/BatchNotifyCheckOut.js
|
|
4987
|
+
var require_BatchNotifyCheckOut = __commonJS({
|
|
4988
|
+
"dist/useCases/BatchNotifyCheckOut.js"(exports2, module2) {
|
|
4989
|
+
module2.exports = /* @__PURE__ */ __name(function BatchNotifyCheckOut2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4990
|
+
if (!requestData)
|
|
4991
|
+
requestData = {};
|
|
4992
|
+
const pathParams = null;
|
|
4993
|
+
const { data, query, headers } = requestData;
|
|
4994
|
+
let url = "/reservations/batchNotifyCheckIn";
|
|
4995
|
+
if (pathParams && data) {
|
|
4996
|
+
for (const param of pathParams) {
|
|
4997
|
+
const paramName = param.replace(":", "");
|
|
4998
|
+
url = url.replace(param, data[paramName]);
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
5001
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
5002
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
5003
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
5004
|
+
return Promise.reject(
|
|
5005
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
5006
|
+
);
|
|
5007
|
+
}
|
|
5008
|
+
const config = {
|
|
5009
|
+
method: "post",
|
|
5010
|
+
url,
|
|
5011
|
+
...httpConfigOptions
|
|
5012
|
+
};
|
|
5013
|
+
if (data)
|
|
5014
|
+
config.data = data;
|
|
5015
|
+
if (query)
|
|
5016
|
+
config.params = query;
|
|
5017
|
+
if (headers)
|
|
5018
|
+
config.headers = headers;
|
|
5019
|
+
return this._http.request(config);
|
|
5020
|
+
}, "BatchNotifyCheckOut");
|
|
5021
|
+
}
|
|
5022
|
+
});
|
|
5023
|
+
|
|
5024
|
+
// dist/useCases/BatchNotifyMissedCheckOut.js
|
|
5025
|
+
var require_BatchNotifyMissedCheckOut = __commonJS({
|
|
5026
|
+
"dist/useCases/BatchNotifyMissedCheckOut.js"(exports2, module2) {
|
|
5027
|
+
module2.exports = /* @__PURE__ */ __name(function BatchNotifyMissedCheckOut2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
5028
|
+
if (!requestData)
|
|
5029
|
+
requestData = {};
|
|
5030
|
+
const pathParams = null;
|
|
5031
|
+
const { data, query, headers } = requestData;
|
|
5032
|
+
let url = "/reservations/batchNotifyMissedCheckOut";
|
|
5033
|
+
if (pathParams && data) {
|
|
5034
|
+
for (const param of pathParams) {
|
|
5035
|
+
const paramName = param.replace(":", "");
|
|
5036
|
+
url = url.replace(param, data[paramName]);
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
5040
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
5041
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
5042
|
+
return Promise.reject(
|
|
5043
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
5044
|
+
);
|
|
5045
|
+
}
|
|
5046
|
+
const config = {
|
|
5047
|
+
method: "post",
|
|
5048
|
+
url,
|
|
5049
|
+
...httpConfigOptions
|
|
5050
|
+
};
|
|
5051
|
+
if (data)
|
|
5052
|
+
config.data = data;
|
|
5053
|
+
if (query)
|
|
5054
|
+
config.params = query;
|
|
5055
|
+
if (headers)
|
|
5056
|
+
config.headers = headers;
|
|
5057
|
+
return this._http.request(config);
|
|
5058
|
+
}, "BatchNotifyMissedCheckOut");
|
|
5059
|
+
}
|
|
5060
|
+
});
|
|
5061
|
+
|
|
4948
5062
|
// dist/useCases/AssignSpaceToReservation.js
|
|
4949
5063
|
var require_AssignSpaceToReservation = __commonJS({
|
|
4950
5064
|
"dist/useCases/AssignSpaceToReservation.js"(exports2, module2) {
|
|
@@ -6019,13 +6133,16 @@ var ListReservations = require_ListReservations();
|
|
|
6019
6133
|
var ListMyReservations = require_ListMyReservations();
|
|
6020
6134
|
var UpdateReservation = require_UpdateReservation();
|
|
6021
6135
|
var DescribeReservation = require_DescribeReservation();
|
|
6022
|
-
var DescribeReservationCheckinStatus = require_DescribeReservationCheckinStatus();
|
|
6023
6136
|
var CheckInReservation = require_CheckInReservation();
|
|
6137
|
+
var CheckOutReservation = require_CheckOutReservation();
|
|
6024
6138
|
var SendCheckInSMS = require_SendCheckInSMS();
|
|
6025
6139
|
var SendPreArrivalSMS = require_SendPreArrivalSMS();
|
|
6026
6140
|
var SendPreArrivalEmail = require_SendPreArrivalEmail();
|
|
6141
|
+
var SendRoomControlSMS = require_SendRoomControlSMS();
|
|
6027
6142
|
var BatchNotifyPreArrival = require_BatchNotifyPreArrival();
|
|
6028
6143
|
var BatchNotifyCheckIn = require_BatchNotifyCheckIn();
|
|
6144
|
+
var BatchNotifyCheckOut = require_BatchNotifyCheckOut();
|
|
6145
|
+
var BatchNotifyMissedCheckOut = require_BatchNotifyMissedCheckOut();
|
|
6029
6146
|
var AssignSpaceToReservation = require_AssignSpaceToReservation();
|
|
6030
6147
|
var DescribeReservationEarlyCheckInProducts = require_DescribeReservationEarlyCheckInProducts();
|
|
6031
6148
|
var PurchaseReservationEarlyCheckInProducts = require_PurchaseReservationEarlyCheckInProducts();
|
|
@@ -6286,13 +6403,16 @@ KohostApiClient.prototype.ListReservations = ListReservations;
|
|
|
6286
6403
|
KohostApiClient.prototype.ListMyReservations = ListMyReservations;
|
|
6287
6404
|
KohostApiClient.prototype.UpdateReservation = UpdateReservation;
|
|
6288
6405
|
KohostApiClient.prototype.DescribeReservation = DescribeReservation;
|
|
6289
|
-
KohostApiClient.prototype.DescribeReservationCheckinStatus = DescribeReservationCheckinStatus;
|
|
6290
6406
|
KohostApiClient.prototype.CheckInReservation = CheckInReservation;
|
|
6407
|
+
KohostApiClient.prototype.CheckOutReservation = CheckOutReservation;
|
|
6291
6408
|
KohostApiClient.prototype.SendCheckInSMS = SendCheckInSMS;
|
|
6292
6409
|
KohostApiClient.prototype.SendPreArrivalSMS = SendPreArrivalSMS;
|
|
6293
6410
|
KohostApiClient.prototype.SendPreArrivalEmail = SendPreArrivalEmail;
|
|
6411
|
+
KohostApiClient.prototype.SendRoomControlSMS = SendRoomControlSMS;
|
|
6294
6412
|
KohostApiClient.prototype.BatchNotifyPreArrival = BatchNotifyPreArrival;
|
|
6295
6413
|
KohostApiClient.prototype.BatchNotifyCheckIn = BatchNotifyCheckIn;
|
|
6414
|
+
KohostApiClient.prototype.BatchNotifyCheckOut = BatchNotifyCheckOut;
|
|
6415
|
+
KohostApiClient.prototype.BatchNotifyMissedCheckOut = BatchNotifyMissedCheckOut;
|
|
6296
6416
|
KohostApiClient.prototype.AssignSpaceToReservation = AssignSpaceToReservation;
|
|
6297
6417
|
KohostApiClient.prototype.DescribeReservationEarlyCheckInProducts = DescribeReservationEarlyCheckInProducts;
|
|
6298
6418
|
KohostApiClient.prototype.PurchaseReservationEarlyCheckInProducts = PurchaseReservationEarlyCheckInProducts;
|
|
@@ -2,9 +2,9 @@ const Command = require("./Command");
|
|
|
2
2
|
const RequestError = require("../Errors/RequestError");
|
|
3
3
|
|
|
4
4
|
class CheckInReservationCommand extends Command {
|
|
5
|
-
constructor({ id }) {
|
|
6
|
-
if (!id) throw new RequestError("
|
|
7
|
-
super({ id });
|
|
5
|
+
constructor({ id, ...rest }) {
|
|
6
|
+
if (!id) throw new RequestError("reservation id is required");
|
|
7
|
+
super({ id, ...rest });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
get name() {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const Command = require("./Command");
|
|
2
|
+
const RequestError = require("../Errors/RequestError");
|
|
3
|
+
|
|
4
|
+
class CheckOutReservationCommand extends Command {
|
|
5
|
+
constructor({ id, ...rest }) {
|
|
6
|
+
if (!id) throw new RequestError("reservation id is required");
|
|
7
|
+
super({ id, ...rest });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get name() {
|
|
11
|
+
return "CheckOutReservation";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get routingKey() {
|
|
15
|
+
return `reservation.${this.data.id}.checkout`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports = CheckOutReservationCommand;
|
|
@@ -10,6 +10,7 @@ const SetMediaCommand = require("./SetMediaCommand");
|
|
|
10
10
|
const DiscoverUsersCommand = require("./DiscoverUsersCommand");
|
|
11
11
|
const OCRDocumentCommand = require("./OCRDocumentCommand");
|
|
12
12
|
const CheckInReservationCommand = require("./CheckInReservationCommand");
|
|
13
|
+
const CheckOutReservationCommand = require("./CheckOutReservationCommand");
|
|
13
14
|
const SendEmailCommand = require("./SendEmailCommand");
|
|
14
15
|
const SendSMSCommand = require("./SendSMSCommand");
|
|
15
16
|
const DiscoverReservationsCommand = require("./DiscoverReservationsCommand");
|
|
@@ -38,6 +39,7 @@ module.exports = {
|
|
|
38
39
|
OCRDocumentCommand,
|
|
39
40
|
DiscoverUsersCommand,
|
|
40
41
|
CheckInReservationCommand,
|
|
42
|
+
CheckOutReservationCommand,
|
|
41
43
|
SendSMSCommand,
|
|
42
44
|
SendEmailCommand,
|
|
43
45
|
DiscoverReservationsCommand,
|
package/dist/cjs/Models/Scene.js
CHANGED
|
@@ -49,7 +49,7 @@ class Scene extends Kohost {
|
|
|
49
49
|
const currentSetpoint = setpoints[currentMode];
|
|
50
50
|
|
|
51
51
|
if (currentMode === "heat") {
|
|
52
|
-
let setpointValue = Math.
|
|
52
|
+
let setpointValue = Math.max(
|
|
53
53
|
currentSetpoint.min,
|
|
54
54
|
currentSetpoint.value - delta
|
|
55
55
|
);
|
|
@@ -68,7 +68,7 @@ class Scene extends Kohost {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
if (currentMode === "cool") {
|
|
71
|
-
let setpointValue = Math.
|
|
71
|
+
let setpointValue = Math.min(
|
|
72
72
|
currentSetpoint.max,
|
|
73
73
|
currentSetpoint.value + delta
|
|
74
74
|
);
|
|
@@ -88,12 +88,12 @@ class Scene extends Kohost {
|
|
|
88
88
|
|
|
89
89
|
if (currentMode === "auto") {
|
|
90
90
|
if (!currentSetpoint && setpoints.cool && setpoints.heat) {
|
|
91
|
-
let heatSetpoint = Math.
|
|
91
|
+
let heatSetpoint = Math.max(
|
|
92
92
|
setpoints.heat.min,
|
|
93
93
|
setpoints.heat.value - delta
|
|
94
94
|
);
|
|
95
95
|
|
|
96
|
-
let coolSetpoint = Math.
|
|
96
|
+
let coolSetpoint = Math.min(
|
|
97
97
|
setpoints.cool.max,
|
|
98
98
|
setpoints.cool.value + delta
|
|
99
99
|
);
|
package/dist/esm/Client.js
CHANGED
|
@@ -4679,15 +4679,15 @@ var require_DescribeReservation = __commonJS({
|
|
|
4679
4679
|
}
|
|
4680
4680
|
});
|
|
4681
4681
|
|
|
4682
|
-
// dist/useCases/
|
|
4683
|
-
var
|
|
4684
|
-
"dist/useCases/
|
|
4685
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
4682
|
+
// dist/useCases/CheckInReservation.js
|
|
4683
|
+
var require_CheckInReservation = __commonJS({
|
|
4684
|
+
"dist/useCases/CheckInReservation.js"(exports, module) {
|
|
4685
|
+
module.exports = /* @__PURE__ */ __name(function CheckInReservation(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4686
4686
|
if (!requestData)
|
|
4687
4687
|
requestData = {};
|
|
4688
4688
|
const pathParams = [":id"];
|
|
4689
4689
|
const { data, query, headers } = requestData;
|
|
4690
|
-
let url = "/reservations/:id/
|
|
4690
|
+
let url = "/reservations/:id/checkin";
|
|
4691
4691
|
if (pathParams && data) {
|
|
4692
4692
|
for (const param of pathParams) {
|
|
4693
4693
|
const paramName = param.replace(":", "");
|
|
@@ -4702,7 +4702,7 @@ var require_DescribeReservationCheckinStatus = __commonJS({
|
|
|
4702
4702
|
);
|
|
4703
4703
|
}
|
|
4704
4704
|
const config = {
|
|
4705
|
-
method: "
|
|
4705
|
+
method: "post",
|
|
4706
4706
|
url,
|
|
4707
4707
|
...httpConfigOptions
|
|
4708
4708
|
};
|
|
@@ -4713,19 +4713,19 @@ var require_DescribeReservationCheckinStatus = __commonJS({
|
|
|
4713
4713
|
if (headers)
|
|
4714
4714
|
config.headers = headers;
|
|
4715
4715
|
return this._http.request(config);
|
|
4716
|
-
}, "
|
|
4716
|
+
}, "CheckInReservation");
|
|
4717
4717
|
}
|
|
4718
4718
|
});
|
|
4719
4719
|
|
|
4720
|
-
// dist/useCases/
|
|
4721
|
-
var
|
|
4722
|
-
"dist/useCases/
|
|
4723
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
4720
|
+
// dist/useCases/CheckOutReservation.js
|
|
4721
|
+
var require_CheckOutReservation = __commonJS({
|
|
4722
|
+
"dist/useCases/CheckOutReservation.js"(exports, module) {
|
|
4723
|
+
module.exports = /* @__PURE__ */ __name(function CheckOutReservation(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4724
4724
|
if (!requestData)
|
|
4725
4725
|
requestData = {};
|
|
4726
4726
|
const pathParams = [":id"];
|
|
4727
4727
|
const { data, query, headers } = requestData;
|
|
4728
|
-
let url = "/reservations/:id/
|
|
4728
|
+
let url = "/reservations/:id/checkout";
|
|
4729
4729
|
if (pathParams && data) {
|
|
4730
4730
|
for (const param of pathParams) {
|
|
4731
4731
|
const paramName = param.replace(":", "");
|
|
@@ -4751,7 +4751,7 @@ var require_CheckInReservation = __commonJS({
|
|
|
4751
4751
|
if (headers)
|
|
4752
4752
|
config.headers = headers;
|
|
4753
4753
|
return this._http.request(config);
|
|
4754
|
-
}, "
|
|
4754
|
+
}, "CheckOutReservation");
|
|
4755
4755
|
}
|
|
4756
4756
|
});
|
|
4757
4757
|
|
|
@@ -4869,6 +4869,44 @@ var require_SendPreArrivalEmail = __commonJS({
|
|
|
4869
4869
|
}
|
|
4870
4870
|
});
|
|
4871
4871
|
|
|
4872
|
+
// dist/useCases/SendRoomControlSMS.js
|
|
4873
|
+
var require_SendRoomControlSMS = __commonJS({
|
|
4874
|
+
"dist/useCases/SendRoomControlSMS.js"(exports, module) {
|
|
4875
|
+
module.exports = /* @__PURE__ */ __name(function SendRoomControlSMS(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4876
|
+
if (!requestData)
|
|
4877
|
+
requestData = {};
|
|
4878
|
+
const pathParams = [":id"];
|
|
4879
|
+
const { data, query, headers } = requestData;
|
|
4880
|
+
let url = "/reservations/:id/sendRoomControlSMS";
|
|
4881
|
+
if (pathParams && data) {
|
|
4882
|
+
for (const param of pathParams) {
|
|
4883
|
+
const paramName = param.replace(":", "");
|
|
4884
|
+
url = url.replace(param, data[paramName]);
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
4888
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
4889
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
4890
|
+
return Promise.reject(
|
|
4891
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
4892
|
+
);
|
|
4893
|
+
}
|
|
4894
|
+
const config = {
|
|
4895
|
+
method: "post",
|
|
4896
|
+
url,
|
|
4897
|
+
...httpConfigOptions
|
|
4898
|
+
};
|
|
4899
|
+
if (data)
|
|
4900
|
+
config.data = data;
|
|
4901
|
+
if (query)
|
|
4902
|
+
config.params = query;
|
|
4903
|
+
if (headers)
|
|
4904
|
+
config.headers = headers;
|
|
4905
|
+
return this._http.request(config);
|
|
4906
|
+
}, "SendRoomControlSMS");
|
|
4907
|
+
}
|
|
4908
|
+
});
|
|
4909
|
+
|
|
4872
4910
|
// dist/useCases/BatchNotifyPreArrival.js
|
|
4873
4911
|
var require_BatchNotifyPreArrival = __commonJS({
|
|
4874
4912
|
"dist/useCases/BatchNotifyPreArrival.js"(exports, module) {
|
|
@@ -4945,6 +4983,82 @@ var require_BatchNotifyCheckIn = __commonJS({
|
|
|
4945
4983
|
}
|
|
4946
4984
|
});
|
|
4947
4985
|
|
|
4986
|
+
// dist/useCases/BatchNotifyCheckOut.js
|
|
4987
|
+
var require_BatchNotifyCheckOut = __commonJS({
|
|
4988
|
+
"dist/useCases/BatchNotifyCheckOut.js"(exports, module) {
|
|
4989
|
+
module.exports = /* @__PURE__ */ __name(function BatchNotifyCheckOut(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4990
|
+
if (!requestData)
|
|
4991
|
+
requestData = {};
|
|
4992
|
+
const pathParams = null;
|
|
4993
|
+
const { data, query, headers } = requestData;
|
|
4994
|
+
let url = "/reservations/batchNotifyCheckIn";
|
|
4995
|
+
if (pathParams && data) {
|
|
4996
|
+
for (const param of pathParams) {
|
|
4997
|
+
const paramName = param.replace(":", "");
|
|
4998
|
+
url = url.replace(param, data[paramName]);
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
5001
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
5002
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
5003
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
5004
|
+
return Promise.reject(
|
|
5005
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
5006
|
+
);
|
|
5007
|
+
}
|
|
5008
|
+
const config = {
|
|
5009
|
+
method: "post",
|
|
5010
|
+
url,
|
|
5011
|
+
...httpConfigOptions
|
|
5012
|
+
};
|
|
5013
|
+
if (data)
|
|
5014
|
+
config.data = data;
|
|
5015
|
+
if (query)
|
|
5016
|
+
config.params = query;
|
|
5017
|
+
if (headers)
|
|
5018
|
+
config.headers = headers;
|
|
5019
|
+
return this._http.request(config);
|
|
5020
|
+
}, "BatchNotifyCheckOut");
|
|
5021
|
+
}
|
|
5022
|
+
});
|
|
5023
|
+
|
|
5024
|
+
// dist/useCases/BatchNotifyMissedCheckOut.js
|
|
5025
|
+
var require_BatchNotifyMissedCheckOut = __commonJS({
|
|
5026
|
+
"dist/useCases/BatchNotifyMissedCheckOut.js"(exports, module) {
|
|
5027
|
+
module.exports = /* @__PURE__ */ __name(function BatchNotifyMissedCheckOut(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
5028
|
+
if (!requestData)
|
|
5029
|
+
requestData = {};
|
|
5030
|
+
const pathParams = null;
|
|
5031
|
+
const { data, query, headers } = requestData;
|
|
5032
|
+
let url = "/reservations/batchNotifyMissedCheckOut";
|
|
5033
|
+
if (pathParams && data) {
|
|
5034
|
+
for (const param of pathParams) {
|
|
5035
|
+
const paramName = param.replace(":", "");
|
|
5036
|
+
url = url.replace(param, data[paramName]);
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
5040
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
5041
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
5042
|
+
return Promise.reject(
|
|
5043
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
5044
|
+
);
|
|
5045
|
+
}
|
|
5046
|
+
const config = {
|
|
5047
|
+
method: "post",
|
|
5048
|
+
url,
|
|
5049
|
+
...httpConfigOptions
|
|
5050
|
+
};
|
|
5051
|
+
if (data)
|
|
5052
|
+
config.data = data;
|
|
5053
|
+
if (query)
|
|
5054
|
+
config.params = query;
|
|
5055
|
+
if (headers)
|
|
5056
|
+
config.headers = headers;
|
|
5057
|
+
return this._http.request(config);
|
|
5058
|
+
}, "BatchNotifyMissedCheckOut");
|
|
5059
|
+
}
|
|
5060
|
+
});
|
|
5061
|
+
|
|
4948
5062
|
// dist/useCases/AssignSpaceToReservation.js
|
|
4949
5063
|
var require_AssignSpaceToReservation = __commonJS({
|
|
4950
5064
|
"dist/useCases/AssignSpaceToReservation.js"(exports, module) {
|
|
@@ -8494,13 +8608,16 @@ var require_Client = __commonJS({
|
|
|
8494
8608
|
var ListMyReservations = require_ListMyReservations();
|
|
8495
8609
|
var UpdateReservation = require_UpdateReservation();
|
|
8496
8610
|
var DescribeReservation = require_DescribeReservation();
|
|
8497
|
-
var DescribeReservationCheckinStatus = require_DescribeReservationCheckinStatus();
|
|
8498
8611
|
var CheckInReservation = require_CheckInReservation();
|
|
8612
|
+
var CheckOutReservation = require_CheckOutReservation();
|
|
8499
8613
|
var SendCheckInSMS = require_SendCheckInSMS();
|
|
8500
8614
|
var SendPreArrivalSMS = require_SendPreArrivalSMS();
|
|
8501
8615
|
var SendPreArrivalEmail = require_SendPreArrivalEmail();
|
|
8616
|
+
var SendRoomControlSMS = require_SendRoomControlSMS();
|
|
8502
8617
|
var BatchNotifyPreArrival = require_BatchNotifyPreArrival();
|
|
8503
8618
|
var BatchNotifyCheckIn = require_BatchNotifyCheckIn();
|
|
8619
|
+
var BatchNotifyCheckOut = require_BatchNotifyCheckOut();
|
|
8620
|
+
var BatchNotifyMissedCheckOut = require_BatchNotifyMissedCheckOut();
|
|
8504
8621
|
var AssignSpaceToReservation = require_AssignSpaceToReservation();
|
|
8505
8622
|
var DescribeReservationEarlyCheckInProducts = require_DescribeReservationEarlyCheckInProducts();
|
|
8506
8623
|
var PurchaseReservationEarlyCheckInProducts = require_PurchaseReservationEarlyCheckInProducts();
|
|
@@ -8761,13 +8878,16 @@ var require_Client = __commonJS({
|
|
|
8761
8878
|
KohostApiClient.prototype.ListMyReservations = ListMyReservations;
|
|
8762
8879
|
KohostApiClient.prototype.UpdateReservation = UpdateReservation;
|
|
8763
8880
|
KohostApiClient.prototype.DescribeReservation = DescribeReservation;
|
|
8764
|
-
KohostApiClient.prototype.DescribeReservationCheckinStatus = DescribeReservationCheckinStatus;
|
|
8765
8881
|
KohostApiClient.prototype.CheckInReservation = CheckInReservation;
|
|
8882
|
+
KohostApiClient.prototype.CheckOutReservation = CheckOutReservation;
|
|
8766
8883
|
KohostApiClient.prototype.SendCheckInSMS = SendCheckInSMS;
|
|
8767
8884
|
KohostApiClient.prototype.SendPreArrivalSMS = SendPreArrivalSMS;
|
|
8768
8885
|
KohostApiClient.prototype.SendPreArrivalEmail = SendPreArrivalEmail;
|
|
8886
|
+
KohostApiClient.prototype.SendRoomControlSMS = SendRoomControlSMS;
|
|
8769
8887
|
KohostApiClient.prototype.BatchNotifyPreArrival = BatchNotifyPreArrival;
|
|
8770
8888
|
KohostApiClient.prototype.BatchNotifyCheckIn = BatchNotifyCheckIn;
|
|
8889
|
+
KohostApiClient.prototype.BatchNotifyCheckOut = BatchNotifyCheckOut;
|
|
8890
|
+
KohostApiClient.prototype.BatchNotifyMissedCheckOut = BatchNotifyMissedCheckOut;
|
|
8771
8891
|
KohostApiClient.prototype.AssignSpaceToReservation = AssignSpaceToReservation;
|
|
8772
8892
|
KohostApiClient.prototype.DescribeReservationEarlyCheckInProducts = DescribeReservationEarlyCheckInProducts;
|
|
8773
8893
|
KohostApiClient.prototype.PurchaseReservationEarlyCheckInProducts = PurchaseReservationEarlyCheckInProducts;
|