@kohost/api-client 3.0.0-beta.10 → 3.0.0-beta.12

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/README.md ADDED
@@ -0,0 +1,71 @@
1
+ [![npm version](https://badge.fury.io/js/@kohost%2Fapi-client.svg)](https://badge.fury.io/js/@kohost%2Fapi-client)
2
+
3
+ # Kohost API Client
4
+
5
+ Kohost API Client is a Node.js and Browser library for interacting with the Kohost API. It provides a simple and convenient way to access the API, as well as standard models, schemas, commands, and events.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @kohost/api-client
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ The library consists of several modules, including:
16
+
17
+ - Models: Defines the models used in the API.
18
+ - Errors: Defines the error objects returned by the API.
19
+ - Commands: Defines the available commands for managing hosting resources.
20
+ - Events: Defines the events emitted by the API.
21
+ - defs: Defines the API endpoint definitions.
22
+ - utils: Contains utility functions.
23
+ - Client: The main http client for interacting with the API
24
+
25
+ ```javascript
26
+ import { Client } from "@kohost/api-client";
27
+
28
+ const kohost = new Client({
29
+ url: "https://localhost:8080/v3",
30
+ propertyId: "development",
31
+ });
32
+ ```
33
+
34
+ ## Authentication
35
+
36
+ Currently, the only supported mode of Authentication with the API is via an HTTP Only cookie. You can login a user via the following command to get a cookie.
37
+
38
+ ### Requesting a Login Token
39
+
40
+ ```javascript
41
+ const email = "help@kohost.io";
42
+
43
+ await kohost.RequestLoginLink({
44
+ data: { email },
45
+ });
46
+
47
+ /** OR via Phone **/
48
+
49
+ const phone = "+17025555555";
50
+
51
+ await kohost.RequestLoginLink({
52
+ data: { phone },
53
+ });
54
+ ```
55
+
56
+ Click the link in the email or SMS to authenticate.
57
+
58
+ ### Using a Token
59
+
60
+ Simply use the `LoginUser` use case to provide a user ID via the `sub` parameter, along with the `token` parameter.
61
+
62
+ ```javascript
63
+ const sub = "user-id-from-api";
64
+ const token = "token-provided-by-api";
65
+
66
+ await kohost.LoginUser({
67
+ data: { sub, token },
68
+ });
69
+ ```
70
+
71
+ A successful response will set an HTTP only cookie in the browser.
@@ -1267,7 +1267,7 @@ var require_UpdateSpace = __commonJS({
1267
1267
  requestData = {};
1268
1268
  const pathParams = [":id"];
1269
1269
  const { data, query, headers } = requestData;
1270
- let url = "/spaces/:id";
1270
+ let url = "/spaceTypes/:id";
1271
1271
  if (pathParams && data) {
1272
1272
  for (const param of pathParams) {
1273
1273
  const paramName = param.replace(":", "");
@@ -1335,6 +1335,158 @@ var require_CreateRoomInSpace = __commonJS({
1335
1335
  }
1336
1336
  });
1337
1337
 
1338
+ // dist/useCases/CreateSpaceType.js
1339
+ var require_CreateSpaceType = __commonJS({
1340
+ "dist/useCases/CreateSpaceType.js"(exports2, module2) {
1341
+ module2.exports = /* @__PURE__ */ __name(function CreateSpaceType2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
1342
+ if (!requestData)
1343
+ requestData = {};
1344
+ const pathParams = null;
1345
+ const { data, query, headers } = requestData;
1346
+ let url = "/spaceTypes";
1347
+ if (pathParams && data) {
1348
+ for (const param of pathParams) {
1349
+ const paramName = param.replace(":", "");
1350
+ url = url.replace(param, data[paramName]);
1351
+ }
1352
+ }
1353
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
1354
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
1355
+ const missing = missingParams.map((param) => param.replace(":", ""));
1356
+ return Promise.reject(
1357
+ new Error("Missing parameters: " + missing.join(", "))
1358
+ );
1359
+ }
1360
+ const config = {
1361
+ method: "post",
1362
+ url,
1363
+ ...httpConfigOptions
1364
+ };
1365
+ if (data)
1366
+ config.data = data;
1367
+ if (query)
1368
+ config.params = query;
1369
+ if (headers)
1370
+ config.headers = headers;
1371
+ return this._http.request(config);
1372
+ }, "CreateSpaceType");
1373
+ }
1374
+ });
1375
+
1376
+ // dist/useCases/DeleteSpaceType.js
1377
+ var require_DeleteSpaceType = __commonJS({
1378
+ "dist/useCases/DeleteSpaceType.js"(exports2, module2) {
1379
+ module2.exports = /* @__PURE__ */ __name(function DeleteSpaceType2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
1380
+ if (!requestData)
1381
+ requestData = {};
1382
+ const pathParams = [":id"];
1383
+ const { data, query, headers } = requestData;
1384
+ let url = "/spaceTypes/:id";
1385
+ if (pathParams && data) {
1386
+ for (const param of pathParams) {
1387
+ const paramName = param.replace(":", "");
1388
+ url = url.replace(param, data[paramName]);
1389
+ }
1390
+ }
1391
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
1392
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
1393
+ const missing = missingParams.map((param) => param.replace(":", ""));
1394
+ return Promise.reject(
1395
+ new Error("Missing parameters: " + missing.join(", "))
1396
+ );
1397
+ }
1398
+ const config = {
1399
+ method: "delete",
1400
+ url,
1401
+ ...httpConfigOptions
1402
+ };
1403
+ if (data)
1404
+ config.data = data;
1405
+ if (query)
1406
+ config.params = query;
1407
+ if (headers)
1408
+ config.headers = headers;
1409
+ return this._http.request(config);
1410
+ }, "DeleteSpaceType");
1411
+ }
1412
+ });
1413
+
1414
+ // dist/useCases/DescribeSpaceType.js
1415
+ var require_DescribeSpaceType = __commonJS({
1416
+ "dist/useCases/DescribeSpaceType.js"(exports2, module2) {
1417
+ module2.exports = /* @__PURE__ */ __name(function DescribeSpaceType2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
1418
+ if (!requestData)
1419
+ requestData = {};
1420
+ const pathParams = [":id"];
1421
+ const { data, query, headers } = requestData;
1422
+ let url = "/spaceTypes/:id";
1423
+ if (pathParams && data) {
1424
+ for (const param of pathParams) {
1425
+ const paramName = param.replace(":", "");
1426
+ url = url.replace(param, data[paramName]);
1427
+ }
1428
+ }
1429
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
1430
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
1431
+ const missing = missingParams.map((param) => param.replace(":", ""));
1432
+ return Promise.reject(
1433
+ new Error("Missing parameters: " + missing.join(", "))
1434
+ );
1435
+ }
1436
+ const config = {
1437
+ method: "get",
1438
+ url,
1439
+ ...httpConfigOptions
1440
+ };
1441
+ if (data)
1442
+ config.data = data;
1443
+ if (query)
1444
+ config.params = query;
1445
+ if (headers)
1446
+ config.headers = headers;
1447
+ return this._http.request(config);
1448
+ }, "DescribeSpaceType");
1449
+ }
1450
+ });
1451
+
1452
+ // dist/useCases/ListSpaceTypes.js
1453
+ var require_ListSpaceTypes = __commonJS({
1454
+ "dist/useCases/ListSpaceTypes.js"(exports2, module2) {
1455
+ module2.exports = /* @__PURE__ */ __name(function ListSpaceTypes2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
1456
+ if (!requestData)
1457
+ requestData = {};
1458
+ const pathParams = null;
1459
+ const { data, query, headers } = requestData;
1460
+ let url = "/spaceTypes";
1461
+ if (pathParams && data) {
1462
+ for (const param of pathParams) {
1463
+ const paramName = param.replace(":", "");
1464
+ url = url.replace(param, data[paramName]);
1465
+ }
1466
+ }
1467
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
1468
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
1469
+ const missing = missingParams.map((param) => param.replace(":", ""));
1470
+ return Promise.reject(
1471
+ new Error("Missing parameters: " + missing.join(", "))
1472
+ );
1473
+ }
1474
+ const config = {
1475
+ method: "get",
1476
+ url,
1477
+ ...httpConfigOptions
1478
+ };
1479
+ if (data)
1480
+ config.data = data;
1481
+ if (query)
1482
+ config.params = query;
1483
+ if (headers)
1484
+ config.headers = headers;
1485
+ return this._http.request(config);
1486
+ }, "ListSpaceTypes");
1487
+ }
1488
+ });
1489
+
1338
1490
  // dist/useCases/ListRooms.js
