@kohost/api-client 3.9.12 → 4.0.4
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/appError-v8-O4juF.d.cts +7 -0
- package/dist/appError-v8-O4juF.d.ts +7 -0
- package/dist/chunk-36WNTEIW.js +117 -0
- package/dist/chunk-36WNTEIW.js.map +1 -0
- package/dist/chunk-EBJTC6MA.js +26 -0
- package/dist/chunk-EBJTC6MA.js.map +1 -0
- package/dist/chunk-HKJ2B2AA.js +15 -0
- package/dist/chunk-HKJ2B2AA.js.map +1 -0
- package/dist/chunk-KBBL6OJS.js +36359 -0
- package/dist/chunk-KBBL6OJS.js.map +1 -0
- package/dist/{cjs/defs/amqpExchanges.js → chunk-KNSZIQXT.js} +32 -14
- package/dist/chunk-KNSZIQXT.js.map +1 -0
- package/dist/chunk-MYWOGDCQ.js +502 -0
- package/dist/chunk-MYWOGDCQ.js.map +1 -0
- package/dist/chunk-W2G36LNI.js +67 -0
- package/dist/chunk-W2G36LNI.js.map +1 -0
- package/dist/client.cjs +288 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +81 -0
- package/dist/client.d.ts +81 -0
- package/dist/client.js +208 -0
- package/dist/client.js.map +1 -0
- package/dist/commands.cjs +443 -0
- package/dist/commands.cjs.map +1 -0
- package/dist/commands.d.cts +268 -0
- package/dist/commands.d.ts +268 -0
- package/dist/commands.js +380 -0
- package/dist/commands.js.map +1 -0
- package/dist/defs.cjs +83 -0
- package/dist/defs.cjs.map +1 -0
- package/dist/defs.d.cts +62 -0
- package/dist/defs.d.ts +62 -0
- package/dist/defs.js +10 -0
- package/dist/defs.js.map +1 -0
- package/dist/errors.cjs +157 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.cts +47 -0
- package/dist/errors.d.ts +47 -0
- package/dist/errors.js +32 -0
- package/dist/errors.js.map +1 -0
- package/dist/events.cjs +526 -0
- package/dist/events.cjs.map +1 -0
- package/dist/events.d.cts +230 -0
- package/dist/events.d.ts +230 -0
- package/dist/events.js +67 -0
- package/dist/events.js.map +1 -0
- package/dist/index.cjs +51708 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +30955 -0
- package/dist/index.d.ts +30955 -0
- package/dist/index.js +51670 -0
- package/dist/index.js.map +1 -0
- package/dist/models.cjs +36397 -0
- package/dist/models.cjs.map +1 -0
- package/dist/models.d.cts +88 -0
- package/dist/models.d.ts +88 -0
- package/dist/models.js +89 -0
- package/dist/models.js.map +1 -0
- package/dist/socketIoClient.cjs +117 -0
- package/dist/socketIoClient.cjs.map +1 -0
- package/dist/socketIoClient.d.cts +43 -0
- package/dist/socketIoClient.d.ts +43 -0
- package/dist/{cjs/SocketIoClient/index.js → socketIoClient.js} +33 -31
- package/dist/socketIoClient.js.map +1 -0
- package/dist/useCases.cjs +13656 -0
- package/dist/useCases.cjs.map +1 -0
- package/dist/useCases.d.cts +21004 -0
- package/dist/useCases.d.ts +21004 -0
- package/dist/useCases.js +13576 -0
- package/dist/useCases.js.map +1 -0
- package/dist/utils.cjs +37088 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +9 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +190 -0
- package/dist/utils.js.map +1 -0
- package/dist/windowCovering-C3dsx-cW.d.cts +8328 -0
- package/dist/windowCovering-C3dsx-cW.d.ts +8328 -0
- package/package.json +67 -17
- package/dist/cjs/AMQPClient/index.js +0 -239
- package/dist/cjs/Client/index.js +0 -7831
- package/dist/cjs/Commands/CheckInReservation.js +0 -15
- package/dist/cjs/Commands/CheckOutReservation.js +0 -16
- package/dist/cjs/Commands/Command.js +0 -32
- package/dist/cjs/Commands/CreateImageUploadEndpoint.js +0 -13
- package/dist/cjs/Commands/CreateShortLink.js +0 -16
- package/dist/cjs/Commands/GetCategories.js +0 -13
- package/dist/cjs/Commands/GetMobileKey.js +0 -20
- package/dist/cjs/Commands/GetProducts.js +0 -13
- package/dist/cjs/Commands/GetReservationSpaceCategoryAvailabilities.js +0 -16
- package/dist/cjs/Commands/GetReservations.js +0 -16
- package/dist/cjs/Commands/GetRooms.js +0 -31
- package/dist/cjs/Commands/GetUsers.js +0 -13
- package/dist/cjs/Commands/OCRDocument.js +0 -15
- package/dist/cjs/Commands/SellProducts.js +0 -13
- package/dist/cjs/Commands/SendEmail.js +0 -20
- package/dist/cjs/Commands/SendSMS.js +0 -18
- package/dist/cjs/Commands/SetAlarm.js +0 -13
- package/dist/cjs/Commands/SetCourtesy.js +0 -13
- package/dist/cjs/Commands/SetDimmer.js +0 -13
- package/dist/cjs/Commands/SetLock.js +0 -13
- package/dist/cjs/Commands/SetMedia.js +0 -13
- package/dist/cjs/Commands/SetScene.js +0 -13
- package/dist/cjs/Commands/SetSwitch.js +0 -13
- package/dist/cjs/Commands/SetThermostat.js +0 -13
- package/dist/cjs/Commands/SetWindowCovering.js +0 -13
- package/dist/cjs/Commands/UpdateReservation.js +0 -15
- package/dist/cjs/Commands/UpdateUser.js +0 -37
- package/dist/cjs/Commands/UploadImage.js +0 -13
- package/dist/cjs/Commands/index.js +0 -59
- package/dist/cjs/Errors/AppError.js +0 -9
- package/dist/cjs/Errors/AuthenticationError.js +0 -10
- package/dist/cjs/Errors/AuthorizationError.js +0 -10
- package/dist/cjs/Errors/ConflictError.js +0 -10
- package/dist/cjs/Errors/DeviceCommError.js +0 -10
- package/dist/cjs/Errors/LoginError.js +0 -10
- package/dist/cjs/Errors/NotFoundError.js +0 -10
- package/dist/cjs/Errors/RequestError.js +0 -10
- package/dist/cjs/Errors/SystemCommError.js +0 -10
- package/dist/cjs/Errors/TokenExpiredError.js +0 -10
- package/dist/cjs/Errors/UnprocessableRequestError.js +0 -10
- package/dist/cjs/Errors/ValidationError.js +0 -10
- package/dist/cjs/Errors/index.js +0 -16
- package/dist/cjs/Events/ApplicationInUse.js +0 -22
- package/dist/cjs/Events/ApplicationOutOfUse.js +0 -22
- package/dist/cjs/Events/EmailEvent.js +0 -17
- package/dist/cjs/Events/Event.js +0 -44
- package/dist/cjs/Events/ReservationCheckedIn.js +0 -22
- package/dist/cjs/Events/ReservationCheckedOut.js +0 -22
- package/dist/cjs/Events/ReservationSpaceChanged.js +0 -22
- package/dist/cjs/Events/SMSEvent.js +0 -17
- package/dist/cjs/Events/SceneSet.js +0 -17
- package/dist/cjs/Events/ShortLinkCreated.js +0 -17
- package/dist/cjs/Events/SystemAlarmUpdated.js +0 -17
- package/dist/cjs/Events/SystemCameraUpdated.js +0 -17
- package/dist/cjs/Events/SystemCategoryUpdated.js +0 -17
- package/dist/cjs/Events/SystemCourtesyUpdated.js +0 -17
- package/dist/cjs/Events/SystemCredentialUpdated.js +0 -17
- package/dist/cjs/Events/SystemDimmerUpdated.js +0 -17
- package/dist/cjs/Events/SystemEntityDeleted.js +0 -17
- package/dist/cjs/Events/SystemGatewayUpdated.js +0 -17
- package/dist/cjs/Events/SystemLockUpdated.js +0 -17
- package/dist/cjs/Events/SystemMediaSourceUpdated.js +0 -17
- package/dist/cjs/Events/SystemMotionSensorUpdated.js +0 -17
- package/dist/cjs/Events/SystemOrganizationUpdated.js +0 -17
- package/dist/cjs/Events/SystemProductUpdated.js +0 -17
- package/dist/cjs/Events/SystemPropertyUpdated.js +0 -17
- package/dist/cjs/Events/SystemReservationUpdated.js +0 -17
- package/dist/cjs/Events/SystemSpaceUpdated.js +0 -17
- package/dist/cjs/Events/SystemSwitchUpdated.js +0 -17
- package/dist/cjs/Events/SystemThermostatUpdated.js +0 -17
- package/dist/cjs/Events/SystemUserUpdated.js +0 -17
- package/dist/cjs/Events/SystemWindowCoveringUpdated.js +0 -17
- package/dist/cjs/Events/index.js +0 -71
- package/dist/cjs/Models/Alarm.js +0 -35
- package/dist/cjs/Models/Announcement.js +0 -34
- package/dist/cjs/Models/Camera.js +0 -35
- package/dist/cjs/Models/Category.js +0 -36
- package/dist/cjs/Models/Courtesy.js +0 -39
- package/dist/cjs/Models/Credential.js +0 -35
- package/dist/cjs/Models/DeviceRouter.js +0 -36
- package/dist/cjs/Models/Dimmer.js +0 -61
- package/dist/cjs/Models/DiscoveredDevice.js +0 -36
- package/dist/cjs/Models/EmailMessage.js +0 -35
- package/dist/cjs/Models/EnergyReport.js +0 -35
- package/dist/cjs/Models/EnergyReportShard.js +0 -35
- package/dist/cjs/Models/Entity.js +0 -96
- package/dist/cjs/Models/Gateway.js +0 -35
- package/dist/cjs/Models/Identification.js +0 -38
- package/dist/cjs/Models/Issue.js +0 -35
- package/dist/cjs/Models/Lock.js +0 -39
- package/dist/cjs/Models/Log.js +0 -35
- package/dist/cjs/Models/MediaFile.js +0 -48
- package/dist/cjs/Models/MediaSource.js +0 -35
- package/dist/cjs/Models/MotionSensor.js +0 -35
- package/dist/cjs/Models/Order.js +0 -100
- package/dist/cjs/Models/Organization.js +0 -34
- package/dist/cjs/Models/Policy.js +0 -34
- package/dist/cjs/Models/Product.js +0 -35
- package/dist/cjs/Models/Property.js +0 -34
- package/dist/cjs/Models/Reservation.js +0 -114
- package/dist/cjs/Models/Room.js +0 -217
- package/dist/cjs/Models/Scene.js +0 -169
- package/dist/cjs/Models/ShortLink.js +0 -35
- package/dist/cjs/Models/SmsMessage.js +0 -35
- package/dist/cjs/Models/Space.js +0 -97
- package/dist/cjs/Models/Switch.js +0 -39
- package/dist/cjs/Models/SystemUser.js +0 -55
- package/dist/cjs/Models/Thermostat.js +0 -86
- package/dist/cjs/Models/Ticket.js +0 -55
- package/dist/cjs/Models/TimeSheet.js +0 -60
- package/dist/cjs/Models/User.js +0 -130
- package/dist/cjs/Models/Vendor.js +0 -35
- package/dist/cjs/Models/WindowCovering.js +0 -55
- package/dist/cjs/Models/index.js +0 -85
- package/dist/cjs/defs/deviceTypes.js +0 -15
- package/dist/cjs/defs/formalDeviceTypes.js +0 -6
- package/dist/cjs/defs/index.js +0 -11
- package/dist/cjs/index.js +0 -23
- package/dist/cjs/schemas/alarm.json +0 -85
- package/dist/cjs/schemas/announcement.json +0 -47
- package/dist/cjs/schemas/camera.json +0 -105
- package/dist/cjs/schemas/category.json +0 -42
- package/dist/cjs/schemas/courtesy.json +0 -48
- package/dist/cjs/schemas/credential.json +0 -54
- package/dist/cjs/schemas/definitions.json +0 -245
- package/dist/cjs/schemas/deviceRouter.json +0 -29
- package/dist/cjs/schemas/dimmer.json +0 -42
- package/dist/cjs/schemas/discoveredDevice.json +0 -44
- package/dist/cjs/schemas/emailMessage.json +0 -72
- package/dist/cjs/schemas/energyReport.json +0 -86
- package/dist/cjs/schemas/energyReportShard.json +0 -75
- package/dist/cjs/schemas/gateway.json +0 -34
- package/dist/cjs/schemas/identification.json +0 -61
- package/dist/cjs/schemas/issue.json +0 -54
- package/dist/cjs/schemas/lock.json +0 -57
- package/dist/cjs/schemas/log.json +0 -94
- package/dist/cjs/schemas/mediaFile.json +0 -75
- package/dist/cjs/schemas/mediaSource.json +0 -246
- package/dist/cjs/schemas/motionSensor.json +0 -32
- package/dist/cjs/schemas/order.json +0 -190
- package/dist/cjs/schemas/organization.json +0 -159
- package/dist/cjs/schemas/payment.json +0 -47
- package/dist/cjs/schemas/policy.json +0 -62
- package/dist/cjs/schemas/product.json +0 -45
- package/dist/cjs/schemas/property.json +0 -430
- package/dist/cjs/schemas/reservation.json +0 -146
- package/dist/cjs/schemas/room.json +0 -103
- package/dist/cjs/schemas/scene.json +0 -146
- package/dist/cjs/schemas/shortLink.json +0 -31
- package/dist/cjs/schemas/smsMessage.json +0 -62
- package/dist/cjs/schemas/space.json +0 -155
- package/dist/cjs/schemas/switch.json +0 -49
- package/dist/cjs/schemas/systemUser.json +0 -106
- package/dist/cjs/schemas/thermostat.json +0 -149
- package/dist/cjs/schemas/ticket.json +0 -229
- package/dist/cjs/schemas/timeSheet.json +0 -61
- package/dist/cjs/schemas/user.json +0 -189
- package/dist/cjs/schemas/vendor.json +0 -40
- package/dist/cjs/schemas/windowCovering.json +0 -48
- package/dist/cjs/utils/entityFactory.js +0 -86
- package/dist/cjs/utils/errorFactory.js +0 -32
- package/dist/cjs/utils/eventFactory.js +0 -10
- package/dist/cjs/utils/getDeviceTypes.js +0 -7
- package/dist/cjs/utils/getFormalDeviceType.js +0 -5
- package/dist/cjs/utils/index.js +0 -13
- package/dist/cjs/utils/schema.js +0 -25
- package/dist/esm/Client.js +0 -10692
- package/dist/esm/Client.js.map +0 -7
- package/dist/esm/Commands.js +0 -985
- package/dist/esm/Commands.js.map +0 -7
- package/dist/esm/Errors.js +0 -245
- package/dist/esm/Errors.js.map +0 -7
- package/dist/esm/Events.js +0 -741
- package/dist/esm/Events.js.map +0 -7
- package/dist/esm/Models.js +0 -14074
- package/dist/esm/Models.js.map +0 -7
- package/dist/esm/SocketIoClient.js +0 -5010
- package/dist/esm/SocketIoClient.js.map +0 -7
- package/dist/esm/defs.js +0 -3070
- package/dist/esm/defs.js.map +0 -7
- package/dist/esm/index.js +0 -18
- package/dist/esm/utils.js +0 -14263
- package/dist/esm/utils.js.map +0 -7
- package/dist/types/AMQPClient/index.d.ts +0 -128
- package/dist/types/AMQPClient/index.d.ts.map +0 -1
- package/dist/types/Client/index.d.ts +0 -58
- package/dist/types/Client/index.d.ts.map +0 -1
- package/dist/types/Commands/CheckInReservation.d.ts +0 -10
- package/dist/types/Commands/CheckInReservation.d.ts.map +0 -1
- package/dist/types/Commands/CheckOutReservation.d.ts +0 -11
- package/dist/types/Commands/CheckOutReservation.d.ts.map +0 -1
- package/dist/types/Commands/Command.d.ts +0 -12
- package/dist/types/Commands/Command.d.ts.map +0 -1
- package/dist/types/Commands/CreateImageUploadEndpoint.d.ts +0 -11
- package/dist/types/Commands/CreateImageUploadEndpoint.d.ts.map +0 -1
- package/dist/types/Commands/CreateShortLink.d.ts +0 -11
- package/dist/types/Commands/CreateShortLink.d.ts.map +0 -1
- package/dist/types/Commands/GetCategories.d.ts +0 -10
- package/dist/types/Commands/GetCategories.d.ts.map +0 -1
- package/dist/types/Commands/GetMobileKey.d.ts +0 -14
- package/dist/types/Commands/GetMobileKey.d.ts.map +0 -1
- package/dist/types/Commands/GetProducts.d.ts +0 -11
- package/dist/types/Commands/GetProducts.d.ts.map +0 -1
- package/dist/types/Commands/GetReservationSpaceCategoryAvailabilities.d.ts +0 -6
- package/dist/types/Commands/GetReservationSpaceCategoryAvailabilities.d.ts.map +0 -1
- package/dist/types/Commands/GetReservations.d.ts +0 -6
- package/dist/types/Commands/GetReservations.d.ts.map +0 -1
- package/dist/types/Commands/GetRooms.d.ts +0 -16
- package/dist/types/Commands/GetRooms.d.ts.map +0 -1
- package/dist/types/Commands/GetUsers.d.ts +0 -10
- package/dist/types/Commands/GetUsers.d.ts.map +0 -1
- package/dist/types/Commands/OCRDocument.d.ts +0 -11
- package/dist/types/Commands/OCRDocument.d.ts.map +0 -1
- package/dist/types/Commands/SellProducts.d.ts +0 -12
- package/dist/types/Commands/SellProducts.d.ts.map +0 -1
- package/dist/types/Commands/SendEmail.d.ts +0 -14
- package/dist/types/Commands/SendEmail.d.ts.map +0 -1
- package/dist/types/Commands/SendSMS.d.ts +0 -14
- package/dist/types/Commands/SendSMS.d.ts.map +0 -1
- package/dist/types/Commands/SetAlarm.d.ts +0 -13
- package/dist/types/Commands/SetAlarm.d.ts.map +0 -1
- package/dist/types/Commands/SetCourtesy.d.ts +0 -11
- package/dist/types/Commands/SetCourtesy.d.ts.map +0 -1
- package/dist/types/Commands/SetDimmer.d.ts +0 -11
- package/dist/types/Commands/SetDimmer.d.ts.map +0 -1
- package/dist/types/Commands/SetLock.d.ts +0 -11
- package/dist/types/Commands/SetLock.d.ts.map +0 -1
- package/dist/types/Commands/SetMedia.d.ts +0 -11
- package/dist/types/Commands/SetMedia.d.ts.map +0 -1
- package/dist/types/Commands/SetScene.d.ts +0 -11
- package/dist/types/Commands/SetScene.d.ts.map +0 -1
- package/dist/types/Commands/SetSwitch.d.ts +0 -11
- package/dist/types/Commands/SetSwitch.d.ts.map +0 -1
- package/dist/types/Commands/SetThermostat.d.ts +0 -13
- package/dist/types/Commands/SetThermostat.d.ts.map +0 -1
- package/dist/types/Commands/SetWindowCovering.d.ts +0 -11
- package/dist/types/Commands/SetWindowCovering.d.ts.map +0 -1
- package/dist/types/Commands/UpdateReservation.d.ts +0 -10
- package/dist/types/Commands/UpdateReservation.d.ts.map +0 -1
- package/dist/types/Commands/UpdateUser.d.ts +0 -18
- package/dist/types/Commands/UpdateUser.d.ts.map +0 -1
- package/dist/types/Commands/UploadImage.d.ts +0 -12
- package/dist/types/Commands/UploadImage.d.ts.map +0 -1
- package/dist/types/Commands/index.d.ts +0 -30
- package/dist/types/Commands/index.d.ts.map +0 -1
- package/dist/types/Errors/AppError.d.ts +0 -7
- package/dist/types/Errors/AppError.d.ts.map +0 -1
- package/dist/types/Errors/AuthenticationError.d.ts +0 -6
- package/dist/types/Errors/AuthenticationError.d.ts.map +0 -1
- package/dist/types/Errors/AuthorizationError.d.ts +0 -6
- package/dist/types/Errors/AuthorizationError.d.ts.map +0 -1
- package/dist/types/Errors/ConflictError.d.ts +0 -6
- package/dist/types/Errors/ConflictError.d.ts.map +0 -1
- package/dist/types/Errors/DeviceCommError.d.ts +0 -6
- package/dist/types/Errors/DeviceCommError.d.ts.map +0 -1
- package/dist/types/Errors/LoginError.d.ts +0 -6
- package/dist/types/Errors/LoginError.d.ts.map +0 -1
- package/dist/types/Errors/NotFoundError.d.ts +0 -6
- package/dist/types/Errors/NotFoundError.d.ts.map +0 -1
- package/dist/types/Errors/RequestError.d.ts +0 -6
- package/dist/types/Errors/RequestError.d.ts.map +0 -1
- package/dist/types/Errors/SystemCommError.d.ts +0 -6
- package/dist/types/Errors/SystemCommError.d.ts.map +0 -1
- package/dist/types/Errors/TokenExpiredError.d.ts +0 -6
- package/dist/types/Errors/TokenExpiredError.d.ts.map +0 -1
- package/dist/types/Errors/UnprocessableRequestError.d.ts +0 -6
- package/dist/types/Errors/UnprocessableRequestError.d.ts.map +0 -1
- package/dist/types/Errors/ValidationError.d.ts +0 -6
- package/dist/types/Errors/ValidationError.d.ts.map +0 -1
- package/dist/types/Errors/index.d.ts +0 -37
- package/dist/types/Errors/index.d.ts.map +0 -1
- package/dist/types/Events/ApplicationInUse.d.ts +0 -7
- package/dist/types/Events/ApplicationInUse.d.ts.map +0 -1
- package/dist/types/Events/ApplicationOutOfUse.d.ts +0 -7
- package/dist/types/Events/ApplicationOutOfUse.d.ts.map +0 -1
- package/dist/types/Events/EmailEvent.d.ts +0 -7
- package/dist/types/Events/EmailEvent.d.ts.map +0 -1
- package/dist/types/Events/Event.d.ts +0 -48
- package/dist/types/Events/Event.d.ts.map +0 -1
- package/dist/types/Events/ReservationCheckedIn.d.ts +0 -7
- package/dist/types/Events/ReservationCheckedIn.d.ts.map +0 -1
- package/dist/types/Events/ReservationCheckedOut.d.ts +0 -7
- package/dist/types/Events/ReservationCheckedOut.d.ts.map +0 -1
- package/dist/types/Events/ReservationSpaceChanged.d.ts +0 -7
- package/dist/types/Events/ReservationSpaceChanged.d.ts.map +0 -1
- package/dist/types/Events/SMSEvent.d.ts +0 -7
- package/dist/types/Events/SMSEvent.d.ts.map +0 -1
- package/dist/types/Events/SceneSet.d.ts +0 -7
- package/dist/types/Events/SceneSet.d.ts.map +0 -1
- package/dist/types/Events/ShortLinkCreated.d.ts +0 -7
- package/dist/types/Events/ShortLinkCreated.d.ts.map +0 -1
- package/dist/types/Events/SystemAlarmUpdated.d.ts +0 -7
- package/dist/types/Events/SystemAlarmUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemCameraUpdated.d.ts +0 -7
- package/dist/types/Events/SystemCameraUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemCategoryUpdated.d.ts +0 -7
- package/dist/types/Events/SystemCategoryUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemCourtesyUpdated.d.ts +0 -7
- package/dist/types/Events/SystemCourtesyUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemCredentialUpdated.d.ts +0 -7
- package/dist/types/Events/SystemCredentialUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemDimmerUpdated.d.ts +0 -7
- package/dist/types/Events/SystemDimmerUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemEntityDeleted.d.ts +0 -7
- package/dist/types/Events/SystemEntityDeleted.d.ts.map +0 -1
- package/dist/types/Events/SystemGatewayUpdated.d.ts +0 -7
- package/dist/types/Events/SystemGatewayUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemLockUpdated.d.ts +0 -7
- package/dist/types/Events/SystemLockUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemMediaSourceUpdated.d.ts +0 -7
- package/dist/types/Events/SystemMediaSourceUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemMotionSensorUpdated.d.ts +0 -7
- package/dist/types/Events/SystemMotionSensorUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemOrganizationUpdated.d.ts +0 -7
- package/dist/types/Events/SystemOrganizationUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemProductUpdated.d.ts +0 -7
- package/dist/types/Events/SystemProductUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemPropertyUpdated.d.ts +0 -7
- package/dist/types/Events/SystemPropertyUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemReservationUpdated.d.ts +0 -7
- package/dist/types/Events/SystemReservationUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemSpaceUpdated.d.ts +0 -7
- package/dist/types/Events/SystemSpaceUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemSwitchUpdated.d.ts +0 -7
- package/dist/types/Events/SystemSwitchUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemThermostatUpdated.d.ts +0 -7
- package/dist/types/Events/SystemThermostatUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemUserUpdated.d.ts +0 -7
- package/dist/types/Events/SystemUserUpdated.d.ts.map +0 -1
- package/dist/types/Events/SystemWindowCoveringUpdated.d.ts +0 -7
- package/dist/types/Events/SystemWindowCoveringUpdated.d.ts.map +0 -1
- package/dist/types/Events/index.d.ts +0 -32
- package/dist/types/Events/index.d.ts.map +0 -1
- package/dist/types/Models/Alarm.d.ts +0 -17
- package/dist/types/Models/Alarm.d.ts.map +0 -1
- package/dist/types/Models/Announcement.d.ts +0 -17
- package/dist/types/Models/Announcement.d.ts.map +0 -1
- package/dist/types/Models/Camera.d.ts +0 -17
- package/dist/types/Models/Camera.d.ts.map +0 -1
- package/dist/types/Models/Category.d.ts +0 -17
- package/dist/types/Models/Category.d.ts.map +0 -1
- package/dist/types/Models/Courtesy.d.ts +0 -18
- package/dist/types/Models/Courtesy.d.ts.map +0 -1
- package/dist/types/Models/Credential.d.ts +0 -17
- package/dist/types/Models/Credential.d.ts.map +0 -1
- package/dist/types/Models/DeviceRouter.d.ts +0 -17
- package/dist/types/Models/DeviceRouter.d.ts.map +0 -1
- package/dist/types/Models/Dimmer.d.ts +0 -23
- package/dist/types/Models/Dimmer.d.ts.map +0 -1
- package/dist/types/Models/DiscoveredDevice.d.ts +0 -17
- package/dist/types/Models/DiscoveredDevice.d.ts.map +0 -1
- package/dist/types/Models/EmailMessage.d.ts +0 -17
- package/dist/types/Models/EmailMessage.d.ts.map +0 -1
- package/dist/types/Models/EnergyReport.d.ts +0 -17
- package/dist/types/Models/EnergyReport.d.ts.map +0 -1
- package/dist/types/Models/EnergyReportShard.d.ts +0 -17
- package/dist/types/Models/EnergyReportShard.d.ts.map +0 -1
- package/dist/types/Models/Entity.d.ts +0 -12
- package/dist/types/Models/Entity.d.ts.map +0 -1
- package/dist/types/Models/Gateway.d.ts +0 -17
- package/dist/types/Models/Gateway.d.ts.map +0 -1
- package/dist/types/Models/Identification.d.ts +0 -18
- package/dist/types/Models/Identification.d.ts.map +0 -1
- package/dist/types/Models/Issue.d.ts +0 -17
- package/dist/types/Models/Issue.d.ts.map +0 -1
- package/dist/types/Models/Lock.d.ts +0 -18
- package/dist/types/Models/Lock.d.ts.map +0 -1
- package/dist/types/Models/Log.d.ts +0 -17
- package/dist/types/Models/Log.d.ts.map +0 -1
- package/dist/types/Models/MediaFile.d.ts +0 -18
- package/dist/types/Models/MediaFile.d.ts.map +0 -1
- package/dist/types/Models/MediaSource.d.ts +0 -17
- package/dist/types/Models/MediaSource.d.ts.map +0 -1
- package/dist/types/Models/MotionSensor.d.ts +0 -17
- package/dist/types/Models/MotionSensor.d.ts.map +0 -1
- package/dist/types/Models/Order.d.ts +0 -24
- package/dist/types/Models/Order.d.ts.map +0 -1
- package/dist/types/Models/Organization.d.ts +0 -17
- package/dist/types/Models/Organization.d.ts.map +0 -1
- package/dist/types/Models/Policy.d.ts +0 -17
- package/dist/types/Models/Policy.d.ts.map +0 -1
- package/dist/types/Models/Product.d.ts +0 -17
- package/dist/types/Models/Product.d.ts.map +0 -1
- package/dist/types/Models/Property.d.ts +0 -17
- package/dist/types/Models/Property.d.ts.map +0 -1
- package/dist/types/Models/Reservation.d.ts +0 -23
- package/dist/types/Models/Reservation.d.ts.map +0 -1
- package/dist/types/Models/Room.d.ts +0 -32
- package/dist/types/Models/Room.d.ts.map +0 -1
- package/dist/types/Models/Scene.d.ts +0 -24
- package/dist/types/Models/Scene.d.ts.map +0 -1
- package/dist/types/Models/ShortLink.d.ts +0 -17
- package/dist/types/Models/ShortLink.d.ts.map +0 -1
- package/dist/types/Models/SmsMessage.d.ts +0 -17
- package/dist/types/Models/SmsMessage.d.ts.map +0 -1
- package/dist/types/Models/Space.d.ts +0 -27
- package/dist/types/Models/Space.d.ts.map +0 -1
- package/dist/types/Models/Switch.d.ts +0 -18
- package/dist/types/Models/Switch.d.ts.map +0 -1
- package/dist/types/Models/SystemUser.d.ts +0 -20
- package/dist/types/Models/SystemUser.d.ts.map +0 -1
- package/dist/types/Models/Thermostat.d.ts +0 -22
- package/dist/types/Models/Thermostat.d.ts.map +0 -1
- package/dist/types/Models/Ticket.d.ts +0 -18
- package/dist/types/Models/Ticket.d.ts.map +0 -1
- package/dist/types/Models/TimeSheet.d.ts +0 -18
- package/dist/types/Models/TimeSheet.d.ts.map +0 -1
- package/dist/types/Models/User.d.ts +0 -27
- package/dist/types/Models/User.d.ts.map +0 -1
- package/dist/types/Models/Vendor.d.ts +0 -17
- package/dist/types/Models/Vendor.d.ts.map +0 -1
- package/dist/types/Models/WindowCovering.d.ts +0 -18
- package/dist/types/Models/WindowCovering.d.ts.map +0 -1
- package/dist/types/Models/index.d.ts +0 -42
- package/dist/types/Models/index.d.ts.map +0 -1
- package/dist/types/SocketIoClient/index.d.ts +0 -36
- package/dist/types/SocketIoClient/index.d.ts.map +0 -1
- package/dist/types/defs/amqpExchanges.d.ts +0 -58
- package/dist/types/defs/amqpExchanges.d.ts.map +0 -1
- package/dist/types/defs/deviceTypes.d.ts +0 -3
- package/dist/types/defs/deviceTypes.d.ts.map +0 -1
- package/dist/types/defs/formalDeviceTypes.d.ts +0 -3
- package/dist/types/defs/formalDeviceTypes.d.ts.map +0 -1
- package/dist/types/defs/index.d.ts +0 -5
- package/dist/types/defs/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/schemas/AlarmSchema.d.ts +0 -210
- package/dist/types/schemas/AnnouncementSchema.d.ts +0 -65
- package/dist/types/schemas/CameraSchema.d.ts +0 -205
- package/dist/types/schemas/CategorySchema.d.ts +0 -105
- package/dist/types/schemas/CourtesySchema.d.ts +0 -185
- package/dist/types/schemas/CredentialSchema.d.ts +0 -73
- package/dist/types/schemas/DefinitionsSchema.d.ts +0 -10
- package/dist/types/schemas/DeviceRouterSchema.d.ts +0 -23
- package/dist/types/schemas/DimmerSchema.d.ts +0 -184
- package/dist/types/schemas/DiscoveredDeviceSchema.d.ts +0 -48
- package/dist/types/schemas/EmailMessageSchema.d.ts +0 -49
- package/dist/types/schemas/EnergyReportSchema.d.ts +0 -57
- package/dist/types/schemas/EnergyReportShardSchema.d.ts +0 -61
- package/dist/types/schemas/GatewaySchema.d.ts +0 -182
- package/dist/types/schemas/IdentificationSchema.d.ts +0 -45
- package/dist/types/schemas/IssueSchema.d.ts +0 -27
- package/dist/types/schemas/LockSchema.d.ts +0 -190
- package/dist/types/schemas/LogSchema.d.ts +0 -46
- package/dist/types/schemas/MediaFileSchema.d.ts +0 -47
- package/dist/types/schemas/MediaSourceSchema.d.ts +0 -301
- package/dist/types/schemas/MotionSensorSchema.d.ts +0 -180
- package/dist/types/schemas/OrderSchema.d.ts +0 -96
- package/dist/types/schemas/OrganizationSchema.d.ts +0 -68
- package/dist/types/schemas/PaymentSchema.d.ts +0 -33
- package/dist/types/schemas/PolicySchema.d.ts +0 -25
- package/dist/types/schemas/ProductSchema.d.ts +0 -111
- package/dist/types/schemas/PropertySchema.d.ts +0 -227
- package/dist/types/schemas/ReservationSchema.d.ts +0 -143
- package/dist/types/schemas/RoomSchema.d.ts +0 -1422
- package/dist/types/schemas/SceneSchema.d.ts +0 -68
- package/dist/types/schemas/ShortLinkSchema.d.ts +0 -20
- package/dist/types/schemas/SmsMessageSchema.d.ts +0 -40
- package/dist/types/schemas/SpaceSchema.d.ts +0 -116
- package/dist/types/schemas/SwitchSchema.d.ts +0 -185
- package/dist/types/schemas/SystemUserSchema.d.ts +0 -213
- package/dist/types/schemas/ThermostatSchema.d.ts +0 -215
- package/dist/types/schemas/TicketSchema.d.ts +0 -100
- package/dist/types/schemas/TimeSheetSchema.d.ts +0 -38
- package/dist/types/schemas/UserSchema.d.ts +0 -334
- package/dist/types/schemas/VendorSchema.d.ts +0 -80
- package/dist/types/schemas/WindowCoveringSchema.d.ts +0 -185
- package/dist/types/utils/entityFactory.d.ts +0 -4
- package/dist/types/utils/entityFactory.d.ts.map +0 -1
- package/dist/types/utils/errorFactory.d.ts +0 -5
- package/dist/types/utils/errorFactory.d.ts.map +0 -1
- package/dist/types/utils/eventFactory.d.ts +0 -3
- package/dist/types/utils/eventFactory.d.ts.map +0 -1
- package/dist/types/utils/getDeviceTypes.d.ts +0 -3
- package/dist/types/utils/getDeviceTypes.d.ts.map +0 -1
- package/dist/types/utils/getFormalDeviceType.d.ts +0 -3
- package/dist/types/utils/getFormalDeviceType.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/schema.d.ts +0 -3
- package/dist/types/utils/schema.d.ts.map +0 -1
- package/dist/useCases/AssignSpaceToReservation.js +0 -28
- package/dist/useCases/AutoAssociateDiscoveredDevices.js +0 -28
- package/dist/useCases/AutoCloseTickets.js +0 -28
- package/dist/useCases/BatchNotifyCheckIn.js +0 -28
- package/dist/useCases/BatchNotifyCheckOut.js +0 -28
- package/dist/useCases/BatchNotifyMissedCheckOut.js +0 -28
- package/dist/useCases/BatchNotifyPreArrival.js +0 -28
- package/dist/useCases/BulkUpdateIssue.js +0 -28
- package/dist/useCases/CheckInReservation.js +0 -28
- package/dist/useCases/CheckOutReservation.js +0 -28
- package/dist/useCases/CheckVerificationCode.js +0 -28
- package/dist/useCases/CreateAlarm.js +0 -28
- package/dist/useCases/CreateAnnouncement.js +0 -28
- package/dist/useCases/CreateCamera.js +0 -28
- package/dist/useCases/CreateCateory.js +0 -28
- package/dist/useCases/CreateCourtesy.js +0 -28
- package/dist/useCases/CreateDefaultScenes.js +0 -28
- package/dist/useCases/CreateDimmer.js +0 -28
- package/dist/useCases/CreateDiscoveredDevice.js +0 -28
- package/dist/useCases/CreateDiscoveredDeviceAssociation.js +0 -28
- package/dist/useCases/CreateDiscoveredDeviceAssociationMap.js +0 -28
- package/dist/useCases/CreateImageUploadEndpoint.js +0 -28
- package/dist/useCases/CreateIssue.js +0 -28
- package/dist/useCases/CreateLock.js +0 -28
- package/dist/useCases/CreateMediaSource.js +0 -28
- package/dist/useCases/CreateOrganization.js +0 -28
- package/dist/useCases/CreatePolicy.js +0 -28
- package/dist/useCases/CreateProperty.js +0 -28
- package/dist/useCases/CreateReservation.js +0 -28
- package/dist/useCases/CreateRoom.js +0 -28
- package/dist/useCases/CreateRoomInSpace.js +0 -28
- package/dist/useCases/CreateScene.js +0 -28
- package/dist/useCases/CreateSpace.js +0 -28
- package/dist/useCases/CreateSwitch.js +0 -28
- package/dist/useCases/CreateThermostat.js +0 -28
- package/dist/useCases/CreateTicket.js +0 -28
- package/dist/useCases/CreateTicketMessage.js +0 -28
- package/dist/useCases/CreateTimeSheet.js +0 -28
- package/dist/useCases/CreateTimeSheetTimeEntry.js +0 -28
- package/dist/useCases/CreateUser.js +0 -28
- package/dist/useCases/CreateUserMobileKey.js +0 -28
- package/dist/useCases/CreateVendor.js +0 -28
- package/dist/useCases/CreateWindowCovering.js +0 -28
- package/dist/useCases/DeleteAlarm.js +0 -28
- package/dist/useCases/DeleteAnnouncement.js +0 -28
- package/dist/useCases/DeleteCamera.js +0 -28
- package/dist/useCases/DeleteCategory.js +0 -28
- package/dist/useCases/DeleteCourtesy.js +0 -28
- package/dist/useCases/DeleteDimmer.js +0 -28
- package/dist/useCases/DeleteDiscoveredDevice.js +0 -28
- package/dist/useCases/DeleteIssue.js +0 -28
- package/dist/useCases/DeleteLock.js +0 -28
- package/dist/useCases/DeleteMediaFile.js +0 -28
- package/dist/useCases/DeleteMediaSource.js +0 -28
- package/dist/useCases/DeletePolicy.js +0 -28
- package/dist/useCases/DeleteReservation.js +0 -28
- package/dist/useCases/DeleteRoom.js +0 -28
- package/dist/useCases/DeleteSpace.js +0 -28
- package/dist/useCases/DeleteSwitch.js +0 -28
- package/dist/useCases/DeleteThermostat.js +0 -28
- package/dist/useCases/DeleteTicket.js +0 -28
- package/dist/useCases/DeleteTimeSheet.js +0 -28
- package/dist/useCases/DeleteTimeSheetTimeEntry.js +0 -28
- package/dist/useCases/DeleteUser.js +0 -28
- package/dist/useCases/DeleteUserCredential.js +0 -28
- package/dist/useCases/DeleteVendor.js +0 -28
- package/dist/useCases/DeleteWindowCovering.js +0 -28
- package/dist/useCases/DescribeAlarm.js +0 -28
- package/dist/useCases/DescribeAlarmConfig.js +0 -28
- package/dist/useCases/DescribeAnnouncement.js +0 -28
- package/dist/useCases/DescribeCamera.js +0 -28
- package/dist/useCases/DescribeCategory.js +0 -28
- package/dist/useCases/DescribeCourtesy.js +0 -28
- package/dist/useCases/DescribeDimmer.js +0 -28
- package/dist/useCases/DescribeDiscoveredDevice.js +0 -28
- package/dist/useCases/DescribeIssue.js +0 -28
- package/dist/useCases/DescribeLock.js +0 -28
- package/dist/useCases/DescribeLockCredential.js +0 -28
- package/dist/useCases/DescribeMediaSource.js +0 -28
- package/dist/useCases/DescribeMyAuth.js +0 -28
- package/dist/useCases/DescribeMyMobileKeyApp.js +0 -28
- package/dist/useCases/DescribeMyOrganization.js +0 -28
- package/dist/useCases/DescribeMyPasskeyRegistrations.js +0 -28
- package/dist/useCases/DescribeOrganization.js +0 -28
- package/dist/useCases/DescribePolicy.js +0 -28
- package/dist/useCases/DescribeProduct.js +0 -28
- package/dist/useCases/DescribeProperty.js +0 -28
- package/dist/useCases/DescribeReservation.js +0 -28
- package/dist/useCases/DescribeReservationEarlyCheckInProducts.js +0 -28
- package/dist/useCases/DescribeReservationLateCheckOutProducts.js +0 -28
- package/dist/useCases/DescribeReservationPetProducts.js +0 -28
- package/dist/useCases/DescribeReservationPromos.js +0 -28
- package/dist/useCases/DescribeReservationRoomUpgrades.js +0 -28
- package/dist/useCases/DescribeRoom.js +0 -28
- package/dist/useCases/DescribeSOS.js +0 -28
- package/dist/useCases/DescribeSelf.js +0 -28
- package/dist/useCases/DescribeSpace.js +0 -28
- package/dist/useCases/DescribeSwitch.js +0 -28
- package/dist/useCases/DescribeThermostat.js +0 -28
- package/dist/useCases/DescribeTicket.js +0 -28
- package/dist/useCases/DescribeTicketStats.js +0 -28
- package/dist/useCases/DescribeTimeSheet.js +0 -28
- package/dist/useCases/DescribeTimeSheetStats.js +0 -28
- package/dist/useCases/DescribeUser.js +0 -28
- package/dist/useCases/DescribeVendor.js +0 -28
- package/dist/useCases/DescribeWindowCovering.js +0 -28
- package/dist/useCases/DiscoverReservations.js +0 -28
- package/dist/useCases/EmailUserAccountSetup.js +0 -28
- package/dist/useCases/FinishRegisterPasskey.js +0 -28
- package/dist/useCases/ListAlarms.js +0 -28
- package/dist/useCases/ListAnnouncements.js +0 -28
- package/dist/useCases/ListCameras.js +0 -28
- package/dist/useCases/ListCategories.js +0 -28
- package/dist/useCases/ListCourtesy.js +0 -28
- package/dist/useCases/ListDimmers.js +0 -28
- package/dist/useCases/ListDiscoveredDevices.js +0 -28
- package/dist/useCases/ListIssues.js +0 -28
- package/dist/useCases/ListLocks.js +0 -28
- package/dist/useCases/ListMediaSources.js +0 -28
- package/dist/useCases/ListMyOrders.js +0 -28
- package/dist/useCases/ListMyProperties.js +0 -28
- package/dist/useCases/ListMyReservations.js +0 -28
- package/dist/useCases/ListMySpaces.js +0 -28
- package/dist/useCases/ListMyTickets.js +0 -28
- package/dist/useCases/ListMyTimeSheets.js +0 -28
- package/dist/useCases/ListOrders.js +0 -28
- package/dist/useCases/ListOrganizations.js +0 -28
- package/dist/useCases/ListPolicies.js +0 -28
- package/dist/useCases/ListProducts.js +0 -28
- package/dist/useCases/ListProperties.js +0 -28
- package/dist/useCases/ListReservations.js +0 -28
- package/dist/useCases/ListRooms.js +0 -28
- package/dist/useCases/ListRoomsInSpace.js +0 -28
- package/dist/useCases/ListScenes.js +0 -28
- package/dist/useCases/ListSpaces.js +0 -28
- package/dist/useCases/ListSwitches.js +0 -28
- package/dist/useCases/ListTeam.js +0 -28
- package/dist/useCases/ListThermostats.js +0 -28
- package/dist/useCases/ListTickets.js +0 -28
- package/dist/useCases/ListTimeSheets.js +0 -28
- package/dist/useCases/ListUserMobileKeys.js +0 -28
- package/dist/useCases/ListUserOrders.js +0 -28
- package/dist/useCases/ListUserReservations.js +0 -28
- package/dist/useCases/ListUserSpaces.js +0 -28
- package/dist/useCases/ListUsers.js +0 -28
- package/dist/useCases/ListVendors.js +0 -28
- package/dist/useCases/ListWindowCoverings.js +0 -28
- package/dist/useCases/LoginFinish.js +0 -28
- package/dist/useCases/LoginStart.js +0 -28
- package/dist/useCases/LogoutSelf.js +0 -28
- package/dist/useCases/LogoutUser.js +0 -28
- package/dist/useCases/MatchUserIdentification.js +0 -28
- package/dist/useCases/OCRDocument.js +0 -28
- package/dist/useCases/PurchaseReservationEarlyCheckInProducts.js +0 -28
- package/dist/useCases/PurchaseReservationLateCheckOutProducts.js +0 -28
- package/dist/useCases/PurchaseReservationPetProducts.js +0 -28
- package/dist/useCases/PurchaseReservationPromos.js +0 -28
- package/dist/useCases/PurchaseReservationRoomUpgrades.js +0 -28
- package/dist/useCases/RefreshToken.js +0 -28
- package/dist/useCases/RequestLoginToken.js +0 -28
- package/dist/useCases/SendCheckInSMS.js +0 -28
- package/dist/useCases/SendCheckOutSMS.js +0 -28
- package/dist/useCases/SendPreArrivalEmail.js +0 -28
- package/dist/useCases/SendPreArrivalSMS.js +0 -28
- package/dist/useCases/SendRoomControlSMS.js +0 -28
- package/dist/useCases/SendVerificationCode.js +0 -28
- package/dist/useCases/SetAlarm.js +0 -28
- package/dist/useCases/SetCamera.js +0 -28
- package/dist/useCases/SetCourtesy.js +0 -28
- package/dist/useCases/SetDimmer.js +0 -28
- package/dist/useCases/SetLock.js +0 -28
- package/dist/useCases/SetMediaSource.js +0 -28
- package/dist/useCases/SetRoomScene.js +0 -28
- package/dist/useCases/SetScene.js +0 -28
- package/dist/useCases/SetSpaceScene.js +0 -28
- package/dist/useCases/SetSwitch.js +0 -28
- package/dist/useCases/SetThermostat.js +0 -28
- package/dist/useCases/SetWindowCovering.js +0 -28
- package/dist/useCases/StartRegisterPasskey.js +0 -28
- package/dist/useCases/StartSOS.js +0 -28
- package/dist/useCases/StopSOS.js +0 -28
- package/dist/useCases/TipUser.js +0 -28
- package/dist/useCases/UpdateAlarm.js +0 -28
- package/dist/useCases/UpdateAnnouncement.js +0 -28
- package/dist/useCases/UpdateCamera.js +0 -28
- package/dist/useCases/UpdateCategory.js +0 -28
- package/dist/useCases/UpdateCourtesy.js +0 -28
- package/dist/useCases/UpdateDimmer.js +0 -28
- package/dist/useCases/UpdateDiscoveredDevice.js +0 -28
- package/dist/useCases/UpdateIssue.js +0 -28
- package/dist/useCases/UpdateLock.js +0 -28
- package/dist/useCases/UpdateMediaSource.js +0 -28
- package/dist/useCases/UpdateMessageReadStatus.js +0 -28
- package/dist/useCases/UpdateOrganization.js +0 -28
- package/dist/useCases/UpdatePolicy.js +0 -28
- package/dist/useCases/UpdateProperty.js +0 -28
- package/dist/useCases/UpdatePropertySettings.js +0 -28
- package/dist/useCases/UpdateReservation.js +0 -28
- package/dist/useCases/UpdateReservationExpectedArrivalTime.js +0 -28
- package/dist/useCases/UpdateRoom.js +0 -28
- package/dist/useCases/UpdateSelf.js +0 -28
- package/dist/useCases/UpdateSpace.js +0 -28
- package/dist/useCases/UpdateSwitch.js +0 -28
- package/dist/useCases/UpdateThermostat.js +0 -28
- package/dist/useCases/UpdateTicket.js +0 -28
- package/dist/useCases/UpdateTicketStatus.js +0 -28
- package/dist/useCases/UpdateTimeSheet.js +0 -28
- package/dist/useCases/UpdateTimeSheetTimeEntry.js +0 -28
- package/dist/useCases/UpdateUser.js +0 -28
- package/dist/useCases/UpdateVendor.js +0 -28
- package/dist/useCases/UpdateWindowCovering.js +0 -28
- package/dist/useCases/UploadImage.js +0 -28
- package/dist/useCases/UpsertDiscoveredDevice.js +0 -28
package/dist/esm/Commands.js
DELETED
|
@@ -1,985 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
// src/defs/amqpExchanges.js
|
|
9
|
-
var require_amqpExchanges = __commonJS({
|
|
10
|
-
"src/defs/amqpExchanges.js"(exports, module) {
|
|
11
|
-
var exchanges = {
|
|
12
|
-
// routes commands based on `command-name` header and in many cases `property-id` header
|
|
13
|
-
Commands: {
|
|
14
|
-
name: "kohost.commands",
|
|
15
|
-
type: "headers",
|
|
16
|
-
options: {
|
|
17
|
-
durable: true
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
CommandResponses: {
|
|
21
|
-
name: "kohost.commandResponses",
|
|
22
|
-
type: "topic",
|
|
23
|
-
options: {
|
|
24
|
-
durable: true
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
// routes events based on routing keys
|
|
28
|
-
DriverEvents: {
|
|
29
|
-
name: "kohost.events.drivers",
|
|
30
|
-
type: "topic",
|
|
31
|
-
options: {
|
|
32
|
-
durable: true
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
AppEvents: {
|
|
36
|
-
name: "kohost.events.app",
|
|
37
|
-
type: "topic",
|
|
38
|
-
options: {
|
|
39
|
-
durable: true
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
Direct: {
|
|
43
|
-
name: "kohost.direct",
|
|
44
|
-
type: "direct",
|
|
45
|
-
options: {
|
|
46
|
-
durable: true
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
// dead letter exchange
|
|
50
|
-
dlx: {
|
|
51
|
-
name: "kohost.dlx",
|
|
52
|
-
type: "direct"
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
module.exports = exchanges;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// src/Commands/Command.js
|
|
60
|
-
var require_Command = __commonJS({
|
|
61
|
-
"src/Commands/Command.js"(exports, module) {
|
|
62
|
-
var exchanges = require_amqpExchanges();
|
|
63
|
-
var Command = class {
|
|
64
|
-
static {
|
|
65
|
-
__name(this, "Command");
|
|
66
|
-
}
|
|
67
|
-
constructor(data) {
|
|
68
|
-
this.data = {};
|
|
69
|
-
if (!data) throw new Error("Command data is required");
|
|
70
|
-
if (typeof data !== "object")
|
|
71
|
-
throw new Error("Command data must be an object");
|
|
72
|
-
for (const key in data) {
|
|
73
|
-
this.data[key] = data[key];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
get name() {
|
|
77
|
-
throw new Error("Command name is required");
|
|
78
|
-
}
|
|
79
|
-
static get type() {
|
|
80
|
-
return "Command";
|
|
81
|
-
}
|
|
82
|
-
static get exchange() {
|
|
83
|
-
return exchanges.Commands.name;
|
|
84
|
-
}
|
|
85
|
-
build() {
|
|
86
|
-
return { data: { ...this.data } };
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
module.exports = Command;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
// src/Commands/SetScene.js
|
|
94
|
-
var require_SetScene = __commonJS({
|
|
95
|
-
"src/Commands/SetScene.js"(exports, module) {
|
|
96
|
-
var Command = require_Command();
|
|
97
|
-
var SetScene = class extends Command {
|
|
98
|
-
static {
|
|
99
|
-
__name(this, "SetScene");
|
|
100
|
-
}
|
|
101
|
-
constructor({ id, devices, ...rest }) {
|
|
102
|
-
super({ id, devices, ...rest });
|
|
103
|
-
}
|
|
104
|
-
get name() {
|
|
105
|
-
return "SetScene";
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
module.exports = SetScene;
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// src/Commands/SetAlarm.js
|
|
113
|
-
var require_SetAlarm = __commonJS({
|
|
114
|
-
"src/Commands/SetAlarm.js"(exports, module) {
|
|
115
|
-
var Command = require_Command();
|
|
116
|
-
var SetAlarm = class extends Command {
|
|
117
|
-
static {
|
|
118
|
-
__name(this, "SetAlarm");
|
|
119
|
-
}
|
|
120
|
-
constructor({ id, zones, areas, code, ...rest }) {
|
|
121
|
-
super({ id, zones, areas, code, ...rest });
|
|
122
|
-
}
|
|
123
|
-
get name() {
|
|
124
|
-
return "SetAlarm";
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
module.exports = SetAlarm;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
// src/Commands/SetDimmer.js
|
|
132
|
-
var require_SetDimmer = __commonJS({
|
|
133
|
-
"src/Commands/SetDimmer.js"(exports, module) {
|
|
134
|
-
var Command = require_Command();
|
|
135
|
-
var SetDimmer = class extends Command {
|
|
136
|
-
static {
|
|
137
|
-
__name(this, "SetDimmer");
|
|
138
|
-
}
|
|
139
|
-
constructor({ id, level, ...rest }) {
|
|
140
|
-
super({ id, level, ...rest });
|
|
141
|
-
}
|
|
142
|
-
get name() {
|
|
143
|
-
return "SetDimmer";
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
module.exports = SetDimmer;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
// src/Commands/SetSwitch.js
|
|
151
|
-
var require_SetSwitch = __commonJS({
|
|
152
|
-
"src/Commands/SetSwitch.js"(exports, module) {
|
|
153
|
-
var Command = require_Command();
|
|
154
|
-
var SetSwitch = class extends Command {
|
|
155
|
-
static {
|
|
156
|
-
__name(this, "SetSwitch");
|
|
157
|
-
}
|
|
158
|
-
constructor({ id, state, ...rest }) {
|
|
159
|
-
super({ id, state, ...rest });
|
|
160
|
-
}
|
|
161
|
-
get name() {
|
|
162
|
-
return "SetSwitch";
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
module.exports = SetSwitch;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// src/Commands/SetThermostat.js
|
|
170
|
-
var require_SetThermostat = __commonJS({
|
|
171
|
-
"src/Commands/SetThermostat.js"(exports, module) {
|
|
172
|
-
var Command = require_Command();
|
|
173
|
-
var SetThermostat = class extends Command {
|
|
174
|
-
static {
|
|
175
|
-
__name(this, "SetThermostat");
|
|
176
|
-
}
|
|
177
|
-
constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {
|
|
178
|
-
super({ id, setpoints, hvacMode, fanMode, ...rest });
|
|
179
|
-
}
|
|
180
|
-
get name() {
|
|
181
|
-
return "SetThermostat";
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
module.exports = SetThermostat;
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
// src/Commands/SetLock.js
|
|
189
|
-
var require_SetLock = __commonJS({
|
|
190
|
-
"src/Commands/SetLock.js"(exports, module) {
|
|
191
|
-
var Command = require_Command();
|
|
192
|
-
var SetLock = class extends Command {
|
|
193
|
-
static {
|
|
194
|
-
__name(this, "SetLock");
|
|
195
|
-
}
|
|
196
|
-
constructor({ id, state, ...rest }) {
|
|
197
|
-
super({ id, state, ...rest });
|
|
198
|
-
}
|
|
199
|
-
get name() {
|
|
200
|
-
return "SetLock";
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
module.exports = SetLock;
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
// src/Commands/SetWindowCovering.js
|
|
208
|
-
var require_SetWindowCovering = __commonJS({
|
|
209
|
-
"src/Commands/SetWindowCovering.js"(exports, module) {
|
|
210
|
-
var Command = require_Command();
|
|
211
|
-
var SetWindowCovering = class extends Command {
|
|
212
|
-
static {
|
|
213
|
-
__name(this, "SetWindowCovering");
|
|
214
|
-
}
|
|
215
|
-
constructor({ id, position, ...rest }) {
|
|
216
|
-
super({ id, position, ...rest });
|
|
217
|
-
}
|
|
218
|
-
get name() {
|
|
219
|
-
return "SetWindowCovering";
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
module.exports = SetWindowCovering;
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
// src/Commands/SetCourtesy.js
|
|
227
|
-
var require_SetCourtesy = __commonJS({
|
|
228
|
-
"src/Commands/SetCourtesy.js"(exports, module) {
|
|
229
|
-
var Command = require_Command();
|
|
230
|
-
var SetCourtesy = class extends Command {
|
|
231
|
-
static {
|
|
232
|
-
__name(this, "SetCourtesy");
|
|
233
|
-
}
|
|
234
|
-
constructor({ id, state, ...rest }) {
|
|
235
|
-
super({ id, state, ...rest });
|
|
236
|
-
}
|
|
237
|
-
get name() {
|
|
238
|
-
return "SetCourtesy";
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
module.exports = SetCourtesy;
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
// src/Commands/SetMedia.js
|
|
246
|
-
var require_SetMedia = __commonJS({
|
|
247
|
-
"src/Commands/SetMedia.js"(exports, module) {
|
|
248
|
-
var Command = require_Command();
|
|
249
|
-
var SetMedia = class extends Command {
|
|
250
|
-
static {
|
|
251
|
-
__name(this, "SetMedia");
|
|
252
|
-
}
|
|
253
|
-
constructor({ id, command, ...rest }) {
|
|
254
|
-
super({ id, command, ...rest });
|
|
255
|
-
}
|
|
256
|
-
get name() {
|
|
257
|
-
return "SetMedia";
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
module.exports = SetMedia;
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
// src/Commands/GetUsers.js
|
|
265
|
-
var require_GetUsers = __commonJS({
|
|
266
|
-
"src/Commands/GetUsers.js"(exports, module) {
|
|
267
|
-
var Command = require_Command();
|
|
268
|
-
var GetUsers = class extends Command {
|
|
269
|
-
static {
|
|
270
|
-
__name(this, "GetUsers");
|
|
271
|
-
}
|
|
272
|
-
constructor({ id, ...rest }) {
|
|
273
|
-
super({ id, ...rest });
|
|
274
|
-
}
|
|
275
|
-
get name() {
|
|
276
|
-
return "GetUsers";
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
module.exports = GetUsers;
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
// src/Errors/AppError.js
|
|
284
|
-
var require_AppError = __commonJS({
|
|
285
|
-
"src/Errors/AppError.js"(exports, module) {
|
|
286
|
-
module.exports = class AppError extends Error {
|
|
287
|
-
static {
|
|
288
|
-
__name(this, "AppError");
|
|
289
|
-
}
|
|
290
|
-
constructor(message = "Internal Server Error", options) {
|
|
291
|
-
super(message, options);
|
|
292
|
-
this.type = this.constructor.name;
|
|
293
|
-
this.statusCode = 500;
|
|
294
|
-
this.name = "AppError";
|
|
295
|
-
Object.setPrototypeOf(this, AppError.prototype);
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
// src/Errors/RequestError.js
|
|
302
|
-
var require_RequestError = __commonJS({
|
|
303
|
-
"src/Errors/RequestError.js"(exports, module) {
|
|
304
|
-
var AppError = require_AppError();
|
|
305
|
-
module.exports = class RequestError extends AppError {
|
|
306
|
-
static {
|
|
307
|
-
__name(this, "RequestError");
|
|
308
|
-
}
|
|
309
|
-
constructor(message = "Bad Request", options = {}) {
|
|
310
|
-
super(message, options);
|
|
311
|
-
this.statusCode = 400;
|
|
312
|
-
this.name = "RequestError";
|
|
313
|
-
Object.setPrototypeOf(this, RequestError.prototype);
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
// src/Commands/OCRDocument.js
|
|
320
|
-
var require_OCRDocument = __commonJS({
|
|
321
|
-
"src/Commands/OCRDocument.js"(exports, module) {
|
|
322
|
-
var Command = require_Command();
|
|
323
|
-
var RequestError = require_RequestError();
|
|
324
|
-
var OCRDocument = class extends Command {
|
|
325
|
-
static {
|
|
326
|
-
__name(this, "OCRDocument");
|
|
327
|
-
}
|
|
328
|
-
constructor({ type, image, ...rest }) {
|
|
329
|
-
if (!image) throw new RequestError("document image is required");
|
|
330
|
-
super({ type, image, ...rest });
|
|
331
|
-
}
|
|
332
|
-
get name() {
|
|
333
|
-
return "OCRDocument";
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
module.exports = OCRDocument;
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
|
|
340
|
-
// src/Commands/CheckInReservation.js
|
|
341
|
-
var require_CheckInReservation = __commonJS({
|
|
342
|
-
"src/Commands/CheckInReservation.js"(exports, module) {
|
|
343
|
-
var Command = require_Command();
|
|
344
|
-
var RequestError = require_RequestError();
|
|
345
|
-
var CheckInReservation = class extends Command {
|
|
346
|
-
static {
|
|
347
|
-
__name(this, "CheckInReservation");
|
|
348
|
-
}
|
|
349
|
-
constructor({ id, ...rest }) {
|
|
350
|
-
if (!id) throw new RequestError("reservation id is required");
|
|
351
|
-
super({ id, ...rest });
|
|
352
|
-
}
|
|
353
|
-
get name() {
|
|
354
|
-
return "CheckInReservation";
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
module.exports = CheckInReservation;
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
// src/Commands/CheckOutReservation.js
|
|
362
|
-
var require_CheckOutReservation = __commonJS({
|
|
363
|
-
"src/Commands/CheckOutReservation.js"(exports, module) {
|
|
364
|
-
var Command = require_Command();
|
|
365
|
-
var RequestError = require_RequestError();
|
|
366
|
-
var CheckOutReservation = class extends Command {
|
|
367
|
-
static {
|
|
368
|
-
__name(this, "CheckOutReservation");
|
|
369
|
-
}
|
|
370
|
-
constructor({ reservationId, userId, ...rest }) {
|
|
371
|
-
if (!reservationId) throw new RequestError("reservation id is required");
|
|
372
|
-
if (!userId) throw new RequestError("user id is required");
|
|
373
|
-
super({ reservationId, userId, ...rest });
|
|
374
|
-
}
|
|
375
|
-
get name() {
|
|
376
|
-
return "CheckOutReservation";
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
module.exports = CheckOutReservation;
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
// src/Commands/SendEmail.js
|
|
384
|
-
var require_SendEmail = __commonJS({
|
|
385
|
-
"src/Commands/SendEmail.js"(exports, module) {
|
|
386
|
-
var Command = require_Command();
|
|
387
|
-
var RequestError = require_RequestError();
|
|
388
|
-
var SendEmail = class extends Command {
|
|
389
|
-
static {
|
|
390
|
-
__name(this, "SendEmail");
|
|
391
|
-
}
|
|
392
|
-
constructor({ text, html, to, from, subject, ...rest }) {
|
|
393
|
-
if (!to) throw new RequestError("email to is required");
|
|
394
|
-
if (!from) throw new RequestError("email from is required");
|
|
395
|
-
if (!subject) throw new RequestError("email subject is required");
|
|
396
|
-
if (!text && !html)
|
|
397
|
-
throw new RequestError("email text or html is required");
|
|
398
|
-
super({ text, html, to, from, subject, ...rest });
|
|
399
|
-
}
|
|
400
|
-
get name() {
|
|
401
|
-
return "SendEmail";
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
module.exports = SendEmail;
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
|
|
408
|
-
// src/Commands/SendSMS.js
|
|
409
|
-
var require_SendSMS = __commonJS({
|
|
410
|
-
"src/Commands/SendSMS.js"(exports, module) {
|
|
411
|
-
var Command = require_Command();
|
|
412
|
-
var RequestError = require_RequestError();
|
|
413
|
-
var SendSMS = class extends Command {
|
|
414
|
-
static {
|
|
415
|
-
__name(this, "SendSMS");
|
|
416
|
-
}
|
|
417
|
-
constructor({ id, body, to, from, media, ...rest }) {
|
|
418
|
-
if (!body && !media)
|
|
419
|
-
throw new RequestError("sms body or media is required");
|
|
420
|
-
if (!to) throw new RequestError("sms to is required");
|
|
421
|
-
if (!from) throw new RequestError("sms from is required");
|
|
422
|
-
super({ id, body, to, from, media, ...rest });
|
|
423
|
-
}
|
|
424
|
-
get name() {
|
|
425
|
-
return "SendSMS";
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
module.exports = SendSMS;
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
// src/Errors/AuthenticationError.js
|
|
433
|
-
var require_AuthenticationError = __commonJS({
|
|
434
|
-
"src/Errors/AuthenticationError.js"(exports, module) {
|
|
435
|
-
var AppError = require_AppError();
|
|
436
|
-
module.exports = class AuthenticationError extends AppError {
|
|
437
|
-
static {
|
|
438
|
-
__name(this, "AuthenticationError");
|
|
439
|
-
}
|
|
440
|
-
constructor(message = "Authentication Error", options = {}) {
|
|
441
|
-
super(message, options);
|
|
442
|
-
this.statusCode = 401;
|
|
443
|
-
this.name = "AuthenticationError";
|
|
444
|
-
Object.setPrototypeOf(this, AuthenticationError.prototype);
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
// src/Errors/AuthorizationError.js
|
|
451
|
-
var require_AuthorizationError = __commonJS({
|
|
452
|
-
"src/Errors/AuthorizationError.js"(exports, module) {
|
|
453
|
-
var AppError = require_AppError();
|
|
454
|
-
module.exports = class AuthorizationError extends AppError {
|
|
455
|
-
static {
|
|
456
|
-
__name(this, "AuthorizationError");
|
|
457
|
-
}
|
|
458
|
-
constructor(message = "Authorization Error", options = {}) {
|
|
459
|
-
super(message, options);
|
|
460
|
-
this.statusCode = 403;
|
|
461
|
-
this.name = "AuthorizationError";
|
|
462
|
-
Object.setPrototypeOf(this, AuthorizationError.prototype);
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
|
|
468
|
-
// src/Errors/ConflictError.js
|
|
469
|
-
var require_ConflictError = __commonJS({
|
|
470
|
-
"src/Errors/ConflictError.js"(exports, module) {
|
|
471
|
-
var AppError = require_AppError();
|
|
472
|
-
module.exports = class ConflictError extends AppError {
|
|
473
|
-
static {
|
|
474
|
-
__name(this, "ConflictError");
|
|
475
|
-
}
|
|
476
|
-
constructor(message = "Bad Request", options = {}) {
|
|
477
|
-
super(message, options);
|
|
478
|
-
this.statusCode = 409;
|
|
479
|
-
this.name = "ConflictError";
|
|
480
|
-
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
|
|
486
|
-
// src/Errors/DeviceCommError.js
|
|
487
|
-
var require_DeviceCommError = __commonJS({
|
|
488
|
-
"src/Errors/DeviceCommError.js"(exports, module) {
|
|
489
|
-
var AppError = require_AppError();
|
|
490
|
-
module.exports = class DeviceCommError extends AppError {
|
|
491
|
-
static {
|
|
492
|
-
__name(this, "DeviceCommError");
|
|
493
|
-
}
|
|
494
|
-
constructor(message = "Device Communication Error", options = {}) {
|
|
495
|
-
super(message, options);
|
|
496
|
-
this.statusCode = 503;
|
|
497
|
-
this.name = "DeviceCommError";
|
|
498
|
-
Object.setPrototypeOf(this, DeviceCommError.prototype);
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
|
|
504
|
-
// src/Errors/LoginError.js
|
|
505
|
-
var require_LoginError = __commonJS({
|
|
506
|
-
"src/Errors/LoginError.js"(exports, module) {
|
|
507
|
-
var AppError = require_AppError();
|
|
508
|
-
module.exports = class LoginError extends AppError {
|
|
509
|
-
static {
|
|
510
|
-
__name(this, "LoginError");
|
|
511
|
-
}
|
|
512
|
-
constructor(message = "Invalid Login information provided", options = {}) {
|
|
513
|
-
super(message, options);
|
|
514
|
-
this.statusCode = 401;
|
|
515
|
-
this.name = "LoginError";
|
|
516
|
-
Object.setPrototypeOf(this, LoginError.prototype);
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
|
|
522
|
-
// src/Errors/NotFoundError.js
|
|
523
|
-
var require_NotFoundError = __commonJS({
|
|
524
|
-
"src/Errors/NotFoundError.js"(exports, module) {
|
|
525
|
-
var AppError = require_AppError();
|
|
526
|
-
module.exports = class NotFoundError extends AppError {
|
|
527
|
-
static {
|
|
528
|
-
__name(this, "NotFoundError");
|
|
529
|
-
}
|
|
530
|
-
constructor(message = "Resource Not Found", options = {}) {
|
|
531
|
-
super(message, options);
|
|
532
|
-
this.statusCode = 404;
|
|
533
|
-
this.name = "NotFoundError";
|
|
534
|
-
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
// src/Errors/SystemCommError.js
|
|
541
|
-
var require_SystemCommError = __commonJS({
|
|
542
|
-
"src/Errors/SystemCommError.js"(exports, module) {
|
|
543
|
-
var AppError = require_AppError();
|
|
544
|
-
module.exports = class SystemCommError extends AppError {
|
|
545
|
-
static {
|
|
546
|
-
__name(this, "SystemCommError");
|
|
547
|
-
}
|
|
548
|
-
constructor(message = "System Communication Error", options = {}) {
|
|
549
|
-
super(message, options);
|
|
550
|
-
this.statusCode = 503;
|
|
551
|
-
this.name = "SystemCommError";
|
|
552
|
-
Object.setPrototypeOf(this, SystemCommError.prototype);
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
// src/Errors/TokenExpiredError.js
|
|
559
|
-
var require_TokenExpiredError = __commonJS({
|
|
560
|
-
"src/Errors/TokenExpiredError.js"(exports, module) {
|
|
561
|
-
var AppError = require_AppError();
|
|
562
|
-
module.exports = class TokenExpiredError extends AppError {
|
|
563
|
-
static {
|
|
564
|
-
__name(this, "TokenExpiredError");
|
|
565
|
-
}
|
|
566
|
-
constructor(message = "Token Expired", options = {}) {
|
|
567
|
-
super(message, options);
|
|
568
|
-
this.statusCode = 401;
|
|
569
|
-
this.name = "TokenExpiredError";
|
|
570
|
-
Object.setPrototypeOf(this, TokenExpiredError.prototype);
|
|
571
|
-
}
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
});
|
|
575
|
-
|
|
576
|
-
// src/Errors/UnprocessableRequestError.js
|
|
577
|
-
var require_UnprocessableRequestError = __commonJS({
|
|
578
|
-
"src/Errors/UnprocessableRequestError.js"(exports, module) {
|
|
579
|
-
var AppError = require_AppError();
|
|
580
|
-
module.exports = class UnprocessableRequestError extends AppError {
|
|
581
|
-
static {
|
|
582
|
-
__name(this, "UnprocessableRequestError");
|
|
583
|
-
}
|
|
584
|
-
constructor(message = "Unprocessable Request Error", options = {}) {
|
|
585
|
-
super(message, options);
|
|
586
|
-
this.statusCode = 422;
|
|
587
|
-
this.name = "UnprocessableRequestError";
|
|
588
|
-
Object.setPrototypeOf(this, UnprocessableRequestError.prototype);
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
// src/Errors/ValidationError.js
|
|
595
|
-
var require_ValidationError = __commonJS({
|
|
596
|
-
"src/Errors/ValidationError.js"(exports, module) {
|
|
597
|
-
var AppError = require_AppError();
|
|
598
|
-
module.exports = class ValidationError extends AppError {
|
|
599
|
-
static {
|
|
600
|
-
__name(this, "ValidationError");
|
|
601
|
-
}
|
|
602
|
-
constructor(message = "Validation Error", options = {}) {
|
|
603
|
-
super(message, options);
|
|
604
|
-
this.statusCode = 400;
|
|
605
|
-
this.name = "ValidationError";
|
|
606
|
-
Object.setPrototypeOf(this, ValidationError.prototype);
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
|
|
612
|
-
// src/Errors/index.js
|
|
613
|
-
var require_Errors = __commonJS({
|
|
614
|
-
"src/Errors/index.js"(exports, module) {
|
|
615
|
-
var Errors = {
|
|
616
|
-
AppError: require_AppError(),
|
|
617
|
-
AuthenticationError: require_AuthenticationError(),
|
|
618
|
-
AuthorizationError: require_AuthorizationError(),
|
|
619
|
-
ConflictError: require_ConflictError(),
|
|
620
|
-
DeviceCommError: require_DeviceCommError(),
|
|
621
|
-
LoginError: require_LoginError(),
|
|
622
|
-
NotFoundError: require_NotFoundError(),
|
|
623
|
-
RequestError: require_RequestError(),
|
|
624
|
-
SystemCommError: require_SystemCommError(),
|
|
625
|
-
TokenExpiredError: require_TokenExpiredError(),
|
|
626
|
-
UnprocessableRequestError: require_UnprocessableRequestError(),
|
|
627
|
-
ValidationError: require_ValidationError()
|
|
628
|
-
};
|
|
629
|
-
module.exports = Errors;
|
|
630
|
-
}
|
|
631
|
-
});
|
|
632
|
-
|
|
633
|
-
// src/Commands/GetReservations.js
|
|
634
|
-
var require_GetReservations = __commonJS({
|
|
635
|
-
"src/Commands/GetReservations.js"(exports, module) {
|
|
636
|
-
var { RequestError } = require_Errors();
|
|
637
|
-
var Command = require_Command();
|
|
638
|
-
var GetReservations = class extends Command {
|
|
639
|
-
static {
|
|
640
|
-
__name(this, "GetReservations");
|
|
641
|
-
}
|
|
642
|
-
constructor(options) {
|
|
643
|
-
if (!options) throw new RequestError("options are required");
|
|
644
|
-
const { id, startDate, endDate, status, ...rest } = options;
|
|
645
|
-
super({ id, startDate, endDate, status, ...rest });
|
|
646
|
-
}
|
|
647
|
-
get name() {
|
|
648
|
-
return "GetReservations";
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
module.exports = GetReservations;
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
|
-
|
|
655
|
-
// src/Commands/GetReservationSpaceCategoryAvailabilities.js
|
|
656
|
-
var require_GetReservationSpaceCategoryAvailabilities = __commonJS({
|
|
657
|
-
"src/Commands/GetReservationSpaceCategoryAvailabilities.js"(exports, module) {
|
|
658
|
-
var { RequestError } = require_Errors();
|
|
659
|
-
var Command = require_Command();
|
|
660
|
-
var GetReservationSpaceCategoryAvailabilities = class extends Command {
|
|
661
|
-
static {
|
|
662
|
-
__name(this, "GetReservationSpaceCategoryAvailabilities");
|
|
663
|
-
}
|
|
664
|
-
constructor(options) {
|
|
665
|
-
if (!options) throw new RequestError("options are required");
|
|
666
|
-
const { id, ...rest } = options;
|
|
667
|
-
super({ id, ...rest });
|
|
668
|
-
}
|
|
669
|
-
get name() {
|
|
670
|
-
return "GetReservationSpaceCategoryAvailabilities";
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
module.exports = GetReservationSpaceCategoryAvailabilities;
|
|
674
|
-
}
|
|
675
|
-
});
|
|
676
|
-
|
|
677
|
-
// src/Commands/GetRooms.js
|
|
678
|
-
var require_GetRooms = __commonJS({
|
|
679
|
-
"src/Commands/GetRooms.js"(exports, module) {
|
|
680
|
-
var Command = require_Command();
|
|
681
|
-
var GetRooms = class extends Command {
|
|
682
|
-
static {
|
|
683
|
-
__name(this, "GetRooms");
|
|
684
|
-
}
|
|
685
|
-
constructor({
|
|
686
|
-
id,
|
|
687
|
-
types,
|
|
688
|
-
categories,
|
|
689
|
-
startDate,
|
|
690
|
-
endDate,
|
|
691
|
-
serviceStatus,
|
|
692
|
-
housekeepingStatus,
|
|
693
|
-
...rest
|
|
694
|
-
}) {
|
|
695
|
-
super({
|
|
696
|
-
id,
|
|
697
|
-
types,
|
|
698
|
-
categories,
|
|
699
|
-
startDate,
|
|
700
|
-
endDate,
|
|
701
|
-
serviceStatus,
|
|
702
|
-
housekeepingStatus,
|
|
703
|
-
...rest
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
get name() {
|
|
707
|
-
return "GetRooms";
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
|
-
module.exports = GetRooms;
|
|
711
|
-
}
|
|
712
|
-
});
|
|
713
|
-
|
|
714
|
-
// src/Commands/GetCategories.js
|
|
715
|
-
var require_GetCategories = __commonJS({
|
|
716
|
-
"src/Commands/GetCategories.js"(exports, module) {
|
|
717
|
-
var Command = require_Command();
|
|
718
|
-
var GetCategories = class extends Command {
|
|
719
|
-
static {
|
|
720
|
-
__name(this, "GetCategories");
|
|
721
|
-
}
|
|
722
|
-
constructor({ id, ...rest }) {
|
|
723
|
-
super({ id, ...rest });
|
|
724
|
-
}
|
|
725
|
-
get name() {
|
|
726
|
-
return "GetCategories";
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
module.exports = GetCategories;
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
|
|
733
|
-
// src/Commands/CreateShortLink.js
|
|
734
|
-
var require_CreateShortLink = __commonJS({
|
|
735
|
-
"src/Commands/CreateShortLink.js"(exports, module) {
|
|
736
|
-
var Command = require_Command();
|
|
737
|
-
var RequestError = require_RequestError();
|
|
738
|
-
var CreateShortLink = class extends Command {
|
|
739
|
-
static {
|
|
740
|
-
__name(this, "CreateShortLink");
|
|
741
|
-
}
|
|
742
|
-
constructor({ title, destination, ...rest }) {
|
|
743
|
-
if (!title) throw new RequestError("title is required");
|
|
744
|
-
if (!destination) throw new RequestError("destination to is required");
|
|
745
|
-
super({ title, destination, ...rest });
|
|
746
|
-
}
|
|
747
|
-
get name() {
|
|
748
|
-
return "CreateShortLink";
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
module.exports = CreateShortLink;
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
// src/Commands/UpdateReservation.js
|
|
756
|
-
var require_UpdateReservation = __commonJS({
|
|
757
|
-
"src/Commands/UpdateReservation.js"(exports, module) {
|
|
758
|
-
var Command = require_Command();
|
|
759
|
-
var RequestError = require_RequestError();
|
|
760
|
-
var UpdateReservation = class extends Command {
|
|
761
|
-
static {
|
|
762
|
-
__name(this, "UpdateReservation");
|
|
763
|
-
}
|
|
764
|
-
constructor({ id, ...rest }) {
|
|
765
|
-
if (!id) throw new RequestError("document type is required");
|
|
766
|
-
super({ id, ...rest });
|
|
767
|
-
}
|
|
768
|
-
get name() {
|
|
769
|
-
return "UpdateReservation";
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
module.exports = UpdateReservation;
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
// src/Commands/UpdateUser.js
|
|
777
|
-
var require_UpdateUser = __commonJS({
|
|
778
|
-
"src/Commands/UpdateUser.js"(exports, module) {
|
|
779
|
-
var Command = require_Command();
|
|
780
|
-
var RequestError = require_RequestError();
|
|
781
|
-
var UpdateUser = class extends Command {
|
|
782
|
-
static {
|
|
783
|
-
__name(this, "UpdateUser");
|
|
784
|
-
}
|
|
785
|
-
constructor({
|
|
786
|
-
id,
|
|
787
|
-
email,
|
|
788
|
-
phone,
|
|
789
|
-
identification,
|
|
790
|
-
address,
|
|
791
|
-
note,
|
|
792
|
-
nationality,
|
|
793
|
-
file,
|
|
794
|
-
payment,
|
|
795
|
-
...rest
|
|
796
|
-
}) {
|
|
797
|
-
if (!id) throw new RequestError("document type is required");
|
|
798
|
-
super({
|
|
799
|
-
id,
|
|
800
|
-
email,
|
|
801
|
-
phone,
|
|
802
|
-
identification,
|
|
803
|
-
address,
|
|
804
|
-
note,
|
|
805
|
-
nationality,
|
|
806
|
-
file,
|
|
807
|
-
payment,
|
|
808
|
-
...rest
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
get name() {
|
|
812
|
-
return "UpdateUser";
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
|
-
module.exports = UpdateUser;
|
|
816
|
-
}
|
|
817
|
-
});
|
|
818
|
-
|
|
819
|
-
// src/Commands/GetMobileKey.js
|
|
820
|
-
var require_GetMobileKey = __commonJS({
|
|
821
|
-
"src/Commands/GetMobileKey.js"(exports, module) {
|
|
822
|
-
var Command = require_Command();
|
|
823
|
-
var GetMobileKey = class extends Command {
|
|
824
|
-
static {
|
|
825
|
-
__name(this, "GetMobileKey");
|
|
826
|
-
}
|
|
827
|
-
constructor({
|
|
828
|
-
id,
|
|
829
|
-
phone,
|
|
830
|
-
beginDateTime,
|
|
831
|
-
endDateTime,
|
|
832
|
-
keyToReplace,
|
|
833
|
-
...rest
|
|
834
|
-
}) {
|
|
835
|
-
super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });
|
|
836
|
-
}
|
|
837
|
-
get name() {
|
|
838
|
-
return "GetMobileKey";
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
module.exports = GetMobileKey;
|
|
842
|
-
}
|
|
843
|
-
});
|
|
844
|
-
|
|
845
|
-
// src/Commands/CreateImageUploadEndpoint.js
|
|
846
|
-
var require_CreateImageUploadEndpoint = __commonJS({
|
|
847
|
-
"src/Commands/CreateImageUploadEndpoint.js"(exports, module) {
|
|
848
|
-
var Command = require_Command();
|
|
849
|
-
var CreateImageUploadEndpoint = class extends Command {
|
|
850
|
-
static {
|
|
851
|
-
__name(this, "CreateImageUploadEndpoint");
|
|
852
|
-
}
|
|
853
|
-
constructor({ id, expires, ...rest }) {
|
|
854
|
-
super({ id, expires, ...rest });
|
|
855
|
-
}
|
|
856
|
-
get name() {
|
|
857
|
-
return "CreateImageUploadEndpoint";
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
module.exports = CreateImageUploadEndpoint;
|
|
861
|
-
}
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
// src/Commands/UploadImage.js
|
|
865
|
-
var require_UploadImage = __commonJS({
|
|
866
|
-
"src/Commands/UploadImage.js"(exports, module) {
|
|
867
|
-
var Command = require_Command();
|
|
868
|
-
var UploadImage = class extends Command {
|
|
869
|
-
static {
|
|
870
|
-
__name(this, "UploadImage");
|
|
871
|
-
}
|
|
872
|
-
constructor({ id, url, file, ...rest }) {
|
|
873
|
-
super({ id, url, file, ...rest });
|
|
874
|
-
}
|
|
875
|
-
get name() {
|
|
876
|
-
return "UploadImage";
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
module.exports = UploadImage;
|
|
880
|
-
}
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
// src/Commands/GetProducts.js
|
|
884
|
-
var require_GetProducts = __commonJS({
|
|
885
|
-
"src/Commands/GetProducts.js"(exports, module) {
|
|
886
|
-
var Command = require_Command();
|
|
887
|
-
var GetProducts = class extends Command {
|
|
888
|
-
static {
|
|
889
|
-
__name(this, "GetProducts");
|
|
890
|
-
}
|
|
891
|
-
constructor({ id, externalSystemId, ...rest }) {
|
|
892
|
-
super({ id, externalSystemId, ...rest });
|
|
893
|
-
}
|
|
894
|
-
get name() {
|
|
895
|
-
return "GetProducts";
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
module.exports = GetProducts;
|
|
899
|
-
}
|
|
900
|
-
});
|
|
901
|
-
|
|
902
|
-
// src/Commands/SellProducts.js
|
|
903
|
-
var require_SellProducts = __commonJS({
|
|
904
|
-
"src/Commands/SellProducts.js"(exports, module) {
|
|
905
|
-
var Command = require_Command();
|
|
906
|
-
var SellProducts = class extends Command {
|
|
907
|
-
static {
|
|
908
|
-
__name(this, "SellProducts");
|
|
909
|
-
}
|
|
910
|
-
constructor({ reservationId, userId, products, ...rest }) {
|
|
911
|
-
super({ reservationId, userId, products, ...rest });
|
|
912
|
-
}
|
|
913
|
-
get name() {
|
|
914
|
-
return "SellProducts";
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
module.exports = SellProducts;
|
|
918
|
-
}
|
|
919
|
-
});
|
|
920
|
-
|
|
921
|
-
// src/Commands/index.js
|
|
922
|
-
var require_Commands = __commonJS({
|
|
923
|
-
"src/Commands/index.js"(exports, module) {
|
|
924
|
-
var Command = require_Command();
|
|
925
|
-
var SetScene = require_SetScene();
|
|
926
|
-
var SetAlarm = require_SetAlarm();
|
|
927
|
-
var SetDimmer = require_SetDimmer();
|
|
928
|
-
var SetSwitch = require_SetSwitch();
|
|
929
|
-
var SetThermostat = require_SetThermostat();
|
|
930
|
-
var SetLock = require_SetLock();
|
|
931
|
-
var SetWindowCovering = require_SetWindowCovering();
|
|
932
|
-
var SetCourtesy = require_SetCourtesy();
|
|
933
|
-
var SetMedia = require_SetMedia();
|
|
934
|
-
var GetUsers = require_GetUsers();
|
|
935
|
-
var OCRDocument = require_OCRDocument();
|
|
936
|
-
var CheckInReservation = require_CheckInReservation();
|
|
937
|
-
var CheckOutReservation = require_CheckOutReservation();
|
|
938
|
-
var SendEmail = require_SendEmail();
|
|
939
|
-
var SendSMS = require_SendSMS();
|
|
940
|
-
var GetReservations = require_GetReservations();
|
|
941
|
-
var GetReservationSpaceCategoryAvailabilities = require_GetReservationSpaceCategoryAvailabilities();
|
|
942
|
-
var GetRooms = require_GetRooms();
|
|
943
|
-
var GetCategories = require_GetCategories();
|
|
944
|
-
var CreateShortLink = require_CreateShortLink();
|
|
945
|
-
var UpdateReservation = require_UpdateReservation();
|
|
946
|
-
var UpdateUser = require_UpdateUser();
|
|
947
|
-
var GetMobileKey = require_GetMobileKey();
|
|
948
|
-
var CreateImageUploadEndpoint = require_CreateImageUploadEndpoint();
|
|
949
|
-
var UploadImage = require_UploadImage();
|
|
950
|
-
var GetProducts = require_GetProducts();
|
|
951
|
-
var SellProducts = require_SellProducts();
|
|
952
|
-
module.exports = {
|
|
953
|
-
Command,
|
|
954
|
-
SetScene,
|
|
955
|
-
SetAlarm,
|
|
956
|
-
SetDimmer,
|
|
957
|
-
SetSwitch,
|
|
958
|
-
SetThermostat,
|
|
959
|
-
SetLock,
|
|
960
|
-
SetWindowCovering,
|
|
961
|
-
SetCourtesy,
|
|
962
|
-
SetMedia,
|
|
963
|
-
OCRDocument,
|
|
964
|
-
GetUsers,
|
|
965
|
-
CheckInReservation,
|
|
966
|
-
CheckOutReservation,
|
|
967
|
-
SendSMS,
|
|
968
|
-
SendEmail,
|
|
969
|
-
GetReservations,
|
|
970
|
-
GetReservationSpaceCategoryAvailabilities,
|
|
971
|
-
GetRooms,
|
|
972
|
-
GetCategories,
|
|
973
|
-
CreateShortLink,
|
|
974
|
-
UpdateReservation,
|
|
975
|
-
UpdateUser,
|
|
976
|
-
GetMobileKey,
|
|
977
|
-
CreateImageUploadEndpoint,
|
|
978
|
-
UploadImage,
|
|
979
|
-
GetProducts,
|
|
980
|
-
SellProducts
|
|
981
|
-
};
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
export default require_Commands();
|
|
985
|
-
//# sourceMappingURL=Commands.js.map
|