@dronedeploy/rocos-js-sdk 3.0.9 → 3.0.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.
@@ -22,9 +22,10 @@ export declare class MapService extends BaseServiceAbstract implements IBaseServ
|
|
22
22
|
*
|
23
23
|
* @param projectId Project ID
|
24
24
|
* @param callsign Robot callsign
|
25
|
+
* @param includeSystem Include system maps
|
25
26
|
* @returns All maps in the cloud
|
26
27
|
*/
|
27
|
-
list(projectId: string, callsign: string): Promise<Map[]>;
|
28
|
+
list(projectId: string, callsign: string, includeSystem: boolean): Promise<Map[]>;
|
28
29
|
/** List maps to be deployed to a callsign
|
29
30
|
*
|
30
31
|
* @param projectId
|
@@ -28,11 +28,16 @@ class MapService extends BaseServiceAbstract_1.BaseServiceAbstract {
|
|
28
28
|
getError(e) {
|
29
29
|
return new models_1.RocosError(e, models_1.errorCodes.MAPS_SERVICE_ERROR);
|
30
30
|
}
|
31
|
-
async list(projectId, callsign) {
|
31
|
+
async list(projectId, callsign, includeSystem) {
|
32
|
+
const queryParams = {};
|
33
|
+
if (callsign)
|
34
|
+
queryParams.callsign = callsign;
|
35
|
+
if (includeSystem !== undefined)
|
36
|
+
queryParams.includeSystem = includeSystem.toString();
|
32
37
|
const resp = await this.callGet((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_GRAPHS_MAPS_URL, {
|
33
38
|
url: this.config.url,
|
34
39
|
projectId,
|
35
|
-
}, this.config.insecure), 'Failed to get maps.',
|
40
|
+
}, this.config.insecure), 'Failed to get maps.', queryParams);
|
36
41
|
return resp.maps;
|
37
42
|
}
|
38
43
|
/** List maps to be deployed to a callsign
|
@@ -22,9 +22,10 @@ export declare class MapService extends BaseServiceAbstract implements IBaseServ
|
|
22
22
|
*
|
23
23
|
* @param projectId Project ID
|
24
24
|
* @param callsign Robot callsign
|
25
|
+
* @param includeSystem Include system maps
|
25
26
|
* @returns All maps in the cloud
|
26
27
|
*/
|
27
|
-
list(projectId: string, callsign: string): Promise<Map[]>;
|
28
|
+
list(projectId: string, callsign: string, includeSystem: boolean): Promise<Map[]>;
|
28
29
|
/** List maps to be deployed to a callsign
|
29
30
|
*
|
30
31
|
* @param projectId
|
@@ -25,11 +25,16 @@ export class MapService extends BaseServiceAbstract {
|
|
25
25
|
getError(e) {
|
26
26
|
return new RocosError(e, errorCodes.MAPS_SERVICE_ERROR);
|
27
27
|
}
|
28
|
-
async list(projectId, callsign) {
|
28
|
+
async list(projectId, callsign, includeSystem) {
|
29
|
+
const queryParams = {};
|
30
|
+
if (callsign)
|
31
|
+
queryParams.callsign = callsign;
|
32
|
+
if (includeSystem !== undefined)
|
33
|
+
queryParams.includeSystem = includeSystem.toString();
|
29
34
|
const resp = await this.callGet(formatServiceUrl(API_GRAPHS_MAPS_URL, {
|
30
35
|
url: this.config.url,
|
31
36
|
projectId,
|
32
|
-
}, this.config.insecure), 'Failed to get maps.',
|
37
|
+
}, this.config.insecure), 'Failed to get maps.', queryParams);
|
33
38
|
return resp.maps;
|
34
39
|
}
|
35
40
|
/** List maps to be deployed to a callsign
|