1339
1491
  var require_ListRooms = __commonJS({
1340
1492
  "dist/useCases/ListRooms.js"(exports2, module2) {
@@ -2399,6 +2551,44 @@ var require_DescribeDimmer = __commonJS({
2399
2551
  }
2400
2552
  });
2401
2553
 
2554
+ // dist/useCases/SetDimmer.js
2555
+ var require_SetDimmer = __commonJS({
2556
+ "dist/useCases/SetDimmer.js"(exports2, module2) {
2557
+ module2.exports = /* @__PURE__ */ __name(function SetDimmer2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
2558
+ if (!requestData)
2559
+ requestData = {};
2560
+ const pathParams = [":roomId", ":id"];
2561
+ const { data, query, headers } = requestData;
2562
+ let url = "/rooms/:roomId/dimmers/:id";
2563
+ if (pathParams && data) {
2564
+ for (const param of pathParams) {
2565
+ const paramName = param.replace(":", "");
2566
+ url = url.replace(param, data[paramName]);
2567
+ }
2568
+ }
2569
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
2570
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
2571
+ const missing = missingParams.map((param) => param.replace(":", ""));
2572
+ return Promise.reject(
2573
+ new Error("Missing parameters: " + missing.join(", "))
2574
+ );
2575
+ }
2576
+ const config = {
2577
+ method: "post",
2578
+ url,
2579
+ ...httpConfigOptions
2580
+ };
2581
+ if (data)
2582
+ config.data = data;
2583
+ if (query)
2584
+ config.params = query;
2585
+ if (headers)
2586
+ config.headers = headers;
2587
+ return this._http.request(config);
2588
+ }, "SetDimmer");
2589
+ }
2590
+ });
2591
+
2402
2592
  // dist/useCases/CreateLock.js
