@dronedeploy/rocos-js-sdk 3.0.1-alpha.8 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +59 -29
- package/cjs/IRocosSDK.d.ts +4 -3
- package/cjs/RocosSDK.d.ts +19 -7
- package/cjs/RocosSDK.js +31 -10
- package/cjs/api/streams/caller/CallerStream.js +5 -2
- package/cjs/api/streams/caller/CallerStreamNode.js +2 -1
- package/cjs/api/streams/command/CommandStream.js +5 -2
- package/cjs/api/streams/command/CommandStreamNode.js +2 -1
- package/cjs/api/streams/control/ControlStream.js +5 -2
- package/cjs/api/streams/control/ControlStreamAbstract.d.ts +1 -1
- package/cjs/api/streams/control/ControlStreamNode.js +2 -1
- package/cjs/api/streams/fileAccessor/FileAccessorStream.js +4 -1
- package/cjs/api/streams/fileAccessor/FileAccessorStreamNode.js +3 -1
- package/cjs/api/streams/search/SearchStream.js +5 -2
- package/cjs/api/streams/search/SearchStreamNode.js +2 -1
- package/cjs/api/streams/telemetry/TelemetryStream.js +4 -1
- package/cjs/api/streams/telemetry/TelemetryStreamAbstract.d.ts +1 -1
- package/cjs/api/streams/telemetry/TelemetryStreamNode.js +2 -1
- package/cjs/api/streams/webRTCSignalling/WebRTCSignallingStream.js +5 -2
- package/cjs/constants/api.d.ts +31 -15
- package/cjs/constants/api.js +35 -18
- package/cjs/helpers/cleanObject.js +4 -1
- package/cjs/helpers/getUniqueConfigKey.d.ts +6 -2
- package/cjs/helpers/getUniqueConfigKey.js +7 -2
- package/cjs/helpers/index.d.ts +1 -0
- package/cjs/helpers/index.js +1 -0
- package/cjs/helpers/kscript/Context.d.ts +34 -0
- package/cjs/helpers/kscript/Context.js +52 -0
- package/cjs/helpers/kscript/index.d.ts +1 -0
- package/cjs/helpers/kscript/index.js +27 -0
- package/cjs/helpers/kscript/kscript.d.ts +6 -0
- package/cjs/helpers/kscript/kscript.js +115 -0
- package/cjs/helpers/kscript/nodes/Identifier.d.ts +12 -0
- package/cjs/helpers/kscript/nodes/Identifier.js +20 -0
- package/cjs/helpers/kscript/nodes/Literal.d.ts +11 -0
- package/cjs/helpers/kscript/nodes/Literal.js +22 -0
- package/cjs/helpers/kscript/nodes/Node.d.ts +9 -0
- package/cjs/helpers/kscript/nodes/Node.js +15 -0
- package/cjs/helpers/kscript/nodes/Program.d.ts +11 -0
- package/cjs/helpers/kscript/nodes/Program.js +24 -0
- package/cjs/helpers/kscript/nodes/TemplateLiteral.d.ts +23 -0
- package/cjs/helpers/kscript/nodes/TemplateLiteral.js +35 -0
- package/cjs/helpers/kscript/nodes/expressions/ArrayExpression.d.ts +7 -0
- package/cjs/helpers/kscript/nodes/expressions/ArrayExpression.js +31 -0
- package/cjs/helpers/kscript/nodes/expressions/ArrowFunctionExpression.d.ts +14 -0
- package/cjs/helpers/kscript/nodes/expressions/ArrowFunctionExpression.js +40 -0
- package/cjs/helpers/kscript/nodes/expressions/BinaryExpression.d.ts +16 -0
- package/cjs/helpers/kscript/nodes/expressions/BinaryExpression.js +104 -0
- package/cjs/helpers/kscript/nodes/expressions/CallExpression.d.ts +8 -0
- package/cjs/helpers/kscript/nodes/expressions/CallExpression.js +38 -0
- package/cjs/helpers/kscript/nodes/expressions/ChainExpression.d.ts +16 -0
- package/cjs/helpers/kscript/nodes/expressions/ChainExpression.js +25 -0
- package/cjs/helpers/kscript/nodes/expressions/ConditionalExpression.d.ts +14 -0
- package/cjs/helpers/kscript/nodes/expressions/ConditionalExpression.js +30 -0
- package/cjs/helpers/kscript/nodes/expressions/ExpressionStatement.d.ts +7 -0
- package/cjs/helpers/kscript/nodes/expressions/ExpressionStatement.js +18 -0
- package/cjs/helpers/kscript/nodes/expressions/LogicalExpression.d.ts +10 -0
- package/cjs/helpers/kscript/nodes/expressions/LogicalExpression.js +47 -0
- package/cjs/helpers/kscript/nodes/expressions/MemberExpression.d.ts +44 -0
- package/cjs/helpers/kscript/nodes/expressions/MemberExpression.js +98 -0
- package/cjs/helpers/kscript/nodes/expressions/ObjectExpression.d.ts +11 -0
- package/cjs/helpers/kscript/nodes/expressions/ObjectExpression.js +59 -0
- package/cjs/helpers/kscript/nodes/expressions/UnaryExpression.d.ts +12 -0
- package/cjs/helpers/kscript/nodes/expressions/UnaryExpression.js +44 -0
- package/cjs/helpers/kscript/nodes/expressions/index.d.ts +11 -0
- package/cjs/helpers/kscript/nodes/expressions/index.js +28 -0
- package/cjs/helpers/kscript/nodes/index.d.ts +4 -0
- package/cjs/helpers/kscript/nodes/index.js +10 -0
- package/cjs/helpers/kscript/nodes/nodeTypes.d.ts +33 -0
- package/cjs/helpers/kscript/nodes/nodeTypes.js +29 -0
- package/cjs/helpers/kscript/utils.d.ts +4 -0
- package/cjs/helpers/kscript/utils.js +15 -0
- package/cjs/helpers/websandbox/connection.d.ts +2 -1
- package/cjs/helpers/websandbox/connection.js +6 -5
- package/cjs/helpers/websandbox/frame/frame.js +4 -1
- package/cjs/helpers/websandbox/frame/frame.source.js +1 -1
- package/cjs/helpers/websandbox/frame/worker/manager.d.ts +8 -4
- package/cjs/helpers/websandbox/frame/worker/manager.js +32 -14
- package/cjs/helpers/websandbox/frame/worker/worker.source.js +1 -1
- package/cjs/helpers/websandbox/sandbox.d.ts +1 -1
- package/cjs/helpers/websandbox/sandbox.js +7 -7
- package/cjs/models/IConnectedCallsign.d.ts +10 -0
- package/cjs/models/IConnectedCallsign.js +8 -0
- package/cjs/models/RocosError.d.ts +3 -0
- package/cjs/models/RocosError.js +3 -0
- package/cjs/models/ServiceEnum.d.ts +20 -17
- package/cjs/models/ServiceEnum.js +20 -17
- package/cjs/models/TelemetryStatus.d.ts +12 -0
- package/cjs/models/TelemetryStatus.js +17 -0
- package/cjs/models/Token.d.ts +2 -2
- package/cjs/models/Token.js +5 -5
- package/cjs/models/asset-storage/{AssetModelItem.d.ts → AssetItem.d.ts} +2 -0
- package/cjs/models/asset-storage/SyncIntegrations.d.ts +1 -1
- package/cjs/models/device-credentials/DeviceCredentials.d.ts +61 -0
- package/cjs/models/device-credentials/DeviceCredentials.js +2 -0
- package/cjs/models/graph/Position.d.ts +6 -0
- package/cjs/models/graph/Position.js +2 -0
- package/cjs/models/graph/Quaternion.d.ts +6 -0
- package/cjs/models/graph/Quaternion.js +2 -0
- package/cjs/models/graph/Vector3.d.ts +5 -0
- package/cjs/models/graph/Vector3.js +2 -0
- package/cjs/models/graph/index.d.ts +3 -0
- package/cjs/models/graph/index.js +19 -0
- package/cjs/models/index.d.ts +9 -2
- package/cjs/models/index.js +9 -2
- package/cjs/models/integrations/Location.d.ts +24 -0
- package/cjs/models/integrations/Location.js +2 -0
- package/cjs/models/integrations/PaginatedResults.d.ts +4 -0
- package/cjs/models/integrations/PaginatedResults.js +2 -0
- package/cjs/models/maps/Panorama.d.ts +12 -21
- package/cjs/models/projects/ExternalProject.d.ts +10 -0
- package/cjs/models/projects/ExternalProject.js +2 -0
- package/cjs/models/projects/NewProjectRequest.d.ts +8 -0
- package/cjs/models/projects/NewProjectRequest.js +2 -0
- package/cjs/models/target/Target.d.ts +30 -0
- package/cjs/models/target/Target.js +15 -0
- package/cjs/node/RocosSDKNode.d.ts +1 -5
- package/cjs/node/RocosSDKNode.js +9 -9
- package/cjs/services/AssetStorageService.d.ts +19 -19
- package/cjs/services/AssetStorageService.js +20 -9
- package/cjs/services/AuthService.d.ts +12 -1
- package/cjs/services/AuthService.js +25 -1
- package/cjs/services/BaseServiceAbstract.d.ts +1 -1
- package/cjs/services/BaseServiceAbstract.js +2 -2
- package/cjs/services/DeviceCredentialsService.d.ts +15 -0
- package/cjs/services/DeviceCredentialsService.js +56 -0
- package/cjs/services/EnvironmentService.d.ts +28 -0
- package/cjs/services/EnvironmentService.js +48 -0
- package/cjs/services/EvaluatorService.js +1 -1
- package/cjs/services/IntegrationService.d.ts +7 -1
- package/cjs/services/IntegrationService.js +8 -0
- package/cjs/services/MapService.d.ts +18 -8
- package/cjs/services/MapService.js +37 -19
- package/cjs/services/ProfileService.d.ts +24 -0
- package/cjs/services/ProfileService.js +34 -0
- package/cjs/services/ProjectService.d.ts +7 -2
- package/cjs/services/ProjectService.js +7 -3
- package/cjs/services/RTPWebRTCService.d.ts +6 -1
- package/cjs/services/RTPWebRTCService.js +10 -2
- package/cjs/services/RobotService.d.ts +3 -1
- package/cjs/services/RobotService.js +6 -0
- package/cjs/services/SpotProvisioningService.d.ts +1 -1
- package/cjs/services/SpotProvisioningServiceNode.d.ts +1 -1
- package/cjs/services/TargetService.d.ts +16 -0
- package/cjs/services/TargetService.js +58 -0
- package/cjs/services/TelemetryService.d.ts +10 -1
- package/cjs/services/TelemetryService.js +27 -5
- package/cjs/services/WorkflowService.d.ts +18 -8
- package/cjs/services/WorkflowService.js +37 -11
- package/cjs/services/index.d.ts +11 -9
- package/cjs/services/index.js +11 -9
- package/cjs/store/RocosStore.d.ts +1 -2
- package/esm/IRocosSDK.d.ts +4 -3
- package/esm/RocosSDK.d.ts +19 -7
- package/esm/RocosSDK.js +32 -11
- package/esm/api/streams/caller/CallerStream.js +5 -2
- package/esm/api/streams/caller/CallerStreamNode.js +2 -1
- package/esm/api/streams/command/CommandStream.js +5 -2
- package/esm/api/streams/command/CommandStreamNode.js +2 -1
- package/esm/api/streams/control/ControlStream.js +5 -2
- package/esm/api/streams/control/ControlStreamAbstract.d.ts +1 -1
- package/esm/api/streams/control/ControlStreamNode.js +2 -1
- package/esm/api/streams/fileAccessor/FileAccessorStream.js +4 -1
- package/esm/api/streams/fileAccessor/FileAccessorStreamNode.js +3 -1
- package/esm/api/streams/search/SearchStream.js +5 -2
- package/esm/api/streams/search/SearchStreamNode.js +2 -1
- package/esm/api/streams/telemetry/TelemetryStream.js +4 -1
- package/esm/api/streams/telemetry/TelemetryStreamAbstract.d.ts +1 -1
- package/esm/api/streams/telemetry/TelemetryStreamNode.js +2 -1
- package/esm/api/streams/webRTCSignalling/WebRTCSignallingStream.js +5 -2
- package/esm/constants/api.d.ts +31 -15
- package/esm/constants/api.js +31 -15
- package/esm/helpers/cleanObject.js +4 -1
- package/esm/helpers/getUniqueConfigKey.d.ts +6 -2
- package/esm/helpers/getUniqueConfigKey.js +7 -2
- package/esm/helpers/index.d.ts +1 -0
- package/esm/helpers/index.js +1 -0
- package/esm/helpers/kscript/Context.d.ts +34 -0
- package/esm/helpers/kscript/Context.js +49 -0
- package/esm/helpers/kscript/index.d.ts +1 -0
- package/esm/helpers/kscript/index.js +1 -0
- package/esm/helpers/kscript/kscript.d.ts +6 -0
- package/esm/helpers/kscript/kscript.js +107 -0
- package/esm/helpers/kscript/nodes/Identifier.d.ts +12 -0
- package/esm/helpers/kscript/nodes/Identifier.js +14 -0
- package/esm/helpers/kscript/nodes/Literal.d.ts +11 -0
- package/esm/helpers/kscript/nodes/Literal.js +16 -0
- package/esm/helpers/kscript/nodes/Node.d.ts +9 -0
- package/esm/helpers/kscript/nodes/Node.js +12 -0
- package/esm/helpers/kscript/nodes/Program.d.ts +11 -0
- package/esm/helpers/kscript/nodes/Program.js +18 -0
- package/esm/helpers/kscript/nodes/TemplateLiteral.d.ts +23 -0
- package/esm/helpers/kscript/nodes/TemplateLiteral.js +29 -0
- package/esm/helpers/kscript/nodes/expressions/ArrayExpression.d.ts +7 -0
- package/esm/helpers/kscript/nodes/expressions/ArrayExpression.js +25 -0
- package/esm/helpers/kscript/nodes/expressions/ArrowFunctionExpression.d.ts +14 -0
- package/esm/helpers/kscript/nodes/expressions/ArrowFunctionExpression.js +34 -0
- package/esm/helpers/kscript/nodes/expressions/BinaryExpression.d.ts +16 -0
- package/esm/helpers/kscript/nodes/expressions/BinaryExpression.js +98 -0
- package/esm/helpers/kscript/nodes/expressions/CallExpression.d.ts +8 -0
- package/esm/helpers/kscript/nodes/expressions/CallExpression.js +32 -0
- package/esm/helpers/kscript/nodes/expressions/ChainExpression.d.ts +16 -0
- package/esm/helpers/kscript/nodes/expressions/ChainExpression.js +19 -0
- package/esm/helpers/kscript/nodes/expressions/ConditionalExpression.d.ts +14 -0
- package/esm/helpers/kscript/nodes/expressions/ConditionalExpression.js +24 -0
- package/esm/helpers/kscript/nodes/expressions/ExpressionStatement.d.ts +7 -0
- package/esm/helpers/kscript/nodes/expressions/ExpressionStatement.js +12 -0
- package/esm/helpers/kscript/nodes/expressions/LogicalExpression.d.ts +10 -0
- package/esm/helpers/kscript/nodes/expressions/LogicalExpression.js +41 -0
- package/esm/helpers/kscript/nodes/expressions/MemberExpression.d.ts +44 -0
- package/esm/helpers/kscript/nodes/expressions/MemberExpression.js +92 -0
- package/esm/helpers/kscript/nodes/expressions/ObjectExpression.d.ts +11 -0
- package/esm/helpers/kscript/nodes/expressions/ObjectExpression.js +53 -0
- package/esm/helpers/kscript/nodes/expressions/UnaryExpression.d.ts +12 -0
- package/esm/helpers/kscript/nodes/expressions/UnaryExpression.js +38 -0
- package/esm/helpers/kscript/nodes/expressions/index.d.ts +11 -0
- package/esm/helpers/kscript/nodes/expressions/index.js +11 -0
- package/esm/helpers/kscript/nodes/index.d.ts +4 -0
- package/esm/helpers/kscript/nodes/index.js +3 -0
- package/esm/helpers/kscript/nodes/nodeTypes.d.ts +33 -0
- package/esm/helpers/kscript/nodes/nodeTypes.js +24 -0
- package/esm/helpers/kscript/utils.d.ts +4 -0
- package/esm/helpers/kscript/utils.js +11 -0
- package/esm/helpers/websandbox/connection.d.ts +2 -1
- package/esm/helpers/websandbox/connection.js +6 -5
- package/esm/helpers/websandbox/frame/frame.js +4 -1
- package/esm/helpers/websandbox/frame/frame.source.js +1 -1
- package/esm/helpers/websandbox/frame/worker/manager.d.ts +8 -4
- package/esm/helpers/websandbox/frame/worker/manager.js +32 -14
- package/esm/helpers/websandbox/frame/worker/worker.source.js +1 -1
- package/esm/helpers/websandbox/sandbox.d.ts +1 -1
- package/esm/helpers/websandbox/sandbox.js +7 -7
- package/esm/models/IConnectedCallsign.d.ts +10 -0
- package/esm/models/IConnectedCallsign.js +5 -0
- package/esm/models/RocosError.d.ts +3 -0
- package/esm/models/RocosError.js +3 -0
- package/esm/models/ServiceEnum.d.ts +20 -17
- package/esm/models/ServiceEnum.js +20 -17
- package/esm/models/TelemetryStatus.d.ts +12 -0
- package/esm/models/TelemetryStatus.js +14 -0
- package/esm/models/Token.d.ts +2 -2
- package/esm/models/Token.js +5 -5
- package/esm/models/asset-storage/{AssetModelItem.d.ts → AssetItem.d.ts} +2 -0
- package/esm/models/asset-storage/SyncIntegrations.d.ts +1 -1
- package/esm/models/device-credentials/DeviceCredentials.d.ts +61 -0
- package/esm/models/graph/Position.d.ts +6 -0
- package/esm/models/graph/Quaternion.d.ts +6 -0
- package/esm/models/graph/Vector3.d.ts +5 -0
- package/esm/models/graph/index.d.ts +3 -0
- package/esm/models/graph/index.js +3 -0
- package/esm/models/index.d.ts +9 -2
- package/esm/models/index.js +9 -2
- package/esm/models/integrations/Location.d.ts +24 -0
- package/esm/models/integrations/PaginatedResults.d.ts +4 -0
- package/esm/models/maps/Panorama.d.ts +12 -21
- package/esm/models/projects/ExternalProject.d.ts +10 -0
- package/esm/models/projects/NewProjectRequest.d.ts +8 -0
- package/esm/models/target/Target.d.ts +30 -0
- package/esm/models/target/Target.js +9 -0
- package/esm/node/RocosSDKNode.d.ts +1 -5
- package/esm/node/RocosSDKNode.js +10 -10
- package/esm/services/AssetStorageService.d.ts +19 -19
- package/esm/services/AssetStorageService.js +20 -9
- package/esm/services/AuthService.d.ts +12 -1
- package/esm/services/AuthService.js +25 -1
- package/esm/services/BaseServiceAbstract.d.ts +1 -1
- package/esm/services/BaseServiceAbstract.js +3 -3
- package/esm/services/DeviceCredentialsService.d.ts +15 -0
- package/esm/services/DeviceCredentialsService.js +52 -0
- package/esm/services/EnvironmentService.d.ts +28 -0
- package/esm/services/EnvironmentService.js +44 -0
- package/esm/services/EvaluatorService.js +1 -1
- package/esm/services/IntegrationService.d.ts +7 -1
- package/esm/services/IntegrationService.js +10 -2
- package/esm/services/MapService.d.ts +18 -8
- package/esm/services/MapService.js +38 -20
- package/esm/services/ProfileService.d.ts +24 -0
- package/esm/services/ProfileService.js +35 -1
- package/esm/services/ProjectService.d.ts +7 -2
- package/esm/services/ProjectService.js +9 -5
- package/esm/services/RTPWebRTCService.d.ts +6 -1
- package/esm/services/RTPWebRTCService.js +10 -2
- package/esm/services/RobotService.d.ts +3 -1
- package/esm/services/RobotService.js +8 -2
- package/esm/services/SpotProvisioningService.d.ts +1 -1
- package/esm/services/SpotProvisioningServiceNode.d.ts +1 -1
- package/esm/services/TargetService.d.ts +16 -0
- package/esm/services/TargetService.js +54 -0
- package/esm/services/TelemetryService.d.ts +10 -1
- package/esm/services/TelemetryService.js +28 -6
- package/esm/services/WorkflowService.d.ts +18 -8
- package/esm/services/WorkflowService.js +38 -12
- package/esm/services/index.d.ts +11 -9
- package/esm/services/index.js +11 -9
- package/esm/store/RocosStore.d.ts +1 -2
- package/package.json +2 -2
- package/cjs/helpers/cleanObject.spec.js +0 -55
- package/cjs/helpers/flattenObject.spec.js +0 -31
- package/cjs/helpers/flattenOneOf.spec.js +0 -159
- package/cjs/helpers/formatServiceUrl.spec.js +0 -18
- package/cjs/helpers/getSha256Hex.spec.js +0 -19
- package/cjs/helpers/getSha256HexNode.spec.js +0 -10
- package/cjs/helpers/getURLSearchParams.spec.js +0 -21
- package/cjs/helpers/nanosecondToMillisecond.spec.js +0 -22
- package/cjs/helpers/splitRobotTopic.spec.js +0 -53
- package/cjs/helpers/standardDeviation.spec.d.ts +0 -1
- package/cjs/helpers/standardDeviation.spec.js +0 -13
- package/cjs/helpers/websandbox/frame/worker/manager.spec.d.ts +0 -4
- package/cjs/helpers/websandbox/frame/worker/manager.spec.js +0 -132
- package/cjs/models/CallsignStatus.d.ts +0 -6
- package/cjs/models/CallsignStatus.js +0 -10
- package/cjs/models/ExternalProject.d.ts +0 -6
- package/cjs/models/ExternalProject.js +0 -6
- package/cjs/models/Token.spec.d.ts +0 -1
- package/cjs/models/Token.spec.js +0 -110
- package/cjs/services/AuthService.spec.d.ts +0 -1
- package/cjs/services/AuthService.spec.js +0 -165
- package/cjs/services/CallerService.spec.d.ts +0 -1
- package/cjs/services/CallerService.spec.js +0 -229
- package/cjs/services/FunctionService.d.ts +0 -68
- package/cjs/services/FunctionService.js +0 -103
- package/cjs/services/PlatformTimeService.spec.d.ts +0 -1
- package/cjs/services/PlatformTimeService.spec.js +0 -182
- package/cjs/services/RTPWebRTCService.spec.d.ts +0 -4
- package/cjs/services/RTPWebRTCService.spec.js +0 -171
- package/cjs/services/TelemetryService.spec.d.ts +0 -1
- package/cjs/services/TelemetryService.spec.js +0 -39
- package/esm/helpers/cleanObject.spec.d.ts +0 -1
- package/esm/helpers/cleanObject.spec.js +0 -53
- package/esm/helpers/flattenObject.spec.d.ts +0 -1
- package/esm/helpers/flattenObject.spec.js +0 -29
- package/esm/helpers/flattenOneOf.spec.d.ts +0 -1
- package/esm/helpers/flattenOneOf.spec.js +0 -157
- package/esm/helpers/formatServiceUrl.spec.d.ts +0 -1
- package/esm/helpers/formatServiceUrl.spec.js +0 -16
- package/esm/helpers/getSha256Hex.spec.d.ts +0 -1
- package/esm/helpers/getSha256Hex.spec.js +0 -14
- package/esm/helpers/getSha256HexNode.spec.d.ts +0 -1
- package/esm/helpers/getSha256HexNode.spec.js +0 -8
- package/esm/helpers/getURLSearchParams.spec.d.ts +0 -1
- package/esm/helpers/getURLSearchParams.spec.js +0 -19
- package/esm/helpers/nanosecondToMillisecond.spec.d.ts +0 -1
- package/esm/helpers/nanosecondToMillisecond.spec.js +0 -20
- package/esm/helpers/splitRobotTopic.spec.d.ts +0 -1
- package/esm/helpers/splitRobotTopic.spec.js +0 -51
- package/esm/helpers/standardDeviation.spec.d.ts +0 -1
- package/esm/helpers/standardDeviation.spec.js +0 -11
- package/esm/helpers/websandbox/frame/worker/manager.spec.d.ts +0 -4
- package/esm/helpers/websandbox/frame/worker/manager.spec.js +0 -127
- package/esm/models/CallsignStatus.d.ts +0 -6
- package/esm/models/CallsignStatus.js +0 -7
- package/esm/models/ExternalProject.d.ts +0 -6
- package/esm/models/ExternalProject.js +0 -2
- package/esm/models/Token.spec.d.ts +0 -1
- package/esm/models/Token.spec.js +0 -108
- package/esm/models/asset-storage/AssetModelItem.js +0 -1
- package/esm/services/AuthService.spec.d.ts +0 -1
- package/esm/services/AuthService.spec.js +0 -163
- package/esm/services/CallerService.spec.d.ts +0 -1
- package/esm/services/CallerService.spec.js +0 -227
- package/esm/services/FunctionService.d.ts +0 -68
- package/esm/services/FunctionService.js +0 -99
- package/esm/services/PlatformTimeService.spec.d.ts +0 -1
- package/esm/services/PlatformTimeService.spec.js +0 -180
- package/esm/services/RTPWebRTCService.spec.d.ts +0 -4
- package/esm/services/RTPWebRTCService.spec.js +0 -169
- package/esm/services/TelemetryService.spec.d.ts +0 -1
- package/esm/services/TelemetryService.spec.js +0 -37
- /package/cjs/models/asset-storage/{AssetModelItem.js → AssetItem.js} +0 -0
- /package/{cjs/helpers/cleanObject.spec.d.ts → esm/models/asset-storage/AssetItem.js} +0 -0
- /package/{cjs/helpers/flattenObject.spec.d.ts → esm/models/device-credentials/DeviceCredentials.js} +0 -0
- /package/{cjs/helpers/flattenOneOf.spec.d.ts → esm/models/graph/Position.js} +0 -0
- /package/{cjs/helpers/formatServiceUrl.spec.d.ts → esm/models/graph/Quaternion.js} +0 -0
- /package/{cjs/helpers/getSha256Hex.spec.d.ts → esm/models/graph/Vector3.js} +0 -0
- /package/{cjs/helpers/getSha256HexNode.spec.d.ts → esm/models/integrations/Location.js} +0 -0
- /package/{cjs/helpers/getURLSearchParams.spec.d.ts → esm/models/integrations/PaginatedResults.js} +0 -0
- /package/{cjs/helpers/nanosecondToMillisecond.spec.d.ts → esm/models/projects/ExternalProject.js} +0 -0
- /package/{cjs/helpers/splitRobotTopic.spec.d.ts → esm/models/projects/NewProjectRequest.js} +0 -0
@@ -1,16 +1,19 @@
|
|
1
1
|
// this token (__WORKER_SOURCE__) is replaced by webpack with the source of the worker
|
2
2
|
const WORKER_SOURCE = '__WORKER_SOURCE__';
|
3
3
|
export default class Manager {
|
4
|
-
constructor() {
|
4
|
+
constructor(workers = 1) {
|
5
|
+
this.nextWorkerIndex = 0;
|
5
6
|
this.messageListeners = new Map();
|
6
|
-
this.
|
7
|
+
this.requestedWorkers = workers;
|
8
|
+
this.workers = Array.from({ length: workers }, () => this.createWorker());
|
7
9
|
}
|
8
10
|
async execute(task) {
|
11
|
+
const worker = this.getWorker();
|
9
12
|
const workerTask = {
|
10
13
|
...task,
|
11
14
|
contextVariable: task.contextVariable ?? 'ctx',
|
12
15
|
};
|
13
|
-
const result = this.runTask(workerTask);
|
16
|
+
const result = this.runTask(worker, workerTask);
|
14
17
|
const timeout = new Promise((_, reject) => {
|
15
18
|
const signal = AbortSignal.timeout(task.timeout);
|
16
19
|
signal.addEventListener('abort', () => {
|
@@ -20,7 +23,8 @@ export default class Manager {
|
|
20
23
|
return Promise.race([result, timeout])
|
21
24
|
.catch((e) => {
|
22
25
|
if (e.name === 'TimeoutError') {
|
23
|
-
this.terminate();
|
26
|
+
this.terminate(worker);
|
27
|
+
throw new DOMException('soft timeout reached', 'TimeoutError');
|
24
28
|
}
|
25
29
|
throw e;
|
26
30
|
})
|
@@ -28,14 +32,14 @@ export default class Manager {
|
|
28
32
|
this.removeMessageListener(task.id);
|
29
33
|
});
|
30
34
|
}
|
31
|
-
terminate() {
|
35
|
+
terminate(worker) {
|
32
36
|
for (const listener of this.messageListeners.values()) {
|
33
|
-
|
37
|
+
worker.removeEventListener('message', listener);
|
34
38
|
}
|
35
|
-
|
36
|
-
this.
|
39
|
+
worker.terminate();
|
40
|
+
this.rebuildWorkers();
|
37
41
|
}
|
38
|
-
runTask(task) {
|
42
|
+
runTask(worker, task) {
|
39
43
|
return new Promise((resolve, reject) => {
|
40
44
|
const listener = (event) => {
|
41
45
|
const { data } = event;
|
@@ -49,19 +53,33 @@ export default class Manager {
|
|
49
53
|
}
|
50
54
|
};
|
51
55
|
this.messageListeners.set(task.id, listener);
|
52
|
-
|
53
|
-
|
56
|
+
worker.addEventListener('message', listener);
|
57
|
+
worker.postMessage(task);
|
54
58
|
});
|
55
59
|
}
|
56
60
|
createWorker() {
|
57
61
|
const blob = URL.createObjectURL(new Blob([WORKER_SOURCE], { type: 'application/javascript' }));
|
58
62
|
return new Worker(blob);
|
59
63
|
}
|
64
|
+
rebuildWorkers() {
|
65
|
+
const needed = this.requestedWorkers - this.workers.length;
|
66
|
+
if (needed < 0)
|
67
|
+
throw new Error('Cannot have less than 0 workers');
|
68
|
+
if (needed <= 0)
|
69
|
+
return;
|
70
|
+
const newWorkers = Array.from({ length: needed }, () => this.createWorker());
|
71
|
+
this.workers.push(...newWorkers);
|
72
|
+
}
|
73
|
+
getWorker() {
|
74
|
+
const worker = this.workers[this.nextWorkerIndex];
|
75
|
+
this.nextWorkerIndex = (this.nextWorkerIndex + 1) % this.workers.length;
|
76
|
+
return worker;
|
77
|
+
}
|
60
78
|
removeMessageListener(id) {
|
61
79
|
const listener = this.messageListeners.get(id);
|
62
|
-
if (!listener)
|
80
|
+
if (!listener)
|
63
81
|
return;
|
64
|
-
|
65
|
-
this.
|
82
|
+
this.workers.forEach((worker) => worker.removeEventListener('message', listener));
|
83
|
+
this.messageListeners.delete(id);
|
66
84
|
}
|
67
85
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
// Auto-generated file
|
2
2
|
/* eslint-disable */
|
3
|
-
const source = `(()=>{"use strict";
|
3
|
+
const source = `(()=>{"use strict";const e=["TEMPORARY","PERSISTENT","console","self","onmessage","postMessage","global","allowed","Array","Boolean","Date","Function","Number","Object","RegExp","String","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","isFinite","isNaN","parseFloat","parseInt","Infinity","JSON","Math","NaN","undefined"];[...Object.getOwnPropertyNames(self),...Object.getOwnPropertyNames(self.__proto__)].forEach((r=>{e.includes(r)||Object.defineProperty(self,r,{get:()=>{throw new Error(\`Security Exception: cannot access \${r}\`)},set:()=>{throw new Error(\`Security Exception: cannot set \${r}\`)},configurable:!1})})),onmessage=e=>{let r,t=!0;try{r=Function(e.data.contextVariable,\`"use strict";return (\${e.data.code});\`)(e.data.context)}catch(e){r=e,t=!1}const o={id:e.data.id,result:r,success:t};postMessage(o)}})();`;
|
4
4
|
export default source;
|
@@ -44,7 +44,7 @@ export default class WebSandbox {
|
|
44
44
|
*
|
45
45
|
* This will remove the iframe from the DOM and remove the message listener.
|
46
46
|
*/
|
47
|
-
destroy(): void;
|
47
|
+
destroy(reason?: unknown): void;
|
48
48
|
private initialise;
|
49
49
|
private validateOptions;
|
50
50
|
private destroyAndRebuild;
|
@@ -29,8 +29,8 @@ export default class WebSandbox {
|
|
29
29
|
this.initialised = this.initialise();
|
30
30
|
this.frameAbortController = new AbortController();
|
31
31
|
if (options.abortSignal) {
|
32
|
-
this.promisifyAbortSignal(options.abortSignal).catch(() => {
|
33
|
-
void this.destroyAndRebuild(this.frame.id);
|
32
|
+
this.promisifyAbortSignal(options.abortSignal).catch((reason) => {
|
33
|
+
void this.destroyAndRebuild(this.frame.id, reason);
|
34
34
|
});
|
35
35
|
}
|
36
36
|
}
|
@@ -45,8 +45,8 @@ export default class WebSandbox {
|
|
45
45
|
*
|
46
46
|
* This will remove the iframe from the DOM and remove the message listener.
|
47
47
|
*/
|
48
|
-
destroy() {
|
49
|
-
this.frameAbortController.abort();
|
48
|
+
destroy(reason) {
|
49
|
+
this.frameAbortController.abort(reason);
|
50
50
|
this.frame.remove();
|
51
51
|
this.removeMessageListener();
|
52
52
|
}
|
@@ -79,11 +79,11 @@ export default class WebSandbox {
|
|
79
79
|
throw new Error('maximum timeout must be less than or equal to 5000ms');
|
80
80
|
}
|
81
81
|
}
|
82
|
-
async destroyAndRebuild(frameId) {
|
82
|
+
async destroyAndRebuild(frameId, reason) {
|
83
83
|
if (this.frame.id !== frameId) {
|
84
84
|
return;
|
85
85
|
}
|
86
|
-
this.destroy();
|
86
|
+
this.destroy(reason);
|
87
87
|
this.frame = this.createFrame();
|
88
88
|
this.frameAbortController = new AbortController();
|
89
89
|
await this.initialise();
|
@@ -117,7 +117,7 @@ export default class WebSandbox {
|
|
117
117
|
const signals = [task, timeout, frameAbortedSignal, userAbortedSignal].filter((i) => i !== null);
|
118
118
|
return Promise.race(signals).catch(async (e) => {
|
119
119
|
if (e.name === 'TimeoutError') {
|
120
|
-
await this.destroyAndRebuild(frameId);
|
120
|
+
await this.destroyAndRebuild(frameId, 'task timed out');
|
121
121
|
}
|
122
122
|
throw e;
|
123
123
|
});
|
@@ -24,6 +24,9 @@ export declare const errorCodes: {
|
|
24
24
|
MAPS_SERVICE_ERROR: string;
|
25
25
|
EVALUATOR_SERVICE_ERROR: string;
|
26
26
|
WEBRTC_SERVICE_ERROR: string;
|
27
|
+
DEVICE_CREDENTIALS_SERVICE_ERROR: string;
|
28
|
+
TARGET_SERVICE_ERROR: string;
|
29
|
+
ENVIRONMENT_SERVICE_ERROR: string;
|
27
30
|
};
|
28
31
|
export declare class RocosError extends Error {
|
29
32
|
code?: string;
|
package/esm/models/RocosError.js
CHANGED
@@ -24,6 +24,9 @@ export const errorCodes = {
|
|
24
24
|
MAPS_SERVICE_ERROR: 'MAPS_SERVICE_ERROR',
|
25
25
|
EVALUATOR_SERVICE_ERROR: 'EVALUATOR_SERVICE_ERROR',
|
26
26
|
WEBRTC_SERVICE_ERROR: 'WEBRTC_SERVICE_ERROR',
|
27
|
+
DEVICE_CREDENTIALS_SERVICE_ERROR: 'DEVICE_CREDENTIALS_SERVICE_ERROR',
|
28
|
+
TARGET_SERVICE_ERROR: 'TARGET_SERVICE_ERROR',
|
29
|
+
ENVIRONMENT_SERVICE_ERROR: 'ENVIRONMENT_SERVICE_ERROR',
|
27
30
|
};
|
28
31
|
export class RocosError extends Error {
|
29
32
|
constructor(err, code, statusCode) {
|
@@ -1,28 +1,31 @@
|
|
1
1
|
export declare enum ServiceEnum {
|
2
|
+
ASSET_STORAGE = "asset_storage",
|
2
3
|
AUTH = "auth",
|
3
|
-
TELEMETRY = "telemetry",
|
4
|
-
ROBOT = "robot",
|
5
|
-
EVENT = "event",
|
6
|
-
PROJECT = "project",
|
7
4
|
CALLER = "caller",
|
8
5
|
COMMAND = "command",
|
9
|
-
CONTROL = "control",
|
10
|
-
SEARCH = "search",
|
11
6
|
CONFIG_GROUP = "config_group",
|
7
|
+
CONTROL = "control",
|
12
8
|
DASHBOARD = "dashboard",
|
9
|
+
DEVICE_CREDENTIALS = "device_credentials",
|
10
|
+
ENVIRONMENT = "environment",
|
11
|
+
EVENT = "event",
|
12
|
+
EVALUATOR = "evaluator",
|
13
|
+
FILE_ACCESSOR = "file_accessor",
|
13
14
|
FUNCTION = "function",
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
WORKFLOW = "workflow",
|
18
|
-
ASSET_STORAGE = "asset_storage",
|
15
|
+
INTEGRATION = "integration",
|
16
|
+
MAP = "map",
|
17
|
+
PROJECT = "project",
|
19
18
|
PROFILE = "profile",
|
20
|
-
|
21
|
-
|
19
|
+
ROBOT = "robot",
|
20
|
+
RTP_WEBRTC = "rtp_webrtc",
|
22
21
|
SCHEDULE = "schedule",
|
22
|
+
SEARCH = "search",
|
23
23
|
SPOT_PROVISIONER = "spot_provisioner",
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
STREAM = "stream",
|
25
|
+
TARGET = "target",
|
26
|
+
TELEMETRY = "telemetry",
|
27
|
+
TIME_SYNCER = "time_syncer",
|
28
|
+
USER = "user",
|
29
|
+
WEBRTC_SIGNALLING = "webrtc_signalling",
|
30
|
+
WORKFLOW = "workflow"
|
28
31
|
}
|
@@ -1,29 +1,32 @@
|
|
1
1
|
export var ServiceEnum;
|
2
2
|
(function (ServiceEnum) {
|
3
|
+
ServiceEnum["ASSET_STORAGE"] = "asset_storage";
|
3
4
|
ServiceEnum["AUTH"] = "auth";
|
4
|
-
ServiceEnum["TELEMETRY"] = "telemetry";
|
5
|
-
ServiceEnum["ROBOT"] = "robot";
|
6
|
-
ServiceEnum["EVENT"] = "event";
|
7
|
-
ServiceEnum["PROJECT"] = "project";
|
8
5
|
ServiceEnum["CALLER"] = "caller";
|
9
6
|
ServiceEnum["COMMAND"] = "command";
|
10
|
-
ServiceEnum["CONTROL"] = "control";
|
11
|
-
ServiceEnum["SEARCH"] = "search";
|
12
7
|
ServiceEnum["CONFIG_GROUP"] = "config_group";
|
8
|
+
ServiceEnum["CONTROL"] = "control";
|
13
9
|
ServiceEnum["DASHBOARD"] = "dashboard";
|
14
|
-
ServiceEnum["
|
15
|
-
ServiceEnum["
|
16
|
-
ServiceEnum["
|
17
|
-
ServiceEnum["
|
18
|
-
ServiceEnum["WORKFLOW"] = "workflow";
|
19
|
-
ServiceEnum["ASSET_STORAGE"] = "asset_storage";
|
20
|
-
ServiceEnum["PROFILE"] = "profile";
|
21
|
-
ServiceEnum["WEBRTC_SIGNALLING"] = "webrtc_signalling";
|
10
|
+
ServiceEnum["DEVICE_CREDENTIALS"] = "device_credentials";
|
11
|
+
ServiceEnum["ENVIRONMENT"] = "environment";
|
12
|
+
ServiceEnum["EVENT"] = "event";
|
13
|
+
ServiceEnum["EVALUATOR"] = "evaluator";
|
22
14
|
ServiceEnum["FILE_ACCESSOR"] = "file_accessor";
|
23
|
-
ServiceEnum["
|
24
|
-
ServiceEnum["SPOT_PROVISIONER"] = "spot_provisioner";
|
15
|
+
ServiceEnum["FUNCTION"] = "function";
|
25
16
|
ServiceEnum["INTEGRATION"] = "integration";
|
26
17
|
ServiceEnum["MAP"] = "map";
|
27
|
-
ServiceEnum["
|
18
|
+
ServiceEnum["PROJECT"] = "project";
|
19
|
+
ServiceEnum["PROFILE"] = "profile";
|
20
|
+
ServiceEnum["ROBOT"] = "robot";
|
28
21
|
ServiceEnum["RTP_WEBRTC"] = "rtp_webrtc";
|
22
|
+
ServiceEnum["SCHEDULE"] = "schedule";
|
23
|
+
ServiceEnum["SEARCH"] = "search";
|
24
|
+
ServiceEnum["SPOT_PROVISIONER"] = "spot_provisioner";
|
25
|
+
ServiceEnum["STREAM"] = "stream";
|
26
|
+
ServiceEnum["TARGET"] = "target";
|
27
|
+
ServiceEnum["TELEMETRY"] = "telemetry";
|
28
|
+
ServiceEnum["TIME_SYNCER"] = "time_syncer";
|
29
|
+
ServiceEnum["USER"] = "user";
|
30
|
+
ServiceEnum["WEBRTC_SIGNALLING"] = "webrtc_signalling";
|
31
|
+
ServiceEnum["WORKFLOW"] = "workflow";
|
29
32
|
})(ServiceEnum || (ServiceEnum = {}));
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare enum TelemetryMonitorStatus {
|
2
|
+
UNKNOWN = "unknown",
|
3
|
+
CONNECTED = "connected",
|
4
|
+
DISCONNECTED = "disconnected",
|
5
|
+
ERROR = "error"
|
6
|
+
}
|
7
|
+
export declare enum CallsignStatus {
|
8
|
+
UNKNOWN = "unknown",
|
9
|
+
ONLINE = "online",
|
10
|
+
OFFLINE = "offline",
|
11
|
+
ERROR = "error"
|
12
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export var TelemetryMonitorStatus;
|
2
|
+
(function (TelemetryMonitorStatus) {
|
3
|
+
TelemetryMonitorStatus["UNKNOWN"] = "unknown";
|
4
|
+
TelemetryMonitorStatus["CONNECTED"] = "connected";
|
5
|
+
TelemetryMonitorStatus["DISCONNECTED"] = "disconnected";
|
6
|
+
TelemetryMonitorStatus["ERROR"] = "error";
|
7
|
+
})(TelemetryMonitorStatus || (TelemetryMonitorStatus = {}));
|
8
|
+
export var CallsignStatus;
|
9
|
+
(function (CallsignStatus) {
|
10
|
+
CallsignStatus["UNKNOWN"] = "unknown";
|
11
|
+
CallsignStatus["ONLINE"] = "online";
|
12
|
+
CallsignStatus["OFFLINE"] = "offline";
|
13
|
+
CallsignStatus["ERROR"] = "error";
|
14
|
+
})(CallsignStatus || (CallsignStatus = {}));
|
package/esm/models/Token.d.ts
CHANGED
@@ -31,10 +31,10 @@ export declare class Token implements IToken {
|
|
31
31
|
isExpiredIn(threshold?: number, unit?: 'minutes' | 'seconds' | 'hours'): boolean;
|
32
32
|
isExpired(): boolean;
|
33
33
|
private getJWTPayload;
|
34
|
-
/** Decode a
|
34
|
+
/** Decode a base64url string.
|
35
35
|
*
|
36
36
|
* Supports both Node.js and browser environments.
|
37
37
|
* @private
|
38
38
|
*/
|
39
|
-
private
|
39
|
+
private decodeBase64URL;
|
40
40
|
}
|
package/esm/models/Token.js
CHANGED
@@ -51,7 +51,7 @@ export class Token {
|
|
51
51
|
throw new Error('Invalid token, too many parts');
|
52
52
|
}
|
53
53
|
const [header, payload] = parts.slice(0, 2).map((part) => {
|
54
|
-
return JSON.parse(this.
|
54
|
+
return JSON.parse(this.decodeBase64URL(part));
|
55
55
|
});
|
56
56
|
if (typeof payload !== 'object') {
|
57
57
|
throw new Error('Invalid token, payload must be an object');
|
@@ -64,15 +64,15 @@ export class Token {
|
|
64
64
|
}
|
65
65
|
return payload;
|
66
66
|
}
|
67
|
-
/** Decode a
|
67
|
+
/** Decode a base64url string.
|
68
68
|
*
|
69
69
|
* Supports both Node.js and browser environments.
|
70
70
|
* @private
|
71
71
|
*/
|
72
|
-
|
72
|
+
decodeBase64URL(base64String) {
|
73
73
|
if (isNode) {
|
74
|
-
return Buffer.from(base64String, '
|
74
|
+
return Buffer.from(base64String, 'base64url').toString('utf-8');
|
75
75
|
}
|
76
|
-
return atob(base64String);
|
76
|
+
return atob(base64String.replace(/-/g, '+').replace(/_/g, '/'));
|
77
77
|
}
|
78
78
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Observation } from '../maps/Panorama';
|
1
2
|
export interface AssetItemModel {
|
2
3
|
metadata?: {
|
3
4
|
[key: string]: string;
|
@@ -11,4 +12,5 @@ export interface AssetItemModel {
|
|
11
12
|
}
|
12
13
|
export interface AssetItemWithObservationsModel extends AssetItemModel {
|
13
14
|
observationCount?: number;
|
15
|
+
observations?: Observation[];
|
14
16
|
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
export interface DeviceCredentials {
|
2
|
+
[component: string]: {
|
3
|
+
[system: string]: DeviceCredential;
|
4
|
+
};
|
5
|
+
}
|
6
|
+
export interface DeviceCredential {
|
7
|
+
/**
|
8
|
+
* Device ID or username
|
9
|
+
*/
|
10
|
+
id: string;
|
11
|
+
/**
|
12
|
+
* Device secret or password
|
13
|
+
*/
|
14
|
+
key: string;
|
15
|
+
}
|
16
|
+
export interface DeviceCredentialCreate {
|
17
|
+
/**
|
18
|
+
* Will automatically be generated if not provided
|
19
|
+
*/
|
20
|
+
id?: string;
|
21
|
+
/**
|
22
|
+
* Will automatically be generated if not provided
|
23
|
+
*/
|
24
|
+
secret?: string;
|
25
|
+
/**
|
26
|
+
* The agent component the credentials are for e.g. dji, spot, etc.
|
27
|
+
*/
|
28
|
+
component: string;
|
29
|
+
/**
|
30
|
+
* The system the credentials are for e.g. mqtt, rtmp, etc.
|
31
|
+
*/
|
32
|
+
system: string;
|
33
|
+
/**
|
34
|
+
* Access control list for the credentials
|
35
|
+
*/
|
36
|
+
acl?: DeviceCredentialACLItem[];
|
37
|
+
}
|
38
|
+
export interface DeviceCredentialACLItem {
|
39
|
+
/**
|
40
|
+
* The resource the ACL item is for e.g. /sys/product/{device_sn}/*
|
41
|
+
*/
|
42
|
+
resource: string;
|
43
|
+
/**
|
44
|
+
* The action the ACL item is for e.g. allow, deny, ignore
|
45
|
+
*/
|
46
|
+
action: DeviceCredentialAuthAction;
|
47
|
+
}
|
48
|
+
export type DeviceCredentialAuthAction = 'allow' | 'deny' | 'ignore';
|
49
|
+
export interface DeviceCredentialAuth extends DeviceCredential {
|
50
|
+
/**
|
51
|
+
* The agent component the credentials are for e.g. dji, spot, etc.
|
52
|
+
*/
|
53
|
+
component: string;
|
54
|
+
/**
|
55
|
+
* The system the credentials are for e.g. mqtt, rtmp, etc.
|
56
|
+
*/
|
57
|
+
system: string;
|
58
|
+
}
|
59
|
+
export interface DeviceCredentialAuthResult {
|
60
|
+
result: 'allow' | 'deny';
|
61
|
+
}
|
package/esm/models/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './asset-storage/
|
1
|
+
export * from './asset-storage/AssetItem';
|
2
2
|
export * from './asset-storage/SyncIntegrations';
|
3
3
|
export * from './schedule/IScheduleInfo';
|
4
4
|
export * from './schedule/IScheduleAction';
|
@@ -30,13 +30,19 @@ export * from './stream/ITelemetryStream';
|
|
30
30
|
export * from './stream/IWebRTCSignallingStream';
|
31
31
|
export * from './integrations/Overlay';
|
32
32
|
export * from './integrations/Plan';
|
33
|
+
export * from './integrations/Location';
|
34
|
+
export * from './integrations/PaginatedResults';
|
33
35
|
export * from './maps/Map';
|
36
|
+
export * from './maps/Panorama';
|
34
37
|
export * from './projects/ProjectUser';
|
35
|
-
export * from './
|
38
|
+
export * from './projects/ExternalProject';
|
39
|
+
export * from './projects/NewProjectRequest';
|
40
|
+
export * from './target/Target';
|
36
41
|
export * from './ExportDataQuery';
|
37
42
|
export * from './HttpError';
|
38
43
|
export * from './IBaseService';
|
39
44
|
export * from './IConfigGroup';
|
45
|
+
export * from './IConnectedCallsign';
|
40
46
|
export * from './IDebugLevel';
|
41
47
|
export * from './IExportDataQuery';
|
42
48
|
export * from './IFunctionConfig';
|
@@ -72,6 +78,7 @@ export * from './Stream';
|
|
72
78
|
export * from './StreamOptions';
|
73
79
|
export * from './StreamSource';
|
74
80
|
export * from './SubscriberStatusEnum';
|
81
|
+
export * from './TelemetryStatus';
|
75
82
|
export * from './Token';
|
76
83
|
export * from './types';
|
77
84
|
export * from './Widget';
|
package/esm/models/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './asset-storage/
|
1
|
+
export * from './asset-storage/AssetItem';
|
2
2
|
export * from './asset-storage/SyncIntegrations';
|
3
3
|
export * from './schedule/IScheduleInfo';
|
4
4
|
export * from './schedule/IScheduleAction';
|
@@ -30,13 +30,19 @@ export * from './stream/ITelemetryStream';
|
|
30
30
|
export * from './stream/IWebRTCSignallingStream';
|
31
31
|
export * from './integrations/Overlay';
|
32
32
|
export * from './integrations/Plan';
|
33
|
+
export * from './integrations/Location';
|
34
|
+
export * from './integrations/PaginatedResults';
|
33
35
|
export * from './maps/Map';
|
36
|
+
export * from './maps/Panorama';
|
34
37
|
export * from './projects/ProjectUser';
|
35
|
-
export * from './
|
38
|
+
export * from './projects/ExternalProject';
|
39
|
+
export * from './projects/NewProjectRequest';
|
40
|
+
export * from './target/Target';
|
36
41
|
export * from './ExportDataQuery';
|
37
42
|
export * from './HttpError';
|
38
43
|
export * from './IBaseService';
|
39
44
|
export * from './IConfigGroup';
|
45
|
+
export * from './IConnectedCallsign';
|
40
46
|
export * from './IDebugLevel';
|
41
47
|
export * from './IExportDataQuery';
|
42
48
|
export * from './IFunctionConfig';
|
@@ -72,6 +78,7 @@ export * from './Stream';
|
|
72
78
|
export * from './StreamOptions';
|
73
79
|
export * from './StreamSource';
|
74
80
|
export * from './SubscriberStatusEnum';
|
81
|
+
export * from './TelemetryStatus';
|
75
82
|
export * from './Token';
|
76
83
|
export * from './types';
|
77
84
|
export * from './Widget';
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export interface Location {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
level?: {
|
5
|
+
id: string;
|
6
|
+
};
|
7
|
+
locationType?: {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
};
|
11
|
+
shape: {
|
12
|
+
coordinates: Array<{
|
13
|
+
lat: number;
|
14
|
+
lng: number;
|
15
|
+
}>;
|
16
|
+
radiusMeters?: number;
|
17
|
+
shapeType: string;
|
18
|
+
};
|
19
|
+
shapeStyle: {
|
20
|
+
fillColor: string;
|
21
|
+
strokeColor: string;
|
22
|
+
fillOpacity: number;
|
23
|
+
};
|
24
|
+
}
|
@@ -1,28 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
x?: number;
|
5
|
-
y?: number;
|
6
|
-
}
|
7
|
-
export interface Quaternion {
|
8
|
-
x: number;
|
9
|
-
y: number;
|
10
|
-
z: number;
|
11
|
-
w: number;
|
12
|
-
}
|
13
|
-
export interface Vector3 {
|
14
|
-
x: number;
|
15
|
-
y: number;
|
16
|
-
z: number;
|
17
|
-
}
|
18
|
-
export interface Observation {
|
1
|
+
import { Position, Quaternion, Vector3 } from '../graph';
|
2
|
+
interface ObservationBase {
|
3
|
+
name: string;
|
19
4
|
panoramaID: string;
|
20
|
-
|
21
|
-
|
5
|
+
assetID?: string;
|
6
|
+
type?: 'asset' | 'target';
|
22
7
|
data?: Record<string, string>;
|
23
|
-
geometry
|
8
|
+
geometry?: Position[];
|
24
9
|
center?: Position;
|
25
10
|
}
|
11
|
+
export interface Observation extends ObservationBase {
|
12
|
+
id: string;
|
13
|
+
}
|
14
|
+
export interface CreateObservation extends ObservationBase {
|
15
|
+
}
|
26
16
|
export interface Panorama {
|
27
17
|
transform: {
|
28
18
|
parent: string;
|
@@ -34,3 +24,4 @@ export interface Panorama {
|
|
34
24
|
path: string;
|
35
25
|
};
|
36
26
|
}
|
27
|
+
export {};
|