@dronedeploy/rocos-js-sdk 4.5.2 → 4.7.0
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/cjs/constants/api.d.ts +2 -0
- package/cjs/constants/api.js +4 -2
- package/cjs/models/index.d.ts +1 -0
- package/cjs/models/index.js +1 -0
- package/cjs/models/maps/MapLocation.d.ts +68 -0
- package/cjs/models/maps/MapLocation.js +2 -0
- package/cjs/services/MapService.d.ts +32 -0
- package/cjs/services/MapService.js +35 -0
- package/esm/constants/api.d.ts +2 -0
- package/esm/constants/api.js +2 -0
- package/esm/models/index.d.ts +1 -0
- package/esm/models/index.js +1 -0
- package/esm/models/maps/MapLocation.d.ts +68 -0
- package/esm/models/maps/MapLocation.js +1 -0
- package/esm/services/MapService.d.ts +32 -0
- package/esm/services/MapService.js +36 -1
- package/package.json +1 -1
package/cjs/constants/api.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ export declare const API_GRAPHS_MAP_EDGES_ADD_URL = "https://{url}/graphs/projec
|
|
|
139
139
|
export declare const API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/add/transform";
|
|
140
140
|
export declare const API_GRAPHS_MAP_EDGE_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/{edgeId}";
|
|
141
141
|
export declare const API_GRAPHS_MAP_PATHS_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths";
|
|
142
|
+
export declare const API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-location";
|
|
143
|
+
export declare const API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-locations";
|
|
142
144
|
export declare const API_GRAPHS_MAP_PATH_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}";
|
|
143
145
|
export declare const API_GRAPHS_MAP_PATH_APPEND_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append";
|
|
144
146
|
export declare const API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append/transformable";
|
package/cjs/constants/api.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_PROJECT_ROBOT_EVENT_URL = exports.API_PROJECT_ROBOT_REGISTER_URL = exports.API_PROJECT_ROBOT_DEFINITION_URL = exports.API_PROJECT_ROBOT_ATTRIBUTES_URL = exports.API_PROJECT_ROBOT_ID_URL = exports.API_ACCOUNT_ROBOT_URL = exports.API_PROJECT_ROBOT_URL = exports.API_PROJECT_MAPPED_ASSET_PATH_URL = exports.API_PROJECT_MAPPED_ASSETS_PATH_URL = exports.API_PROJECT_MISSION_ASSET_PATH_URL = exports.API_PROJECT_MISSION_ASSETS_PATH_URL = exports.API_PROJECT_FLOW_ASSET_PATH_URL = exports.API_PROJECT_ROBOT_ASSET_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATION_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATIONS_PATH_URL = exports.API_PROJECT_ASSET_INTEGRATION_PROVIDERS_PATH_URL = exports.API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL = exports.API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL = exports.API_PROJECT_ASSET_PATH_URL = exports.API_PROJECT_ASSET_URL = exports.API_PROJECT_USERS_URL = exports.API_PROJECT_ID_URL = exports.API_PROJECT_URL = exports.API_ACCOUNT_EXTERNAL_PROJECTS_URL = exports.API_ACCOUNT_PROJECT_APPLICATION_ID_URL = exports.API_ACCOUNT_PROJECT_APPLICATION_URL = exports.API_ACCOUNT_PROJECT_USER_ID_URL = exports.API_ACCOUNT_PROJECT_USER_URL = exports.API_ACCOUNT_PROJECT_ID_URL = exports.API_ACCOUNT_PROJECT_URL = exports.API_SERVER_TIME_URL = exports.API_ACCOUNT_SETTINGS_URL = exports.API_AUTH_USER_ACCOUNT_USER_ID_URL = exports.API_AUTH_USER_ACCOUNT_USER_URL = exports.API_ACCOUNT_ACTIVATE_URL = exports.API_ACCOUNT_ID_URL = exports.API_ACCOUNT_URL = exports.API_USER_PAT_TOKEN_URL = exports.API_USER_PAT_URL = exports.API_USER_VERIFY_EMAIL_URL = exports.API_USER_INVITATION_CHECK_URL = exports.API_USER_INVITATION_ACCEPT_URL = exports.API_USER_INVITATION_URL = exports.API_USER_PASSWORD_FORGOT_URL = exports.API_OTP_AUTH_URL = exports.API_OTP_URL = exports.API_USER_TOKEN_URL = exports.API_USER_URL = exports.API_ADMIN_USER_INVITATION_URL = exports.API_APPLICATION_AUTH_URL = void 0;
|
|
4
4
|
exports.API_PROJECT_STREAM_URL = exports.API_PROJECT_GROUP_TYPE_OWNER_OVERRIDE_URL = exports.API_PROJECT_GROUP_TYPE_OWNER_ID_URL = exports.API_PROJECT_GROUP_TYPE_VERSION_URL = exports.API_PROJECT_GROUP_TYPE_CONFIG_URL = exports.API_PROJECT_GROUP_TYPE_PUBLISH_URL = exports.API_PROJECT_GROUP_TYPE_ID_URL = exports.API_PROJECT_GROUP_TYPE_URL = exports.API_PROJECT_ENVIRONMENT_URL = exports.API_PROJECT_DEFINITION_LIBRARY = exports.API_PROJECT_DEFINITION_IMPORT_LIBRARY = exports.API_PROJECT_DEFINITION_IMPORT = exports.API_PROJECT_DEFINITION_EXPORT = exports.API_PROJECT_DEFINITION_GAMEPAD_URL = exports.API_PROJECT_DEFINITION_TRIGGER_URL = exports.API_PROJECT_DEFINITION_BUTTON_URL = exports.API_PROJECT_DEFINITION_ACTION_URL = exports.API_PROJECT_DEFINITION_EVENT_URL = exports.API_PROJECT_DEFINITION_COMMAND2_URL = exports.API_PROJECT_DEFINITION_COMMAND_URL = exports.API_PROJECT_DEFINITION_AGENT_URL = exports.API_PROJECT_DEFINITION_SETTING_URL = exports.API_PROJECT_DEFINITION_BLOB_URL = exports.API_PROJECT_DEFINITION_DASHBOARD_URL = exports.API_PROJECT_DEFINITION_COPY_URL = exports.API_PROJECT_DEFINITION_STREAM_URL = exports.API_PROJECT_DEFINITION_ID_URL = exports.API_PROJECT_DEFINITION_URL = exports.API_PROJECT_VROBOT_DEPLOY_URL = exports.API_PROJECT_VROBOT_DETAILS_URL = exports.API_PROJECT_COLLECTION_DOCS_URL = exports.API_PROJECT_COLLECTION_ID_URL = exports.API_PROJECT_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_DASHBOARD_WIDGET_URL = exports.API_PROJECT_DASHBOARD_ID_URL = exports.API_PROJECT_DASHBOARD_URL = exports.API_PROJECT_OPERATION_ID_URL = exports.API_PROJECT_OPERATION_URL = exports.API_PROJECT_ROBOT_CONFIGS_CONNECTION_URL = exports.API_PROJECT_ROBOT_CONFIGS_CONNECTIONS_URL = exports.API_SERVICE_CONNECTION_URL = exports.API_SERVICE_CONNECTIONS_URL = exports.API_PROJECT_ROBOT_GAMEPAD_URL = exports.API_PROJECT_ROBOT_TRIGGER_URL = exports.API_PROJECT_ROBOT_BUTTON_URL = exports.API_PROJECT_ROBOT_COMMAND2_URL = exports.API_PROJECT_ROBOT_COMMAND_URL = exports.API_PROJECT_ROBOT_AGENT_URL = exports.API_PROJECT_ROBOT_SETTING_URL = exports.API_PROJECT_ROBOT_EVENT_HISTORY_URL = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.API_PROJECT_ROBOT_TAG_URL = exports.API_PROJECT_PROFILE_TAG_URL = exports.API_PROJECT_PROFILE_TAGS_URL = exports.API_PROJECT_TAG_ROBOTS_URL = exports.API_PROJECT_ROBOT_TAGS_URL = exports.API_DEVICE_CREDENTIALS_AUTH_URL = exports.API_DEVICE_CREDENTIALS_URL = exports.API_LINKED_PROJECT_URL = exports.API_PROJECT_WORKFLOW_IMPORT_URL = exports.API_PROJECT_WORKFLOW_EXPORT_URL = exports.API_PROJECT_WORKFLOW_AFFECTED_URL = exports.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_PROFILE_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_ROBOT_DEPLOYMENTS_URL = exports.API_PROJECT_WORKFLOW_ASSET_ID_URL = exports.API_PROJECT_WORKFLOW_ASSET_URL = exports.API_PROJECT_WORKFLOW_ID_URL = exports.API_PROJECT_WORKFLOW_URL = exports.API_GRAPHS_TARGET_MEDIA_URL = exports.API_GRAPHS_ASSETS_URL = exports.API_GRAPHS_ASSETS_UPLOAD_URL = exports.API_GRAPHS_TARGETS_URL = exports.API_GRAPHS_TARGET_UPLOAD_URL = exports.API_GRAPHS_OBSERVATION_KEYS_URL = exports.API_GRAPHS_OBSERVATIONS_URL = void 0;
|
|
5
|
+
exports.API_GRAPHS_PANORAMAS_URL = exports.API_GRAPHS_MAPS_GEOJSON_URL = exports.API_GRAPHS_MAPS_DEPLOY_URL = exports.API_GRAPHS_MAPS_COPY_URL = exports.API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL = exports.API_GRAPHS_MAP_PATH_APPEND_URL = exports.API_GRAPHS_MAP_PATH_URL = exports.API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL = exports.API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL = exports.API_GRAPHS_MAP_PATHS_URL = exports.API_GRAPHS_MAP_EDGE_URL = exports.API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL = exports.API_GRAPHS_MAP_EDGES_ADD_URL = exports.API_GRAPHS_MAP_NODE_URL = exports.API_GRAPHS_MAP_NODES_ADD_TRANSFORMABLE_URL = exports.API_GRAPHS_MAP_NODES_ADD_URL = exports.API_GRAPHS_MAP_METADATA_URL = exports.API_GRAPHS_MAP_EXTERNAL_DATA_URL = exports.API_GRAPHS_MAP_EXTERNAL_DATA_UPLOAD_URL = exports.API_GRAPHS_MAP_CONTENT_URL = exports.API_GRAPHS_MAP_ID_URL = exports.API_GRAPHS_MAPS_UNION_URL = exports.API_GRAPHS_MAPS_DEPLOYED_URL = exports.API_GRAPHS_MAPS_NEW_URL = exports.API_GRAPHS_MAPS_URL = exports.API_DD_INTEGRATION_LEVELS_URL = exports.API_DD_INTEGRATION_LOCATIONS_URL = exports.API_DD_INTEGRATION_ISSUES_URL = exports.API_DD_INTEGRATION_OVERLAYS_URL = exports.API_DD_INTEGRATION_PLAN_BY_ID_URL = exports.API_DD_INTEGRATION_PLANS_URL = exports.API_SPOTTY_URL = exports.API_PROJECT_SCHEDULES_URL = exports.API_SOURCE_ID_URL = exports.API_SOURCE_URL = exports.API_SOURCE_SCHEMA_URL = exports.API_TEMPLATE_EXPORTER_URL = exports.API_TEMPLATE_PROVISION_ID_URL = exports.API_TEMPLATE_PROVISION_URL = exports.API_TEMPLATE_DEPLOY_URL = exports.API_PROJECT_PROFILE_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_PROFILE_DASHBOARD_ID_URL = exports.API_PROJECT_PROFILE_DASHBOARD_URL = exports.API_PROJECT_CALLSIGN_STREAM_URL = exports.API_PROJECT_ROBOT_DASHBOARD_CUSTOM_WIDGET_URL = exports.API_PROJECT_ROBOT_DASHBOARD_ID_URL = exports.API_PROJECT_ROBOT_DASHBOARD_URL = exports.API_PROJECT_STREAM_CALLSIGN_URL = exports.API_PROJECT_STREAM_DATA_URL = exports.API_PROJECT_STREAM_ID_URL = void 0;
|
|
6
|
+
exports.API_PROJECT_ROBOT_TAG_URL = exports.API_PROJECT_PROFILE_TAG_URL = exports.API_PROJECT_PROFILE_TAGS_URL = exports.API_PROJECT_TAG_ROBOTS_URL = exports.API_PROJECT_ROBOT_TAGS_URL = exports.API_DEVICE_CREDENTIALS_AUTH_URL = exports.API_DEVICE_CREDENTIALS_URL = exports.API_LINKED_PROJECT_URL = exports.API_PROJECT_WORKFLOW_IMPORT_URL = exports.API_PROJECT_WORKFLOW_EXPORT_URL = exports.API_PROJECT_WORKFLOW_AFFECTED_URL = exports.API_PROJECT_ROBOT_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_PROFILE_DEPLOYED_WORKFLOW_URL = exports.API_PROJECT_ROBOT_NO_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_PROFILE_DEPLOYMENTS_URL = exports.API_PROJECT_ROBOT_DEPLOYMENTS_URL = exports.API_PROJECT_WORKFLOW_ASSET_ID_URL = exports.API_PROJECT_WORKFLOW_ASSET_URL = exports.API_PROJECT_WORKFLOW_ID_URL = exports.API_PROJECT_WORKFLOW_URL = exports.API_GRAPHS_TARGET_MEDIA_URL = exports.API_GRAPHS_ASSETS_URL = exports.API_GRAPHS_ASSETS_UPLOAD_URL = exports.API_GRAPHS_TARGETS_URL = exports.API_GRAPHS_TARGET_UPLOAD_URL = exports.API_GRAPHS_OBSERVATION_KEYS_URL = exports.API_GRAPHS_OBSERVATIONS_URL = exports.API_GRAPHS_PANORAMA_OBSERVATIONS_URL = exports.API_GRAPHS_PANORAMA = void 0;
|
|
7
7
|
exports.API_APPLICATION_AUTH_URL = 'https://{url}/applications/auth';
|
|
8
8
|
exports.API_ADMIN_USER_INVITATION_URL = 'https://{url}/admin/users/invitations';
|
|
9
9
|
exports.API_USER_URL = 'https://{url}/users';
|
|
@@ -147,6 +147,8 @@ exports.API_GRAPHS_MAP_EDGES_ADD_URL = 'https://{url}/graphs/projects/{projectId
|
|
|
147
147
|
exports.API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/add/transform';
|
|
148
148
|
exports.API_GRAPHS_MAP_EDGE_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/{edgeId}';
|
|
149
149
|
exports.API_GRAPHS_MAP_PATHS_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths';
|
|
150
|
+
exports.API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-location';
|
|
151
|
+
exports.API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-locations';
|
|
150
152
|
exports.API_GRAPHS_MAP_PATH_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}';
|
|
151
153
|
exports.API_GRAPHS_MAP_PATH_APPEND_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append';
|
|
152
154
|
exports.API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append/transformable';
|
package/cjs/models/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from './maps/Map';
|
|
|
53
53
|
export * from './maps/MapContent';
|
|
54
54
|
export * from './maps/MapEdge';
|
|
55
55
|
export * from './maps/MapNode';
|
|
56
|
+
export * from './maps/MapLocation';
|
|
56
57
|
export * from './maps/MapPath';
|
|
57
58
|
export * from './maps/Panorama';
|
|
58
59
|
export * from './message';
|
package/cjs/models/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __exportStar(require("./maps/Map"), exports);
|
|
|
69
69
|
__exportStar(require("./maps/MapContent"), exports);
|
|
70
70
|
__exportStar(require("./maps/MapEdge"), exports);
|
|
71
71
|
__exportStar(require("./maps/MapNode"), exports);
|
|
72
|
+
__exportStar(require("./maps/MapLocation"), exports);
|
|
72
73
|
__exportStar(require("./maps/MapPath"), exports);
|
|
73
74
|
__exportStar(require("./maps/Panorama"), exports);
|
|
74
75
|
__exportStar(require("./message"), exports);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a location comes from: `explore` is a DroneDeploy location, `progress` a Progress AI one.
|
|
3
|
+
* Progress AI is called as the requesting user, so `progress` needs a user token.
|
|
4
|
+
*/
|
|
5
|
+
export type LocationKind = 'explore' | 'progress';
|
|
6
|
+
/** Options shared by `MapService.addLocation` and `MapService.addLocations`. */
|
|
7
|
+
export interface LocationPathOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Node type of the path's parent node; `locations.<kind>.v1` when omitted (`locations.explore.v1`
|
|
10
|
+
* or `locations.progress.v1`). Server-managed types are refused (400).
|
|
11
|
+
*/
|
|
12
|
+
parentType?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Node type of each vertex; `locations.<kind>.v1.vertex` when omitted. Server-managed types are
|
|
15
|
+
* refused (400).
|
|
16
|
+
*/
|
|
17
|
+
nodeType?: string;
|
|
18
|
+
}
|
|
19
|
+
/** Body of `MapService.addLocation`. */
|
|
20
|
+
export interface AddLocationPathRequest extends LocationPathOptions {
|
|
21
|
+
kind: LocationKind;
|
|
22
|
+
/** The location's id, with or without its GraphQL type prefix. */
|
|
23
|
+
locationId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The path's parent node id. When omitted it is `location-<location name>` (slugged, with the
|
|
26
|
+
* location id appended when that id is taken), and a location already written is refused (409).
|
|
27
|
+
* Naming it asks for another path of the same location, and only that id has to be free.
|
|
28
|
+
*/
|
|
29
|
+
pathId?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Body of `MapService.addLocations`. */
|
|
32
|
+
export interface AddLocationPathsRequest extends LocationPathOptions {
|
|
33
|
+
/** At least one kind. */
|
|
34
|
+
kinds: LocationKind[];
|
|
35
|
+
/** Only locations on these levels (ids, with or without the `Level:` prefix); every level when omitted. */
|
|
36
|
+
levelIds?: string[];
|
|
37
|
+
}
|
|
38
|
+
/** The closed path written for a location. */
|
|
39
|
+
export interface AddLocationPathResponse {
|
|
40
|
+
pathId: string;
|
|
41
|
+
/** The vertex node ids, in ring order. */
|
|
42
|
+
memberIds: string[];
|
|
43
|
+
kind: LocationKind;
|
|
44
|
+
locationId: string;
|
|
45
|
+
name: string;
|
|
46
|
+
levelId: string;
|
|
47
|
+
/** The level's `overlay-<level>-centroid` frame the vertices are positioned in. */
|
|
48
|
+
frame: string;
|
|
49
|
+
/** Set when the level's alignment is marked unverified. */
|
|
50
|
+
unverifiedAlignment: boolean;
|
|
51
|
+
}
|
|
52
|
+
export type LocationPathStatus = 'created' | 'skipped' | 'failed';
|
|
53
|
+
/**
|
|
54
|
+
* One location's outcome in `MapService.addLocations`. `reason` says why a location was
|
|
55
|
+
* `skipped` or `failed`. A result with no `locationId` reports a failure to list that kind.
|
|
56
|
+
*/
|
|
57
|
+
export interface LocationPathResult {
|
|
58
|
+
kind: LocationKind;
|
|
59
|
+
locationId?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
levelId?: string;
|
|
62
|
+
pathId?: string;
|
|
63
|
+
status: LocationPathStatus;
|
|
64
|
+
reason?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface AddLocationPathsResponse {
|
|
67
|
+
results: LocationPathResult[];
|
|
68
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AddEdgeRequest, AddEdgeResponse, AddTransformEdgeRequest } from '../models/maps/MapEdge';
|
|
2
|
+
import { AddLocationPathRequest, AddLocationPathResponse, AddLocationPathsRequest, AddLocationPathsResponse } from '../models/maps/MapLocation';
|
|
2
3
|
import { AddNodeRequest, AddNodeResponse, AddTransformableNodeRequest } from '../models/maps/MapNode';
|
|
3
4
|
import { AddPanoramaRequest, AddPanoramaResponse, CreateObservation, Observation } from '../models/maps/Panorama';
|
|
4
5
|
import { AppendPathPointsResponse, AppendToPathRequest, AppendTransformablePointsRequest, ListPathsFilter, MapPath, ReplacePathRequest } from '../models/maps/MapPath';
|
|
@@ -447,6 +448,37 @@ export declare class MapService extends BaseServiceAbstract implements IBaseServ
|
|
|
447
448
|
* @param body The path's desired state.
|
|
448
449
|
*/
|
|
449
450
|
replacePath(projectId: string, mapId: string, pathId: string, body: ReplacePathRequest): Promise<void>;
|
|
451
|
+
/**
|
|
452
|
+
* Write one DroneDeploy (`explore`) or Progress AI (`progress`) location into a map as a
|
|
453
|
+
* closed path, positioned in its level's `overlay-<level>-centroid` frame through the
|
|
454
|
+
* level's alignment, so it lands on the plan features it was traced over. See
|
|
455
|
+
* {@link AddLocationPathRequest} for the options.
|
|
456
|
+
*
|
|
457
|
+
* A location that cannot be placed is refused with 409 (exterior or level-less, on a level
|
|
458
|
+
* that is not aligned, or on a level whose alignment has no centroid frame yet), as is one
|
|
459
|
+
* whose path already exists. Use {@link addLocations} to add many and get a per-location
|
|
460
|
+
* outcome instead of an error.
|
|
461
|
+
*
|
|
462
|
+
* @param projectId The ID of the project the map belongs to.
|
|
463
|
+
* @param mapId The ID of the map to add the path to.
|
|
464
|
+
* @param body The location to add.
|
|
465
|
+
* @returns The path written: its id, its vertex node ids and the frame it sits in.
|
|
466
|
+
*/
|
|
467
|
+
addLocation(projectId: string, mapId: string, body: AddLocationPathRequest): Promise<AddLocationPathResponse>;
|
|
468
|
+
/**
|
|
469
|
+
* Write every location of the given kinds (or only those on the given levels) into a map as
|
|
470
|
+
* closed paths, one each, placed as {@link addLocation} places one. Runs synchronously on the
|
|
471
|
+
* server and answers 200 whatever the mix: a location that cannot be placed or already has a
|
|
472
|
+
* path is reported `skipped`, other failures `failed`, each with a `reason`. A kind that cannot
|
|
473
|
+
* be listed at all (for example Progress AI is not configured, or the call has no user token)
|
|
474
|
+
* yields one `failed` result for that kind with no `locationId`.
|
|
475
|
+
*
|
|
476
|
+
* @param projectId The ID of the project the map belongs to.
|
|
477
|
+
* @param mapId The ID of the map to add the paths to.
|
|
478
|
+
* @param body The kinds and optional level filter.
|
|
479
|
+
* @returns The outcome for each location.
|
|
480
|
+
*/
|
|
481
|
+
addLocations(projectId: string, mapId: string, body: AddLocationPathsRequest): Promise<AddLocationPathsResponse>;
|
|
450
482
|
/**
|
|
451
483
|
* Delete a path's structure, mirroring the agent's `paths/delete`: idempotent (a missing
|
|
452
484
|
* path still returns success), member nodes preserved by default, and the parent node
|
|
@@ -608,6 +608,41 @@ class MapService extends BaseServiceAbstract_1.BaseServiceAbstract {
|
|
|
608
608
|
};
|
|
609
609
|
await this.callPut((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_GRAPHS_MAP_PATH_URL, { url: this.config.url, projectId, mapId, pathId }, this.config.insecure), wireBody, 'Failed to replace path.');
|
|
610
610
|
}
|
|
611
|
+
/**
|
|
612
|
+
* Write one DroneDeploy (`explore`) or Progress AI (`progress`) location into a map as a
|
|
613
|
+
* closed path, positioned in its level's `overlay-<level>-centroid` frame through the
|
|
614
|
+
* level's alignment, so it lands on the plan features it was traced over. See
|
|
615
|
+
* {@link AddLocationPathRequest} for the options.
|
|
616
|
+
*
|
|
617
|
+
* A location that cannot be placed is refused with 409 (exterior or level-less, on a level
|
|
618
|
+
* that is not aligned, or on a level whose alignment has no centroid frame yet), as is one
|
|
619
|
+
* whose path already exists. Use {@link addLocations} to add many and get a per-location
|
|
620
|
+
* outcome instead of an error.
|
|
621
|
+
*
|
|
622
|
+
* @param projectId The ID of the project the map belongs to.
|
|
623
|
+
* @param mapId The ID of the map to add the path to.
|
|
624
|
+
* @param body The location to add.
|
|
625
|
+
* @returns The path written: its id, its vertex node ids and the frame it sits in.
|
|
626
|
+
*/
|
|
627
|
+
addLocation(projectId, mapId, body) {
|
|
628
|
+
return this.callPost((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL, { url: this.config.url, projectId, mapId }, this.config.insecure), body, 'Failed to add location.');
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Write every location of the given kinds (or only those on the given levels) into a map as
|
|
632
|
+
* closed paths, one each, placed as {@link addLocation} places one. Runs synchronously on the
|
|
633
|
+
* server and answers 200 whatever the mix: a location that cannot be placed or already has a
|
|
634
|
+
* path is reported `skipped`, other failures `failed`, each with a `reason`. A kind that cannot
|
|
635
|
+
* be listed at all (for example Progress AI is not configured, or the call has no user token)
|
|
636
|
+
* yields one `failed` result for that kind with no `locationId`.
|
|
637
|
+
*
|
|
638
|
+
* @param projectId The ID of the project the map belongs to.
|
|
639
|
+
* @param mapId The ID of the map to add the paths to.
|
|
640
|
+
* @param body The kinds and optional level filter.
|
|
641
|
+
* @returns The outcome for each location.
|
|
642
|
+
*/
|
|
643
|
+
addLocations(projectId, mapId, body) {
|
|
644
|
+
return this.callPost((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL, { url: this.config.url, projectId, mapId }, this.config.insecure), body, 'Failed to add locations.');
|
|
645
|
+
}
|
|
611
646
|
/**
|
|
612
647
|
* Delete a path's structure, mirroring the agent's `paths/delete`: idempotent (a missing
|
|
613
648
|
* path still returns success), member nodes preserved by default, and the parent node
|
package/esm/constants/api.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ export declare const API_GRAPHS_MAP_EDGES_ADD_URL = "https://{url}/graphs/projec
|
|
|
139
139
|
export declare const API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/add/transform";
|
|
140
140
|
export declare const API_GRAPHS_MAP_EDGE_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/{edgeId}";
|
|
141
141
|
export declare const API_GRAPHS_MAP_PATHS_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths";
|
|
142
|
+
export declare const API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-location";
|
|
143
|
+
export declare const API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-locations";
|
|
142
144
|
export declare const API_GRAPHS_MAP_PATH_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}";
|
|
143
145
|
export declare const API_GRAPHS_MAP_PATH_APPEND_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append";
|
|
144
146
|
export declare const API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL = "https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append/transformable";
|
package/esm/constants/api.js
CHANGED
|
@@ -141,6 +141,8 @@ export const API_GRAPHS_MAP_EDGES_ADD_URL = 'https://{url}/graphs/projects/{proj
|
|
|
141
141
|
export const API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/add/transform';
|
|
142
142
|
export const API_GRAPHS_MAP_EDGE_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/edges/{edgeId}';
|
|
143
143
|
export const API_GRAPHS_MAP_PATHS_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths';
|
|
144
|
+
export const API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-location';
|
|
145
|
+
export const API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/add-locations';
|
|
144
146
|
export const API_GRAPHS_MAP_PATH_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}';
|
|
145
147
|
export const API_GRAPHS_MAP_PATH_APPEND_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append';
|
|
146
148
|
export const API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL = 'https://{url}/graphs/projects/{projectId}/maps/{mapId}/paths/{pathId}/append/transformable';
|
package/esm/models/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from './maps/Map';
|
|
|
53
53
|
export * from './maps/MapContent';
|
|
54
54
|
export * from './maps/MapEdge';
|
|
55
55
|
export * from './maps/MapNode';
|
|
56
|
+
export * from './maps/MapLocation';
|
|
56
57
|
export * from './maps/MapPath';
|
|
57
58
|
export * from './maps/Panorama';
|
|
58
59
|
export * from './message';
|
package/esm/models/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export * from './maps/Map';
|
|
|
53
53
|
export * from './maps/MapContent';
|
|
54
54
|
export * from './maps/MapEdge';
|
|
55
55
|
export * from './maps/MapNode';
|
|
56
|
+
export * from './maps/MapLocation';
|
|
56
57
|
export * from './maps/MapPath';
|
|
57
58
|
export * from './maps/Panorama';
|
|
58
59
|
export * from './message';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a location comes from: `explore` is a DroneDeploy location, `progress` a Progress AI one.
|
|
3
|
+
* Progress AI is called as the requesting user, so `progress` needs a user token.
|
|
4
|
+
*/
|
|
5
|
+
export type LocationKind = 'explore' | 'progress';
|
|
6
|
+
/** Options shared by `MapService.addLocation` and `MapService.addLocations`. */
|
|
7
|
+
export interface LocationPathOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Node type of the path's parent node; `locations.<kind>.v1` when omitted (`locations.explore.v1`
|
|
10
|
+
* or `locations.progress.v1`). Server-managed types are refused (400).
|
|
11
|
+
*/
|
|
12
|
+
parentType?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Node type of each vertex; `locations.<kind>.v1.vertex` when omitted. Server-managed types are
|
|
15
|
+
* refused (400).
|
|
16
|
+
*/
|
|
17
|
+
nodeType?: string;
|
|
18
|
+
}
|
|
19
|
+
/** Body of `MapService.addLocation`. */
|
|
20
|
+
export interface AddLocationPathRequest extends LocationPathOptions {
|
|
21
|
+
kind: LocationKind;
|
|
22
|
+
/** The location's id, with or without its GraphQL type prefix. */
|
|
23
|
+
locationId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The path's parent node id. When omitted it is `location-<location name>` (slugged, with the
|
|
26
|
+
* location id appended when that id is taken), and a location already written is refused (409).
|
|
27
|
+
* Naming it asks for another path of the same location, and only that id has to be free.
|
|
28
|
+
*/
|
|
29
|
+
pathId?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Body of `MapService.addLocations`. */
|
|
32
|
+
export interface AddLocationPathsRequest extends LocationPathOptions {
|
|
33
|
+
/** At least one kind. */
|
|
34
|
+
kinds: LocationKind[];
|
|
35
|
+
/** Only locations on these levels (ids, with or without the `Level:` prefix); every level when omitted. */
|
|
36
|
+
levelIds?: string[];
|
|
37
|
+
}
|
|
38
|
+
/** The closed path written for a location. */
|
|
39
|
+
export interface AddLocationPathResponse {
|
|
40
|
+
pathId: string;
|
|
41
|
+
/** The vertex node ids, in ring order. */
|
|
42
|
+
memberIds: string[];
|
|
43
|
+
kind: LocationKind;
|
|
44
|
+
locationId: string;
|
|
45
|
+
name: string;
|
|
46
|
+
levelId: string;
|
|
47
|
+
/** The level's `overlay-<level>-centroid` frame the vertices are positioned in. */
|
|
48
|
+
frame: string;
|
|
49
|
+
/** Set when the level's alignment is marked unverified. */
|
|
50
|
+
unverifiedAlignment: boolean;
|
|
51
|
+
}
|
|
52
|
+
export type LocationPathStatus = 'created' | 'skipped' | 'failed';
|
|
53
|
+
/**
|
|
54
|
+
* One location's outcome in `MapService.addLocations`. `reason` says why a location was
|
|
55
|
+
* `skipped` or `failed`. A result with no `locationId` reports a failure to list that kind.
|
|
56
|
+
*/
|
|
57
|
+
export interface LocationPathResult {
|
|
58
|
+
kind: LocationKind;
|
|
59
|
+
locationId?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
levelId?: string;
|
|
62
|
+
pathId?: string;
|
|
63
|
+
status: LocationPathStatus;
|
|
64
|
+
reason?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface AddLocationPathsResponse {
|
|
67
|
+
results: LocationPathResult[];
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AddEdgeRequest, AddEdgeResponse, AddTransformEdgeRequest } from '../models/maps/MapEdge';
|
|
2
|
+
import { AddLocationPathRequest, AddLocationPathResponse, AddLocationPathsRequest, AddLocationPathsResponse } from '../models/maps/MapLocation';
|
|
2
3
|
import { AddNodeRequest, AddNodeResponse, AddTransformableNodeRequest } from '../models/maps/MapNode';
|
|
3
4
|
import { AddPanoramaRequest, AddPanoramaResponse, CreateObservation, Observation } from '../models/maps/Panorama';
|
|
4
5
|
import { AppendPathPointsResponse, AppendToPathRequest, AppendTransformablePointsRequest, ListPathsFilter, MapPath, ReplacePathRequest } from '../models/maps/MapPath';
|
|
@@ -447,6 +448,37 @@ export declare class MapService extends BaseServiceAbstract implements IBaseServ
|
|
|
447
448
|
* @param body The path's desired state.
|
|
448
449
|
*/
|
|
449
450
|
replacePath(projectId: string, mapId: string, pathId: string, body: ReplacePathRequest): Promise<void>;
|
|
451
|
+
/**
|
|
452
|
+
* Write one DroneDeploy (`explore`) or Progress AI (`progress`) location into a map as a
|
|
453
|
+
* closed path, positioned in its level's `overlay-<level>-centroid` frame through the
|
|
454
|
+
* level's alignment, so it lands on the plan features it was traced over. See
|
|
455
|
+
* {@link AddLocationPathRequest} for the options.
|
|
456
|
+
*
|
|
457
|
+
* A location that cannot be placed is refused with 409 (exterior or level-less, on a level
|
|
458
|
+
* that is not aligned, or on a level whose alignment has no centroid frame yet), as is one
|
|
459
|
+
* whose path already exists. Use {@link addLocations} to add many and get a per-location
|
|
460
|
+
* outcome instead of an error.
|
|
461
|
+
*
|
|
462
|
+
* @param projectId The ID of the project the map belongs to.
|
|
463
|
+
* @param mapId The ID of the map to add the path to.
|
|
464
|
+
* @param body The location to add.
|
|
465
|
+
* @returns The path written: its id, its vertex node ids and the frame it sits in.
|
|
466
|
+
*/
|
|
467
|
+
addLocation(projectId: string, mapId: string, body: AddLocationPathRequest): Promise<AddLocationPathResponse>;
|
|
468
|
+
/**
|
|
469
|
+
* Write every location of the given kinds (or only those on the given levels) into a map as
|
|
470
|
+
* closed paths, one each, placed as {@link addLocation} places one. Runs synchronously on the
|
|
471
|
+
* server and answers 200 whatever the mix: a location that cannot be placed or already has a
|
|
472
|
+
* path is reported `skipped`, other failures `failed`, each with a `reason`. A kind that cannot
|
|
473
|
+
* be listed at all (for example Progress AI is not configured, or the call has no user token)
|
|
474
|
+
* yields one `failed` result for that kind with no `locationId`.
|
|
475
|
+
*
|
|
476
|
+
* @param projectId The ID of the project the map belongs to.
|
|
477
|
+
* @param mapId The ID of the map to add the paths to.
|
|
478
|
+
* @param body The kinds and optional level filter.
|
|
479
|
+
* @returns The outcome for each location.
|
|
480
|
+
*/
|
|
481
|
+
addLocations(projectId: string, mapId: string, body: AddLocationPathsRequest): Promise<AddLocationPathsResponse>;
|
|
450
482
|
/**
|
|
451
483
|
* Delete a path's structure, mirroring the agent's `paths/delete`: idempotent (a missing
|
|
452
484
|
* path still returns success), member nodes preserved by default, and the parent node
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API_GRAPHS_MAPS_COPY_URL, API_GRAPHS_MAPS_DEPLOYED_URL, API_GRAPHS_MAPS_DEPLOY_URL, API_GRAPHS_MAPS_GEOJSON_URL, API_GRAPHS_MAPS_NEW_URL, API_GRAPHS_MAPS_UNION_URL, API_GRAPHS_MAPS_URL, API_GRAPHS_MAP_CONTENT_URL, API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL, API_GRAPHS_MAP_EDGES_ADD_URL, API_GRAPHS_MAP_EDGE_URL, API_GRAPHS_MAP_EXTERNAL_DATA_UPLOAD_URL, API_GRAPHS_MAP_EXTERNAL_DATA_URL, API_GRAPHS_MAP_ID_URL, API_GRAPHS_MAP_METADATA_URL, API_GRAPHS_MAP_NODES_ADD_TRANSFORMABLE_URL, API_GRAPHS_MAP_NODES_ADD_URL, API_GRAPHS_MAP_NODE_URL, API_GRAPHS_MAP_PATHS_URL, API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL, API_GRAPHS_MAP_PATH_APPEND_URL, API_GRAPHS_MAP_PATH_URL, API_GRAPHS_OBSERVATIONS_URL, API_GRAPHS_OBSERVATION_KEYS_URL, API_GRAPHS_PANORAMA, API_GRAPHS_PANORAMAS_URL, API_GRAPHS_PANORAMA_OBSERVATIONS_URL, } from '../constants/api';
|
|
1
|
+
import { API_GRAPHS_MAPS_COPY_URL, API_GRAPHS_MAPS_DEPLOYED_URL, API_GRAPHS_MAPS_DEPLOY_URL, API_GRAPHS_MAPS_GEOJSON_URL, API_GRAPHS_MAPS_NEW_URL, API_GRAPHS_MAPS_UNION_URL, API_GRAPHS_MAPS_URL, API_GRAPHS_MAP_CONTENT_URL, API_GRAPHS_MAP_EDGES_ADD_TRANSFORM_URL, API_GRAPHS_MAP_EDGES_ADD_URL, API_GRAPHS_MAP_EDGE_URL, API_GRAPHS_MAP_EXTERNAL_DATA_UPLOAD_URL, API_GRAPHS_MAP_EXTERNAL_DATA_URL, API_GRAPHS_MAP_ID_URL, API_GRAPHS_MAP_METADATA_URL, API_GRAPHS_MAP_NODES_ADD_TRANSFORMABLE_URL, API_GRAPHS_MAP_NODES_ADD_URL, API_GRAPHS_MAP_NODE_URL, API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL, API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL, API_GRAPHS_MAP_PATHS_URL, API_GRAPHS_MAP_PATH_APPEND_TRANSFORMABLE_URL, API_GRAPHS_MAP_PATH_APPEND_URL, API_GRAPHS_MAP_PATH_URL, API_GRAPHS_OBSERVATIONS_URL, API_GRAPHS_OBSERVATION_KEYS_URL, API_GRAPHS_PANORAMA, API_GRAPHS_PANORAMAS_URL, API_GRAPHS_PANORAMA_OBSERVATIONS_URL, } from '../constants/api';
|
|
2
2
|
import { RocosError, errorCodes, } from '../models';
|
|
3
3
|
import { BaseServiceAbstract } from './BaseServiceAbstract';
|
|
4
4
|
import { RocosLogger } from '../logger/RocosLogger';
|
|
@@ -605,6 +605,41 @@ export class MapService extends BaseServiceAbstract {
|
|
|
605
605
|
};
|
|
606
606
|
await this.callPut(formatServiceUrl(API_GRAPHS_MAP_PATH_URL, { url: this.config.url, projectId, mapId, pathId }, this.config.insecure), wireBody, 'Failed to replace path.');
|
|
607
607
|
}
|
|
608
|
+
/**
|
|
609
|
+
* Write one DroneDeploy (`explore`) or Progress AI (`progress`) location into a map as a
|
|
610
|
+
* closed path, positioned in its level's `overlay-<level>-centroid` frame through the
|
|
611
|
+
* level's alignment, so it lands on the plan features it was traced over. See
|
|
612
|
+
* {@link AddLocationPathRequest} for the options.
|
|
613
|
+
*
|
|
614
|
+
* A location that cannot be placed is refused with 409 (exterior or level-less, on a level
|
|
615
|
+
* that is not aligned, or on a level whose alignment has no centroid frame yet), as is one
|
|
616
|
+
* whose path already exists. Use {@link addLocations} to add many and get a per-location
|
|
617
|
+
* outcome instead of an error.
|
|
618
|
+
*
|
|
619
|
+
* @param projectId The ID of the project the map belongs to.
|
|
620
|
+
* @param mapId The ID of the map to add the path to.
|
|
621
|
+
* @param body The location to add.
|
|
622
|
+
* @returns The path written: its id, its vertex node ids and the frame it sits in.
|
|
623
|
+
*/
|
|
624
|
+
addLocation(projectId, mapId, body) {
|
|
625
|
+
return this.callPost(formatServiceUrl(API_GRAPHS_MAP_PATHS_ADD_LOCATION_URL, { url: this.config.url, projectId, mapId }, this.config.insecure), body, 'Failed to add location.');
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Write every location of the given kinds (or only those on the given levels) into a map as
|
|
629
|
+
* closed paths, one each, placed as {@link addLocation} places one. Runs synchronously on the
|
|
630
|
+
* server and answers 200 whatever the mix: a location that cannot be placed or already has a
|
|
631
|
+
* path is reported `skipped`, other failures `failed`, each with a `reason`. A kind that cannot
|
|
632
|
+
* be listed at all (for example Progress AI is not configured, or the call has no user token)
|
|
633
|
+
* yields one `failed` result for that kind with no `locationId`.
|
|
634
|
+
*
|
|
635
|
+
* @param projectId The ID of the project the map belongs to.
|
|
636
|
+
* @param mapId The ID of the map to add the paths to.
|
|
637
|
+
* @param body The kinds and optional level filter.
|
|
638
|
+
* @returns The outcome for each location.
|
|
639
|
+
*/
|
|
640
|
+
addLocations(projectId, mapId, body) {
|
|
641
|
+
return this.callPost(formatServiceUrl(API_GRAPHS_MAP_PATHS_ADD_LOCATIONS_URL, { url: this.config.url, projectId, mapId }, this.config.insecure), body, 'Failed to add locations.');
|
|
642
|
+
}
|
|
608
643
|
/**
|
|
609
644
|
* Delete a path's structure, mirroring the agent's `paths/delete`: idempotent (a missing
|
|
610
645
|
* path still returns success), member nodes preserved by default, and the parent node
|