2403
2593
  var require_CreateLock = __commonJS({
2404
2594
  "dist/useCases/CreateLock.js"(exports2, module2) {
@@ -4869,6 +5059,82 @@ var require_BatchNotifyPreArrival = __commonJS({
4869
5059
  }
4870
5060
  });
4871
5061
 
5062
+ // dist/useCases/BatchNotifyCheckIn.js
5063
+ var require_BatchNotifyCheckIn = __commonJS({
5064
+ "dist/useCases/BatchNotifyCheckIn.js"(exports2, module2) {
5065
+ module2.exports = /* @__PURE__ */ __name(function BatchNotifyCheckIn2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5066
+ if (!requestData)
5067
+ requestData = {};
5068
+ const pathParams = null;
5069
+ const { data, query, headers } = requestData;
5070
+ let url = "/reservations/batchNotifyCheckIn";
5071
+ if (pathParams && data) {
5072
+ for (const param of pathParams) {
5073
+ const paramName = param.replace(":", "");
5074
+ url = url.replace(param, data[paramName]);
5075
+ }
5076
+ }
5077
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5078
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5079
+ const missing = missingParams.map((param) => param.replace(":", ""));
5080
+ return Promise.reject(
5081
+ new Error("Missing parameters: " + missing.join(", "))
5082
+ );
5083
+ }
5084
+ const config = {
5085
+ method: "post",
5086
+ url,
5087
+ ...httpConfigOptions
5088
+ };
5089
+ if (data)
5090
+ config.data = data;
5091
+ if (query)
5092
+ config.params = query;
5093
+ if (headers)
5094
+ config.headers = headers;
5095
+ return this._http.request(config);
5096
+ }, "BatchNotifyCheckIn");
5097
+ }
5098
+ });
5099
+
5100
+ // dist/useCases/AssignSpaceToReservation.js
5101
+ var require_AssignSpaceToReservation = __commonJS({
5102
+ "dist/useCases/AssignSpaceToReservation.js"(exports2, module2) {
5103
+ module2.exports = /* @__PURE__ */ __name(function AssignSpaceToReservation2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5104
+ if (!requestData)
5105
+ requestData = {};
5106
+ const pathParams = [":id"];
5107
+ const { data, query, headers } = requestData;
5108
+ let url = "/reservations/:id/space";
5109
+ if (pathParams && data) {
5110
+ for (const param of pathParams) {
5111
+ const paramName = param.replace(":", "");
5112
+ url = url.replace(param, data[paramName]);
5113
+ }
5114
+ }
5115
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5116
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5117
+ const missing = missingParams.map((param) => param.replace(":", ""));
5118
+ return Promise.reject(
5119
+ new Error("Missing parameters: " + missing.join(", "))
5120
+ );
5121
+ }
5122
+ const config = {
5123
+ method: "post",
5124
+ url,
5125
+ ...httpConfigOptions
5126
+ };
5127
+ if (data)
5128
+ config.data = data;
5129
+ if (query)
5130
+ config.params = query;
5131
+ if (headers)
5132
+ config.headers = headers;
5133
+ return this._http.request(config);
5134
+ }, "AssignSpaceToReservation");
5135
+ }
5136
+ });
5137
+
4872
5138
  // dist/useCases/OCRDocument.js
