@kohost/api-client 1.0.0-beta.5 → 3.0.0-beta.100
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 +71 -0
- package/dist/cjs/AMQPClient/index.js +296 -0
- package/dist/cjs/{Client.js → Client/index.js} +2729 -1137
- package/dist/cjs/Commands/CheckInReservationCommand.js +19 -0
- package/dist/cjs/Commands/CheckOutReservationCommand.js +20 -0
- package/dist/cjs/Commands/Command.js +34 -0
- package/dist/cjs/Commands/CreateImageUploadEndpointCommand.js +17 -0
- package/dist/cjs/Commands/CreateShortLinkCommand.js +20 -0
- package/dist/cjs/Commands/DiscoverCategoriesCommand.js +20 -0
- package/dist/cjs/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js +20 -0
- package/dist/cjs/Commands/DiscoverReservationsCommand.js +20 -0
- package/dist/cjs/Commands/DiscoverRoomsCommand.js +37 -0
- package/dist/cjs/Commands/DiscoverUsersCommand.js +19 -0
- package/dist/cjs/Commands/GetMobileKeyCommand.js +24 -0
- package/dist/cjs/Commands/GetProductsCommand.js +17 -0
- package/dist/cjs/Commands/OCRDocumentCommand.js +15 -0
- package/dist/cjs/Commands/SellProductsCommand.js +17 -0
- package/dist/cjs/Commands/SendEmailCommand.js +24 -0
- package/dist/cjs/Commands/SendSMSCommand.js +22 -0
- package/dist/cjs/Commands/SetAlarmCommand.js +17 -0
- package/dist/cjs/Commands/SetCourtesyCommand.js +17 -0
- package/dist/cjs/Commands/SetDimmerCommand.js +17 -0
- package/dist/cjs/Commands/SetLockCommand.js +17 -0
- package/dist/cjs/Commands/SetMediaCommand.js +17 -0
- package/dist/cjs/Commands/SetSceneCommand.js +17 -0
- package/dist/cjs/Commands/SetSwitchCommand.js +17 -0
- package/dist/cjs/Commands/SetThermostatCommand.js +17 -0
- package/dist/cjs/Commands/SetWindowCoveringCommand.js +17 -0
- package/dist/cjs/Commands/UpdateReservationCommand.js +19 -0
- package/dist/cjs/Commands/UpdateUserCommand.js +41 -0
- package/dist/cjs/Commands/UploadImageCommand.js +17 -0
- package/dist/cjs/Commands/index.js +57 -0
- package/dist/cjs/Errors/AppError.js +8 -0
- package/dist/cjs/Errors/AuthenticationError.js +9 -0
- package/dist/cjs/Errors/AuthorizationError.js +9 -0
- package/dist/cjs/Errors/ConflictError.js +9 -0
- package/dist/cjs/Errors/DeviceCommError.js +9 -0
- package/dist/cjs/Errors/LoginError.js +9 -0
- package/dist/cjs/Errors/NotFoundError.js +9 -0
- package/dist/cjs/Errors/RequestError.js +9 -0
- package/dist/cjs/Errors/SystemCommError.js +9 -0
- package/dist/cjs/Errors/TokenExpiredError.js +9 -0
- package/dist/cjs/Errors/UnprocessableRequestError.js +9 -0
- package/dist/cjs/Errors/ValidationError.js +9 -0
- package/dist/cjs/Errors/index.js +16 -0
- package/dist/cjs/Events/ApplicationInUseEvent.js +25 -0
- package/dist/cjs/Events/ApplicationOutOfUseEvent.js +25 -0
- package/dist/cjs/Events/EmailEvent.js +18 -0
- package/dist/cjs/Events/Event.js +55 -0
- package/dist/cjs/Events/SMSEvent.js +18 -0
- package/dist/cjs/Events/SMSSentEvent.js +17 -0
- package/dist/cjs/Events/SceneSetEvent.js +17 -0
- package/dist/cjs/Events/ShortLinkCreatedEvent.js +17 -0
- package/dist/cjs/Events/SystemAlarmUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemCameraUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemCategoryUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemCourtesyUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemCredentialUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemDimmerUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemEntityDeletedEvent.js +17 -0
- package/dist/cjs/Events/SystemGatewayUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemLockUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemMediaSourceUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemMotionSensorUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemOrganizationUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemProductUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemPropertyUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemReservationUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemSceneControllerUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemSpaceUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemSwitchUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemThermostatUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemUserUpdatedEvent.js +17 -0
- package/dist/cjs/Events/SystemWindowCoveringUpdatedEvent.js +17 -0
- package/dist/cjs/Events/index.js +65 -0
- package/dist/cjs/Models/Alarm.js +35 -0
- package/dist/cjs/Models/Announcement.js +34 -0
- package/dist/cjs/Models/Camera.js +35 -0
- package/dist/cjs/Models/Category.js +36 -0
- package/dist/cjs/Models/Courtesy.js +39 -0
- package/dist/cjs/Models/Credential.js +35 -0
- package/dist/cjs/Models/DeviceRouter.js +36 -0
- package/dist/cjs/Models/Dimmer.js +61 -0
- package/dist/cjs/Models/DiscoveredDevice.js +36 -0
- package/dist/cjs/Models/EmailMessage.js +35 -0
- package/dist/cjs/Models/EnergyReport.js +35 -0
- package/dist/cjs/Models/EnergyReportShard.js +35 -0
- package/dist/cjs/Models/Entity.js +96 -0
- package/dist/cjs/Models/Gateway.js +35 -0
- package/dist/cjs/Models/Identification.js +38 -0
- package/dist/cjs/Models/Lock.js +39 -0
- package/dist/cjs/Models/MediaFile.js +48 -0
- package/dist/cjs/Models/MediaSource.js +35 -0
- package/dist/cjs/Models/MotionSensor.js +35 -0
- package/dist/cjs/Models/Order.js +97 -0
- package/dist/cjs/Models/Organization.js +34 -0
- package/dist/cjs/Models/Product.js +35 -0
- package/dist/cjs/Models/Property.js +34 -0
- package/dist/cjs/Models/Reservation.js +114 -0
- package/dist/cjs/Models/Room.js +217 -0
- package/dist/cjs/Models/Scene.js +169 -0
- package/dist/cjs/Models/ShortLink.js +35 -0
- package/dist/cjs/Models/SmsMessage.js +35 -0
- package/dist/cjs/Models/Space.js +97 -0
- package/dist/cjs/Models/Switch.js +39 -0
- package/dist/cjs/Models/SystemUser.js +55 -0
- package/dist/cjs/Models/Thermostat.js +86 -0
- package/dist/cjs/Models/Ticket.js +55 -0
- package/dist/cjs/Models/User.js +115 -0
- package/dist/cjs/Models/WindowCovering.js +55 -0
- package/dist/cjs/Models/index.js +77 -0
- package/dist/cjs/SocketIoClient/index.js +74 -0
- package/dist/cjs/defs/deviceTypes.js +15 -0
- package/dist/cjs/defs/formalDeviceTypes.js +6 -0
- package/dist/cjs/defs/index.js +11 -0
- package/dist/cjs/{index.cjs.js → index.js} +7 -1
- package/dist/cjs/schemas/AlarmSchema.d.ts +158 -0
- package/dist/cjs/schemas/AnnouncementSchema.d.ts +61 -0
- package/dist/cjs/schemas/CameraSchema.d.ts +149 -0
- package/dist/cjs/schemas/CategorySchema.d.ts +82 -0
- package/dist/cjs/schemas/CourtesySchema.d.ts +148 -0
- package/dist/cjs/schemas/CredentialSchema.d.ts +53 -0
- package/dist/cjs/schemas/DefinitionsSchema.d.ts +10 -0
- package/dist/cjs/schemas/DeviceRouterSchema.d.ts +23 -0
- package/dist/cjs/schemas/DimmerSchema.d.ts +147 -0
- package/dist/cjs/schemas/DiscoveredDeviceSchema.d.ts +43 -0
- package/dist/cjs/schemas/EmailMessageSchema.d.ts +49 -0
- package/dist/cjs/schemas/EnergyReportSchema.d.ts +57 -0
- package/dist/cjs/schemas/EnergyReportShardSchema.d.ts +61 -0
- package/dist/cjs/schemas/GatewaySchema.d.ts +145 -0
- package/dist/cjs/schemas/IdentificationSchema.d.ts +45 -0
- package/dist/cjs/schemas/LockSchema.d.ts +152 -0
- package/dist/cjs/schemas/MediaFileSchema.d.ts +43 -0
- package/dist/cjs/schemas/MediaSourceSchema.d.ts +244 -0
- package/dist/cjs/schemas/MotionSensorSchema.d.ts +143 -0
- package/dist/cjs/schemas/OrderSchema.d.ts +91 -0
- package/dist/cjs/schemas/OrganizationSchema.d.ts +34 -0
- package/dist/cjs/schemas/PaymentSchema.d.ts +33 -0
- package/dist/cjs/schemas/ProductSchema.d.ts +66 -0
- package/dist/cjs/schemas/PropertySchema.d.ts +144 -0
- package/dist/cjs/schemas/ReservationSchema.d.ts +119 -0
- package/dist/cjs/schemas/RoomSchema.d.ts +1103 -0
- package/dist/cjs/schemas/SceneSchema.d.ts +57 -0
- package/dist/cjs/schemas/ShortLinkSchema.d.ts +20 -0
- package/dist/cjs/schemas/SmsMessageSchema.d.ts +40 -0
- package/dist/cjs/schemas/SpaceSchema.d.ts +73 -0
- package/dist/cjs/schemas/SwitchSchema.d.ts +148 -0
- package/dist/cjs/schemas/SystemUserSchema.d.ts +194 -0
- package/dist/cjs/schemas/ThermostatSchema.d.ts +178 -0
- package/dist/cjs/schemas/TicketSchema.d.ts +90 -0
- package/dist/cjs/schemas/UserSchema.d.ts +287 -0
- package/dist/cjs/schemas/WindowCoveringSchema.d.ts +147 -0
- package/dist/cjs/schemas/alarm.json +81 -0
- package/dist/cjs/schemas/announcement.json +47 -0
- package/dist/cjs/schemas/camera.json +50 -0
- package/dist/cjs/schemas/category.json +42 -0
- package/dist/cjs/schemas/courtesy.json +48 -0
- package/dist/cjs/schemas/credential.json +51 -0
- package/dist/cjs/schemas/definitions.json +223 -0
- package/dist/cjs/schemas/deviceRouter.json +28 -0
- package/dist/cjs/schemas/dimmer.json +42 -0
- package/dist/cjs/schemas/discoveredDevice.json +35 -0
- package/dist/cjs/schemas/emailMessage.json +71 -0
- package/dist/cjs/schemas/energyReport.json +86 -0
- package/dist/cjs/schemas/energyReportShard.json +75 -0
- package/dist/cjs/schemas/gateway.json +34 -0
- package/dist/cjs/schemas/identification.json +61 -0
- package/dist/cjs/schemas/lock.json +50 -0
- package/dist/cjs/schemas/mediaFile.json +70 -0
- package/dist/cjs/schemas/mediaSource.json +187 -0
- package/dist/cjs/schemas/motionSensor.json +32 -0
- package/dist/cjs/schemas/order.json +182 -0
- package/dist/cjs/schemas/organization.json +40 -0
- package/dist/cjs/schemas/payment.json +47 -0
- package/dist/cjs/schemas/product.json +41 -0
- package/dist/cjs/schemas/property.json +347 -0
- package/dist/cjs/schemas/reservation.json +137 -0
- package/dist/cjs/schemas/room.json +98 -0
- package/dist/cjs/schemas/scene.json +121 -0
- package/dist/cjs/schemas/shortLink.json +30 -0
- package/dist/cjs/schemas/smsMessage.json +61 -0
- package/dist/cjs/schemas/space.json +129 -0
- package/dist/cjs/schemas/switch.json +44 -0
- package/dist/cjs/schemas/systemUser.json +98 -0
- package/dist/cjs/schemas/thermostat.json +150 -0
- package/dist/cjs/schemas/ticket.json +181 -0
- package/dist/cjs/schemas/user.json +170 -0
- package/dist/cjs/schemas/windowCovering.json +42 -0
- package/dist/cjs/utils/errorFactory.js +8 -0
- package/dist/cjs/utils/eventFactory.js +10 -0
- package/dist/cjs/utils/getDeviceTypes.js +7 -0
- package/dist/cjs/utils/getFormalDeviceType.js +5 -0
- package/dist/cjs/utils/index.js +11 -0
- package/dist/cjs/utils/schema.js +25 -0
- package/dist/esm/Client.js +3112 -1369
- package/dist/esm/Client.js.map +4 -4
- package/dist/esm/Commands.js +551 -97
- package/dist/esm/Commands.js.map +3 -3
- package/dist/esm/Errors.js +53 -0
- package/dist/esm/Errors.js.map +3 -3
- package/dist/esm/Events.js +425 -64
- package/dist/esm/Events.js.map +3 -3
- package/dist/esm/Models.js +3737 -3621
- package/dist/esm/Models.js.map +4 -4
- package/dist/esm/SocketIoClient.js +4846 -0
- package/dist/esm/SocketIoClient.js.map +7 -0
- package/dist/esm/defs.js +444 -301
- package/dist/esm/defs.js.map +4 -4
- package/dist/esm/index.js +18 -11
- package/dist/esm/utils.js +804 -87
- package/dist/esm/utils.js.map +3 -3
- package/dist/useCases/AddDefaultScenesToRooms.js +2 -2
- package/dist/useCases/AddScenesToRoom.js +2 -2
- package/dist/useCases/AdminUpdateCustomer.js +32 -0
- package/dist/useCases/AssignSpaceToReservation.js +32 -0
- package/dist/useCases/BatchNotifyCheckIn.js +32 -0
- package/dist/useCases/BatchNotifyCheckOut.js +32 -0
- package/dist/useCases/BatchNotifyMissedCheckOut.js +32 -0
- package/dist/useCases/BatchNotifyPreArrival.js +2 -2
- package/dist/useCases/CheckInReservation.js +2 -2
- package/dist/useCases/CheckOutReservation.js +32 -0
- package/dist/useCases/CheckVerificationCode.js +2 -2
- package/dist/useCases/CreateAlarm.js +2 -2
- package/dist/useCases/{LoginGateway.js → CreateAnnouncement.js} +3 -3
- package/dist/useCases/CreateCamera.js +2 -2
- package/dist/useCases/{AdminCreateProperty.js → CreateCateory.js} +3 -3
- package/dist/useCases/CreateCourtesy.js +2 -2
- package/dist/useCases/CreateDefaultScenes.js +2 -2
- package/dist/useCases/CreateDimmer.js +2 -2
- package/dist/useCases/CreateDiscoveredDevice.js +2 -2
- package/dist/useCases/CreateDiscoveredDeviceAssociation.js +2 -2
- package/dist/useCases/CreateImageUploadEndpoint.js +32 -0
- package/dist/useCases/CreateLock.js +2 -2
- package/dist/useCases/{CreateSource.js → CreateMediaSource.js} +3 -3
- package/dist/useCases/CreateOrganization.js +32 -0
- package/dist/useCases/{CreateIntegration.js → CreateProperty.js} +3 -3
- package/dist/useCases/CreateReservation.js +2 -2
- package/dist/useCases/CreateRoom.js +2 -2
- package/dist/useCases/CreateRoomInSpace.js +2 -2
- package/dist/useCases/CreateSpace.js +2 -2
- package/dist/useCases/CreateSwitch.js +2 -2
- package/dist/useCases/CreateThermostat.js +2 -2
- package/dist/useCases/CreateTicket.js +2 -2
- package/dist/useCases/CreateTicketMessage.js +2 -2
- package/dist/useCases/CreateUser.js +2 -2
- package/dist/useCases/CreateWindowCovering.js +2 -2
- package/dist/useCases/DeleteAlarm.js +2 -2
- package/dist/useCases/DeleteAnnouncement.js +32 -0
- package/dist/useCases/DeleteCamera.js +2 -2
- package/dist/useCases/DeleteCategory.js +32 -0
- package/dist/useCases/DeleteCourtesy.js +2 -2
- package/dist/useCases/DeleteDimmer.js +2 -2
- package/dist/useCases/DeleteDiscoveredDevice.js +2 -2
- package/dist/useCases/DeleteLock.js +2 -2
- package/dist/useCases/DeleteMediaFile.js +32 -0
- package/dist/useCases/{DeleteSource.js → DeleteMediaSource.js} +3 -3
- package/dist/useCases/DeleteReservation.js +2 -2
- package/dist/useCases/DeleteRoom.js +2 -2
- package/dist/useCases/DeleteSpace.js +2 -2
- package/dist/useCases/DeleteSwitch.js +2 -2
- package/dist/useCases/DeleteThermostat.js +2 -2
- package/dist/useCases/DeleteTicket.js +2 -2
- package/dist/useCases/DeleteUser.js +2 -2
- package/dist/useCases/DeleteWindowCovering.js +2 -2
- package/dist/useCases/DescribeAlarm.js +2 -2
- package/dist/useCases/DescribeAnnouncement.js +32 -0
- package/dist/useCases/DescribeCamera.js +2 -2
- package/dist/useCases/{AdminDescribeProperty.js → DescribeCategory.js} +3 -3
- package/dist/useCases/DescribeCourtesy.js +2 -2
- package/dist/useCases/DescribeDimmer.js +2 -2
- package/dist/useCases/DescribeDiscoveredDevice.js +2 -2
- package/dist/useCases/DescribeLock.js +2 -2
- package/dist/useCases/DescribeLockCredential.js +32 -0
- package/dist/useCases/{DescribeSource.js → DescribeMediaSource.js} +3 -3
- package/dist/useCases/DescribeMyAccessCredentials.js +32 -0
- package/dist/useCases/DescribeMyProperty.js +2 -2
- package/dist/useCases/DescribeOrganization.js +32 -0
- package/dist/useCases/{DescribeIntegration.js → DescribeProduct.js} +3 -3
- package/dist/useCases/{DescribeReservationCheckinStatus.js → DescribeProperty.js} +3 -3
- package/dist/useCases/DescribeReservation.js +2 -2
- package/dist/useCases/DescribeReservationEarlyCheckInProducts.js +32 -0
- package/dist/useCases/DescribeReservationLateCheckOutProducts.js +32 -0
- package/dist/useCases/DescribeReservationRoomUpgrades.js +32 -0
- package/dist/useCases/DescribeRoom.js +2 -2
- package/dist/useCases/DescribeSelf.js +2 -2
- package/dist/useCases/DescribeSpace.js +2 -2
- package/dist/useCases/DescribeSwitch.js +2 -2
- package/dist/useCases/DescribeThermostat.js +2 -2
- package/dist/useCases/DescribeTicket.js +2 -2
- package/dist/useCases/DescribeUser.js +2 -2
- package/dist/useCases/DescribeWindowCovering.js +2 -2
- package/dist/useCases/DiscoverReservations.js +2 -2
- package/dist/useCases/EmailUserAccountSetup.js +2 -2
- package/dist/useCases/ListAlarms.js +2 -2
- package/dist/useCases/ListAnnouncements.js +32 -0
- package/dist/useCases/ListCameras.js +2 -2
- package/dist/useCases/ListCategories.js +32 -0
- package/dist/useCases/ListCourtesy.js +2 -2
- package/dist/useCases/ListDimmers.js +2 -2
- package/dist/useCases/ListDiscoveredDevices.js +2 -2
- package/dist/useCases/ListLocks.js +2 -2
- package/dist/useCases/{ListSources.js → ListMediaSources.js} +3 -3
- package/dist/useCases/ListMyOrders.js +32 -0
- package/dist/useCases/ListMyReservations.js +2 -2
- package/dist/useCases/ListMySpaces.js +2 -2
- package/dist/useCases/ListMyTickets.js +32 -0
- package/dist/useCases/{AdminListCustomers.js → ListOrders.js} +3 -3
- package/dist/useCases/ListOrganizations.js +32 -0
- package/dist/useCases/ListProperties.js +32 -0
- package/dist/useCases/ListReservations.js +2 -2
- package/dist/useCases/ListRooms.js +2 -2
- package/dist/useCases/ListRoomsInSpace.js +2 -2
- package/dist/useCases/{AdminListProperties.js → ListScenes.js} +3 -3
- package/dist/useCases/ListSpaces.js +2 -2
- package/dist/useCases/ListSwitches.js +2 -2
- package/dist/useCases/{ListIntegrations.js → ListTeam.js} +3 -3
- package/dist/useCases/ListThermostats.js +2 -2
- package/dist/useCases/ListTickets.js +2 -2
- package/dist/useCases/{DeleteIntegration.js → ListUserOrders.js} +3 -3
- package/dist/useCases/ListUserReservations.js +2 -2
- package/dist/useCases/ListUserSpaces.js +32 -0
- package/dist/useCases/ListUsers.js +2 -2
- package/dist/useCases/ListWindowCoverings.js +2 -2
- package/dist/useCases/LoginUser.js +2 -2
- package/dist/useCases/LogoutUser.js +32 -0
- package/dist/useCases/MatchUserIdentification.js +2 -2
- package/dist/useCases/OCRDocument.js +2 -2
- package/dist/useCases/PurchaseReservationEarlyCheckInProducts.js +32 -0
- package/dist/useCases/PurchaseReservationLateCheckOutProducts.js +32 -0
- package/dist/useCases/PurchaseReservationRoomUpgrades.js +32 -0
- package/dist/useCases/RefreshToken.js +2 -2
- package/dist/useCases/RequestLoginLink.js +3 -3
- package/dist/useCases/RequestMyKeyToken.js +32 -0
- package/dist/useCases/RequestPWAToken.js +32 -0
- package/dist/useCases/SendCheckInSMS.js +32 -0
- package/dist/useCases/SendCheckOutSMS.js +32 -0
- package/dist/useCases/SendPreArrivalEmail.js +2 -2
- package/dist/useCases/SendPreArrivalSMS.js +2 -2
- package/dist/useCases/SendRoomControlSMS.js +32 -0
- package/dist/useCases/SendVerificationCode.js +2 -2
- package/dist/useCases/SetCamera.js +2 -2
- package/dist/useCases/SetCourtesy.js +2 -2
- package/dist/useCases/{SetSource.js → SetDimmer.js} +3 -3
- package/dist/useCases/SetLock.js +2 -2
- package/dist/useCases/SetMediaSource.js +32 -0
- package/dist/useCases/SetRoomScene.js +32 -0
- package/dist/useCases/SetSpaceScene.js +32 -0
- package/dist/useCases/SetSwitch.js +2 -2
- package/dist/useCases/SetThermostat.js +2 -2
- package/dist/useCases/SetWindowCovering.js +2 -2
- package/dist/useCases/{CreateIntegrationDeviceMapEntry.js → TipUser.js} +3 -3
- package/dist/useCases/UpdateAlarm.js +2 -2
- package/dist/useCases/UpdateAnnouncement.js +32 -0
- package/dist/useCases/UpdateCamera.js +2 -2
- package/dist/useCases/{AdminUpdateProperty.js → UpdateCategory.js} +3 -3
- package/dist/useCases/UpdateCourtesy.js +2 -2
- package/dist/useCases/UpdateDimmer.js +2 -2
- package/dist/useCases/UpdateDiscoveredDevice.js +2 -2
- package/dist/useCases/UpdateLock.js +2 -2
- package/dist/useCases/{UpdateSource.js → UpdateMediaSource.js} +3 -3
- package/dist/useCases/UpdateMessageReadStatus.js +2 -2
- package/dist/useCases/{UpdateIntegration.js → UpdateProperty.js} +3 -3
- package/dist/useCases/UpdateReservation.js +2 -2
- package/dist/useCases/UpdateReservationExpectedArrivalTime.js +32 -0
- package/dist/useCases/UpdateRoom.js +2 -2
- package/dist/useCases/UpdateSelf.js +2 -2
- package/dist/useCases/UpdateSpace.js +2 -2
- package/dist/useCases/UpdateSwitch.js +2 -2
- package/dist/useCases/UpdateThermostat.js +2 -2
- package/dist/useCases/UpdateTicket.js +2 -2
- package/dist/useCases/UpdateTicketStatus.js +2 -2
- package/dist/useCases/UpdateUser.js +2 -2
- package/dist/useCases/UpdateWindowCovering.js +2 -2
- package/dist/useCases/UploadImage.js +32 -0
- package/dist/useCases/UpsertDiscoveredDevice.js +2 -2
- package/package.json +38 -14
- package/dist/cjs/Commands.js +0 -568
- package/dist/cjs/Errors.js +0 -174
- package/dist/cjs/Events.js +0 -375
- package/dist/cjs/Models.js +0 -3584
- package/dist/cjs/defs.js +0 -175
- package/dist/cjs/utils.js +0 -246
package/dist/esm/Commands.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
1
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
2
4
|
var __commonJS = (cb, mod) => function __require() {
|
|
3
5
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
6
|
};
|
|
@@ -7,6 +9,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
7
9
|
var require_Command = __commonJS({
|
|
8
10
|
"src/Commands/Command.js"(exports, module) {
|
|
9
11
|
var Command = class {
|
|
12
|
+
static {
|
|
13
|
+
__name(this, "Command");
|
|
14
|
+
}
|
|
10
15
|
constructor(data) {
|
|
11
16
|
this.data = {};
|
|
12
17
|
if (!data)
|
|
@@ -29,9 +34,6 @@ var require_Command = __commonJS({
|
|
|
29
34
|
get exchange() {
|
|
30
35
|
return "Commands";
|
|
31
36
|
}
|
|
32
|
-
get replyTo() {
|
|
33
|
-
return "amq.rabbitmq.reply-to";
|
|
34
|
-
}
|
|
35
37
|
build() {
|
|
36
38
|
return { data: { ...this.data } };
|
|
37
39
|
}
|
|
@@ -40,13 +42,38 @@ var require_Command = __commonJS({
|
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
|
|
45
|
+
// src/Commands/SetSceneCommand.js
|
|
46
|
+
var require_SetSceneCommand = __commonJS({
|
|
47
|
+
"src/Commands/SetSceneCommand.js"(exports, module) {
|
|
48
|
+
var Command = require_Command();
|
|
49
|
+
var SetSceneCommand = class extends Command {
|
|
50
|
+
static {
|
|
51
|
+
__name(this, "SetSceneCommand");
|
|
52
|
+
}
|
|
53
|
+
constructor({ id, devices, ...rest }) {
|
|
54
|
+
super({ id, devices, ...rest });
|
|
55
|
+
}
|
|
56
|
+
get name() {
|
|
57
|
+
return "SetScene";
|
|
58
|
+
}
|
|
59
|
+
get routingKey() {
|
|
60
|
+
return `scene.${this.data.id}.set`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
module.exports = SetSceneCommand;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
43
67
|
// src/Commands/SetAlarmCommand.js
|
|
44
68
|
var require_SetAlarmCommand = __commonJS({
|
|
45
69
|
"src/Commands/SetAlarmCommand.js"(exports, module) {
|
|
46
70
|
var Command = require_Command();
|
|
47
71
|
var SetAlarmCommand = class extends Command {
|
|
48
|
-
|
|
49
|
-
|
|
72
|
+
static {
|
|
73
|
+
__name(this, "SetAlarmCommand");
|
|
74
|
+
}
|
|
75
|
+
constructor({ id, zones, areas, code, ...rest }) {
|
|
76
|
+
super({ id, zones, areas, code, ...rest });
|
|
50
77
|
}
|
|
51
78
|
get name() {
|
|
52
79
|
return "SetAlarm";
|
|
@@ -54,9 +81,6 @@ var require_SetAlarmCommand = __commonJS({
|
|
|
54
81
|
get routingKey() {
|
|
55
82
|
return `alarm.${this.data.id}.set`;
|
|
56
83
|
}
|
|
57
|
-
get replyTo() {
|
|
58
|
-
return "system.response.devices";
|
|
59
|
-
}
|
|
60
84
|
};
|
|
61
85
|
module.exports = SetAlarmCommand;
|
|
62
86
|
}
|
|
@@ -67,8 +91,11 @@ var require_SetDimmerCommand = __commonJS({
|
|
|
67
91
|
"src/Commands/SetDimmerCommand.js"(exports, module) {
|
|
68
92
|
var Command = require_Command();
|
|
69
93
|
var SetDimmerCommand = class extends Command {
|
|
70
|
-
|
|
71
|
-
|
|
94
|
+
static {
|
|
95
|
+
__name(this, "SetDimmerCommand");
|
|
96
|
+
}
|
|
97
|
+
constructor({ id, level, ...rest }) {
|
|
98
|
+
super({ id, level, ...rest });
|
|
72
99
|
}
|
|
73
100
|
get name() {
|
|
74
101
|
return "SetDimmer";
|
|
@@ -76,9 +103,6 @@ var require_SetDimmerCommand = __commonJS({
|
|
|
76
103
|
get routingKey() {
|
|
77
104
|
return `dimmer.${this.data.id}.set`;
|
|
78
105
|
}
|
|
79
|
-
get replyTo() {
|
|
80
|
-
return "system.response.devices";
|
|
81
|
-
}
|
|
82
106
|
};
|
|
83
107
|
module.exports = SetDimmerCommand;
|
|
84
108
|
}
|
|
@@ -89,8 +113,11 @@ var require_SetSwitchCommand = __commonJS({
|
|
|
89
113
|
"src/Commands/SetSwitchCommand.js"(exports, module) {
|
|
90
114
|
var Command = require_Command();
|
|
91
115
|
var SetSwitchCommand = class extends Command {
|
|
92
|
-
|
|
93
|
-
|
|
116
|
+
static {
|
|
117
|
+
__name(this, "SetSwitchCommand");
|
|
118
|
+
}
|
|
119
|
+
constructor({ id, state, ...rest }) {
|
|
120
|
+
super({ id, state, ...rest });
|
|
94
121
|
}
|
|
95
122
|
get name() {
|
|
96
123
|
return "SetSwitch";
|
|
@@ -98,9 +125,6 @@ var require_SetSwitchCommand = __commonJS({
|
|
|
98
125
|
get routingKey() {
|
|
99
126
|
return `switch.${this.data.id}.set`;
|
|
100
127
|
}
|
|
101
|
-
get replyTo() {
|
|
102
|
-
return "system.response.devices";
|
|
103
|
-
}
|
|
104
128
|
};
|
|
105
129
|
module.exports = SetSwitchCommand;
|
|
106
130
|
}
|
|
@@ -111,8 +135,11 @@ var require_SetThermostatCommand = __commonJS({
|
|
|
111
135
|
"src/Commands/SetThermostatCommand.js"(exports, module) {
|
|
112
136
|
var Command = require_Command();
|
|
113
137
|
var SetThermostatCommand = class extends Command {
|
|
114
|
-
|
|
115
|
-
|
|
138
|
+
static {
|
|
139
|
+
__name(this, "SetThermostatCommand");
|
|
140
|
+
}
|
|
141
|
+
constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {
|
|
142
|
+
super({ id, setpoints, hvacMode, fanMode, ...rest });
|
|
116
143
|
}
|
|
117
144
|
get name() {
|
|
118
145
|
return "SetThermostat";
|
|
@@ -120,9 +147,6 @@ var require_SetThermostatCommand = __commonJS({
|
|
|
120
147
|
get routingKey() {
|
|
121
148
|
return `thermostat.${this.data.id}.set`;
|
|
122
149
|
}
|
|
123
|
-
get replyTo() {
|
|
124
|
-
return "system.response.devices";
|
|
125
|
-
}
|
|
126
150
|
};
|
|
127
151
|
module.exports = SetThermostatCommand;
|
|
128
152
|
}
|
|
@@ -133,8 +157,11 @@ var require_SetLockCommand = __commonJS({
|
|
|
133
157
|
"src/Commands/SetLockCommand.js"(exports, module) {
|
|
134
158
|
var Command = require_Command();
|
|
135
159
|
var SetLockCommand = class extends Command {
|
|
136
|
-
|
|
137
|
-
|
|
160
|
+
static {
|
|
161
|
+
__name(this, "SetLockCommand");
|
|
162
|
+
}
|
|
163
|
+
constructor({ id, state, ...rest }) {
|
|
164
|
+
super({ id, state, ...rest });
|
|
138
165
|
}
|
|
139
166
|
get name() {
|
|
140
167
|
return "SetLock";
|
|
@@ -142,43 +169,21 @@ var require_SetLockCommand = __commonJS({
|
|
|
142
169
|
get routingKey() {
|
|
143
170
|
return `lock.${this.data.id}.set`;
|
|
144
171
|
}
|
|
145
|
-
get replyTo() {
|
|
146
|
-
return "system.response.devices";
|
|
147
|
-
}
|
|
148
172
|
};
|
|
149
173
|
module.exports = SetLockCommand;
|
|
150
174
|
}
|
|
151
175
|
});
|
|
152
176
|
|
|
153
|
-
// src/Commands/SetSceneControllerCommand.js
|
|
154
|
-
var require_SetSceneControllerCommand = __commonJS({
|
|
155
|
-
"src/Commands/SetSceneControllerCommand.js"(exports, module) {
|
|
156
|
-
var Command = require_Command();
|
|
157
|
-
var SetSceneControllerCommand = class extends Command {
|
|
158
|
-
constructor({ id, scene }) {
|
|
159
|
-
super({ id, scene });
|
|
160
|
-
}
|
|
161
|
-
get name() {
|
|
162
|
-
return "SetSceneController";
|
|
163
|
-
}
|
|
164
|
-
get routingKey() {
|
|
165
|
-
return `sceneController.${this.data.id}.set`;
|
|
166
|
-
}
|
|
167
|
-
get replyTo() {
|
|
168
|
-
return "system.response.devices";
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
module.exports = SetSceneControllerCommand;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
|
|
175
177
|
// src/Commands/SetWindowCoveringCommand.js
|
|
176
178
|
var require_SetWindowCoveringCommand = __commonJS({
|
|
177
179
|
"src/Commands/SetWindowCoveringCommand.js"(exports, module) {
|
|
178
180
|
var Command = require_Command();
|
|
179
181
|
var SetWindowCoveringCommand = class extends Command {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
static {
|
|
183
|
+
__name(this, "SetWindowCoveringCommand");
|
|
184
|
+
}
|
|
185
|
+
constructor({ id, position, ...rest }) {
|
|
186
|
+
super({ id, position, ...rest });
|
|
182
187
|
}
|
|
183
188
|
get name() {
|
|
184
189
|
return "SetWindowCovering";
|
|
@@ -186,9 +191,6 @@ var require_SetWindowCoveringCommand = __commonJS({
|
|
|
186
191
|
get routingKey() {
|
|
187
192
|
return `windowCovering.${this.data.id}.set`;
|
|
188
193
|
}
|
|
189
|
-
get replyTo() {
|
|
190
|
-
return "system.response.devices";
|
|
191
|
-
}
|
|
192
194
|
};
|
|
193
195
|
module.exports = SetWindowCoveringCommand;
|
|
194
196
|
}
|
|
@@ -199,8 +201,11 @@ var require_SetCourtesyCommand = __commonJS({
|
|
|
199
201
|
"src/Commands/SetCourtesyCommand.js"(exports, module) {
|
|
200
202
|
var Command = require_Command();
|
|
201
203
|
var SetCourtesyCommand = class extends Command {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
static {
|
|
205
|
+
__name(this, "SetCourtesyCommand");
|
|
206
|
+
}
|
|
207
|
+
constructor({ id, state, ...rest }) {
|
|
208
|
+
super({ id, state, ...rest });
|
|
204
209
|
}
|
|
205
210
|
get name() {
|
|
206
211
|
return "SetCourtesy";
|
|
@@ -208,30 +213,53 @@ var require_SetCourtesyCommand = __commonJS({
|
|
|
208
213
|
get routingKey() {
|
|
209
214
|
return `courtesy.${this.data.id}.set`;
|
|
210
215
|
}
|
|
211
|
-
get replyTo() {
|
|
212
|
-
return "system.response.devices";
|
|
213
|
-
}
|
|
214
216
|
};
|
|
215
217
|
module.exports = SetCourtesyCommand;
|
|
216
218
|
}
|
|
217
219
|
});
|
|
218
220
|
|
|
221
|
+
// src/Commands/SetMediaCommand.js
|
|
222
|
+
var require_SetMediaCommand = __commonJS({
|
|
223
|
+
"src/Commands/SetMediaCommand.js"(exports, module) {
|
|
224
|
+
var Command = require_Command();
|
|
225
|
+
var SetMediaCommand = class extends Command {
|
|
226
|
+
static {
|
|
227
|
+
__name(this, "SetMediaCommand");
|
|
228
|
+
}
|
|
229
|
+
constructor({ id, command, ...rest }) {
|
|
230
|
+
super({ id, command, ...rest });
|
|
231
|
+
}
|
|
232
|
+
get name() {
|
|
233
|
+
return "SetMedia";
|
|
234
|
+
}
|
|
235
|
+
get routingKey() {
|
|
236
|
+
return `mediaSource.${this.data.id}.set`;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
module.exports = SetMediaCommand;
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
|
|
219
243
|
// src/Commands/DiscoverUsersCommand.js
|
|
220
244
|
var require_DiscoverUsersCommand = __commonJS({
|
|
221
245
|
"src/Commands/DiscoverUsersCommand.js"(exports, module) {
|
|
222
246
|
var Command = require_Command();
|
|
223
247
|
var DiscoverUsersCommand = class extends Command {
|
|
224
|
-
|
|
225
|
-
|
|
248
|
+
static {
|
|
249
|
+
__name(this, "DiscoverUsersCommand");
|
|
250
|
+
}
|
|
251
|
+
constructor({ id, ...rest }) {
|
|
252
|
+
super({ id, ...rest });
|
|
226
253
|
}
|
|
227
254
|
get name() {
|
|
228
255
|
return "DiscoverUsers";
|
|
229
256
|
}
|
|
230
257
|
get routingKey() {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
258
|
+
if (typeof this.data.id === "string")
|
|
259
|
+
return `users.${this.data.id}.get`;
|
|
260
|
+
if (Array.isArray(this.data.id))
|
|
261
|
+
return "users.batch.get";
|
|
262
|
+
return "users.get";
|
|
235
263
|
}
|
|
236
264
|
};
|
|
237
265
|
module.exports = DiscoverUsersCommand;
|
|
@@ -242,6 +270,9 @@ var require_DiscoverUsersCommand = __commonJS({
|
|
|
242
270
|
var require_AppError = __commonJS({
|
|
243
271
|
"src/Errors/AppError.js"(exports, module) {
|
|
244
272
|
module.exports = class AppError extends Error {
|
|
273
|
+
static {
|
|
274
|
+
__name(this, "AppError");
|
|
275
|
+
}
|
|
245
276
|
constructor(message = "Internal Server Error", options) {
|
|
246
277
|
super(message, options);
|
|
247
278
|
this.type = this.constructor.name;
|
|
@@ -257,6 +288,9 @@ var require_RequestError = __commonJS({
|
|
|
257
288
|
"src/Errors/RequestError.js"(exports, module) {
|
|
258
289
|
var AppError = require_AppError();
|
|
259
290
|
module.exports = class RequestError extends AppError {
|
|
291
|
+
static {
|
|
292
|
+
__name(this, "RequestError");
|
|
293
|
+
}
|
|
260
294
|
constructor(message = "Bad Request", options = {}) {
|
|
261
295
|
super(message, options);
|
|
262
296
|
this.statusCode = 400;
|
|
@@ -272,19 +306,17 @@ var require_OCRDocumentCommand = __commonJS({
|
|
|
272
306
|
var Command = require_Command();
|
|
273
307
|
var RequestError = require_RequestError();
|
|
274
308
|
var OCRDocumentCommand = class extends Command {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
309
|
+
static {
|
|
310
|
+
__name(this, "OCRDocumentCommand");
|
|
311
|
+
}
|
|
312
|
+
constructor({ type, image, ...rest }) {
|
|
278
313
|
if (!image)
|
|
279
314
|
throw new RequestError("document image is required");
|
|
280
|
-
super({ type, image });
|
|
315
|
+
super({ type, image, ...rest });
|
|
281
316
|
}
|
|
282
317
|
get name() {
|
|
283
318
|
return "OCRDocument";
|
|
284
319
|
}
|
|
285
|
-
get routingKey() {
|
|
286
|
-
return `document.${this.data.type}.ocr`;
|
|
287
|
-
}
|
|
288
320
|
};
|
|
289
321
|
module.exports = OCRDocumentCommand;
|
|
290
322
|
}
|
|
@@ -296,10 +328,13 @@ var require_CheckInReservationCommand = __commonJS({
|
|
|
296
328
|
var Command = require_Command();
|
|
297
329
|
var RequestError = require_RequestError();
|
|
298
330
|
var CheckInReservationCommand = class extends Command {
|
|
299
|
-
|
|
331
|
+
static {
|
|
332
|
+
__name(this, "CheckInReservationCommand");
|
|
333
|
+
}
|
|
334
|
+
constructor({ id, ...rest }) {
|
|
300
335
|
if (!id)
|
|
301
|
-
throw new RequestError("
|
|
302
|
-
super({ id });
|
|
336
|
+
throw new RequestError("reservation id is required");
|
|
337
|
+
super({ id, ...rest });
|
|
303
338
|
}
|
|
304
339
|
get name() {
|
|
305
340
|
return "CheckInReservation";
|
|
@@ -307,28 +342,86 @@ var require_CheckInReservationCommand = __commonJS({
|
|
|
307
342
|
get routingKey() {
|
|
308
343
|
return `reservation.${this.data.id}.checkin`;
|
|
309
344
|
}
|
|
310
|
-
get replyTo() {
|
|
311
|
-
return "system.response.reservations";
|
|
312
|
-
}
|
|
313
345
|
};
|
|
314
346
|
module.exports = CheckInReservationCommand;
|
|
315
347
|
}
|
|
316
348
|
});
|
|
317
349
|
|
|
350
|
+
// src/Commands/CheckOutReservationCommand.js
|
|
351
|
+
var require_CheckOutReservationCommand = __commonJS({
|
|
352
|
+
"src/Commands/CheckOutReservationCommand.js"(exports, module) {
|
|
353
|
+
var Command = require_Command();
|
|
354
|
+
var RequestError = require_RequestError();
|
|
355
|
+
var CheckOutReservationCommand = class extends Command {
|
|
356
|
+
static {
|
|
357
|
+
__name(this, "CheckOutReservationCommand");
|
|
358
|
+
}
|
|
359
|
+
constructor({ reservationId, userId, ...rest }) {
|
|
360
|
+
if (!reservationId)
|
|
361
|
+
throw new RequestError("reservation id is required");
|
|
362
|
+
if (!userId)
|
|
363
|
+
throw new RequestError("user id is required");
|
|
364
|
+
super({ reservationId, userId, ...rest });
|
|
365
|
+
}
|
|
366
|
+
get name() {
|
|
367
|
+
return "CheckOutReservation";
|
|
368
|
+
}
|
|
369
|
+
get routingKey() {
|
|
370
|
+
return `reservation.${this.data.id}.checkout`;
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
module.exports = CheckOutReservationCommand;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
// src/Commands/SendEmailCommand.js
|
|
378
|
+
var require_SendEmailCommand = __commonJS({
|
|
379
|
+
"src/Commands/SendEmailCommand.js"(exports, module) {
|
|
380
|
+
var Command = require_Command();
|
|
381
|
+
var RequestError = require_RequestError();
|
|
382
|
+
var SendEmailCommand = class extends Command {
|
|
383
|
+
static {
|
|
384
|
+
__name(this, "SendEmailCommand");
|
|
385
|
+
}
|
|
386
|
+
constructor({ text, html, to, from, subject, ...rest }) {
|
|
387
|
+
if (!to)
|
|
388
|
+
throw new RequestError("email to is required");
|
|
389
|
+
if (!from)
|
|
390
|
+
throw new RequestError("email from is required");
|
|
391
|
+
if (!subject)
|
|
392
|
+
throw new RequestError("email subject is required");
|
|
393
|
+
if (!text && !html)
|
|
394
|
+
throw new RequestError("email text or html is required");
|
|
395
|
+
super({ text, html, to, from, subject, ...rest });
|
|
396
|
+
}
|
|
397
|
+
get name() {
|
|
398
|
+
return "SendEmail";
|
|
399
|
+
}
|
|
400
|
+
get routingKey() {
|
|
401
|
+
return "comm.email.send";
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
module.exports = SendEmailCommand;
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
|
|
318
408
|
// src/Commands/SendSMSCommand.js
|
|
319
409
|
var require_SendSMSCommand = __commonJS({
|
|
320
410
|
"src/Commands/SendSMSCommand.js"(exports, module) {
|
|
321
411
|
var Command = require_Command();
|
|
322
412
|
var RequestError = require_RequestError();
|
|
323
413
|
var SendSMSCommand = class extends Command {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
414
|
+
static {
|
|
415
|
+
__name(this, "SendSMSCommand");
|
|
416
|
+
}
|
|
417
|
+
constructor({ id, body, to, from, media, ...rest }) {
|
|
418
|
+
if (!body && !media)
|
|
419
|
+
throw new RequestError("sms body or media is required");
|
|
327
420
|
if (!to)
|
|
328
421
|
throw new RequestError("sms to is required");
|
|
329
422
|
if (!from)
|
|
330
423
|
throw new RequestError("sms from is required");
|
|
331
|
-
super({ body, to, from,
|
|
424
|
+
super({ id, body, to, from, media, ...rest });
|
|
332
425
|
}
|
|
333
426
|
get name() {
|
|
334
427
|
return "SendSMS";
|
|
@@ -346,6 +439,9 @@ var require_AuthenticationError = __commonJS({
|
|
|
346
439
|
"src/Errors/AuthenticationError.js"(exports, module) {
|
|
347
440
|
var AppError = require_AppError();
|
|
348
441
|
module.exports = class AuthenticationError extends AppError {
|
|
442
|
+
static {
|
|
443
|
+
__name(this, "AuthenticationError");
|
|
444
|
+
}
|
|
349
445
|
constructor(message = "Authentication Error", options = {}) {
|
|
350
446
|
super(message, options);
|
|
351
447
|
this.statusCode = 401;
|
|
@@ -360,6 +456,9 @@ var require_AuthorizationError = __commonJS({
|
|
|
360
456
|
"src/Errors/AuthorizationError.js"(exports, module) {
|
|
361
457
|
var AppError = require_AppError();
|
|
362
458
|
module.exports = class AuthorizationError extends AppError {
|
|
459
|
+
static {
|
|
460
|
+
__name(this, "AuthorizationError");
|
|
461
|
+
}
|
|
363
462
|
constructor(message = "Authorization Error", options = {}) {
|
|
364
463
|
super(message, options);
|
|
365
464
|
this.statusCode = 403;
|
|
@@ -369,11 +468,31 @@ var require_AuthorizationError = __commonJS({
|
|
|
369
468
|
}
|
|
370
469
|
});
|
|
371
470
|
|
|
471
|
+
// src/Errors/ConflictError.js
|
|
472
|
+
var require_ConflictError = __commonJS({
|
|
473
|
+
"src/Errors/ConflictError.js"(exports, module) {
|
|
474
|
+
var AppError = require_AppError();
|
|
475
|
+
module.exports = class ConflictError extends AppError {
|
|
476
|
+
static {
|
|
477
|
+
__name(this, "ConflictError");
|
|
478
|
+
}
|
|
479
|
+
constructor(message = "Bad Request", options = {}) {
|
|
480
|
+
super(message, options);
|
|
481
|
+
this.statusCode = 409;
|
|
482
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
|
|
372
488
|
// src/Errors/DeviceCommError.js
|
|
373
489
|
var require_DeviceCommError = __commonJS({
|
|
374
490
|
"src/Errors/DeviceCommError.js"(exports, module) {
|
|
375
491
|
var AppError = require_AppError();
|
|
376
492
|
module.exports = class DeviceCommError extends AppError {
|
|
493
|
+
static {
|
|
494
|
+
__name(this, "DeviceCommError");
|
|
495
|
+
}
|
|
377
496
|
constructor(message = "Device Communication Error", options = {}) {
|
|
378
497
|
super(message, options);
|
|
379
498
|
this.statusCode = 503;
|
|
@@ -388,6 +507,9 @@ var require_LoginError = __commonJS({
|
|
|
388
507
|
"src/Errors/LoginError.js"(exports, module) {
|
|
389
508
|
var AppError = require_AppError();
|
|
390
509
|
module.exports = class LoginError extends AppError {
|
|
510
|
+
static {
|
|
511
|
+
__name(this, "LoginError");
|
|
512
|
+
}
|
|
391
513
|
constructor(message = "Invalid Login information provided", options = {}) {
|
|
392
514
|
super(message, options);
|
|
393
515
|
this.statusCode = 401;
|
|
@@ -402,6 +524,9 @@ var require_NotFoundError = __commonJS({
|
|
|
402
524
|
"src/Errors/NotFoundError.js"(exports, module) {
|
|
403
525
|
var AppError = require_AppError();
|
|
404
526
|
module.exports = class NotFoundError extends AppError {
|
|
527
|
+
static {
|
|
528
|
+
__name(this, "NotFoundError");
|
|
529
|
+
}
|
|
405
530
|
constructor(message = "Resource Not Found", options = {}) {
|
|
406
531
|
super(message, options);
|
|
407
532
|
this.statusCode = 404;
|
|
@@ -416,6 +541,9 @@ var require_SystemCommError = __commonJS({
|
|
|
416
541
|
"src/Errors/SystemCommError.js"(exports, module) {
|
|
417
542
|
var AppError = require_AppError();
|
|
418
543
|
module.exports = class SystemCommError extends AppError {
|
|
544
|
+
static {
|
|
545
|
+
__name(this, "SystemCommError");
|
|
546
|
+
}
|
|
419
547
|
constructor(message = "System Communication Error", options = {}) {
|
|
420
548
|
super(message, options);
|
|
421
549
|
this.statusCode = 503;
|
|
@@ -430,6 +558,9 @@ var require_TokenExpiredError = __commonJS({
|
|
|
430
558
|
"src/Errors/TokenExpiredError.js"(exports, module) {
|
|
431
559
|
var AppError = require_AppError();
|
|
432
560
|
module.exports = class TokenExpiredError extends AppError {
|
|
561
|
+
static {
|
|
562
|
+
__name(this, "TokenExpiredError");
|
|
563
|
+
}
|
|
433
564
|
constructor(message = "Token Expired", options = {}) {
|
|
434
565
|
super(message, options);
|
|
435
566
|
this.statusCode = 401;
|
|
@@ -444,6 +575,9 @@ var require_UnprocessableRequestError = __commonJS({
|
|
|
444
575
|
"src/Errors/UnprocessableRequestError.js"(exports, module) {
|
|
445
576
|
var AppError = require_AppError();
|
|
446
577
|
module.exports = class UnprocessableRequestError extends AppError {
|
|
578
|
+
static {
|
|
579
|
+
__name(this, "UnprocessableRequestError");
|
|
580
|
+
}
|
|
447
581
|
constructor(message = "Unprocessable Request Error", options = {}) {
|
|
448
582
|
super(message, options);
|
|
449
583
|
this.statusCode = 422;
|
|
@@ -458,6 +592,9 @@ var require_ValidationError = __commonJS({
|
|
|
458
592
|
"src/Errors/ValidationError.js"(exports, module) {
|
|
459
593
|
var AppError = require_AppError();
|
|
460
594
|
module.exports = class ValidationError extends AppError {
|
|
595
|
+
static {
|
|
596
|
+
__name(this, "ValidationError");
|
|
597
|
+
}
|
|
461
598
|
constructor(message = "Validation Error", options = {}) {
|
|
462
599
|
super(message, options);
|
|
463
600
|
this.statusCode = 400;
|
|
@@ -474,6 +611,7 @@ var require_Errors = __commonJS({
|
|
|
474
611
|
AppError: require_AppError(),
|
|
475
612
|
AuthenticationError: require_AuthenticationError(),
|
|
476
613
|
AuthorizationError: require_AuthorizationError(),
|
|
614
|
+
ConflictError: require_ConflictError(),
|
|
477
615
|
DeviceCommError: require_DeviceCommError(),
|
|
478
616
|
LoginError: require_LoginError(),
|
|
479
617
|
NotFoundError: require_NotFoundError(),
|
|
@@ -493,11 +631,14 @@ var require_DiscoverReservationsCommand = __commonJS({
|
|
|
493
631
|
var { RequestError } = require_Errors();
|
|
494
632
|
var Command = require_Command();
|
|
495
633
|
var DiscoverReservationsCommand = class extends Command {
|
|
634
|
+
static {
|
|
635
|
+
__name(this, "DiscoverReservationsCommand");
|
|
636
|
+
}
|
|
496
637
|
constructor(options) {
|
|
497
638
|
if (!options)
|
|
498
639
|
throw new RequestError("options are required");
|
|
499
|
-
const { id, startDate, endDate, status } = options;
|
|
500
|
-
super({ id, startDate, endDate, status });
|
|
640
|
+
const { id, startDate, endDate, status, ...rest } = options;
|
|
641
|
+
super({ id, startDate, endDate, status, ...rest });
|
|
501
642
|
}
|
|
502
643
|
get name() {
|
|
503
644
|
return "DiscoverReservations";
|
|
@@ -505,68 +646,381 @@ var require_DiscoverReservationsCommand = __commonJS({
|
|
|
505
646
|
get routingKey() {
|
|
506
647
|
return "reservation.discover";
|
|
507
648
|
}
|
|
508
|
-
get replyTo() {
|
|
509
|
-
return "system.response.reservations";
|
|
510
|
-
}
|
|
511
649
|
};
|
|
512
650
|
module.exports = DiscoverReservationsCommand;
|
|
513
651
|
}
|
|
514
652
|
});
|
|
515
653
|
|
|
654
|
+
// src/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js
|
|
655
|
+
var require_DiscoverReservationSpaceCategoryAvailabilitiesCommand = __commonJS({
|
|
656
|
+
"src/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js"(exports, module) {
|
|
657
|
+
var { RequestError } = require_Errors();
|
|
658
|
+
var Command = require_Command();
|
|
659
|
+
var DiscoverReservationSpaceCategoryAvailabilitiesCommand = class extends Command {
|
|
660
|
+
static {
|
|
661
|
+
__name(this, "DiscoverReservationSpaceCategoryAvailabilitiesCommand");
|
|
662
|
+
}
|
|
663
|
+
constructor(options) {
|
|
664
|
+
if (!options)
|
|
665
|
+
throw new RequestError("options are required");
|
|
666
|
+
const { id, ...rest } = options;
|
|
667
|
+
super({ id, ...rest });
|
|
668
|
+
}
|
|
669
|
+
get name() {
|
|
670
|
+
return "DiscoverReservationSpaceCategoryAvailabilities";
|
|
671
|
+
}
|
|
672
|
+
get routingKey() {
|
|
673
|
+
return "reservation.discoverRoomUpsells";
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
module.exports = DiscoverReservationSpaceCategoryAvailabilitiesCommand;
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
|
|
516
680
|
// src/Commands/DiscoverRoomsCommand.js
|
|
517
681
|
var require_DiscoverRoomsCommand = __commonJS({
|
|
518
682
|
"src/Commands/DiscoverRoomsCommand.js"(exports, module) {
|
|
519
683
|
var Command = require_Command();
|
|
520
684
|
var DiscoverRoomsCommand = class extends Command {
|
|
521
|
-
|
|
522
|
-
|
|
685
|
+
static {
|
|
686
|
+
__name(this, "DiscoverRoomsCommand");
|
|
687
|
+
}
|
|
688
|
+
constructor({
|
|
689
|
+
id,
|
|
690
|
+
types,
|
|
691
|
+
categories,
|
|
692
|
+
startDate,
|
|
693
|
+
endDate,
|
|
694
|
+
serviceStatus,
|
|
695
|
+
housekeepingStatus,
|
|
696
|
+
...rest
|
|
697
|
+
}) {
|
|
698
|
+
super({
|
|
699
|
+
id,
|
|
700
|
+
types,
|
|
701
|
+
categories,
|
|
702
|
+
startDate,
|
|
703
|
+
endDate,
|
|
704
|
+
serviceStatus,
|
|
705
|
+
housekeepingStatus,
|
|
706
|
+
...rest
|
|
707
|
+
});
|
|
523
708
|
}
|
|
524
709
|
get name() {
|
|
525
710
|
return "DiscoverRooms";
|
|
526
711
|
}
|
|
527
712
|
get routingKey() {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
713
|
+
if (typeof this.data.id === "string")
|
|
714
|
+
return `rooms.${this.data.id}.get`;
|
|
715
|
+
if (Array.isArray(this.data.id))
|
|
716
|
+
return "rooms.batch.get";
|
|
717
|
+
return "rooms.get";
|
|
532
718
|
}
|
|
533
719
|
};
|
|
534
720
|
module.exports = DiscoverRoomsCommand;
|
|
535
721
|
}
|
|
536
722
|
});
|
|
537
723
|
|
|
724
|
+
// src/Commands/DiscoverCategoriesCommand.js
|
|
725
|
+
var require_DiscoverCategoriesCommand = __commonJS({
|
|
726
|
+
"src/Commands/DiscoverCategoriesCommand.js"(exports, module) {
|
|
727
|
+
var Command = require_Command();
|
|
728
|
+
var DiscoverCategoriesCommand = class extends Command {
|
|
729
|
+
static {
|
|
730
|
+
__name(this, "DiscoverCategoriesCommand");
|
|
731
|
+
}
|
|
732
|
+
constructor({ id, ...rest }) {
|
|
733
|
+
super({ id, ...rest });
|
|
734
|
+
}
|
|
735
|
+
get name() {
|
|
736
|
+
return "DiscoverCategories";
|
|
737
|
+
}
|
|
738
|
+
get routingKey() {
|
|
739
|
+
if (typeof this.data.id === "string")
|
|
740
|
+
return `categories.${this.data.id}.get`;
|
|
741
|
+
if (Array.isArray(this.data.id))
|
|
742
|
+
return "categories.batch.get";
|
|
743
|
+
return "categories.get";
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
module.exports = DiscoverCategoriesCommand;
|
|
747
|
+
}
|
|
748
|
+
});
|
|
749
|
+
|
|
750
|
+
// src/Commands/CreateShortLinkCommand.js
|
|
751
|
+
var require_CreateShortLinkCommand = __commonJS({
|
|
752
|
+
"src/Commands/CreateShortLinkCommand.js"(exports, module) {
|
|
753
|
+
var Command = require_Command();
|
|
754
|
+
var RequestError = require_RequestError();
|
|
755
|
+
var CreateShortLinkCommand = class extends Command {
|
|
756
|
+
static {
|
|
757
|
+
__name(this, "CreateShortLinkCommand");
|
|
758
|
+
}
|
|
759
|
+
constructor({ title, destination, ...rest }) {
|
|
760
|
+
if (!title)
|
|
761
|
+
throw new RequestError("title is required");
|
|
762
|
+
if (!destination)
|
|
763
|
+
throw new RequestError("destination to is required");
|
|
764
|
+
super({ title, destination, ...rest });
|
|
765
|
+
}
|
|
766
|
+
get name() {
|
|
767
|
+
return "CreateShortLink";
|
|
768
|
+
}
|
|
769
|
+
get routingKey() {
|
|
770
|
+
return "comm.shortlink.create";
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
module.exports = CreateShortLinkCommand;
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
// src/Commands/UpdateReservationCommand.js
|
|
778
|
+
var require_UpdateReservationCommand = __commonJS({
|
|
779
|
+
"src/Commands/UpdateReservationCommand.js"(exports, module) {
|
|
780
|
+
var Command = require_Command();
|
|
781
|
+
var RequestError = require_RequestError();
|
|
782
|
+
var UpdateReservationCommand = class extends Command {
|
|
783
|
+
static {
|
|
784
|
+
__name(this, "UpdateReservationCommand");
|
|
785
|
+
}
|
|
786
|
+
constructor({ id, ...rest }) {
|
|
787
|
+
if (!id)
|
|
788
|
+
throw new RequestError("document type is required");
|
|
789
|
+
super({ id, ...rest });
|
|
790
|
+
}
|
|
791
|
+
get name() {
|
|
792
|
+
return "UpdateReservation";
|
|
793
|
+
}
|
|
794
|
+
get routingKey() {
|
|
795
|
+
return `reservation.${this.data.id}.update`;
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
module.exports = UpdateReservationCommand;
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
|
|
802
|
+
// src/Commands/UpdateUserCommand.js
|
|
803
|
+
var require_UpdateUserCommand = __commonJS({
|
|
804
|
+
"src/Commands/UpdateUserCommand.js"(exports, module) {
|
|
805
|
+
var Command = require_Command();
|
|
806
|
+
var RequestError = require_RequestError();
|
|
807
|
+
var UpdateUserCommand = class extends Command {
|
|
808
|
+
static {
|
|
809
|
+
__name(this, "UpdateUserCommand");
|
|
810
|
+
}
|
|
811
|
+
constructor({
|
|
812
|
+
id,
|
|
813
|
+
email,
|
|
814
|
+
phone,
|
|
815
|
+
identification,
|
|
816
|
+
address,
|
|
817
|
+
note,
|
|
818
|
+
nationality,
|
|
819
|
+
file,
|
|
820
|
+
payment,
|
|
821
|
+
...rest
|
|
822
|
+
}) {
|
|
823
|
+
if (!id)
|
|
824
|
+
throw new RequestError("document type is required");
|
|
825
|
+
super({
|
|
826
|
+
id,
|
|
827
|
+
email,
|
|
828
|
+
phone,
|
|
829
|
+
identification,
|
|
830
|
+
address,
|
|
831
|
+
note,
|
|
832
|
+
nationality,
|
|
833
|
+
file,
|
|
834
|
+
payment,
|
|
835
|
+
...rest
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
get name() {
|
|
839
|
+
return "UpdateUser";
|
|
840
|
+
}
|
|
841
|
+
get routingKey() {
|
|
842
|
+
return `user.${this.data.id}.update`;
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
module.exports = UpdateUserCommand;
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
|
|
849
|
+
// src/Commands/GetMobileKeyCommand.js
|
|
850
|
+
var require_GetMobileKeyCommand = __commonJS({
|
|
851
|
+
"src/Commands/GetMobileKeyCommand.js"(exports, module) {
|
|
852
|
+
var Command = require_Command();
|
|
853
|
+
var GetMobileKeyCommand = class extends Command {
|
|
854
|
+
static {
|
|
855
|
+
__name(this, "GetMobileKeyCommand");
|
|
856
|
+
}
|
|
857
|
+
constructor({
|
|
858
|
+
id,
|
|
859
|
+
phone,
|
|
860
|
+
beginDateTime,
|
|
861
|
+
endDateTime,
|
|
862
|
+
keyToReplace,
|
|
863
|
+
...rest
|
|
864
|
+
}) {
|
|
865
|
+
super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });
|
|
866
|
+
}
|
|
867
|
+
get name() {
|
|
868
|
+
return "GetMobileKey";
|
|
869
|
+
}
|
|
870
|
+
get routingKey() {
|
|
871
|
+
return `lock.${this.data.id}.set`;
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
module.exports = GetMobileKeyCommand;
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
|
|
878
|
+
// src/Commands/CreateImageUploadEndpointCommand.js
|
|
879
|
+
var require_CreateImageUploadEndpointCommand = __commonJS({
|
|
880
|
+
"src/Commands/CreateImageUploadEndpointCommand.js"(exports, module) {
|
|
881
|
+
var Command = require_Command();
|
|
882
|
+
var CreateImageUploadEndpointCommand = class extends Command {
|
|
883
|
+
static {
|
|
884
|
+
__name(this, "CreateImageUploadEndpointCommand");
|
|
885
|
+
}
|
|
886
|
+
constructor({ id, expires, ...rest }) {
|
|
887
|
+
super({ id, expires, ...rest });
|
|
888
|
+
}
|
|
889
|
+
get name() {
|
|
890
|
+
return "CreateImageUploadEndpoint";
|
|
891
|
+
}
|
|
892
|
+
get routingKey() {
|
|
893
|
+
return "image.createUploadEndpoint";
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
module.exports = CreateImageUploadEndpointCommand;
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
|
|
900
|
+
// src/Commands/UploadImageCommand.js
|
|
901
|
+
var require_UploadImageCommand = __commonJS({
|
|
902
|
+
"src/Commands/UploadImageCommand.js"(exports, module) {
|
|
903
|
+
var Command = require_Command();
|
|
904
|
+
var UploadImageCommand = class extends Command {
|
|
905
|
+
static {
|
|
906
|
+
__name(this, "UploadImageCommand");
|
|
907
|
+
}
|
|
908
|
+
constructor({ id, url, file, ...rest }) {
|
|
909
|
+
super({ id, url, file, ...rest });
|
|
910
|
+
}
|
|
911
|
+
get name() {
|
|
912
|
+
return "UploadImage";
|
|
913
|
+
}
|
|
914
|
+
get routingKey() {
|
|
915
|
+
return `image.${this.data.id}.upload`;
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
module.exports = UploadImageCommand;
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
// src/Commands/GetProductsCommand.js
|
|
923
|
+
var require_GetProductsCommand = __commonJS({
|
|
924
|
+
"src/Commands/GetProductsCommand.js"(exports, module) {
|
|
925
|
+
var Command = require_Command();
|
|
926
|
+
var GetProductsCommand = class extends Command {
|
|
927
|
+
static {
|
|
928
|
+
__name(this, "GetProductsCommand");
|
|
929
|
+
}
|
|
930
|
+
constructor({ id, externalSystemId, ...rest }) {
|
|
931
|
+
super({ id, externalSystemId, ...rest });
|
|
932
|
+
}
|
|
933
|
+
get name() {
|
|
934
|
+
return "GetProducts";
|
|
935
|
+
}
|
|
936
|
+
get routingKey() {
|
|
937
|
+
return `product.${this.data.id}.get`;
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
module.exports = GetProductsCommand;
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
|
|
944
|
+
// src/Commands/SellProductsCommand.js
|
|
945
|
+
var require_SellProductsCommand = __commonJS({
|
|
946
|
+
"src/Commands/SellProductsCommand.js"(exports, module) {
|
|
947
|
+
var Command = require_Command();
|
|
948
|
+
var SellProductsCommand = class extends Command {
|
|
949
|
+
static {
|
|
950
|
+
__name(this, "SellProductsCommand");
|
|
951
|
+
}
|
|
952
|
+
constructor({ reservationId, userId, products, ...rest }) {
|
|
953
|
+
super({ reservationId, userId, products, ...rest });
|
|
954
|
+
}
|
|
955
|
+
get name() {
|
|
956
|
+
return "SellProducts";
|
|
957
|
+
}
|
|
958
|
+
get routingKey() {
|
|
959
|
+
return `product.${this.data.id}.sell`;
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
module.exports = SellProductsCommand;
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
|
|
538
966
|
// src/Commands/index.js
|
|
539
967
|
var require_Commands = __commonJS({
|
|
540
968
|
"src/Commands/index.js"(exports, module) {
|
|
969
|
+
var SetSceneCommand = require_SetSceneCommand();
|
|
541
970
|
var SetAlarmCommand = require_SetAlarmCommand();
|
|
542
971
|
var SetDimmerCommand = require_SetDimmerCommand();
|
|
543
972
|
var SetSwitchCommand = require_SetSwitchCommand();
|
|
544
973
|
var SetThermostatCommand = require_SetThermostatCommand();
|
|
545
974
|
var SetLockCommand = require_SetLockCommand();
|
|
546
|
-
var SetSceneControllerCommand = require_SetSceneControllerCommand();
|
|
547
975
|
var SetWindowCoveringCommand = require_SetWindowCoveringCommand();
|
|
548
976
|
var SetCourtesyCommand = require_SetCourtesyCommand();
|
|
977
|
+
var SetMediaCommand = require_SetMediaCommand();
|
|
549
978
|
var DiscoverUsersCommand = require_DiscoverUsersCommand();
|
|
550
979
|
var OCRDocumentCommand = require_OCRDocumentCommand();
|
|
551
980
|
var CheckInReservationCommand = require_CheckInReservationCommand();
|
|
981
|
+
var CheckOutReservationCommand = require_CheckOutReservationCommand();
|
|
982
|
+
var SendEmailCommand = require_SendEmailCommand();
|
|
552
983
|
var SendSMSCommand = require_SendSMSCommand();
|
|
553
984
|
var DiscoverReservationsCommand = require_DiscoverReservationsCommand();
|
|
985
|
+
var DiscoverReservationSpaceCategoryAvailabilitiesCommand = require_DiscoverReservationSpaceCategoryAvailabilitiesCommand();
|
|
554
986
|
var DiscoverRoomsCommand = require_DiscoverRoomsCommand();
|
|
987
|
+
var DiscoverCategoriesCommand = require_DiscoverCategoriesCommand();
|
|
988
|
+
var CreateShortLinkCommand = require_CreateShortLinkCommand();
|
|
989
|
+
var UpdateReservationCommand = require_UpdateReservationCommand();
|
|
990
|
+
var UpdateUserCommand = require_UpdateUserCommand();
|
|
991
|
+
var GetMobileKeyCommand = require_GetMobileKeyCommand();
|
|
992
|
+
var CreateImageUploadEndpointCommand = require_CreateImageUploadEndpointCommand();
|
|
993
|
+
var UploadImageCommand = require_UploadImageCommand();
|
|
994
|
+
var GetProductsCommand = require_GetProductsCommand();
|
|
995
|
+
var SellProductsCommand = require_SellProductsCommand();
|
|
555
996
|
module.exports = {
|
|
997
|
+
SetSceneCommand,
|
|
556
998
|
SetAlarmCommand,
|
|
557
999
|
SetDimmerCommand,
|
|
558
1000
|
SetSwitchCommand,
|
|
559
1001
|
SetThermostatCommand,
|
|
560
1002
|
SetLockCommand,
|
|
561
|
-
SetSceneControllerCommand,
|
|
562
1003
|
SetWindowCoveringCommand,
|
|
563
1004
|
SetCourtesyCommand,
|
|
1005
|
+
SetMediaCommand,
|
|
564
1006
|
OCRDocumentCommand,
|
|
565
1007
|
DiscoverUsersCommand,
|
|
566
1008
|
CheckInReservationCommand,
|
|
1009
|
+
CheckOutReservationCommand,
|
|
567
1010
|
SendSMSCommand,
|
|
1011
|
+
SendEmailCommand,
|
|
568
1012
|
DiscoverReservationsCommand,
|
|
569
|
-
|
|
1013
|
+
DiscoverReservationSpaceCategoryAvailabilitiesCommand,
|
|
1014
|
+
DiscoverRoomsCommand,
|
|
1015
|
+
DiscoverCategoriesCommand,
|
|
1016
|
+
CreateShortLinkCommand,
|
|
1017
|
+
UpdateReservationCommand,
|
|
1018
|
+
UpdateUserCommand,
|
|
1019
|
+
GetMobileKeyCommand,
|
|
1020
|
+
CreateImageUploadEndpointCommand,
|
|
1021
|
+
UploadImageCommand,
|
|
1022
|
+
GetProductsCommand,
|
|
1023
|
+
SellProductsCommand
|
|
570
1024
|
};
|
|
571
1025
|
}
|
|
572
1026
|
});
|