@dronedeploy/rocos-js-sdk 1.0.0-alpha-2 → 3.0.0-alpha.6
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/api/streams/caller/CallerStreamAbstract.js +1 -1
- package/api/streams/command/CommandStreamAbstract.js +1 -1
- package/api/streams/search/SearchStreamAbstract.js +2 -2
- package/constants/api.d.ts +2 -1
- package/constants/api.js +2 -1
- package/grpc/conker_pb.grpc-client.js +1 -1
- package/grpc/conker_pb.js +1 -1
- package/grpc/filagree_pb.d.ts +5 -5
- package/grpc/filagree_pb.grpc-client.js +1 -1
- package/grpc/filagree_pb.js +6 -6
- package/grpc/google/protobuf/descriptor_pb.d.ts +2 -2
- package/grpc/google/protobuf/descriptor_pb.js +4 -4
- package/grpc/google/protobuf/empty_pb.js +1 -1
- package/grpc/pigeon_pb.grpc-client.js +1 -1
- package/grpc/pigeon_pb.js +1 -1
- package/grpc/rambo.uri.v1_pb.js +1 -1
- package/grpc/rambo.v1_pb.d.ts +1 -1
- package/grpc/rambo.v1_pb.grpc-client.js +1 -1
- package/grpc/rambo.v1_pb.js +2 -2
- package/grpc/serviette.uri.v1_pb.js +1 -1
- package/grpc/serviette.v1_pb.d.ts +2 -2
- package/grpc/serviette.v1_pb.grpc-client.js +1 -1
- package/grpc/serviette.v1_pb.js +3 -3
- package/grpc/slowlane_pb.d.ts +4 -4
- package/grpc/slowlane_pb.grpc-client.js +1 -1
- package/grpc/slowlane_pb.js +5 -5
- package/grpc/teletubby_pb.d.ts +2 -2
- package/grpc/teletubby_pb.grpc-client.js +1 -1
- package/grpc/teletubby_pb.js +8 -8
- package/helpers/nanosecondToMillisecond.d.ts +1 -1
- package/helpers/nanosecondToMillisecond.js +10 -4
- package/helpers/nanosecondToMillisecond.spec.d.ts +1 -0
- package/helpers/nanosecondToMillisecond.spec.js +20 -0
- package/models/maps/Map.d.ts +1 -3
- package/package.json +2 -2
- package/services/AssetStorageService.d.ts +9 -2
- package/services/AssetStorageService.js +15 -4
- package/services/MapService.d.ts +0 -2
@@ -58,8 +58,8 @@ export class SearchStreamAbstract {
|
|
58
58
|
startDate: `${query.startDate}`,
|
59
59
|
endDate: `${query.endDate}`,
|
60
60
|
interval: query.interval,
|
61
|
-
refreshDelay:
|
62
|
-
disableDateHistogram: query.disableDateHistogram ?
|
61
|
+
refreshDelay: query.refreshDelay.toString(),
|
62
|
+
disableDateHistogram: query.disableDateHistogram ? '1' : '0',
|
63
63
|
});
|
64
64
|
if (query.dateField) {
|
65
65
|
reqMsg.dateField = query.dateField;
|
package/constants/api.d.ts
CHANGED
@@ -37,7 +37,8 @@ export declare const API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL = "https:
|
|
37
37
|
export declare const API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL = "https://{url}/projects/{projectId}/profiles/{profileId}/sync-definitions";
|
38
38
|
export declare const API_PROJECT_ROBOT_ASSET_PATH_URL = "https://{url}/projects/{projectId}/robots/{callsign}/assets";
|
39
39
|
export declare const API_PROJECT_FLOW_ASSET_PATH_URL = "https://{url}/projects/{projectId}/flows/{callsign}/assets";
|
40
|
-
export declare const
|
40
|
+
export declare const API_PROJECT_MISSION_ASSETS_PATH_URL = "https://{url}/projects/{projectId}/missionassets";
|
41
|
+
export declare const API_PROJECT_MISSION_ASSET_PATH_URL = "https://{url}/projects/{projectId}/missionassets/{assetId}";
|
41
42
|
export declare const API_PROJECT_ROBOT_URL = "https://{url}/projects/{projectId}/robots";
|
42
43
|
export declare const API_PROJECT_ROBOT_ID_URL = "https://{url}/projects/{projectId}/robots/{callsign}";
|
43
44
|
export declare const API_PROJECT_ROBOT_ATTRIBUTES_URL = "https://{url}/projects/{projectId}/robots/{callsign}/attributes";
|
package/constants/api.js
CHANGED
@@ -37,7 +37,8 @@ export const API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL = 'https://{url}/
|
|
37
37
|
export const API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL = 'https://{url}/projects/{projectId}/profiles/{profileId}/sync-definitions';
|
38
38
|
export const API_PROJECT_ROBOT_ASSET_PATH_URL = 'https://{url}/projects/{projectId}/robots/{callsign}/assets';
|
39
39
|
export const API_PROJECT_FLOW_ASSET_PATH_URL = 'https://{url}/projects/{projectId}/flows/{callsign}/assets';
|
40
|
-
export const
|
40
|
+
export const API_PROJECT_MISSION_ASSETS_PATH_URL = 'https://{url}/projects/{projectId}/missionassets';
|
41
|
+
export const API_PROJECT_MISSION_ASSET_PATH_URL = 'https://{url}/projects/{projectId}/missionassets/{assetId}';
|
41
42
|
export const API_PROJECT_ROBOT_URL = 'https://{url}/projects/{projectId}/robots';
|
42
43
|
export const API_PROJECT_ROBOT_ID_URL = 'https://{url}/projects/{projectId}/robots/{callsign}';
|
43
44
|
export const API_PROJECT_ROBOT_ATTRIBUTES_URL = 'https://{url}/projects/{projectId}/robots/{callsign}/attributes';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "conker.proto" (package "conker.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/conker_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "conker.proto" (package "conker.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/filagree_pb.d.ts
CHANGED
@@ -146,11 +146,11 @@ export interface RxStatus_ChunkDesc {
|
|
146
146
|
/**
|
147
147
|
* @generated from protobuf field: int64 from = 1;
|
148
148
|
*/
|
149
|
-
from:
|
149
|
+
from: string;
|
150
150
|
/**
|
151
151
|
* @generated from protobuf field: int64 size = 2;
|
152
152
|
*/
|
153
|
-
size:
|
153
|
+
size: string;
|
154
154
|
}
|
155
155
|
/**
|
156
156
|
* @generated from protobuf enum filagree.v1.RxStatus.Status
|
@@ -198,11 +198,11 @@ export interface ChunkData {
|
|
198
198
|
/**
|
199
199
|
* @generated from protobuf field: int64 from = 2;
|
200
200
|
*/
|
201
|
-
from:
|
201
|
+
from: string;
|
202
202
|
/**
|
203
203
|
* @generated from protobuf field: int64 next = 3;
|
204
204
|
*/
|
205
|
-
next:
|
205
|
+
next: string;
|
206
206
|
/**
|
207
207
|
* @generated from protobuf field: bytes data = 4;
|
208
208
|
*/
|
@@ -219,7 +219,7 @@ export interface ChunkData_TransferData {
|
|
219
219
|
/**
|
220
220
|
* @generated from protobuf field: int64 size = 2;
|
221
221
|
*/
|
222
|
-
size:
|
222
|
+
size: string;
|
223
223
|
/**
|
224
224
|
* @generated from protobuf field: bytes checksum = 3;
|
225
225
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "filagree.proto" (package "filagree.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/filagree_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "filagree.proto" (package "filagree.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -279,8 +279,8 @@ export const RxStatus = new RxStatus$Type();
|
|
279
279
|
class RxStatus_ChunkDesc$Type extends MessageType {
|
280
280
|
constructor() {
|
281
281
|
super("filagree.v1.RxStatus.ChunkDesc", [
|
282
|
-
{ no: 1, name: "from", kind: "scalar", T: 3 /*ScalarType.INT64
|
283
|
-
{ no: 2, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64
|
282
|
+
{ no: 1, name: "from", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
283
|
+
{ no: 2, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
|
284
284
|
]);
|
285
285
|
}
|
286
286
|
}
|
@@ -293,8 +293,8 @@ class ChunkData$Type extends MessageType {
|
|
293
293
|
constructor() {
|
294
294
|
super("filagree.v1.ChunkData", [
|
295
295
|
{ no: 1, name: "resource", kind: "message", T: () => ChunkData_TransferData },
|
296
|
-
{ no: 2, name: "from", kind: "scalar", T: 3 /*ScalarType.INT64
|
297
|
-
{ no: 3, name: "next", kind: "scalar", T: 3 /*ScalarType.INT64
|
296
|
+
{ no: 2, name: "from", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
297
|
+
{ no: 3, name: "next", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
298
298
|
{ no: 4, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
299
299
|
]);
|
300
300
|
}
|
@@ -308,7 +308,7 @@ class ChunkData_TransferData$Type extends MessageType {
|
|
308
308
|
constructor() {
|
309
309
|
super("filagree.v1.ChunkData.TransferData", [
|
310
310
|
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
311
|
-
{ no: 2, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64
|
311
|
+
{ no: 2, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
312
312
|
{ no: 3, name: "checksum", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
313
313
|
]);
|
314
314
|
}
|
@@ -1250,11 +1250,11 @@ export interface UninterpretedOption {
|
|
1250
1250
|
/**
|
1251
1251
|
* @generated from protobuf field: optional uint64 positive_int_value = 4;
|
1252
1252
|
*/
|
1253
|
-
positiveIntValue?:
|
1253
|
+
positiveIntValue?: string;
|
1254
1254
|
/**
|
1255
1255
|
* @generated from protobuf field: optional int64 negative_int_value = 5;
|
1256
1256
|
*/
|
1257
|
-
negativeIntValue?:
|
1257
|
+
negativeIntValue?: string;
|
1258
1258
|
/**
|
1259
1259
|
* @generated from protobuf field: optional double double_value = 6;
|
1260
1260
|
*/
|
@@ -1971,8 +1971,8 @@ class UninterpretedOption$Type extends MessageType {
|
|
1971
1971
|
super("google.protobuf.UninterpretedOption", [
|
1972
1972
|
{ no: 2, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption_NamePart },
|
1973
1973
|
{ no: 3, name: "identifier_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
1974
|
-
{ no: 4, name: "positive_int_value", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64
|
1975
|
-
{ no: 5, name: "negative_int_value", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64
|
1974
|
+
{ no: 4, name: "positive_int_value", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/ },
|
1975
|
+
{ no: 5, name: "negative_int_value", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/ },
|
1976
1976
|
{ no: 6, name: "double_value", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
1977
1977
|
{ no: 7, name: "string_value", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
1978
1978
|
{ no: 8, name: "aggregate_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
@@ -1997,10 +1997,10 @@ class UninterpretedOption$Type extends MessageType {
|
|
1997
1997
|
message.identifierValue = reader.string();
|
1998
1998
|
break;
|
1999
1999
|
case /* optional uint64 positive_int_value */ 4:
|
2000
|
-
message.positiveIntValue = reader.uint64().
|
2000
|
+
message.positiveIntValue = reader.uint64().toString();
|
2001
2001
|
break;
|
2002
2002
|
case /* optional int64 negative_int_value */ 5:
|
2003
|
-
message.negativeIntValue = reader.int64().
|
2003
|
+
message.negativeIntValue = reader.int64().toString();
|
2004
2004
|
break;
|
2005
2005
|
case /* optional double double_value */ 6:
|
2006
2006
|
message.doubleValue = reader.double();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "google/protobuf/empty.proto" (package "google.protobuf", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "pigeon.proto" (package "pigeon.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/pigeon_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "pigeon.proto" (package "pigeon.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/rambo.uri.v1_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "rambo.uri.v1.proto" (package "rambo.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/rambo.v1_pb.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "rambo.v1.proto" (package "rambo.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/rambo.v1_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "rambo.v1.proto" (package "rambo.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -238,7 +238,7 @@ class CommandRequest$Type extends MessageType {
|
|
238
238
|
{ no: 3, name: "resLevel", kind: "enum", T: () => ["rambo.v1.CommandResponseLevel", CommandResponseLevel] },
|
239
239
|
{ no: 10, name: "parameters", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
240
240
|
{ no: 11, name: "context", kind: "message", T: () => ExecutionContext },
|
241
|
-
{ no: 12, name: "deadlineMs", kind: "scalar", T: 4 /*ScalarType.UINT64
|
241
|
+
{ no: 12, name: "deadlineMs", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
242
242
|
]);
|
243
243
|
}
|
244
244
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "serviette.uri.v1.proto" (package "uri.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -143,7 +143,7 @@ export interface ServiceRequestHeader {
|
|
143
143
|
/**
|
144
144
|
* @generated from protobuf field: int64 created = 2;
|
145
145
|
*/
|
146
|
-
created:
|
146
|
+
created: string;
|
147
147
|
/**
|
148
148
|
* @generated from protobuf field: map<string, string> meta = 11;
|
149
149
|
*/
|
@@ -320,7 +320,7 @@ export interface ServiceReturnHeader {
|
|
320
320
|
/**
|
321
321
|
* @generated from protobuf field: int64 created = 1;
|
322
322
|
*/
|
323
|
-
created:
|
323
|
+
created: string;
|
324
324
|
/**
|
325
325
|
* @generated from protobuf field: map<string, string> meta = 10;
|
326
326
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "serviette.v1.proto" (package "serviette.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/serviette.v1_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "serviette.v1.proto" (package "serviette.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -250,7 +250,7 @@ class ServiceRequestHeader$Type extends MessageType {
|
|
250
250
|
constructor() {
|
251
251
|
super("serviette.v1.ServiceRequestHeader", [
|
252
252
|
{ no: 1, name: "source", kind: "message", T: () => RocosURI, options: { required: true } },
|
253
|
-
{ no: 2, name: "created", kind: "scalar", T: 3 /*ScalarType.INT64*/,
|
253
|
+
{ no: 2, name: "created", kind: "scalar", T: 3 /*ScalarType.INT64*/, options: { required: true } },
|
254
254
|
{ no: 11, name: "meta", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
255
255
|
{ no: 13, name: "responseLevel", kind: "enum", T: () => ["serviette.v1.ServiceResponseLevel", ServiceResponseLevel] }
|
256
256
|
]);
|
@@ -372,7 +372,7 @@ export const ServiceReturn = new ServiceReturn$Type();
|
|
372
372
|
class ServiceReturnHeader$Type extends MessageType {
|
373
373
|
constructor() {
|
374
374
|
super("serviette.v1.ServiceReturnHeader", [
|
375
|
-
{ no: 1, name: "created", kind: "scalar", T: 3 /*ScalarType.INT64*/,
|
375
|
+
{ no: 1, name: "created", kind: "scalar", T: 3 /*ScalarType.INT64*/, options: { required: true } },
|
376
376
|
{ no: 10, name: "meta", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
377
377
|
]);
|
378
378
|
}
|
package/grpc/slowlane_pb.d.ts
CHANGED
@@ -39,7 +39,7 @@ export interface SearchQueryMessage {
|
|
39
39
|
/**
|
40
40
|
* @generated from protobuf field: uint64 refreshDelay = 9;
|
41
41
|
*/
|
42
|
-
refreshDelay:
|
42
|
+
refreshDelay: string;
|
43
43
|
}
|
44
44
|
/**
|
45
45
|
* @generated from protobuf message search.v1.Filter
|
@@ -116,7 +116,7 @@ export interface QueryMessage {
|
|
116
116
|
/**
|
117
117
|
* @generated from protobuf field: uint64 refreshDelay = 7;
|
118
118
|
*/
|
119
|
-
refreshDelay:
|
119
|
+
refreshDelay: string;
|
120
120
|
/**
|
121
121
|
* @generated from protobuf field: string dateField = 8;
|
122
122
|
*/
|
@@ -128,7 +128,7 @@ export interface QueryMessage {
|
|
128
128
|
/**
|
129
129
|
* @generated from protobuf field: uint64 disableDateHistogram = 10;
|
130
130
|
*/
|
131
|
-
disableDateHistogram:
|
131
|
+
disableDateHistogram: string;
|
132
132
|
}
|
133
133
|
/**
|
134
134
|
* @generated from protobuf message search.v1.Row
|
@@ -141,7 +141,7 @@ export interface Row {
|
|
141
141
|
/**
|
142
142
|
* @generated from protobuf field: uint64 count = 2;
|
143
143
|
*/
|
144
|
-
count:
|
144
|
+
count: string;
|
145
145
|
/**
|
146
146
|
* @generated from protobuf field: double avgSize = 3;
|
147
147
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "slowlane.proto" (package "search.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/slowlane_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "slowlane.proto" (package "search.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -17,7 +17,7 @@ class SearchQueryMessage$Type extends MessageType {
|
|
17
17
|
{ no: 6, name: "startDate", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
18
18
|
{ no: 7, name: "endDate", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
19
19
|
{ no: 8, name: "interval", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
20
|
-
{ no: 9, name: "refreshDelay", kind: "scalar", T: 4 /*ScalarType.UINT64
|
20
|
+
{ no: 9, name: "refreshDelay", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
21
21
|
]);
|
22
22
|
}
|
23
23
|
}
|
@@ -85,10 +85,10 @@ class QueryMessage$Type extends MessageType {
|
|
85
85
|
{ no: 4, name: "startDate", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
86
86
|
{ no: 5, name: "endDate", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
87
87
|
{ no: 6, name: "interval", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
88
|
-
{ no: 7, name: "refreshDelay", kind: "scalar", T: 4 /*ScalarType.UINT64
|
88
|
+
{ no: 7, name: "refreshDelay", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
89
89
|
{ no: 8, name: "dateField", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
90
90
|
{ no: 9, name: "projectId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
91
|
-
{ no: 10, name: "disableDateHistogram", kind: "scalar", T: 4 /*ScalarType.UINT64
|
91
|
+
{ no: 10, name: "disableDateHistogram", kind: "scalar", T: 4 /*ScalarType.UINT64*/ }
|
92
92
|
]);
|
93
93
|
}
|
94
94
|
}
|
@@ -101,7 +101,7 @@ class Row$Type extends MessageType {
|
|
101
101
|
constructor() {
|
102
102
|
super("search.v1.Row", [
|
103
103
|
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
104
|
-
{ no: 2, name: "count", kind: "scalar", T: 4 /*ScalarType.UINT64
|
104
|
+
{ no: 2, name: "count", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
105
105
|
{ no: 3, name: "avgSize", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
106
106
|
{ no: 4, name: "totalSize", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
107
107
|
{ no: 5, name: "payload", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
package/grpc/teletubby_pb.d.ts
CHANGED
@@ -26,11 +26,11 @@ export interface TelemetryMessage {
|
|
26
26
|
/**
|
27
27
|
* @generated from protobuf field: int64 created = 4;
|
28
28
|
*/
|
29
|
-
created:
|
29
|
+
created: string;
|
30
30
|
/**
|
31
31
|
* @generated from protobuf field: uint64 seq = 5;
|
32
32
|
*/
|
33
|
-
seq:
|
33
|
+
seq: string;
|
34
34
|
/**
|
35
35
|
* @generated from protobuf field: map<string, string> meta = 6;
|
36
36
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "teletubby.proto" (package "teletubby.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
package/grpc/teletubby_pb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size
|
2
|
+
// @generated by protobuf-ts 2.9.1 with parameter ts_nocheck,eslint_disable,add_pb_suffix,client_grpc1,optimize_code_size,long_type_string
|
3
3
|
// @generated from protobuf file "teletubby.proto" (package "teletubby.v1", syntax proto3)
|
4
4
|
// tslint:disable
|
5
5
|
// @ts-nocheck
|
@@ -60,14 +60,14 @@ class TelemetryMessage$Type extends MessageType {
|
|
60
60
|
{ no: 1, name: "source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
61
61
|
{ no: 2, name: "payload", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
62
62
|
{ no: 3, name: "callsign", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
63
|
-
{ no: 4, name: "created", kind: "scalar", T: 3 /*ScalarType.INT64
|
64
|
-
{ no: 5, name: "seq", kind: "scalar", T: 4 /*ScalarType.UINT64
|
63
|
+
{ no: 4, name: "created", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
64
|
+
{ no: 5, name: "seq", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
65
65
|
{ no: 6, name: "meta", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
66
66
|
{ no: 7, name: "uid", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
67
67
|
]);
|
68
68
|
}
|
69
69
|
create(value) {
|
70
|
-
const message = { source: "", payload: new Uint8Array(0), callsign: "", created:
|
70
|
+
const message = { source: "", payload: new Uint8Array(0), callsign: "", created: "0", seq: "0", meta: {}, uid: "" };
|
71
71
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
72
72
|
if (value !== undefined)
|
73
73
|
reflectionMergePartial(this, message, value);
|
@@ -88,10 +88,10 @@ class TelemetryMessage$Type extends MessageType {
|
|
88
88
|
message.callsign = reader.string();
|
89
89
|
break;
|
90
90
|
case /* int64 created */ 4:
|
91
|
-
message.created = reader.int64().
|
91
|
+
message.created = reader.int64().toString();
|
92
92
|
break;
|
93
93
|
case /* uint64 seq */ 5:
|
94
|
-
message.seq = reader.uint64().
|
94
|
+
message.seq = reader.uint64().toString();
|
95
95
|
break;
|
96
96
|
case /* map<string, string> meta */ 6:
|
97
97
|
this.binaryReadMap6(message.meta, reader, options);
|
@@ -137,10 +137,10 @@ class TelemetryMessage$Type extends MessageType {
|
|
137
137
|
if (message.callsign !== "")
|
138
138
|
writer.tag(3, WireType.LengthDelimited).string(message.callsign);
|
139
139
|
/* int64 created = 4; */
|
140
|
-
if (message.created !==
|
140
|
+
if (message.created !== "0")
|
141
141
|
writer.tag(4, WireType.Varint).int64(message.created);
|
142
142
|
/* uint64 seq = 5; */
|
143
|
-
if (message.seq !==
|
143
|
+
if (message.seq !== "0")
|
144
144
|
writer.tag(5, WireType.Varint).uint64(message.seq);
|
145
145
|
/* map<string, string> meta = 6; */
|
146
146
|
for (let k of Object.keys(message.meta))
|
@@ -1 +1 @@
|
|
1
|
-
export declare const nanosecondToMillisecond: (
|
1
|
+
export declare const nanosecondToMillisecond: (nano: number | string) => number;
|
@@ -1,6 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
function isNumber(n) {
|
2
|
+
return typeof n === 'number';
|
3
|
+
}
|
4
|
+
export const nanosecondToMillisecond = (nano) => {
|
5
|
+
if (isNumber(nano)) {
|
6
|
+
return nano / 1e6;
|
4
7
|
}
|
5
|
-
|
8
|
+
if (nano.length < 16) {
|
9
|
+
return Number(nano) / 1e6;
|
10
|
+
}
|
11
|
+
return Number(nano.slice(0, -6) + '.' + nano.slice(-6));
|
6
12
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { nanosecondToMillisecond } from './nanosecondToMillisecond';
|
2
|
+
describe('nanosecondToMillisecond', () => {
|
3
|
+
it.each `
|
4
|
+
input | expected
|
5
|
+
${'0.0001'} | ${0.0000000001}
|
6
|
+
${'1'} | ${0.000001}
|
7
|
+
${'1000000'} | ${1}
|
8
|
+
${'10000000'} | ${10}
|
9
|
+
${'-100000006'} | ${-100.000006}
|
10
|
+
${'1000000000000000000'} | ${1000000000000}
|
11
|
+
${'1234567891011100001'} | ${1234567891011.100001}
|
12
|
+
${'1234567891011100000'} | ${1234567891011.1}
|
13
|
+
${0.0001} | ${0.0000000001}
|
14
|
+
${1} | ${0.000001}
|
15
|
+
${1000000} | ${1}
|
16
|
+
${1000000000000001} | ${1000000000.000001}
|
17
|
+
`('should convert $input to $expected', ({ input, expected }) => {
|
18
|
+
expect(nanosecondToMillisecond(input)).toBe(expected);
|
19
|
+
});
|
20
|
+
});
|
package/models/maps/Map.d.ts
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
export interface Map {
|
2
2
|
id: string;
|
3
|
-
name: string;
|
4
3
|
description: string;
|
5
4
|
nodes: number;
|
6
5
|
edges: number;
|
7
6
|
sizeBytes: number;
|
8
7
|
deployed: boolean;
|
8
|
+
deployedCount: number;
|
9
9
|
isUploading: boolean;
|
10
10
|
isInCloud: boolean;
|
11
|
-
lastModifiedTimestamp?: number;
|
12
|
-
modifiedBy?: string;
|
13
11
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dronedeploy/rocos-js-sdk",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0-alpha.6",
|
4
4
|
"description": "Javascript SDK for rocos",
|
5
5
|
"main": "index.js",
|
6
6
|
"types": "index.d.ts",
|
@@ -24,4 +24,4 @@
|
|
24
24
|
},
|
25
25
|
"repository": {},
|
26
26
|
"private": false
|
27
|
-
}
|
27
|
+
}
|
@@ -67,9 +67,16 @@ export declare class AssetStorageService extends BaseServiceAbstract implements
|
|
67
67
|
* List assets for a mission
|
68
68
|
*
|
69
69
|
* @param projectId
|
70
|
-
* @param
|
70
|
+
* @param assetIdList
|
71
71
|
*/
|
72
|
-
|
72
|
+
listMissionAssets(projectId: string, assetIdList: string[]): Promise<AssetItemModel[]>;
|
73
|
+
/**
|
74
|
+
* Get a single asset for a mission
|
75
|
+
*
|
76
|
+
* @param projectId
|
77
|
+
* @param assetId
|
78
|
+
*/
|
79
|
+
getMissionAsset(projectId: string, assetId: string): Promise<AssetItemModel>;
|
73
80
|
/**
|
74
81
|
* Set Robot Sync Definitions
|
75
82
|
* @param projectId
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { API_PROJECT_ASSET_PATH_URL, API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL, API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL, API_PROJECT_ASSET_URL, API_PROJECT_FLOW_ASSET_PATH_URL, API_PROJECT_MISSION_ASSET_PATH_URL, API_PROJECT_ROBOT_ASSET_PATH_URL, } from '../constants/api';
|
1
|
+
import { API_PROJECT_ASSET_PATH_URL, API_PROJECT_ASSET_PROFILES_SYNC_DEFINITION_PATH_URL, API_PROJECT_ASSET_ROBOTS_SYNC_DEFINITION_PATH_URL, API_PROJECT_ASSET_URL, API_PROJECT_FLOW_ASSET_PATH_URL, API_PROJECT_MISSION_ASSETS_PATH_URL, API_PROJECT_MISSION_ASSET_PATH_URL, API_PROJECT_ROBOT_ASSET_PATH_URL, } from '../constants/api';
|
2
2
|
import { RocosError, errorCodes } from '../models/RocosError';
|
3
3
|
import { BaseServiceAbstract } from './BaseServiceAbstract';
|
4
4
|
import { RocosLogger } from '../logger/RocosLogger';
|
@@ -106,10 +106,21 @@ export class AssetStorageService extends BaseServiceAbstract {
|
|
106
106
|
* List assets for a mission
|
107
107
|
*
|
108
108
|
* @param projectId
|
109
|
-
* @param
|
109
|
+
* @param assetIdList
|
110
110
|
*/
|
111
|
-
async
|
112
|
-
|
111
|
+
async listMissionAssets(projectId, assetIdList) {
|
112
|
+
const searchParams = new URLSearchParams();
|
113
|
+
assetIdList.forEach((assetId) => searchParams.append('assetId', assetId));
|
114
|
+
return this.callGet(formatServiceUrl(API_PROJECT_MISSION_ASSETS_PATH_URL, { url: this.config.url, projectId }, this.config.insecure), `Failed to get asset for ${projectId}, assetIdList ${assetIdList}.`, searchParams);
|
115
|
+
}
|
116
|
+
/**
|
117
|
+
* Get a single asset for a mission
|
118
|
+
*
|
119
|
+
* @param projectId
|
120
|
+
* @param assetId
|
121
|
+
*/
|
122
|
+
async getMissionAsset(projectId, assetId) {
|
123
|
+
return this.callGet(formatServiceUrl(API_PROJECT_MISSION_ASSET_PATH_URL, { url: this.config.url, projectId, assetId }, this.config.insecure), `Failed to get asset for ${projectId}, dataUUID ${assetId}.`, undefined);
|
113
124
|
}
|
114
125
|
/**
|
115
126
|
* Set Robot Sync Definitions
|
package/services/MapService.d.ts
CHANGED
@@ -52,7 +52,6 @@ export declare class MapService extends BaseServiceAbstract implements IBaseServ
|
|
52
52
|
* @param options New metadata
|
53
53
|
*/
|
54
54
|
update(projectId: string, mapId: string, options: {
|
55
|
-
name: string;
|
56
55
|
description?: string;
|
57
56
|
callsign?: string;
|
58
57
|
}): Promise<void>;
|
@@ -90,7 +89,6 @@ export declare class MapService extends BaseServiceAbstract implements IBaseServ
|
|
90
89
|
* @param options Options to create the new map
|
91
90
|
*/
|
92
91
|
copy(projectId: string, mapId: string, options: {
|
93
|
-
name: string;
|
94
92
|
description?: string;
|
95
93
|
}): Promise<void>;
|
96
94
|
/** Deploy a map from the cloud to a robot
|