@kohost/api-client 7.0.0 → 7.1.1
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/_virtual/_rolldown/runtime.js +13 -0
- package/dist/commands/command.d.ts +1 -3
- package/dist/commands/command.js +23 -30
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/createImageUploadEndpoint.d.ts +2 -5
- package/dist/commands/createImageUploadEndpoint.js +15 -15
- package/dist/commands/createImageUploadEndpoint.js.map +1 -1
- package/dist/commands/createShortLink.d.ts +2 -5
- package/dist/commands/createShortLink.js +15 -15
- package/dist/commands/createShortLink.js.map +1 -1
- package/dist/commands/getCategories.d.ts +2 -5
- package/dist/commands/getCategories.js +14 -15
- package/dist/commands/getCategories.js.map +1 -1
- package/dist/commands/getMobileKey.d.ts +2 -5
- package/dist/commands/getMobileKey.js +18 -22
- package/dist/commands/getMobileKey.js.map +1 -1
- package/dist/commands/getProducts.d.ts +2 -5
- package/dist/commands/getProducts.js +15 -15
- package/dist/commands/getProducts.js.map +1 -1
- package/dist/commands/getRooms.d.ts +2 -5
- package/dist/commands/getRooms.js +20 -33
- package/dist/commands/getRooms.js.map +1 -1
- package/dist/commands/getUsers.d.ts +2 -5
- package/dist/commands/getUsers.js +14 -15
- package/dist/commands/getUsers.js.map +1 -1
- package/dist/commands/index.d.ts +22 -22
- package/dist/commands/index.js +51 -22
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/ocrDocument.d.ts +2 -5
- package/dist/commands/ocrDocument.js +15 -15
- package/dist/commands/ocrDocument.js.map +1 -1
- package/dist/commands/sendEmail.d.ts +2 -5
- package/dist/commands/sendEmail.js +18 -15
- package/dist/commands/sendEmail.js.map +1 -1
- package/dist/commands/sendSMS.d.ts +2 -5
- package/dist/commands/sendSMS.js +18 -15
- package/dist/commands/sendSMS.js.map +1 -1
- package/dist/commands/setAlarm.d.ts +2 -5
- package/dist/commands/setAlarm.js +17 -15
- package/dist/commands/setAlarm.js.map +1 -1
- package/dist/commands/setCourtesy.d.ts +2 -5
- package/dist/commands/setCourtesy.js +15 -15
- package/dist/commands/setCourtesy.js.map +1 -1
- package/dist/commands/setDimmer.d.ts +2 -5
- package/dist/commands/setDimmer.js +15 -15
- package/dist/commands/setDimmer.js.map +1 -1
- package/dist/commands/setLock.d.ts +2 -5
- package/dist/commands/setLock.js +15 -15
- package/dist/commands/setLock.js.map +1 -1
- package/dist/commands/setMedia.d.ts +2 -5
- package/dist/commands/setMedia.js +15 -15
- package/dist/commands/setMedia.js.map +1 -1
- package/dist/commands/setScene.d.ts +2 -5
- package/dist/commands/setScene.js +15 -15
- package/dist/commands/setScene.js.map +1 -1
- package/dist/commands/setSwitch.d.ts +2 -5
- package/dist/commands/setSwitch.js +15 -15
- package/dist/commands/setSwitch.js.map +1 -1
- package/dist/commands/setThermostat.d.ts +2 -5
- package/dist/commands/setThermostat.js +17 -15
- package/dist/commands/setThermostat.js.map +1 -1
- package/dist/commands/setWindowCovering.d.ts +2 -5
- package/dist/commands/setWindowCovering.js +15 -15
- package/dist/commands/setWindowCovering.js.map +1 -1
- package/dist/commands/updateUser.d.ts +2 -5
- package/dist/commands/updateUser.js +22 -37
- package/dist/commands/updateUser.js.map +1 -1
- package/dist/commands/uploadImage.d.ts +2 -5
- package/dist/commands/uploadImage.js +16 -15
- package/dist/commands/uploadImage.js.map +1 -1
- package/dist/errors/appError.d.ts +1 -3
- package/dist/errors/appError.js +12 -16
- package/dist/errors/appError.js.map +1 -1
- package/dist/errors/authenticationError.d.ts +2 -5
- package/dist/errors/authenticationError.js +11 -15
- package/dist/errors/authenticationError.js.map +1 -1
- package/dist/errors/authorizationError.d.ts +2 -5
- package/dist/errors/authorizationError.js +11 -15
- package/dist/errors/authorizationError.js.map +1 -1
- package/dist/errors/conflictError.d.ts +2 -5
- package/dist/errors/conflictError.js +11 -15
- package/dist/errors/conflictError.js.map +1 -1
- package/dist/errors/deviceCommError.d.ts +2 -5
- package/dist/errors/deviceCommError.js +11 -15
- package/dist/errors/deviceCommError.js.map +1 -1
- package/dist/errors/index.d.ts +12 -12
- package/dist/errors/index.js +31 -12
- package/dist/errors/index.js.map +1 -1
- package/dist/errors/loginError.d.ts +2 -5
- package/dist/errors/loginError.js +11 -15
- package/dist/errors/loginError.js.map +1 -1
- package/dist/errors/notFoundError.d.ts +2 -5
- package/dist/errors/notFoundError.js +11 -15
- package/dist/errors/notFoundError.js.map +1 -1
- package/dist/errors/requestError.d.ts +2 -5
- package/dist/errors/requestError.js +11 -15
- package/dist/errors/requestError.js.map +1 -1
- package/dist/errors/systemCommError.d.ts +2 -5
- package/dist/errors/systemCommError.js +11 -15
- package/dist/errors/systemCommError.js.map +1 -1
- package/dist/errors/tokenExpiredError.d.ts +2 -5
- package/dist/errors/tokenExpiredError.js +11 -15
- package/dist/errors/tokenExpiredError.js.map +1 -1
- package/dist/errors/unprocessableRequestError.d.ts +2 -5
- package/dist/errors/unprocessableRequestError.js +11 -15
- package/dist/errors/unprocessableRequestError.js.map +1 -1
- package/dist/errors/validationError.d.ts +2 -5
- package/dist/errors/validationError.js +11 -15
- package/dist/errors/validationError.js.map +1 -1
- package/dist/events/applicationInUse.d.ts +2 -5
- package/dist/events/applicationInUse.js +17 -16
- package/dist/events/applicationInUse.js.map +1 -1
- package/dist/events/applicationOutOfUse.d.ts +2 -5
- package/dist/events/applicationOutOfUse.js +17 -16
- package/dist/events/applicationOutOfUse.js.map +1 -1
- package/dist/events/emailEvent.d.ts +2 -5
- package/dist/events/emailEvent.js +14 -13
- package/dist/events/emailEvent.js.map +1 -1
- package/dist/events/event.d.ts +1 -17
- package/dist/events/event.js +34 -39
- package/dist/events/event.js.map +1 -1
- package/dist/events/index.d.ts +23 -23
- package/dist/events/index.js +53 -23
- package/dist/events/index.js.map +1 -1
- package/dist/events/sceneSet.d.ts +2 -5
- package/dist/events/sceneSet.js +14 -13
- package/dist/events/sceneSet.js.map +1 -1
- package/dist/events/shortLinkCreated.d.ts +2 -5
- package/dist/events/shortLinkCreated.js +14 -13
- package/dist/events/shortLinkCreated.js.map +1 -1
- package/dist/events/smsEvent.d.ts +2 -5
- package/dist/events/smsEvent.js +14 -13
- package/dist/events/smsEvent.js.map +1 -1
- package/dist/events/systemAlarmUpdated.d.ts +2 -5
- package/dist/events/systemAlarmUpdated.js +14 -13
- package/dist/events/systemAlarmUpdated.js.map +1 -1
- package/dist/events/systemCameraUpdated.d.ts +2 -5
- package/dist/events/systemCameraUpdated.js +14 -13
- package/dist/events/systemCameraUpdated.js.map +1 -1
- package/dist/events/systemCategoryUpdated.d.ts +2 -5
- package/dist/events/systemCategoryUpdated.js +14 -13
- package/dist/events/systemCategoryUpdated.js.map +1 -1
- package/dist/events/systemCourtesyUpdated.d.ts +2 -5
- package/dist/events/systemCourtesyUpdated.js +14 -13
- package/dist/events/systemCourtesyUpdated.js.map +1 -1
- package/dist/events/systemCredentialUpdated.d.ts +2 -5
- package/dist/events/systemCredentialUpdated.js +14 -13
- package/dist/events/systemCredentialUpdated.js.map +1 -1
- package/dist/events/systemDimmerUpdated.d.ts +2 -5
- package/dist/events/systemDimmerUpdated.js +14 -13
- package/dist/events/systemDimmerUpdated.js.map +1 -1
- package/dist/events/systemEntityDeleted.d.ts +2 -5
- package/dist/events/systemEntityDeleted.js +14 -13
- package/dist/events/systemEntityDeleted.js.map +1 -1
- package/dist/events/systemGatewayUpdated.d.ts +2 -5
- package/dist/events/systemGatewayUpdated.js +14 -13
- package/dist/events/systemGatewayUpdated.js.map +1 -1
- package/dist/events/systemLockUpdated.d.ts +2 -5
- package/dist/events/systemLockUpdated.js +14 -13
- package/dist/events/systemLockUpdated.js.map +1 -1
- package/dist/events/systemMediaSourceUpdated.d.ts +2 -5
- package/dist/events/systemMediaSourceUpdated.js +14 -13
- package/dist/events/systemMediaSourceUpdated.js.map +1 -1
- package/dist/events/systemMotionSensorUpdated.d.ts +2 -5
- package/dist/events/systemMotionSensorUpdated.js +14 -13
- package/dist/events/systemMotionSensorUpdated.js.map +1 -1
- package/dist/events/systemSpaceUpdated.d.ts +2 -5
- package/dist/events/systemSpaceUpdated.js +14 -13
- package/dist/events/systemSpaceUpdated.js.map +1 -1
- package/dist/events/systemSwitchUpdated.d.ts +2 -5
- package/dist/events/systemSwitchUpdated.js +14 -13
- package/dist/events/systemSwitchUpdated.js.map +1 -1
- package/dist/events/systemThermostatUpdated.d.ts +2 -5
- package/dist/events/systemThermostatUpdated.js +14 -13
- package/dist/events/systemThermostatUpdated.js.map +1 -1
- package/dist/events/systemUserUpdated.d.ts +2 -5
- package/dist/events/systemUserUpdated.js +14 -13
- package/dist/events/systemUserUpdated.js.map +1 -1
- package/dist/events/systemWindowCoveringUpdated.d.ts +2 -5
- package/dist/events/systemWindowCoveringUpdated.js +14 -13
- package/dist/events/systemWindowCoveringUpdated.js.map +1 -1
- package/dist/httpClient.d.ts +5 -151
- package/dist/httpClient.js +172 -205
- package/dist/httpClient.js.map +1 -1
- package/dist/index.d.ts +7 -305
- package/dist/index.js +7 -16
- package/dist/lib/deviceNotifications.d.ts +3 -5
- package/dist/lib/deviceNotifications.js +30 -30
- package/dist/lib/deviceNotifications.js.map +1 -1
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +17 -22
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/policy-resolvers.d.ts +5 -7
- package/dist/lib/policy-resolvers.js +39 -67
- package/dist/lib/policy-resolvers.js.map +1 -1
- package/dist/lib/systemCategories.d.ts +5 -7
- package/dist/lib/systemCategories.js +44 -54
- package/dist/lib/systemCategories.js.map +1 -1
- package/dist/models/alarm.d.ts +7 -13
- package/dist/models/alarm.js +38 -49
- package/dist/models/alarm.js.map +1 -1
- package/dist/models/announcement.d.ts +7 -13
- package/dist/models/announcement.js +26 -36
- package/dist/models/announcement.js.map +1 -1
- package/dist/models/automation.d.ts +7 -13
- package/dist/models/automation.js +28 -38
- package/dist/models/automation.js.map +1 -1
- package/dist/models/camera.d.ts +7 -13
- package/dist/models/camera.js +31 -42
- package/dist/models/camera.js.map +1 -1
- package/dist/models/category.d.ts +7 -13
- package/dist/models/category.js +26 -34
- package/dist/models/category.js.map +1 -1
- package/dist/models/courtesy.d.ts +7 -13
- package/dist/models/courtesy.js +30 -40
- package/dist/models/courtesy.js.map +1 -1
- package/dist/models/credential.d.ts +7 -13
- package/dist/models/credential.js +30 -42
- package/dist/models/credential.js.map +1 -1
- package/dist/models/department.d.ts +7 -13
- package/dist/models/department.js +21 -31
- package/dist/models/department.js.map +1 -1
- package/dist/models/dimmer.d.ts +7 -13
- package/dist/models/dimmer.js +30 -40
- package/dist/models/dimmer.js.map +1 -1
- package/dist/models/discoveredDevice.d.ts +7 -13
- package/dist/models/discoveredDevice.js +26 -37
- package/dist/models/discoveredDevice.js.map +1 -1
- package/dist/models/emailMessage.d.ts +7 -13
- package/dist/models/emailMessage.js +32 -43
- package/dist/models/emailMessage.js.map +1 -1
- package/dist/models/energyReport.d.ts +7 -13
- package/dist/models/energyReport.js +24 -34
- package/dist/models/energyReport.js.map +1 -1
- package/dist/models/energyReportShard.d.ts +7 -13
- package/dist/models/energyReportShard.js +22 -32
- package/dist/models/energyReportShard.js.map +1 -1
- package/dist/models/entity.d.ts +2 -5
- package/dist/models/entity.js +18 -33
- package/dist/models/entity.js.map +1 -1
- package/dist/models/gateway.d.ts +7 -13
- package/dist/models/gateway.js +30 -40
- package/dist/models/gateway.js.map +1 -1
- package/dist/models/group.d.ts +7 -13
- package/dist/models/group.js +23 -31
- package/dist/models/group.js.map +1 -1
- package/dist/models/identification.d.ts +6 -12
- package/dist/models/identification.js +31 -40
- package/dist/models/identification.js.map +1 -1
- package/dist/models/index.d.ts +46 -95
- package/dist/models/index.js +55 -54
- package/dist/models/index.js.map +1 -1
- package/dist/models/integration.d.ts +7 -14
- package/dist/models/integration.js +22 -32
- package/dist/models/integration.js.map +1 -1
- package/dist/models/issue.d.ts +7 -15
- package/dist/models/issue.js +23 -31
- package/dist/models/issue.js.map +1 -1
- package/dist/models/lock.d.ts +7 -13
- package/dist/models/lock.js +33 -44
- package/dist/models/lock.js.map +1 -1
- package/dist/models/log.d.ts +7 -13
- package/dist/models/log.js +25 -33
- package/dist/models/log.js.map +1 -1
- package/dist/models/mediaFile.d.ts +7 -13
- package/dist/models/mediaFile.js +38 -48
- package/dist/models/mediaFile.js.map +1 -1
- package/dist/models/mediaSource.d.ts +7 -13
- package/dist/models/mediaSource.js +49 -66
- package/dist/models/mediaSource.js.map +1 -1
- package/dist/models/motionSensor.d.ts +7 -13
- package/dist/models/motionSensor.js +31 -43
- package/dist/models/motionSensor.js.map +1 -1
- package/dist/models/notification.d.ts +7 -13
- package/dist/models/notification.js +25 -35
- package/dist/models/notification.js.map +1 -1
- package/dist/models/order.d.ts +7 -13
- package/dist/models/order.js +29 -38
- package/dist/models/order.js.map +1 -1
- package/dist/models/organization.d.ts +7 -13
- package/dist/models/organization.js +26 -36
- package/dist/models/organization.js.map +1 -1
- package/dist/models/payment.d.ts +7 -13
- package/dist/models/payment.js +22 -30
- package/dist/models/payment.js.map +1 -1
- package/dist/models/policy.d.ts +7 -13
- package/dist/models/policy.js +25 -33
- package/dist/models/policy.js.map +1 -1
- package/dist/models/product.d.ts +7 -13
- package/dist/models/product.js +28 -36
- package/dist/models/product.js.map +1 -1
- package/dist/models/property.d.ts +7 -13
- package/dist/models/property.js +31 -41
- package/dist/models/property.js.map +1 -1
- package/dist/models/reservation.d.ts +7 -13
- package/dist/models/reservation.js +45 -65
- package/dist/models/reservation.js.map +1 -1
- package/dist/models/server.d.ts +7 -13
- package/dist/models/server.js +36 -48
- package/dist/models/server.js.map +1 -1
- package/dist/models/session.d.ts +7 -14
- package/dist/models/session.js +23 -32
- package/dist/models/session.js.map +1 -1
- package/dist/models/shortLink.d.ts +7 -13
- package/dist/models/shortLink.js +23 -31
- package/dist/models/shortLink.js.map +1 -1
- package/dist/models/smsMessage.d.ts +7 -13
- package/dist/models/smsMessage.js +28 -38
- package/dist/models/smsMessage.js.map +1 -1
- package/dist/models/space.d.ts +7 -23
- package/dist/models/space.js +30 -40
- package/dist/models/space.js.map +1 -1
- package/dist/models/switch.d.ts +7 -13
- package/dist/models/switch.js +32 -43
- package/dist/models/switch.js.map +1 -1
- package/dist/models/system.d.ts +7 -14
- package/dist/models/system.js +28 -38
- package/dist/models/system.js.map +1 -1
- package/dist/models/systemUser.d.ts +7 -13
- package/dist/models/systemUser.js +36 -47
- package/dist/models/systemUser.js.map +1 -1
- package/dist/models/thermostat.d.ts +7 -13
- package/dist/models/thermostat.js +52 -71
- package/dist/models/thermostat.js.map +1 -1
- package/dist/models/ticket.d.ts +7 -14
- package/dist/models/ticket.js +41 -50
- package/dist/models/ticket.js.map +1 -1
- package/dist/models/timeSheet.d.ts +7 -13
- package/dist/models/timeSheet.js +23 -31
- package/dist/models/timeSheet.js.map +1 -1
- package/dist/models/user.d.ts +7 -15
- package/dist/models/user.js +58 -73
- package/dist/models/user.js.map +1 -1
- package/dist/models/vendor.d.ts +7 -14
- package/dist/models/vendor.js +25 -33
- package/dist/models/vendor.js.map +1 -1
- package/dist/models/windowCovering.d.ts +7 -13
- package/dist/models/windowCovering.js +32 -45
- package/dist/models/windowCovering.js.map +1 -1
- package/dist/schemas/alarm.d.ts +4 -7
- package/dist/schemas/alarm.js +116 -169
- package/dist/schemas/alarm.js.map +1 -1
- package/dist/schemas/announcement.d.ts +4 -7
- package/dist/schemas/announcement.js +43 -56
- package/dist/schemas/announcement.js.map +1 -1
- package/dist/schemas/automation.d.ts +4 -7
- package/dist/schemas/automation.js +263 -240
- package/dist/schemas/automation.js.map +1 -1
- package/dist/schemas/camera.d.ts +4 -7
- package/dist/schemas/camera.js +86 -127
- package/dist/schemas/camera.js.map +1 -1
- package/dist/schemas/category.d.ts +4 -7
- package/dist/schemas/category.js +53 -58
- package/dist/schemas/category.js.map +1 -1
- package/dist/schemas/courtesy.d.ts +4 -7
- package/dist/schemas/courtesy.js +54 -71
- package/dist/schemas/courtesy.js.map +1 -1
- package/dist/schemas/credential.d.ts +4 -7
- package/dist/schemas/credential.js +56 -72
- package/dist/schemas/credential.js.map +1 -1
- package/dist/schemas/definitions.d.ts +3 -3
- package/dist/schemas/definitions.js +280 -307
- package/dist/schemas/definitions.js.map +1 -1
- package/dist/schemas/department.d.ts +4 -7
- package/dist/schemas/department.js +28 -35
- package/dist/schemas/department.js.map +1 -1
- package/dist/schemas/dimmer.d.ts +4 -7
- package/dist/schemas/dimmer.js +45 -67
- package/dist/schemas/dimmer.js.map +1 -1
- package/dist/schemas/discoveredDevice.d.ts +4 -7
- package/dist/schemas/discoveredDevice.js +40 -51
- package/dist/schemas/discoveredDevice.js.map +1 -1
- package/dist/schemas/emailMessage.d.ts +4 -7
- package/dist/schemas/emailMessage.js +73 -89
- package/dist/schemas/emailMessage.js.map +1 -1
- package/dist/schemas/energyReport.d.ts +4 -7
- package/dist/schemas/energyReport.js +96 -91
- package/dist/schemas/energyReport.js.map +1 -1
- package/dist/schemas/energyReportShard.d.ts +4 -7
- package/dist/schemas/energyReportShard.js +73 -76
- package/dist/schemas/energyReportShard.js.map +1 -1
- package/dist/schemas/gateway.d.ts +4 -7
- package/dist/schemas/gateway.js +38 -64
- package/dist/schemas/gateway.js.map +1 -1
- package/dist/schemas/group.d.ts +4 -7
- package/dist/schemas/group.js +54 -66
- package/dist/schemas/group.js.map +1 -1
- package/dist/schemas/identification.d.ts +4 -7
- package/dist/schemas/identification.js +53 -68
- package/dist/schemas/identification.js.map +1 -1
- package/dist/schemas/index.d.ts +45 -47
- package/dist/schemas/index.js +2 -51
- package/dist/schemas/integration.d.ts +5 -8
- package/dist/schemas/integration.js +46 -44
- package/dist/schemas/integration.js.map +1 -1
- package/dist/schemas/issue.d.ts +5 -9
- package/dist/schemas/issue.js +123 -140
- package/dist/schemas/issue.js.map +1 -1
- package/dist/schemas/lock.d.ts +4 -7
- package/dist/schemas/lock.js +77 -99
- package/dist/schemas/lock.js.map +1 -1
- package/dist/schemas/log.d.ts +4 -7
- package/dist/schemas/log.js +84 -105
- package/dist/schemas/log.js.map +1 -1
- package/dist/schemas/mediaFile.d.ts +6 -8
- package/dist/schemas/mediaFile.js +78 -102
- package/dist/schemas/mediaFile.js.map +1 -1
- package/dist/schemas/mediaSource.d.ts +4 -7
- package/dist/schemas/mediaSource.js +254 -306
- package/dist/schemas/mediaSource.js.map +1 -1
- package/dist/schemas/motionSensor.d.ts +4 -7
- package/dist/schemas/motionSensor.js +41 -66
- package/dist/schemas/motionSensor.js.map +1 -1
- package/dist/schemas/notification.d.ts +4 -7
- package/dist/schemas/notification.js +45 -49
- package/dist/schemas/notification.js.map +1 -1
- package/dist/schemas/order.d.ts +4 -7
- package/dist/schemas/order.js +154 -205
- package/dist/schemas/order.js.map +1 -1
- package/dist/schemas/organization.d.ts +4 -7
- package/dist/schemas/organization.js +155 -206
- package/dist/schemas/organization.js.map +1 -1
- package/dist/schemas/payment.d.ts +4 -7
- package/dist/schemas/payment.js +46 -53
- package/dist/schemas/payment.js.map +1 -1
- package/dist/schemas/policy.d.ts +4 -7
- package/dist/schemas/policy.js +64 -77
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/product.d.ts +4 -7
- package/dist/schemas/product.js +41 -60
- package/dist/schemas/product.js.map +1 -1
- package/dist/schemas/property.d.ts +4 -7
- package/dist/schemas/property.js +240 -308
- package/dist/schemas/property.js.map +1 -1
- package/dist/schemas/reservation.d.ts +4 -7
- package/dist/schemas/reservation.js +122 -156
- package/dist/schemas/reservation.js.map +1 -1
- package/dist/schemas/server.d.ts +4 -7
- package/dist/schemas/server.js +94 -142
- package/dist/schemas/server.js.map +1 -1
- package/dist/schemas/session.d.ts +5 -8
- package/dist/schemas/session.js +70 -95
- package/dist/schemas/session.js.map +1 -1
- package/dist/schemas/shortLink.d.ts +4 -7
- package/dist/schemas/shortLink.js +35 -46
- package/dist/schemas/shortLink.js.map +1 -1
- package/dist/schemas/smsMessage.d.ts +4 -7
- package/dist/schemas/smsMessage.js +56 -69
- package/dist/schemas/smsMessage.js.map +1 -1
- package/dist/schemas/space.d.ts +14 -17
- package/dist/schemas/space.js +155 -182
- package/dist/schemas/space.js.map +1 -1
- package/dist/schemas/switch.d.ts +4 -7
- package/dist/schemas/switch.js +82 -84
- package/dist/schemas/switch.js.map +1 -1
- package/dist/schemas/system.d.ts +5 -8
- package/dist/schemas/system.js +122 -130
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/systemUser.d.ts +4 -7
- package/dist/schemas/systemUser.js +93 -116
- package/dist/schemas/systemUser.js.map +1 -1
- package/dist/schemas/thermostat.d.ts +4 -7
- package/dist/schemas/thermostat.js +256 -234
- package/dist/schemas/thermostat.js.map +1 -1
- package/dist/schemas/ticket.d.ts +15 -8
- package/dist/schemas/ticket.js +389 -359
- package/dist/schemas/ticket.js.map +1 -1
- package/dist/schemas/timeSheet.d.ts +4 -7
- package/dist/schemas/timeSheet.js +70 -75
- package/dist/schemas/timeSheet.js.map +1 -1
- package/dist/schemas/user.d.ts +7 -10
- package/dist/schemas/user.js +200 -239
- package/dist/schemas/user.js.map +1 -1
- package/dist/schemas/vendor.d.ts +5 -8
- package/dist/schemas/vendor.js +46 -57
- package/dist/schemas/vendor.js.map +1 -1
- package/dist/schemas/windowCovering.d.ts +4 -7
- package/dist/schemas/windowCovering.js +51 -73
- package/dist/schemas/windowCovering.js.map +1 -1
- package/dist/useCases/autoAssociateDiscoveredDevices.d.ts +3 -5
- package/dist/useCases/autoAssociateDiscoveredDevices.js +45 -48
- package/dist/useCases/autoAssociateDiscoveredDevices.js.map +1 -1
- package/dist/useCases/autoCloseTickets.d.ts +3 -5
- package/dist/useCases/autoCloseTickets.js +45 -48
- package/dist/useCases/autoCloseTickets.js.map +1 -1
- package/dist/useCases/bulkUpdateIssue.d.ts +3 -5
- package/dist/useCases/bulkUpdateIssue.js +45 -48
- package/dist/useCases/bulkUpdateIssue.js.map +1 -1
- package/dist/useCases/checkVerificationCode.d.ts +3 -5
- package/dist/useCases/checkVerificationCode.js +45 -48
- package/dist/useCases/checkVerificationCode.js.map +1 -1
- package/dist/useCases/createApiKey.d.ts +3 -5
- package/dist/useCases/createApiKey.js +45 -48
- package/dist/useCases/createApiKey.js.map +1 -1
- package/dist/useCases/createAutomation.d.ts +3 -5
- package/dist/useCases/createAutomation.js +45 -48
- package/dist/useCases/createAutomation.js.map +1 -1
- package/dist/useCases/createCategory.d.ts +3 -5
- package/dist/useCases/createCategory.js +45 -48
- package/dist/useCases/createCategory.js.map +1 -1
- package/dist/useCases/createDefaultAutomations.d.ts +3 -5
- package/dist/useCases/createDefaultAutomations.js +45 -48
- package/dist/useCases/createDefaultAutomations.js.map +1 -1
- package/dist/useCases/createDepartment.d.ts +3 -5
- package/dist/useCases/createDepartment.js +45 -48
- package/dist/useCases/createDepartment.js.map +1 -1
- package/dist/useCases/createDevice.d.ts +3 -5
- package/dist/useCases/createDevice.js +45 -48
- package/dist/useCases/createDevice.js.map +1 -1
- package/dist/useCases/createDeviceCredential.d.ts +3 -5
- package/dist/useCases/createDeviceCredential.js +45 -48
- package/dist/useCases/createDeviceCredential.js.map +1 -1
- package/dist/useCases/createDiscoveredDevice.d.ts +3 -5
- package/dist/useCases/createDiscoveredDevice.js +45 -48
- package/dist/useCases/createDiscoveredDevice.js.map +1 -1
- package/dist/useCases/createDiscoveredDeviceAssociation.d.ts +3 -5
- package/dist/useCases/createDiscoveredDeviceAssociation.js +45 -48
- package/dist/useCases/createDiscoveredDeviceAssociation.js.map +1 -1
- package/dist/useCases/createDiscoveredDeviceAssociationMap.d.ts +3 -5
- package/dist/useCases/createDiscoveredDeviceAssociationMap.js +45 -48
- package/dist/useCases/createDiscoveredDeviceAssociationMap.js.map +1 -1
- package/dist/useCases/createImageUploadEndpoint.d.ts +3 -5
- package/dist/useCases/createImageUploadEndpoint.js +45 -48
- package/dist/useCases/createImageUploadEndpoint.js.map +1 -1
- package/dist/useCases/createIssue.d.ts +3 -5
- package/dist/useCases/createIssue.js +45 -48
- package/dist/useCases/createIssue.js.map +1 -1
- package/dist/useCases/createOrganization.d.ts +3 -5
- package/dist/useCases/createOrganization.js +45 -48
- package/dist/useCases/createOrganization.js.map +1 -1
- package/dist/useCases/createPolicy.d.ts +3 -5
- package/dist/useCases/createPolicy.js +45 -48
- package/dist/useCases/createPolicy.js.map +1 -1
- package/dist/useCases/createProperty.d.ts +3 -5
- package/dist/useCases/createProperty.js +45 -48
- package/dist/useCases/createProperty.js.map +1 -1
- package/dist/useCases/createPwaHandoffToken.d.ts +3 -5
- package/dist/useCases/createPwaHandoffToken.js +45 -48
- package/dist/useCases/createPwaHandoffToken.js.map +1 -1
- package/dist/useCases/createServer.d.ts +3 -5
- package/dist/useCases/createServer.js +45 -48
- package/dist/useCases/createServer.js.map +1 -1
- package/dist/useCases/createSpace.d.ts +3 -5
- package/dist/useCases/createSpace.js +45 -48
- package/dist/useCases/createSpace.js.map +1 -1
- package/dist/useCases/createSystem.d.ts +3 -5
- package/dist/useCases/createSystem.js +45 -48
- package/dist/useCases/createSystem.js.map +1 -1
- package/dist/useCases/createTicket.d.ts +3 -5
- package/dist/useCases/createTicket.js +45 -48
- package/dist/useCases/createTicket.js.map +1 -1
- package/dist/useCases/createTicketMessage.d.ts +3 -5
- package/dist/useCases/createTicketMessage.js +45 -48
- package/dist/useCases/createTicketMessage.js.map +1 -1
- package/dist/useCases/createTimeSheet.d.ts +3 -5
- package/dist/useCases/createTimeSheet.js +45 -48
- package/dist/useCases/createTimeSheet.js.map +1 -1
- package/dist/useCases/createTimeSheetTimeEntry.d.ts +3 -5
- package/dist/useCases/createTimeSheetTimeEntry.js +45 -48
- package/dist/useCases/createTimeSheetTimeEntry.js.map +1 -1
- package/dist/useCases/createUser.d.ts +3 -5
- package/dist/useCases/createUser.js +45 -48
- package/dist/useCases/createUser.js.map +1 -1
- package/dist/useCases/createVendor.d.ts +3 -5
- package/dist/useCases/createVendor.js +45 -48
- package/dist/useCases/createVendor.js.map +1 -1
- package/dist/useCases/deleteAutomation.d.ts +3 -5
- package/dist/useCases/deleteAutomation.js +45 -48
- package/dist/useCases/deleteAutomation.js.map +1 -1
- package/dist/useCases/deleteCategory.d.ts +3 -5
- package/dist/useCases/deleteCategory.js +45 -48
- package/dist/useCases/deleteCategory.js.map +1 -1
- package/dist/useCases/deleteDepartment.d.ts +3 -5
- package/dist/useCases/deleteDepartment.js +45 -48
- package/dist/useCases/deleteDepartment.js.map +1 -1
- package/dist/useCases/deleteDevice.d.ts +3 -5
- package/dist/useCases/deleteDevice.js +45 -48
- package/dist/useCases/deleteDevice.js.map +1 -1
- package/dist/useCases/deleteDeviceCredential.d.ts +3 -5
- package/dist/useCases/deleteDeviceCredential.js +49 -48
- package/dist/useCases/deleteDeviceCredential.js.map +1 -1
- package/dist/useCases/deleteDiscoveredDevice.d.ts +3 -5
- package/dist/useCases/deleteDiscoveredDevice.js +45 -48
- package/dist/useCases/deleteDiscoveredDevice.js.map +1 -1
- package/dist/useCases/deleteIssue.d.ts +3 -5
- package/dist/useCases/deleteIssue.js +45 -48
- package/dist/useCases/deleteIssue.js.map +1 -1
- package/dist/useCases/deleteMediaFile.d.ts +3 -5
- package/dist/useCases/deleteMediaFile.js +45 -48
- package/dist/useCases/deleteMediaFile.js.map +1 -1
- package/dist/useCases/deleteOrganization.d.ts +3 -5
- package/dist/useCases/deleteOrganization.js +45 -48
- package/dist/useCases/deleteOrganization.js.map +1 -1
- package/dist/useCases/deletePolicy.d.ts +3 -5
- package/dist/useCases/deletePolicy.js +45 -48
- package/dist/useCases/deletePolicy.js.map +1 -1
- package/dist/useCases/deleteProperty.d.ts +3 -5
- package/dist/useCases/deleteProperty.js +45 -48
- package/dist/useCases/deleteProperty.js.map +1 -1
- package/dist/useCases/deleteServer.d.ts +3 -5
- package/dist/useCases/deleteServer.js +45 -48
- package/dist/useCases/deleteServer.js.map +1 -1
- package/dist/useCases/deleteSession.d.ts +3 -5
- package/dist/useCases/deleteSession.js +45 -48
- package/dist/useCases/deleteSession.js.map +1 -1
- package/dist/useCases/deleteSpace.d.ts +3 -5
- package/dist/useCases/deleteSpace.js +45 -48
- package/dist/useCases/deleteSpace.js.map +1 -1
- package/dist/useCases/deleteSystem.d.ts +3 -5
- package/dist/useCases/deleteSystem.js +45 -48
- package/dist/useCases/deleteSystem.js.map +1 -1
- package/dist/useCases/deleteTicket.d.ts +3 -5
- package/dist/useCases/deleteTicket.js +45 -48
- package/dist/useCases/deleteTicket.js.map +1 -1
- package/dist/useCases/deleteTimeSheet.d.ts +3 -5
- package/dist/useCases/deleteTimeSheet.js +45 -48
- package/dist/useCases/deleteTimeSheet.js.map +1 -1
- package/dist/useCases/deleteTimeSheetTimeEntry.d.ts +3 -5
- package/dist/useCases/deleteTimeSheetTimeEntry.js +45 -48
- package/dist/useCases/deleteTimeSheetTimeEntry.js.map +1 -1
- package/dist/useCases/deleteUser.d.ts +3 -5
- package/dist/useCases/deleteUser.js +45 -48
- package/dist/useCases/deleteUser.js.map +1 -1
- package/dist/useCases/deleteUserCredential.d.ts +3 -5
- package/dist/useCases/deleteUserCredential.js +45 -48
- package/dist/useCases/deleteUserCredential.js.map +1 -1
- package/dist/useCases/deleteVendor.d.ts +3 -5
- package/dist/useCases/deleteVendor.js +45 -48
- package/dist/useCases/deleteVendor.js.map +1 -1
- package/dist/useCases/describeAutomation.d.ts +3 -5
- package/dist/useCases/describeAutomation.js +45 -48
- package/dist/useCases/describeAutomation.js.map +1 -1
- package/dist/useCases/describeCategory.d.ts +3 -5
- package/dist/useCases/describeCategory.js +45 -48
- package/dist/useCases/describeCategory.js.map +1 -1
- package/dist/useCases/describeDepartment.d.ts +3 -5
- package/dist/useCases/describeDepartment.js +45 -48
- package/dist/useCases/describeDepartment.js.map +1 -1
- package/dist/useCases/describeDevice.d.ts +3 -5
- package/dist/useCases/describeDevice.js +45 -48
- package/dist/useCases/describeDevice.js.map +1 -1
- package/dist/useCases/describeDeviceConfig.d.ts +3 -5
- package/dist/useCases/describeDeviceConfig.js +45 -48
- package/dist/useCases/describeDeviceConfig.js.map +1 -1
- package/dist/useCases/describeDiscoveredDevice.d.ts +3 -5
- package/dist/useCases/describeDiscoveredDevice.js +45 -48
- package/dist/useCases/describeDiscoveredDevice.js.map +1 -1
- package/dist/useCases/describeIssue.d.ts +3 -5
- package/dist/useCases/describeIssue.js +45 -48
- package/dist/useCases/describeIssue.js.map +1 -1
- package/dist/useCases/describeMyAuth.d.ts +3 -5
- package/dist/useCases/describeMyAuth.js +45 -48
- package/dist/useCases/describeMyAuth.js.map +1 -1
- package/dist/useCases/describeMyOrganization.d.ts +3 -5
- package/dist/useCases/describeMyOrganization.js +45 -48
- package/dist/useCases/describeMyOrganization.js.map +1 -1
- package/dist/useCases/describeMyPasskeyRegistrations.d.ts +3 -5
- package/dist/useCases/describeMyPasskeyRegistrations.js +45 -48
- package/dist/useCases/describeMyPasskeyRegistrations.js.map +1 -1
- package/dist/useCases/describeOrganization.d.ts +3 -5
- package/dist/useCases/describeOrganization.js +45 -48
- package/dist/useCases/describeOrganization.js.map +1 -1
- package/dist/useCases/describePolicy.d.ts +3 -5
- package/dist/useCases/describePolicy.js +45 -48
- package/dist/useCases/describePolicy.js.map +1 -1
- package/dist/useCases/describeProperty.d.ts +3 -5
- package/dist/useCases/describeProperty.js +45 -48
- package/dist/useCases/describeProperty.js.map +1 -1
- package/dist/useCases/describeSOS.d.ts +3 -5
- package/dist/useCases/describeSOS.js +45 -48
- package/dist/useCases/describeSOS.js.map +1 -1
- package/dist/useCases/describeSelf.d.ts +3 -5
- package/dist/useCases/describeSelf.js +45 -48
- package/dist/useCases/describeSelf.js.map +1 -1
- package/dist/useCases/describeServer.d.ts +3 -5
- package/dist/useCases/describeServer.js +45 -48
- package/dist/useCases/describeServer.js.map +1 -1
- package/dist/useCases/describeSession.d.ts +3 -5
- package/dist/useCases/describeSession.js +45 -48
- package/dist/useCases/describeSession.js.map +1 -1
- package/dist/useCases/describeSpace.d.ts +3 -5
- package/dist/useCases/describeSpace.js +45 -48
- package/dist/useCases/describeSpace.js.map +1 -1
- package/dist/useCases/describeSystem.d.ts +3 -5
- package/dist/useCases/describeSystem.js +45 -48
- package/dist/useCases/describeSystem.js.map +1 -1
- package/dist/useCases/describeTicket.d.ts +3 -5
- package/dist/useCases/describeTicket.js +45 -48
- package/dist/useCases/describeTicket.js.map +1 -1
- package/dist/useCases/describeTicketFilters.d.ts +3 -5
- package/dist/useCases/describeTicketFilters.js +45 -48
- package/dist/useCases/describeTicketFilters.js.map +1 -1
- package/dist/useCases/describeTicketStats.d.ts +3 -5
- package/dist/useCases/describeTicketStats.js +45 -48
- package/dist/useCases/describeTicketStats.js.map +1 -1
- package/dist/useCases/describeTimeSheet.d.ts +3 -5
- package/dist/useCases/describeTimeSheet.js +45 -48
- package/dist/useCases/describeTimeSheet.js.map +1 -1
- package/dist/useCases/describeTimeSheetStats.d.ts +3 -5
- package/dist/useCases/describeTimeSheetStats.js +45 -48
- package/dist/useCases/describeTimeSheetStats.js.map +1 -1
- package/dist/useCases/describeUser.d.ts +3 -5
- package/dist/useCases/describeUser.js +45 -48
- package/dist/useCases/describeUser.js.map +1 -1
- package/dist/useCases/describeVendor.d.ts +3 -5
- package/dist/useCases/describeVendor.js +45 -48
- package/dist/useCases/describeVendor.js.map +1 -1
- package/dist/useCases/emailUserAccountSetup.d.ts +3 -5
- package/dist/useCases/emailUserAccountSetup.js +45 -48
- package/dist/useCases/emailUserAccountSetup.js.map +1 -1
- package/dist/useCases/getApiKey.d.ts +3 -5
- package/dist/useCases/getApiKey.js +45 -48
- package/dist/useCases/getApiKey.js.map +1 -1
- package/dist/useCases/index.d.ts +143 -143
- package/dist/useCases/index.js +150 -145
- package/dist/useCases/index.js.map +1 -1
- package/dist/useCases/leaveTicket.d.ts +3 -5
- package/dist/useCases/leaveTicket.js +45 -48
- package/dist/useCases/leaveTicket.js.map +1 -1
- package/dist/useCases/listAutomations.d.ts +3 -5
- package/dist/useCases/listAutomations.js +45 -48
- package/dist/useCases/listAutomations.js.map +1 -1
- package/dist/useCases/listCameraStreamPreviews.d.ts +3 -5
- package/dist/useCases/listCameraStreamPreviews.js +45 -48
- package/dist/useCases/listCameraStreamPreviews.js.map +1 -1
- package/dist/useCases/listCategories.d.ts +3 -5
- package/dist/useCases/listCategories.js +45 -48
- package/dist/useCases/listCategories.js.map +1 -1
- package/dist/useCases/listDepartments.d.ts +3 -5
- package/dist/useCases/listDepartments.js +45 -48
- package/dist/useCases/listDepartments.js.map +1 -1
- package/dist/useCases/listDeviceCredentials.d.ts +3 -5
- package/dist/useCases/listDeviceCredentials.js +45 -48
- package/dist/useCases/listDeviceCredentials.js.map +1 -1
- package/dist/useCases/listDevices.d.ts +3 -5
- package/dist/useCases/listDevices.js +45 -48
- package/dist/useCases/listDevices.js.map +1 -1
- package/dist/useCases/listDiscoveredDevices.d.ts +3 -5
- package/dist/useCases/listDiscoveredDevices.js +45 -48
- package/dist/useCases/listDiscoveredDevices.js.map +1 -1
- package/dist/useCases/listIntegrations.d.ts +3 -5
- package/dist/useCases/listIntegrations.js +45 -48
- package/dist/useCases/listIntegrations.js.map +1 -1
- package/dist/useCases/listIssues.d.ts +3 -5
- package/dist/useCases/listIssues.js +45 -48
- package/dist/useCases/listIssues.js.map +1 -1
- package/dist/useCases/listMyOrganizations.d.ts +3 -5
- package/dist/useCases/listMyOrganizations.js +45 -48
- package/dist/useCases/listMyOrganizations.js.map +1 -1
- package/dist/useCases/listMyProperties.d.ts +3 -5
- package/dist/useCases/listMyProperties.js +45 -48
- package/dist/useCases/listMyProperties.js.map +1 -1
- package/dist/useCases/listMyTimeSheets.d.ts +3 -5
- package/dist/useCases/listMyTimeSheets.js +45 -48
- package/dist/useCases/listMyTimeSheets.js.map +1 -1
- package/dist/useCases/listOrganizations.d.ts +3 -5
- package/dist/useCases/listOrganizations.js +45 -48
- package/dist/useCases/listOrganizations.js.map +1 -1
- package/dist/useCases/listPolicies.d.ts +3 -5
- package/dist/useCases/listPolicies.js +45 -48
- package/dist/useCases/listPolicies.js.map +1 -1
- package/dist/useCases/listProperties.d.ts +3 -5
- package/dist/useCases/listProperties.js +45 -48
- package/dist/useCases/listProperties.js.map +1 -1
- package/dist/useCases/listPropertyCredentials.d.ts +3 -5
- package/dist/useCases/listPropertyCredentials.js +45 -48
- package/dist/useCases/listPropertyCredentials.js.map +1 -1
- package/dist/useCases/listServers.d.ts +3 -5
- package/dist/useCases/listServers.js +45 -48
- package/dist/useCases/listServers.js.map +1 -1
- package/dist/useCases/listSessions.d.ts +3 -5
- package/dist/useCases/listSessions.js +45 -48
- package/dist/useCases/listSessions.js.map +1 -1
- package/dist/useCases/listSpaces.d.ts +3 -5
- package/dist/useCases/listSpaces.js +45 -48
- package/dist/useCases/listSpaces.js.map +1 -1
- package/dist/useCases/listSystems.d.ts +3 -5
- package/dist/useCases/listSystems.js +45 -48
- package/dist/useCases/listSystems.js.map +1 -1
- package/dist/useCases/listTicketLocations.d.ts +3 -5
- package/dist/useCases/listTicketLocations.js +45 -48
- package/dist/useCases/listTicketLocations.js.map +1 -1
- package/dist/useCases/listTickets.d.ts +3 -5
- package/dist/useCases/listTickets.js +45 -48
- package/dist/useCases/listTickets.js.map +1 -1
- package/dist/useCases/listTimeSheets.d.ts +3 -5
- package/dist/useCases/listTimeSheets.js +45 -48
- package/dist/useCases/listTimeSheets.js.map +1 -1
- package/dist/useCases/listUserSpaces.d.ts +3 -5
- package/dist/useCases/listUserSpaces.js +45 -48
- package/dist/useCases/listUserSpaces.js.map +1 -1
- package/dist/useCases/listUsers.d.ts +3 -5
- package/dist/useCases/listUsers.js +45 -48
- package/dist/useCases/listUsers.js.map +1 -1
- package/dist/useCases/listVendors.d.ts +3 -5
- package/dist/useCases/listVendors.js +45 -48
- package/dist/useCases/listVendors.js.map +1 -1
- package/dist/useCases/logoutUser.d.ts +3 -5
- package/dist/useCases/logoutUser.js +45 -48
- package/dist/useCases/logoutUser.js.map +1 -1
- package/dist/useCases/moveDevice.d.ts +3 -5
- package/dist/useCases/moveDevice.js +45 -48
- package/dist/useCases/moveDevice.js.map +1 -1
- package/dist/useCases/revokeApiKey.d.ts +3 -5
- package/dist/useCases/revokeApiKey.js +45 -48
- package/dist/useCases/revokeApiKey.js.map +1 -1
- package/dist/useCases/rotateApiKey.d.ts +3 -5
- package/dist/useCases/rotateApiKey.js +45 -48
- package/dist/useCases/rotateApiKey.js.map +1 -1
- package/dist/useCases/runAutomation.d.ts +3 -5
- package/dist/useCases/runAutomation.js +45 -48
- package/dist/useCases/runAutomation.js.map +1 -1
- package/dist/useCases/selectOrganization.d.ts +3 -5
- package/dist/useCases/selectOrganization.js +45 -48
- package/dist/useCases/selectOrganization.js.map +1 -1
- package/dist/useCases/sendNotification.d.ts +3 -5
- package/dist/useCases/sendNotification.js +45 -48
- package/dist/useCases/sendNotification.js.map +1 -1
- package/dist/useCases/sendVerificationCode.d.ts +3 -5
- package/dist/useCases/sendVerificationCode.js +45 -48
- package/dist/useCases/sendVerificationCode.js.map +1 -1
- package/dist/useCases/setDevice.d.ts +3 -5
- package/dist/useCases/setDevice.js +45 -48
- package/dist/useCases/setDevice.js.map +1 -1
- package/dist/useCases/setDevices.d.ts +3 -5
- package/dist/useCases/setDevices.js +45 -48
- package/dist/useCases/setDevices.js.map +1 -1
- package/dist/useCases/startSOS.d.ts +3 -5
- package/dist/useCases/startSOS.js +45 -48
- package/dist/useCases/startSOS.js.map +1 -1
- package/dist/useCases/stopSOS.d.ts +3 -5
- package/dist/useCases/stopSOS.js +45 -48
- package/dist/useCases/stopSOS.js.map +1 -1
- package/dist/useCases/updateAutomation.d.ts +3 -5
- package/dist/useCases/updateAutomation.js +45 -48
- package/dist/useCases/updateAutomation.js.map +1 -1
- package/dist/useCases/updateCategory.d.ts +3 -5
- package/dist/useCases/updateCategory.js +45 -48
- package/dist/useCases/updateCategory.js.map +1 -1
- package/dist/useCases/updateDepartment.d.ts +3 -5
- package/dist/useCases/updateDepartment.js +45 -48
- package/dist/useCases/updateDepartment.js.map +1 -1
- package/dist/useCases/updateDevice.d.ts +3 -5
- package/dist/useCases/updateDevice.js +45 -48
- package/dist/useCases/updateDevice.js.map +1 -1
- package/dist/useCases/updateDeviceCredential.d.ts +3 -5
- package/dist/useCases/updateDeviceCredential.js +49 -48
- package/dist/useCases/updateDeviceCredential.js.map +1 -1
- package/dist/useCases/updateDiscoveredDevice.d.ts +3 -5
- package/dist/useCases/updateDiscoveredDevice.js +45 -48
- package/dist/useCases/updateDiscoveredDevice.js.map +1 -1
- package/dist/useCases/updateIssue.d.ts +3 -5
- package/dist/useCases/updateIssue.js +45 -48
- package/dist/useCases/updateIssue.js.map +1 -1
- package/dist/useCases/updateMessageReadStatus.d.ts +3 -5
- package/dist/useCases/updateMessageReadStatus.js +45 -48
- package/dist/useCases/updateMessageReadStatus.js.map +1 -1
- package/dist/useCases/updateOrganization.d.ts +3 -5
- package/dist/useCases/updateOrganization.js +45 -48
- package/dist/useCases/updateOrganization.js.map +1 -1
- package/dist/useCases/updateOrganizationFeatures.d.ts +3 -5
- package/dist/useCases/updateOrganizationFeatures.js +45 -48
- package/dist/useCases/updateOrganizationFeatures.js.map +1 -1
- package/dist/useCases/updatePolicy.d.ts +3 -5
- package/dist/useCases/updatePolicy.js +45 -48
- package/dist/useCases/updatePolicy.js.map +1 -1
- package/dist/useCases/updateProperty.d.ts +3 -5
- package/dist/useCases/updateProperty.js +45 -48
- package/dist/useCases/updateProperty.js.map +1 -1
- package/dist/useCases/updatePropertyFeatures.d.ts +3 -5
- package/dist/useCases/updatePropertyFeatures.js +45 -48
- package/dist/useCases/updatePropertyFeatures.js.map +1 -1
- package/dist/useCases/updateSelf.d.ts +3 -5
- package/dist/useCases/updateSelf.js +45 -48
- package/dist/useCases/updateSelf.js.map +1 -1
- package/dist/useCases/updateServer.d.ts +3 -5
- package/dist/useCases/updateServer.js +45 -48
- package/dist/useCases/updateServer.js.map +1 -1
- package/dist/useCases/updateSpace.d.ts +3 -5
- package/dist/useCases/updateSpace.js +45 -48
- package/dist/useCases/updateSpace.js.map +1 -1
- package/dist/useCases/updateSystem.d.ts +3 -5
- package/dist/useCases/updateSystem.js +45 -48
- package/dist/useCases/updateSystem.js.map +1 -1
- package/dist/useCases/updateTicket.d.ts +3 -5
- package/dist/useCases/updateTicket.js +45 -48
- package/dist/useCases/updateTicket.js.map +1 -1
- package/dist/useCases/updateTicketStatus.d.ts +3 -5
- package/dist/useCases/updateTicketStatus.js +45 -48
- package/dist/useCases/updateTicketStatus.js.map +1 -1
- package/dist/useCases/updateTimeSheet.d.ts +3 -5
- package/dist/useCases/updateTimeSheet.js +45 -48
- package/dist/useCases/updateTimeSheet.js.map +1 -1
- package/dist/useCases/updateTimeSheetTimeEntry.d.ts +3 -5
- package/dist/useCases/updateTimeSheetTimeEntry.js +45 -48
- package/dist/useCases/updateTimeSheetTimeEntry.js.map +1 -1
- package/dist/useCases/updateUser.d.ts +3 -5
- package/dist/useCases/updateUser.js +45 -48
- package/dist/useCases/updateUser.js.map +1 -1
- package/dist/useCases/updateVendor.d.ts +3 -5
- package/dist/useCases/updateVendor.js +45 -48
- package/dist/useCases/updateVendor.js.map +1 -1
- package/dist/useCases/uploadImage.d.ts +3 -5
- package/dist/useCases/uploadImage.js +45 -48
- package/dist/useCases/uploadImage.js.map +1 -1
- package/dist/useCases/upsertDiscoveredDevice.d.ts +3 -5
- package/dist/useCases/upsertDiscoveredDevice.js +45 -48
- package/dist/useCases/upsertDiscoveredDevice.js.map +1 -1
- package/dist/useCases/validateAuth.d.ts +3 -5
- package/dist/useCases/validateAuth.js +45 -48
- package/dist/useCases/validateAuth.js.map +1 -1
- package/dist/validate.d.ts +94 -98
- package/dist/validate.js +62 -106
- package/dist/validate.js.map +1 -1
- package/package.json +6 -4
- package/dist/index-7k9xaBaL.d.ts +0 -30
- package/dist/index-B1__8mca.d.ts +0 -52
- package/dist/index-BmUDCO4d.d.ts +0 -143
- package/dist/index-BnWbLEt_.d.ts +0 -22
- package/dist/index-DJzBywIl.d.ts +0 -292
- package/dist/index-PDa8BHjL.d.ts +0 -50
- package/dist/index.js.map +0 -1
- package/dist/schemas/index.js.map +0 -1
package/dist/httpClient.d.ts
CHANGED
|
@@ -1,148 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { LogoutUserCommand } from './useCases/logoutUser.js';
|
|
3
|
-
import { DescribeMyAuthCommand } from './useCases/describeMyAuth.js';
|
|
4
|
-
import { ValidateAuthCommand } from './useCases/validateAuth.js';
|
|
5
|
-
import { SelectOrganizationCommand } from './useCases/selectOrganization.js';
|
|
6
|
-
import { ListMyOrganizationsCommand } from './useCases/listMyOrganizations.js';
|
|
7
|
-
import { DescribeSelfCommand } from './useCases/describeSelf.js';
|
|
8
|
-
import { DescribeUserCommand } from './useCases/describeUser.js';
|
|
9
|
-
import { CreateUserCommand } from './useCases/createUser.js';
|
|
10
|
-
import { ListUsersCommand } from './useCases/listUsers.js';
|
|
11
|
-
import { UpdateSelfCommand } from './useCases/updateSelf.js';
|
|
12
|
-
import { UpdateUserCommand } from './useCases/updateUser.js';
|
|
13
|
-
import { DeleteUserCommand } from './useCases/deleteUser.js';
|
|
14
|
-
import { CreateApiKeyCommand } from './useCases/createApiKey.js';
|
|
15
|
-
import { GetApiKeyCommand } from './useCases/getApiKey.js';
|
|
16
|
-
import { RotateApiKeyCommand } from './useCases/rotateApiKey.js';
|
|
17
|
-
import { RevokeApiKeyCommand } from './useCases/revokeApiKey.js';
|
|
18
|
-
import { SendVerificationCodeCommand } from './useCases/sendVerificationCode.js';
|
|
19
|
-
import { CheckVerificationCodeCommand } from './useCases/checkVerificationCode.js';
|
|
20
|
-
import { ListUserSpacesCommand } from './useCases/listUserSpaces.js';
|
|
21
|
-
import { DescribeMyPasskeyRegistrationsCommand } from './useCases/describeMyPasskeyRegistrations.js';
|
|
22
|
-
import { DeleteUserCredentialCommand } from './useCases/deleteUserCredential.js';
|
|
23
|
-
import { CreatePolicyCommand } from './useCases/createPolicy.js';
|
|
24
|
-
import { ListPoliciesCommand } from './useCases/listPolicies.js';
|
|
25
|
-
import { UpdatePolicyCommand } from './useCases/updatePolicy.js';
|
|
26
|
-
import { DeletePolicyCommand } from './useCases/deletePolicy.js';
|
|
27
|
-
import { DescribePolicyCommand } from './useCases/describePolicy.js';
|
|
28
|
-
import { ListSpacesCommand } from './useCases/listSpaces.js';
|
|
29
|
-
import { UpdateSpaceCommand } from './useCases/updateSpace.js';
|
|
30
|
-
import { CreateSpaceCommand } from './useCases/createSpace.js';
|
|
31
|
-
import { DescribeSpaceCommand } from './useCases/describeSpace.js';
|
|
32
|
-
import { DeleteSpaceCommand } from './useCases/deleteSpace.js';
|
|
33
|
-
import { CreateDeviceCommand } from './useCases/createDevice.js';
|
|
34
|
-
import { CreateDeviceCredentialCommand } from './useCases/createDeviceCredential.js';
|
|
35
|
-
import { ListDevicesCommand } from './useCases/listDevices.js';
|
|
36
|
-
import { ListDeviceCredentialsCommand } from './useCases/listDeviceCredentials.js';
|
|
37
|
-
import { ListCameraStreamPreviewsCommand } from './useCases/listCameraStreamPreviews.js';
|
|
38
|
-
import { DescribeDeviceCommand } from './useCases/describeDevice.js';
|
|
39
|
-
import { UpdateDeviceCommand } from './useCases/updateDevice.js';
|
|
40
|
-
import { UpdateDeviceCredentialCommand } from './useCases/updateDeviceCredential.js';
|
|
41
|
-
import { SetDeviceCommand } from './useCases/setDevice.js';
|
|
42
|
-
import { DeleteDeviceCommand } from './useCases/deleteDevice.js';
|
|
43
|
-
import { DeleteDeviceCredentialCommand } from './useCases/deleteDeviceCredential.js';
|
|
44
|
-
import { MoveDeviceCommand } from './useCases/moveDevice.js';
|
|
45
|
-
import { DescribeDeviceConfigCommand } from './useCases/describeDeviceConfig.js';
|
|
46
|
-
import { CreateCategoryCommand } from './useCases/createCategory.js';
|
|
47
|
-
import { DeleteCategoryCommand } from './useCases/deleteCategory.js';
|
|
48
|
-
import { DescribeCategoryCommand } from './useCases/describeCategory.js';
|
|
49
|
-
import { ListCategoriesCommand } from './useCases/listCategories.js';
|
|
50
|
-
import { UpdateCategoryCommand } from './useCases/updateCategory.js';
|
|
51
|
-
import { DescribeDepartmentCommand } from './useCases/describeDepartment.js';
|
|
52
|
-
import { ListDepartmentsCommand } from './useCases/listDepartments.js';
|
|
53
|
-
import { DeleteDepartmentCommand } from './useCases/deleteDepartment.js';
|
|
54
|
-
import { CreateDepartmentCommand } from './useCases/createDepartment.js';
|
|
55
|
-
import { UpdateDepartmentCommand } from './useCases/updateDepartment.js';
|
|
56
|
-
import { AutoCloseTicketsCommand } from './useCases/autoCloseTickets.js';
|
|
57
|
-
import { DescribeTicketStatsCommand } from './useCases/describeTicketStats.js';
|
|
58
|
-
import { CreateTicketCommand } from './useCases/createTicket.js';
|
|
59
|
-
import { CreateTicketMessageCommand } from './useCases/createTicketMessage.js';
|
|
60
|
-
import { DeleteTicketCommand } from './useCases/deleteTicket.js';
|
|
61
|
-
import { ListTicketLocationsCommand } from './useCases/listTicketLocations.js';
|
|
62
|
-
import { DescribeTicketFiltersCommand } from './useCases/describeTicketFilters.js';
|
|
63
|
-
import { DescribeTicketCommand } from './useCases/describeTicket.js';
|
|
64
|
-
import { ListTicketsCommand } from './useCases/listTickets.js';
|
|
65
|
-
import { UpdateMessageReadStatusCommand } from './useCases/updateMessageReadStatus.js';
|
|
66
|
-
import { UpdateTicketCommand } from './useCases/updateTicket.js';
|
|
67
|
-
import { UpdateTicketStatusCommand } from './useCases/updateTicketStatus.js';
|
|
68
|
-
import { LeaveTicketCommand } from './useCases/leaveTicket.js';
|
|
69
|
-
import { CreateDiscoveredDeviceAssociationMapCommand } from './useCases/createDiscoveredDeviceAssociationMap.js';
|
|
70
|
-
import { AutoAssociateDiscoveredDevicesCommand } from './useCases/autoAssociateDiscoveredDevices.js';
|
|
71
|
-
import { CreateDiscoveredDeviceCommand } from './useCases/createDiscoveredDevice.js';
|
|
72
|
-
import { ListDiscoveredDevicesCommand } from './useCases/listDiscoveredDevices.js';
|
|
73
|
-
import { UpdateDiscoveredDeviceCommand } from './useCases/updateDiscoveredDevice.js';
|
|
74
|
-
import { DeleteDiscoveredDeviceCommand } from './useCases/deleteDiscoveredDevice.js';
|
|
75
|
-
import { DescribeDiscoveredDeviceCommand } from './useCases/describeDiscoveredDevice.js';
|
|
76
|
-
import { UpsertDiscoveredDeviceCommand } from './useCases/upsertDiscoveredDevice.js';
|
|
77
|
-
import { CreateDiscoveredDeviceAssociationCommand } from './useCases/createDiscoveredDeviceAssociation.js';
|
|
78
|
-
import { ListIntegrationsCommand } from './useCases/listIntegrations.js';
|
|
79
|
-
import { DescribeMyOrganizationCommand } from './useCases/describeMyOrganization.js';
|
|
80
|
-
import { CreateOrganizationCommand } from './useCases/createOrganization.js';
|
|
81
|
-
import { UpdateOrganizationCommand } from './useCases/updateOrganization.js';
|
|
82
|
-
import { UpdateOrganizationFeaturesCommand } from './useCases/updateOrganizationFeatures.js';
|
|
83
|
-
import { DeleteOrganizationCommand } from './useCases/deleteOrganization.js';
|
|
84
|
-
import { DescribeOrganizationCommand } from './useCases/describeOrganization.js';
|
|
85
|
-
import { ListOrganizationsCommand } from './useCases/listOrganizations.js';
|
|
86
|
-
import { ListPropertiesCommand } from './useCases/listProperties.js';
|
|
87
|
-
import { ListPropertyCredentialsCommand } from './useCases/listPropertyCredentials.js';
|
|
88
|
-
import { ListMyPropertiesCommand } from './useCases/listMyProperties.js';
|
|
89
|
-
import { CreatePropertyCommand } from './useCases/createProperty.js';
|
|
90
|
-
import { DeletePropertyCommand } from './useCases/deleteProperty.js';
|
|
91
|
-
import { UpdatePropertyCommand } from './useCases/updateProperty.js';
|
|
92
|
-
import { DescribePropertyCommand } from './useCases/describeProperty.js';
|
|
93
|
-
import { UpdatePropertyFeaturesCommand } from './useCases/updatePropertyFeatures.js';
|
|
94
|
-
import { EmailUserAccountSetupCommand } from './useCases/emailUserAccountSetup.js';
|
|
95
|
-
import { CreateImageUploadEndpointCommand } from './useCases/createImageUploadEndpoint.js';
|
|
96
|
-
import { DeleteMediaFileCommand } from './useCases/deleteMediaFile.js';
|
|
97
|
-
import { UploadImageCommand } from './useCases/uploadImage.js';
|
|
98
|
-
import { DescribeTimeSheetStatsCommand } from './useCases/describeTimeSheetStats.js';
|
|
99
|
-
import { ListMyTimeSheetsCommand } from './useCases/listMyTimeSheets.js';
|
|
100
|
-
import { DescribeTimeSheetCommand } from './useCases/describeTimeSheet.js';
|
|
101
|
-
import { ListTimeSheetsCommand } from './useCases/listTimeSheets.js';
|
|
102
|
-
import { CreateTimeSheetCommand } from './useCases/createTimeSheet.js';
|
|
103
|
-
import { DeleteTimeSheetCommand } from './useCases/deleteTimeSheet.js';
|
|
104
|
-
import { UpdateTimeSheetCommand } from './useCases/updateTimeSheet.js';
|
|
105
|
-
import { CreateTimeSheetTimeEntryCommand } from './useCases/createTimeSheetTimeEntry.js';
|
|
106
|
-
import { DeleteTimeSheetTimeEntryCommand } from './useCases/deleteTimeSheetTimeEntry.js';
|
|
107
|
-
import { UpdateTimeSheetTimeEntryCommand } from './useCases/updateTimeSheetTimeEntry.js';
|
|
108
|
-
import { StartSOSCommand } from './useCases/startSOS.js';
|
|
109
|
-
import { StopSOSCommand } from './useCases/stopSOS.js';
|
|
110
|
-
import { DescribeSOSCommand } from './useCases/describeSOS.js';
|
|
111
|
-
import { DescribeIssueCommand } from './useCases/describeIssue.js';
|
|
112
|
-
import { ListIssuesCommand } from './useCases/listIssues.js';
|
|
113
|
-
import { DeleteIssueCommand } from './useCases/deleteIssue.js';
|
|
114
|
-
import { CreateIssueCommand } from './useCases/createIssue.js';
|
|
115
|
-
import { UpdateIssueCommand } from './useCases/updateIssue.js';
|
|
116
|
-
import { BulkUpdateIssueCommand } from './useCases/bulkUpdateIssue.js';
|
|
117
|
-
import { DescribeVendorCommand } from './useCases/describeVendor.js';
|
|
118
|
-
import { ListVendorsCommand } from './useCases/listVendors.js';
|
|
119
|
-
import { DeleteVendorCommand } from './useCases/deleteVendor.js';
|
|
120
|
-
import { CreateVendorCommand } from './useCases/createVendor.js';
|
|
121
|
-
import { UpdateVendorCommand } from './useCases/updateVendor.js';
|
|
122
|
-
import { CreateAutomationCommand } from './useCases/createAutomation.js';
|
|
123
|
-
import { ListAutomationsCommand } from './useCases/listAutomations.js';
|
|
124
|
-
import { DescribeAutomationCommand } from './useCases/describeAutomation.js';
|
|
125
|
-
import { UpdateAutomationCommand } from './useCases/updateAutomation.js';
|
|
126
|
-
import { DeleteAutomationCommand } from './useCases/deleteAutomation.js';
|
|
127
|
-
import { CreateDefaultAutomationsCommand } from './useCases/createDefaultAutomations.js';
|
|
128
|
-
import { RunAutomationCommand } from './useCases/runAutomation.js';
|
|
129
|
-
import { SendNotificationCommand } from './useCases/sendNotification.js';
|
|
130
|
-
import { ListSessionsCommand } from './useCases/listSessions.js';
|
|
131
|
-
import { DescribeSessionCommand } from './useCases/describeSession.js';
|
|
132
|
-
import { DeleteSessionCommand } from './useCases/deleteSession.js';
|
|
133
|
-
import { SetDevicesCommand } from './useCases/setDevices.js';
|
|
134
|
-
import { CreateSystemCommand } from './useCases/createSystem.js';
|
|
135
|
-
import { DeleteSystemCommand } from './useCases/deleteSystem.js';
|
|
136
|
-
import { DescribeSystemCommand } from './useCases/describeSystem.js';
|
|
137
|
-
import { ListSystemsCommand } from './useCases/listSystems.js';
|
|
138
|
-
import { UpdateSystemCommand } from './useCases/updateSystem.js';
|
|
139
|
-
import { CreateServerCommand } from './useCases/createServer.js';
|
|
140
|
-
import { DeleteServerCommand } from './useCases/deleteServer.js';
|
|
141
|
-
import { DescribeServerCommand } from './useCases/describeServer.js';
|
|
142
|
-
import { ListServersCommand } from './useCases/listServers.js';
|
|
143
|
-
import { UpdateServerCommand } from './useCases/updateServer.js';
|
|
144
|
-
|
|
145
|
-
declare class KohostHTTPClient {
|
|
1
|
+
export class KohostHTTPClient {
|
|
146
2
|
static get defs(): {
|
|
147
3
|
apiKeyHeader: string;
|
|
148
4
|
propertyHeader: string;
|
|
@@ -205,18 +61,16 @@ declare class KohostHTTPClient {
|
|
|
205
61
|
on(event: "LoginRequired" | "PhoneVerificationRequired", callback: Function): void;
|
|
206
62
|
emit(event: any, ...args: any[]): void;
|
|
207
63
|
/**
|
|
208
|
-
* @typedef {keyof typeof import('./useCases')} CommandName
|
|
209
|
-
* @typedef {import('./useCases')[CommandName]} Command
|
|
64
|
+
* @typedef {keyof typeof import('./useCases.js')} CommandName
|
|
65
|
+
* @typedef {import('./useCases.js')[CommandName]} Command
|
|
210
66
|
*
|
|
211
67
|
* @param {Command} command
|
|
212
68
|
*/
|
|
213
|
-
send(command: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof CreateApiKeyCommand | typeof GetApiKeyCommand | typeof RotateApiKeyCommand | typeof RevokeApiKeyCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof UpdateOrganizationFeaturesCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertyFeaturesCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof DescribeTimeSheetStatsCommand | typeof ListMyTimeSheetsCommand | typeof DescribeTimeSheetCommand | typeof ListTimeSheetsCommand | typeof CreateTimeSheetCommand | typeof DeleteTimeSheetCommand | typeof UpdateTimeSheetCommand | typeof CreateTimeSheetTimeEntryCommand | typeof DeleteTimeSheetTimeEntryCommand | typeof UpdateTimeSheetTimeEntryCommand | typeof StartSOSCommand | typeof StopSOSCommand | typeof DescribeSOSCommand | typeof DescribeIssueCommand | typeof ListIssuesCommand | typeof DeleteIssueCommand | typeof CreateIssueCommand | typeof UpdateIssueCommand | typeof BulkUpdateIssueCommand | typeof DescribeVendorCommand | typeof ListVendorsCommand | typeof DeleteVendorCommand | typeof CreateVendorCommand | typeof UpdateVendorCommand | typeof CreateAutomationCommand | typeof ListAutomationsCommand | typeof DescribeAutomationCommand | typeof UpdateAutomationCommand | typeof DeleteAutomationCommand | typeof CreateDefaultAutomationsCommand | typeof RunAutomationCommand | typeof SendNotificationCommand | typeof ListSessionsCommand | typeof DescribeSessionCommand | typeof DeleteSessionCommand | typeof SetDevicesCommand | typeof CreateSystemCommand | typeof DeleteSystemCommand | typeof DescribeSystemCommand | typeof ListSystemsCommand | typeof UpdateSystemCommand | typeof CreateServerCommand | typeof DeleteServerCommand | typeof DescribeServerCommand | typeof ListServersCommand | typeof UpdateServerCommand): Promise<any>;
|
|
69
|
+
send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").UpdateTicketStatusCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Promise<any>;
|
|
214
70
|
/**
|
|
215
71
|
* @param {Command} config
|
|
216
72
|
* @returns {Request}
|
|
217
73
|
*/
|
|
218
|
-
createRequest(config: typeof CreatePwaHandoffTokenCommand | typeof LogoutUserCommand | typeof DescribeMyAuthCommand | typeof ValidateAuthCommand | typeof SelectOrganizationCommand | typeof ListMyOrganizationsCommand | typeof DescribeSelfCommand | typeof DescribeUserCommand | typeof CreateUserCommand | typeof ListUsersCommand | typeof UpdateSelfCommand | typeof UpdateUserCommand | typeof DeleteUserCommand | typeof CreateApiKeyCommand | typeof GetApiKeyCommand | typeof RotateApiKeyCommand | typeof RevokeApiKeyCommand | typeof SendVerificationCodeCommand | typeof CheckVerificationCodeCommand | typeof ListUserSpacesCommand | typeof DescribeMyPasskeyRegistrationsCommand | typeof DeleteUserCredentialCommand | typeof CreatePolicyCommand | typeof ListPoliciesCommand | typeof UpdatePolicyCommand | typeof DeletePolicyCommand | typeof DescribePolicyCommand | typeof ListSpacesCommand | typeof UpdateSpaceCommand | typeof CreateSpaceCommand | typeof DescribeSpaceCommand | typeof DeleteSpaceCommand | typeof CreateDeviceCommand | typeof CreateDeviceCredentialCommand | typeof ListDevicesCommand | typeof ListDeviceCredentialsCommand | typeof ListCameraStreamPreviewsCommand | typeof DescribeDeviceCommand | typeof UpdateDeviceCommand | typeof UpdateDeviceCredentialCommand | typeof SetDeviceCommand | typeof DeleteDeviceCommand | typeof DeleteDeviceCredentialCommand | typeof MoveDeviceCommand | typeof DescribeDeviceConfigCommand | typeof CreateCategoryCommand | typeof DeleteCategoryCommand | typeof DescribeCategoryCommand | typeof ListCategoriesCommand | typeof UpdateCategoryCommand | typeof DescribeDepartmentCommand | typeof ListDepartmentsCommand | typeof DeleteDepartmentCommand | typeof CreateDepartmentCommand | typeof UpdateDepartmentCommand | typeof AutoCloseTicketsCommand | typeof DescribeTicketStatsCommand | typeof CreateTicketCommand | typeof CreateTicketMessageCommand | typeof DeleteTicketCommand | typeof ListTicketLocationsCommand | typeof DescribeTicketFiltersCommand | typeof DescribeTicketCommand | typeof ListTicketsCommand | typeof UpdateMessageReadStatusCommand | typeof UpdateTicketCommand | typeof UpdateTicketStatusCommand | typeof LeaveTicketCommand | typeof CreateDiscoveredDeviceAssociationMapCommand | typeof AutoAssociateDiscoveredDevicesCommand | typeof CreateDiscoveredDeviceCommand | typeof ListDiscoveredDevicesCommand | typeof UpdateDiscoveredDeviceCommand | typeof DeleteDiscoveredDeviceCommand | typeof DescribeDiscoveredDeviceCommand | typeof UpsertDiscoveredDeviceCommand | typeof CreateDiscoveredDeviceAssociationCommand | typeof ListIntegrationsCommand | typeof DescribeMyOrganizationCommand | typeof CreateOrganizationCommand | typeof UpdateOrganizationCommand | typeof UpdateOrganizationFeaturesCommand | typeof DeleteOrganizationCommand | typeof DescribeOrganizationCommand | typeof ListOrganizationsCommand | typeof ListPropertiesCommand | typeof ListPropertyCredentialsCommand | typeof ListMyPropertiesCommand | typeof CreatePropertyCommand | typeof DeletePropertyCommand | typeof UpdatePropertyCommand | typeof DescribePropertyCommand | typeof UpdatePropertyFeaturesCommand | typeof EmailUserAccountSetupCommand | typeof CreateImageUploadEndpointCommand | typeof DeleteMediaFileCommand | typeof UploadImageCommand | typeof DescribeTimeSheetStatsCommand | typeof ListMyTimeSheetsCommand | typeof DescribeTimeSheetCommand | typeof ListTimeSheetsCommand | typeof CreateTimeSheetCommand | typeof DeleteTimeSheetCommand | typeof UpdateTimeSheetCommand | typeof CreateTimeSheetTimeEntryCommand | typeof DeleteTimeSheetTimeEntryCommand | typeof UpdateTimeSheetTimeEntryCommand | typeof StartSOSCommand | typeof StopSOSCommand | typeof DescribeSOSCommand | typeof DescribeIssueCommand | typeof ListIssuesCommand | typeof DeleteIssueCommand | typeof CreateIssueCommand | typeof UpdateIssueCommand | typeof BulkUpdateIssueCommand | typeof DescribeVendorCommand | typeof ListVendorsCommand | typeof DeleteVendorCommand | typeof CreateVendorCommand | typeof UpdateVendorCommand | typeof CreateAutomationCommand | typeof ListAutomationsCommand | typeof DescribeAutomationCommand | typeof UpdateAutomationCommand | typeof DeleteAutomationCommand | typeof CreateDefaultAutomationsCommand | typeof RunAutomationCommand | typeof SendNotificationCommand | typeof ListSessionsCommand | typeof DescribeSessionCommand | typeof DeleteSessionCommand | typeof SetDevicesCommand | typeof CreateSystemCommand | typeof DeleteSystemCommand | typeof DescribeSystemCommand | typeof ListSystemsCommand | typeof UpdateSystemCommand | typeof CreateServerCommand | typeof DeleteServerCommand | typeof DescribeServerCommand | typeof ListServersCommand | typeof UpdateServerCommand): Request;
|
|
74
|
+
createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").AutoCloseTicketsCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").UpdateTicketStatusCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Request;
|
|
219
75
|
#private;
|
|
220
76
|
}
|
|
221
|
-
|
|
222
|
-
export { KohostHTTPClient };
|
package/dist/httpClient.js
CHANGED
|
@@ -1,207 +1,174 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
});
|
|
171
|
-
} else if (value === null || value === void 0) {
|
|
172
|
-
url.searchParams.append(key, "");
|
|
173
|
-
} else if (typeof value === "object") {
|
|
174
|
-
Object.entries(value).forEach(([nestedKey, nestedValue]) => {
|
|
175
|
-
if (Array.isArray(nestedValue)) {
|
|
176
|
-
nestedValue.forEach((item) => {
|
|
177
|
-
url.searchParams.append(`${key}[${nestedKey}][]`, item);
|
|
178
|
-
});
|
|
179
|
-
} else {
|
|
180
|
-
url.searchParams.append(`${key}[${nestedKey}]`, nestedValue);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
} else {
|
|
184
|
-
url.searchParams.append(key, value);
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
const headers = new Headers(this.headers);
|
|
189
|
-
if (config.headers) {
|
|
190
|
-
Object.keys(config.headers).forEach((key) => {
|
|
191
|
-
headers.set(key, config.headers[key]);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
const body = config.data !== null && ["POST", "PUT", "PATCH"].includes(method) ? headers.get("Content-Type") === "application/json" ? JSON.stringify(config.data) : config.data : void 0;
|
|
195
|
-
const request = new Request(url, {
|
|
196
|
-
method,
|
|
197
|
-
headers,
|
|
198
|
-
credentials: "include",
|
|
199
|
-
body
|
|
200
|
-
});
|
|
201
|
-
return request;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
export {
|
|
205
|
-
KohostHTTPClient
|
|
1
|
+
//#region .generated/httpClient.js
|
|
2
|
+
var KohostHTTPClient = class KohostHTTPClient {
|
|
3
|
+
#onSuccess;
|
|
4
|
+
#onError;
|
|
5
|
+
/**
|
|
6
|
+
@param {Object} options - The options to create the client
|
|
7
|
+
@param {String} options.organizationId - The organization ID
|
|
8
|
+
@param {String} options.propertyId - The property ID
|
|
9
|
+
@param {String | URL} options.url - The base URL for the API endpint
|
|
10
|
+
@param {String} options.apiKey - The API key to use for requests
|
|
11
|
+
@param {Headers} options.headers - Additional headers to send with each request
|
|
12
|
+
@param {Function} options.onSuccess - A callback to handle successful responses
|
|
13
|
+
@param {Function} options.onError - A callback to handle errors
|
|
14
|
+
*/
|
|
15
|
+
constructor(options = {
|
|
16
|
+
url: "",
|
|
17
|
+
propertyId: "",
|
|
18
|
+
organizationId: "",
|
|
19
|
+
apiKey: "",
|
|
20
|
+
headers: new Headers({}),
|
|
21
|
+
onSuccess: (response) => response,
|
|
22
|
+
onError: (error) => error
|
|
23
|
+
}) {
|
|
24
|
+
if (!options.url) throw new Error("options.url is required");
|
|
25
|
+
this.options = options;
|
|
26
|
+
this.baseUrl = new URL(options.url);
|
|
27
|
+
this.headers = new Headers({
|
|
28
|
+
"Content-Type": "application/json",
|
|
29
|
+
Accept: "application/json",
|
|
30
|
+
...options.headers
|
|
31
|
+
});
|
|
32
|
+
if (options.apiKey) this.headers.set(KohostHTTPClient.defs.apiKeyHeader, options.apiKey);
|
|
33
|
+
if (options.propertyId) this.propertyId = options.propertyId;
|
|
34
|
+
if (options.organizationId) this.organizationId = options.organizationId;
|
|
35
|
+
this.#onSuccess = options.onSuccess ? options.onSuccess : (response) => response;
|
|
36
|
+
this.#onError = options.onError ? options.onError : (error) => error;
|
|
37
|
+
this.callbacks = {};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param {"LoginRequired" | "PhoneVerificationRequired"} event
|
|
42
|
+
* @param {Function} callback
|
|
43
|
+
*/
|
|
44
|
+
on(event, callback) {
|
|
45
|
+
if (typeof callback !== "function") throw new Error("Callback must be a function");
|
|
46
|
+
if (!this.callbacks[event]) this.callbacks[event] = [];
|
|
47
|
+
this.callbacks[event].push(callback);
|
|
48
|
+
}
|
|
49
|
+
emit(event, ...args) {
|
|
50
|
+
if (this.callbacks[event]) this.callbacks[event].forEach((callback) => callback(...args));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @param {string} orgId
|
|
54
|
+
* @returns {void}
|
|
55
|
+
* @memberof KohostApiClient
|
|
56
|
+
* @example
|
|
57
|
+
* client.organizationId = "1234";
|
|
58
|
+
*/
|
|
59
|
+
set organizationId(orgId) {
|
|
60
|
+
const key = KohostHTTPClient.defs.organizationHeader;
|
|
61
|
+
this.headers.set(key, orgId);
|
|
62
|
+
}
|
|
63
|
+
get organizationId() {
|
|
64
|
+
const key = KohostHTTPClient.defs.organizationHeader;
|
|
65
|
+
return this.headers.get(key);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @param {string} propertyId
|
|
69
|
+
* @returns {void}
|
|
70
|
+
* @memberof KohostApiClient
|
|
71
|
+
* @example
|
|
72
|
+
* client.propertyId = "1234";
|
|
73
|
+
*/
|
|
74
|
+
set propertyId(propertyId) {
|
|
75
|
+
const key = KohostHTTPClient.defs.propertyHeader;
|
|
76
|
+
this.headers.set(key, propertyId);
|
|
77
|
+
}
|
|
78
|
+
get propertyId() {
|
|
79
|
+
const key = KohostHTTPClient.defs.propertyHeader;
|
|
80
|
+
return this.headers.get(key);
|
|
81
|
+
}
|
|
82
|
+
static get defs() {
|
|
83
|
+
return {
|
|
84
|
+
apiKeyHeader: "X-Api-Key",
|
|
85
|
+
propertyHeader: "X-Property-Id",
|
|
86
|
+
organizationHeader: "X-Organization-Id"
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @typedef {keyof typeof import('./useCases.js')} CommandName
|
|
91
|
+
* @typedef {import('./useCases.js')[CommandName]} Command
|
|
92
|
+
*
|
|
93
|
+
* @param {Command} command
|
|
94
|
+
*/
|
|
95
|
+
async send(command) {
|
|
96
|
+
const commandConfig = command.config;
|
|
97
|
+
const request = this.createRequest(commandConfig);
|
|
98
|
+
const response = await fetch(request);
|
|
99
|
+
const responseData = response.headers.get("Content-Type")?.includes("application/json") || false ? await response.json() : response.body;
|
|
100
|
+
if (!response.ok) {
|
|
101
|
+
let error = responseData?.error || new Error(response.statusText);
|
|
102
|
+
const status = response.status;
|
|
103
|
+
const errorMessage = responseData?.error?.message;
|
|
104
|
+
const expectedError = status >= 400 && status < 500;
|
|
105
|
+
if (expectedError && errorMessage === "Phone Verification is required") {
|
|
106
|
+
this.#onPhoneVerificationRequired();
|
|
107
|
+
return Promise.reject(error);
|
|
108
|
+
}
|
|
109
|
+
if (expectedError && errorMessage === "Login Required") {
|
|
110
|
+
this.#onLoginRequired();
|
|
111
|
+
return Promise.reject(error);
|
|
112
|
+
}
|
|
113
|
+
if (expectedError && errorMessage === "No auth header or cookie provided") {
|
|
114
|
+
this.#onLoginRequired();
|
|
115
|
+
return Promise.reject(error);
|
|
116
|
+
}
|
|
117
|
+
error = this.#onError(error);
|
|
118
|
+
return Promise.reject(error);
|
|
119
|
+
}
|
|
120
|
+
return this.#onSuccess(responseData);
|
|
121
|
+
}
|
|
122
|
+
#onLoginRequired() {
|
|
123
|
+
this.emit("LoginRequired");
|
|
124
|
+
}
|
|
125
|
+
#onPhoneVerificationRequired() {
|
|
126
|
+
this.emit("PhoneVerificationRequired");
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @param {Command} config
|
|
130
|
+
* @returns {Request}
|
|
131
|
+
*/
|
|
132
|
+
createRequest(config) {
|
|
133
|
+
if (typeof config.headers !== "object") config.headers = {};
|
|
134
|
+
let apiPath = config.url;
|
|
135
|
+
if (apiPath.startsWith("/")) apiPath = `.${apiPath}`;
|
|
136
|
+
const url = new URL(apiPath, this.baseUrl);
|
|
137
|
+
const method = config.method?.toUpperCase() || "GET";
|
|
138
|
+
if (config.params && typeof config.params === "object") Object.entries(config.params).forEach(([key, value]) => {
|
|
139
|
+
if (Array.isArray(value)) value.forEach((item) => {
|
|
140
|
+
if (typeof item === "object" && item !== null) Object.entries(item).forEach(([itemKey, itemValue]) => {
|
|
141
|
+
url.searchParams.append(`${key}[][${itemKey}]`, itemValue);
|
|
142
|
+
});
|
|
143
|
+
else url.searchParams.append(`${key}[]`, item);
|
|
144
|
+
});
|
|
145
|
+
else if (value === null || value === void 0) url.searchParams.append(key, "");
|
|
146
|
+
else if (typeof value === "object") Object.entries(value).forEach(([nestedKey, nestedValue]) => {
|
|
147
|
+
if (Array.isArray(nestedValue)) nestedValue.forEach((item) => {
|
|
148
|
+
url.searchParams.append(`${key}[${nestedKey}][]`, item);
|
|
149
|
+
});
|
|
150
|
+
else url.searchParams.append(`${key}[${nestedKey}]`, nestedValue);
|
|
151
|
+
});
|
|
152
|
+
else url.searchParams.append(key, value);
|
|
153
|
+
});
|
|
154
|
+
const headers = new Headers(this.headers);
|
|
155
|
+
if (config.headers) Object.keys(config.headers).forEach((key) => {
|
|
156
|
+
headers.set(key, config.headers[key]);
|
|
157
|
+
});
|
|
158
|
+
const body = config.data !== null && [
|
|
159
|
+
"POST",
|
|
160
|
+
"PUT",
|
|
161
|
+
"PATCH"
|
|
162
|
+
].includes(method) ? headers.get("Content-Type") === "application/json" ? JSON.stringify(config.data) : config.data : void 0;
|
|
163
|
+
return new Request(url, {
|
|
164
|
+
method,
|
|
165
|
+
headers,
|
|
166
|
+
credentials: "include",
|
|
167
|
+
body
|
|
168
|
+
});
|
|
169
|
+
}
|
|
206
170
|
};
|
|
171
|
+
//#endregion
|
|
172
|
+
export { KohostHTTPClient };
|
|
173
|
+
|
|
207
174
|
//# sourceMappingURL=httpClient.js.map
|