@dronedeploy/rocos-js-sdk 4.4.9 → 4.4.10
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.
|
@@ -3,7 +3,8 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
/**
|
|
4
4
|
* Service id → public path prefix, for services that expose the standard
|
|
5
5
|
* `connections` endpoint. New services adopting the convention are added here.
|
|
6
|
-
*
|
|
6
|
+
* `robot-telemetry` is Teletubby's broker-side view (is the robot's telemetry
|
|
7
|
+
* stream connected), distinct from `telemetry-liveness` (is telemetry arriving).
|
|
7
8
|
*/
|
|
8
9
|
export declare const CONNECTION_SERVICE_PREFIXES: Record<string, string>;
|
|
9
10
|
/**
|
|
@@ -12,10 +13,7 @@ export declare const CONNECTION_SERVICE_PREFIXES: Record<string, string>;
|
|
|
12
13
|
* the caller). See `getTelemetryLiveness`.
|
|
13
14
|
*/
|
|
14
15
|
export declare const TELEMETRY_LIVENESS_SERVICE = "telemetry-liveness";
|
|
15
|
-
/**
|
|
16
|
-
* The services evaluated by default. The `telemetry` connections endpoint joins
|
|
17
|
-
* this list once Teletubby exposes it (follow-up).
|
|
18
|
-
*/
|
|
16
|
+
/** The services evaluated by default. */
|
|
19
17
|
export declare const DEFAULT_EXPECTED_SERVICES: string[];
|
|
20
18
|
/**
|
|
21
19
|
* Floor for the connections-endpoint poll interval. Guards against a caller
|
|
@@ -8,11 +8,13 @@ const formatServiceUrl_1 = require("../../helpers/formatServiceUrl");
|
|
|
8
8
|
/**
|
|
9
9
|
* Service id → public path prefix, for services that expose the standard
|
|
10
10
|
* `connections` endpoint. New services adopting the convention are added here.
|
|
11
|
-
*
|
|
11
|
+
* `robot-telemetry` is Teletubby's broker-side view (is the robot's telemetry
|
|
12
|
+
* stream connected), distinct from `telemetry-liveness` (is telemetry arriving).
|
|
12
13
|
*/
|
|
13
14
|
exports.CONNECTION_SERVICE_PREFIXES = {
|
|
14
15
|
'robot-configs': 'robot-configs',
|
|
15
16
|
'robot-services': 'robot-services',
|
|
17
|
+
'robot-telemetry': 'telemetry',
|
|
16
18
|
};
|
|
17
19
|
/**
|
|
18
20
|
* The telemetry-liveness signal is derived from heartbeat freshness rather than
|
|
@@ -20,11 +22,13 @@ exports.CONNECTION_SERVICE_PREFIXES = {
|
|
|
20
22
|
* the caller). See `getTelemetryLiveness`.
|
|
21
23
|
*/
|
|
22
24
|
exports.TELEMETRY_LIVENESS_SERVICE = 'telemetry-liveness';
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
/** The services evaluated by default. */
|
|
26
|
+
exports.DEFAULT_EXPECTED_SERVICES = [
|
|
27
|
+
exports.TELEMETRY_LIVENESS_SERVICE,
|
|
28
|
+
'robot-configs',
|
|
29
|
+
'robot-services',
|
|
30
|
+
'robot-telemetry',
|
|
31
|
+
];
|
|
28
32
|
const DEFAULT_CONNECTIVITY_POLL_MS = 5000;
|
|
29
33
|
/**
|
|
30
34
|
* Floor for the connections-endpoint poll interval. Guards against a caller
|
|
@@ -3,7 +3,8 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
/**
|
|
4
4
|
* Service id → public path prefix, for services that expose the standard
|
|
5
5
|
* `connections` endpoint. New services adopting the convention are added here.
|
|
6
|
-
*
|
|
6
|
+
* `robot-telemetry` is Teletubby's broker-side view (is the robot's telemetry
|
|
7
|
+
* stream connected), distinct from `telemetry-liveness` (is telemetry arriving).
|
|
7
8
|
*/
|
|
8
9
|
export declare const CONNECTION_SERVICE_PREFIXES: Record<string, string>;
|
|
9
10
|
/**
|
|
@@ -12,10 +13,7 @@ export declare const CONNECTION_SERVICE_PREFIXES: Record<string, string>;
|
|
|
12
13
|
* the caller). See `getTelemetryLiveness`.
|
|
13
14
|
*/
|
|
14
15
|
export declare const TELEMETRY_LIVENESS_SERVICE = "telemetry-liveness";
|
|
15
|
-
/**
|
|
16
|
-
* The services evaluated by default. The `telemetry` connections endpoint joins
|
|
17
|
-
* this list once Teletubby exposes it (follow-up).
|
|
18
|
-
*/
|
|
16
|
+
/** The services evaluated by default. */
|
|
19
17
|
export declare const DEFAULT_EXPECTED_SERVICES: string[];
|
|
20
18
|
/**
|
|
21
19
|
* Floor for the connections-endpoint poll interval. Guards against a caller
|
|
@@ -5,11 +5,13 @@ import { formatServiceUrl } from '../../helpers/formatServiceUrl';
|
|
|
5
5
|
/**
|
|
6
6
|
* Service id → public path prefix, for services that expose the standard
|
|
7
7
|
* `connections` endpoint. New services adopting the convention are added here.
|
|
8
|
-
*
|
|
8
|
+
* `robot-telemetry` is Teletubby's broker-side view (is the robot's telemetry
|
|
9
|
+
* stream connected), distinct from `telemetry-liveness` (is telemetry arriving).
|
|
9
10
|
*/
|
|
10
11
|
export const CONNECTION_SERVICE_PREFIXES = {
|
|
11
12
|
'robot-configs': 'robot-configs',
|
|
12
13
|
'robot-services': 'robot-services',
|
|
14
|
+
'robot-telemetry': 'telemetry',
|
|
13
15
|
};
|
|
14
16
|
/**
|
|
15
17
|
* The telemetry-liveness signal is derived from heartbeat freshness rather than
|
|
@@ -17,11 +19,13 @@ export const CONNECTION_SERVICE_PREFIXES = {
|
|
|
17
19
|
* the caller). See `getTelemetryLiveness`.
|
|
18
20
|
*/
|
|
19
21
|
export const TELEMETRY_LIVENESS_SERVICE = 'telemetry-liveness';
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
/** The services evaluated by default. */
|
|
23
|
+
export const DEFAULT_EXPECTED_SERVICES = [
|
|
24
|
+
TELEMETRY_LIVENESS_SERVICE,
|
|
25
|
+
'robot-configs',
|
|
26
|
+
'robot-services',
|
|
27
|
+
'robot-telemetry',
|
|
28
|
+
];
|
|
25
29
|
const DEFAULT_CONNECTIVITY_POLL_MS = 5000;
|
|
26
30
|
/**
|
|
27
31
|
* Floor for the connections-endpoint poll interval. Guards against a caller
|