@dronedeploy/rocos-js-sdk 3.0.1-alpha.23 → 3.0.1-alpha.24
Sign up to get free protection for your applications and to get access to all the features.
@@ -82,9 +82,9 @@ export declare class AssetStorageService extends BaseServiceAbstract implements
|
|
82
82
|
* Get mapped asset
|
83
83
|
*
|
84
84
|
* @param projectId
|
85
|
-
* @param
|
85
|
+
* @param assetId
|
86
86
|
*/
|
87
|
-
getMappedAsset(projectId: string,
|
87
|
+
getMappedAsset(projectId: string, assetId: string): Promise<AssetItemWithObservationsModel>;
|
88
88
|
/**
|
89
89
|
* Set Robot Sync Definitions
|
90
90
|
* @param projectId
|
@@ -140,10 +140,10 @@ class AssetStorageService extends BaseServiceAbstract_1.BaseServiceAbstract {
|
|
140
140
|
* Get mapped asset
|
141
141
|
*
|
142
142
|
* @param projectId
|
143
|
-
* @param
|
143
|
+
* @param assetId
|
144
144
|
*/
|
145
|
-
async getMappedAsset(projectId,
|
146
|
-
return this.callGet((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_PROJECT_MAPPED_ASSET_PATH_URL, { url: this.config.url, projectId,
|
145
|
+
async getMappedAsset(projectId, assetId) {
|
146
|
+
return this.callGet((0, formatServiceUrl_1.formatServiceUrl)(api_1.API_PROJECT_MAPPED_ASSET_PATH_URL, { url: this.config.url, projectId, assetId }, this.config.insecure), `Failed to get mapped asset for ${projectId} and id: ${assetId}.`);
|
147
147
|
}
|
148
148
|
/**
|
149
149
|
* Set Robot Sync Definitions
|
@@ -82,9 +82,9 @@ export declare class AssetStorageService extends BaseServiceAbstract implements
|
|
82
82
|
* Get mapped asset
|
83
83
|
*
|
84
84
|
* @param projectId
|
85
|
-
* @param
|
85
|
+
* @param assetId
|
86
86
|
*/
|
87
|
-
getMappedAsset(projectId: string,
|
87
|
+
getMappedAsset(projectId: string, assetId: string): Promise<AssetItemWithObservationsModel>;
|
88
88
|
/**
|
89
89
|
* Set Robot Sync Definitions
|
90
90
|
* @param projectId
|
@@ -137,10 +137,10 @@ export class AssetStorageService extends BaseServiceAbstract {
|
|
137
137
|
* Get mapped asset
|
138
138
|
*
|
139
139
|
* @param projectId
|
140
|
-
* @param
|
140
|
+
* @param assetId
|
141
141
|
*/
|
142
|
-
async getMappedAsset(projectId,
|
143
|
-
return this.callGet(formatServiceUrl(API_PROJECT_MAPPED_ASSET_PATH_URL, { url: this.config.url, projectId,
|
142
|
+
async getMappedAsset(projectId, assetId) {
|
143
|
+
return this.callGet(formatServiceUrl(API_PROJECT_MAPPED_ASSET_PATH_URL, { url: this.config.url, projectId, assetId }, this.config.insecure), `Failed to get mapped asset for ${projectId} and id: ${assetId}.`);
|
144
144
|
}
|
145
145
|
/**
|
146
146
|
* Set Robot Sync Definitions
|