4873
5139
  var require_OCRDocument = __commonJS({
4874
5140
  "dist/useCases/OCRDocument.js"(exports2, module2) {
@@ -5019,6 +5285,10 @@ var DescribeSpace = require_DescribeSpace();
5019
5285
  var DeleteSpace = require_DeleteSpace();
5020
5286
  var UpdateSpace = require_UpdateSpace();
5021
5287
  var CreateRoomInSpace = require_CreateRoomInSpace();
5288
+ var CreateSpaceType = require_CreateSpaceType();
5289
+ var DeleteSpaceType = require_DeleteSpaceType();
5290
+ var DescribeSpaceType = require_DescribeSpaceType();
5291
+ var ListSpaceTypes = require_ListSpaceTypes();
5022
5292
  var ListRooms = require_ListRooms();
5023
5293
  var DescribeRoom = require_DescribeRoom();
5024
5294
  var CreateRoom = require_CreateRoom();
@@ -5047,6 +5317,7 @@ var ListDimmers = require_ListDimmers();
5047
5317
  var UpdateDimmer = require_UpdateDimmer();
5048
5318
  var DeleteDimmer = require_DeleteDimmer();
5049
5319
  var DescribeDimmer = require_DescribeDimmer();
5320
+ var SetDimmer = require_SetDimmer();
5050
5321
  var CreateLock = require_CreateLock();
5051
5322
  var ListLocks = require_ListLocks();
5052
5323
  var UpdateLock = require_UpdateLock();
@@ -5112,6 +5383,8 @@ var CheckInReservation = require_CheckInReservation();
5112
5383
  var SendPreArrivalSMS = require_SendPreArrivalSMS();
5113
5384
  var SendPreArrivalEmail = require_SendPreArrivalEmail();
5114
5385
  var BatchNotifyPreArrival = require_BatchNotifyPreArrival();
5386
+ var BatchNotifyCheckIn = require_BatchNotifyCheckIn();
5387
+ var AssignSpaceToReservation = require_AssignSpaceToReservation();
5115
5388
  var OCRDocument = require_OCRDocument();
5116
5389
  var DescribeMyProperty = require_DescribeMyProperty();
5117
5390
  var EmailUserAccountSetup = require_EmailUserAccountSetup();
@@ -5196,6 +5469,10 @@ var KohostApiClient = class extends EventEmitter {
5196
5469
  try {
5197
5470
  const expectedError = status >= 400 && status < 500;
5198
5471
  const newTokensNeeded = expectedError && errorType === "TokenExpiredError";
5472
+ if (expectedError && errorMessage === "Phone Verification is required") {
5473
+ this._onPhoneVerificationRequired();
5474
+ return Promise.reject(error);
5475
+ }
5199
5476
  if (expectedError && errorMessage === "Login Required") {
5200
5477
  this._onLoginRequired();
5201
5478
  return Promise.reject(error);
@@ -5236,6 +5513,9 @@ var KohostApiClient = class extends EventEmitter {
5236
5513
  _onLoginRequired() {
5237
5514
  this.emit("LoginRequired");
5238
5515
  }
5516
+ _onPhoneVerificationRequired() {
5517
+ this.emit("PhoneVerificationRequired");
5518
+ }
5239
5519
  };
5240
5520
  __name(KohostApiClient, "KohostApiClient");
5241
5521
  KohostApiClient.prototype.AdminCreateCustomer = AdminCreateCustomer;
@@ -5273,6 +5553,10 @@ KohostApiClient.prototype.DescribeSpace = DescribeSpace;
5273
5553
  KohostApiClient.prototype.DeleteSpace = DeleteSpace;
5274
5554
  KohostApiClient.prototype.UpdateSpace = UpdateSpace;
5275
5555
  KohostApiClient.prototype.CreateRoomInSpace = CreateRoomInSpace;
5556
+ KohostApiClient.prototype.CreateSpaceType = CreateSpaceType;
5557
+ KohostApiClient.prototype.DeleteSpaceType = DeleteSpaceType;
5558
+ KohostApiClient.prototype.DescribeSpaceType = DescribeSpaceType;
5559
+ KohostApiClient.prototype.ListSpaceTypes = ListSpaceTypes;
5276
5560
  KohostApiClient.prototype.ListRooms = ListRooms;
5277
5561
  KohostApiClient.prototype.DescribeRoom = DescribeRoom;
5278
5562
  KohostApiClient.prototype.CreateRoom = CreateRoom;
@@ -5301,6 +5585,7 @@ KohostApiClient.prototype.ListDimmers = ListDimmers;
5301
5585
  KohostApiClient.prototype.UpdateDimmer = UpdateDimmer;
5302
5586
  KohostApiClient.prototype.DeleteDimmer = DeleteDimmer;
5303
5587
  KohostApiClient.prototype.DescribeDimmer = DescribeDimmer;
5588
+ KohostApiClient.prototype.SetDimmer = SetDimmer;
5304
5589
  KohostApiClient.prototype.CreateLock = CreateLock;
5305
5590
  KohostApiClient.prototype.ListLocks = ListLocks;
5306
5591
  KohostApiClient.prototype.UpdateLock = UpdateLock;
@@ -5366,6 +5651,8 @@ KohostApiClient.prototype.CheckInReservation = CheckInReservation;
5366
5651
  KohostApiClient.prototype.SendPreArrivalSMS = SendPreArrivalSMS;
5367
5652
  KohostApiClient.prototype.SendPreArrivalEmail = SendPreArrivalEmail;
5368
5653
  KohostApiClient.prototype.BatchNotifyPreArrival = BatchNotifyPreArrival;
5654
+ KohostApiClient.prototype.BatchNotifyCheckIn = BatchNotifyCheckIn;
5655
+ KohostApiClient.prototype.AssignSpaceToReservation = AssignSpaceToReservation;
5369
5656
  KohostApiClient.prototype.OCRDocument = OCRDocument;
5370
5657
  KohostApiClient.prototype.DescribeMyProperty = DescribeMyProperty;
5371
5658
  KohostApiClient.prototype.EmailUserAccountSetup = EmailUserAccountSetup;
@@ -239,7 +239,11 @@ var require_DiscoverUsersCommand = __commonJS({
239
239
  return "DiscoverUsers";
240
240
  }
241
241
  get routingKey() {
242
- return `users.${this.data.id}.get`;
242
+ if (typeof this.data.id === "string")
243
+ return `users.${this.data.id}.get`;
244
+ if (Array.isArray(this.data.id))
245
+ return "users.batch.get";
246
+ return "users.get";
243
247
  }
244
248
  get replyTo() {
245
249
  return "system.response.users";
@@ -563,14 +567,25 @@ var require_DiscoverRoomsCommand = __commonJS({
563
567
  "src/Commands/DiscoverRoomsCommand.js"(exports2, module2) {
564
568
  var Command = require_Command();
565
569
  var DiscoverRoomsCommand2 = class extends Command {
566
- constructor({ id }) {
567
- super({ id });
570
+ constructor({
571
+ id,
572
+ types,
573
+ startDate,
574
+ endDate,
575
+ serviceStatus,
576
+ housekeepingStatus
577
+ }) {
578
+ super({ id, types, startDate, endDate, serviceStatus, housekeepingStatus });
568
579
  }
569
580
  get name() {
570
581
  return "DiscoverRooms";
571
582
  }
572
583
  get routingKey() {
573
- return `rooms.${this.data.id}.get`;
584
+ if (typeof this.data.id === "string")
585
+ return `rooms.${this.data.id}.get`;
586
+ if (Array.isArray(this.data.id))
587
+ return "rooms.batch.get";
588
+ return "rooms.get";
574
589
  }
575
590
  get replyTo() {
576
591
  return "system.response.users";
@@ -581,6 +596,33 @@ var require_DiscoverRoomsCommand = __commonJS({
581
596
  }
582
597
  });
583
598
 
599
+ // src/Commands/DiscoverRoomTypesCommand.js
600
+ var require_DiscoverRoomTypesCommand = __commonJS({
601
+ "src/Commands/DiscoverRoomTypesCommand.js"(exports2, module2) {
602
+ var Command = require_Command();
603
+ var DiscoverRoomTypesCommand2 = class extends Command {
604
+ constructor({ id }) {
605
+ super({ id });
606
+ }
607
+ get name() {
608
+ return "DiscoverRoomTypes";
609
+ }
610
+ get routingKey() {
611
+ if (typeof this.data.id === "string")
612
+ return `rooms.${this.data.id}.get`;
613
+ if (Array.isArray(this.data.id))
614
+ return "rooms.batch.get";
615
+ return "rooms.get";
616
+ }
617
+ get replyTo() {
618
+ return "system.response.users";
619
+ }
620
+ };
621
+ __name(DiscoverRoomTypesCommand2, "DiscoverRoomTypesCommand");
622
+ module2.exports = DiscoverRoomTypesCommand2;
623
+ }
624
+ });
625
+
584
626
  // src/Commands/CreateShortLinkCommand.js
585
627
  var require_CreateShortLinkCommand = __commonJS({
586
628
  "src/Commands/CreateShortLinkCommand.js"(exports2, module2) {
@@ -606,6 +648,32 @@ var require_CreateShortLinkCommand = __commonJS({
606
648
  }
607
649
  });
608
650
 
651
+ // src/Commands/UpdateReservationCommand.js
652
+ var require_UpdateReservationCommand = __commonJS({
653
+ "src/Commands/UpdateReservationCommand.js"(exports2, module2) {
654
+ var Command = require_Command();
655
+ var RequestError = require_RequestError();
656
+ var UpdateReservationCommand2 = class extends Command {
657
+ constructor({ id, space }) {
658
+ if (!id)
659
+ throw new RequestError("document type is required");
660
+ super({ id, space });
661
+ }
662
+ get name() {
663
+ return "UpdateReservation";
664
+ }
665
+ get routingKey() {
666
+ return `reservation.${this.data.id}.update`;
667
+ }
668
+ get replyTo() {
669
+ return "system.response.reservations";
670
+ }
671
+ };
672
+ __name(UpdateReservationCommand2, "UpdateReservationCommand");
673
+ module2.exports = UpdateReservationCommand2;
674
+ }
675
+ });
676
+
609
677
  // src/Commands/index.js
610
678
  var SetAlarmCommand = require_SetAlarmCommand();
611
679
  var SetDimmerCommand = require_SetDimmerCommand();
@@ -622,7 +690,9 @@ var SendEmailCommand = require_SendEmailCommand();
622
690
  var SendSMSCommand = require_SendSMSCommand();
623
691
  var DiscoverReservationsCommand = require_DiscoverReservationsCommand();
624
692
  var DiscoverRoomsCommand = require_DiscoverRoomsCommand();
693
+ var DiscoverRoomTypesCommand = require_DiscoverRoomTypesCommand();
625
694
  var CreateShortLinkCommand = require_CreateShortLinkCommand();
695
+ var UpdateReservationCommand = require_UpdateReservationCommand();
626
696
  module.exports = {
627
697
  SetAlarmCommand,
628
698
  SetDimmerCommand,
@@ -639,5 +709,7 @@ module.exports = {
639
709
  SendEmailCommand,
640
710
  DiscoverReservationsCommand,
641
711
  DiscoverRoomsCommand,
642
- CreateShortLinkCommand
712
+ DiscoverRoomTypesCommand,
713
+ CreateShortLinkCommand,
714
+ UpdateReservationCommand
643
715
  };