@formant/data-sdk 0.0.1 → 0.0.5
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/README.md +1 -1
- package/dist/data-sdk.es.js +2 -2
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/common/defined.d.ts +3 -0
- package/dist/types/{Authentication.d.ts → data-sdk/src/Authentication.d.ts} +0 -0
- package/dist/types/{Device.d.ts → data-sdk/src/Device.d.ts} +6 -0
- package/dist/types/{Fleet.d.ts → data-sdk/src/Fleet.d.ts} +0 -0
- package/dist/types/data-sdk/src/config.d.ts +1 -0
- package/dist/types/{main.d.ts → data-sdk/src/main.d.ts} +0 -1
- package/dist/types/{utils.d.ts → data-sdk/src/utils.d.ts} +0 -0
- package/package.json +6 -6
|
File without changes
|
|
@@ -3,6 +3,9 @@ export interface ConfigurationDocument {
|
|
|
3
3
|
urdfFiles: string[];
|
|
4
4
|
}
|
|
5
5
|
export declare type RealtimeListener = (peerId: string, message: any) => void;
|
|
6
|
+
export declare type RealtimeVideoStream = {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
6
9
|
export declare class Device {
|
|
7
10
|
private token;
|
|
8
11
|
id: string;
|
|
@@ -18,5 +21,8 @@ export declare class Device {
|
|
|
18
21
|
startRealtimeConnection(): Promise<void>;
|
|
19
22
|
addRealtimeListener(listener: RealtimeListener): void;
|
|
20
23
|
removeRealtimeListener(listener: RealtimeListener): void;
|
|
24
|
+
getRealtimeVideoStreams(): Promise<RealtimeVideoStream[]>;
|
|
25
|
+
startListeningToRealtimeVideo(stream: RealtimeVideoStream): void;
|
|
26
|
+
stopListeningToRealtimeVideo(stream: RealtimeVideoStream): void;
|
|
21
27
|
stopRealtimeConnection(): Promise<void>;
|
|
22
28
|
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FORMANT_API_URL = "https://api.formant.io";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"description": "A library for getting data from Formant",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "https://github.com/formantio/
|
|
6
|
+
"url": "https://github.com/formantio/toolkit.git"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"homepage": "https://github.com/formantio/
|
|
12
|
+
"homepage": "https://github.com/formantio/toolkit",
|
|
13
13
|
"main": "./dist/data-sdk.umd.js",
|
|
14
14
|
"module": "./dist/data-sdk.es.js",
|
|
15
15
|
"exports": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"require": "./dist/data-sdk.umd.js"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.5",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite --port 4000",
|
|
24
24
|
"build": "tsc && vite build",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"docs": "typedoc src/main.ts --theme minimal --out ../../docs/data-sdk/"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@formant/realtime-sdk": "0.0.3",
|
|
31
30
|
"typedoc": "^0.21.9",
|
|
32
31
|
"typescript": "^4.3.2",
|
|
33
32
|
"vite": "^2.5.4"
|
|
34
33
|
},
|
|
35
|
-
"types": "./dist/types/main.d.ts",
|
|
34
|
+
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@types/google-protobuf": "^3.15.5"
|
|
36
|
+
"@types/google-protobuf": "^3.15.5",
|
|
37
|
+
"@formant/realtime-sdk": "0.0.3"
|
|
38
38
|
}
|
|
39
39
|
}
|