@formant/data-sdk 0.0.49 → 0.0.50
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.
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare type ModuleData = {
|
|
2
|
+
streams: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
};
|
|
5
|
+
time: number;
|
|
6
|
+
queryRange: {
|
|
7
|
+
start: number;
|
|
8
|
+
end: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare class App {
|
|
12
|
+
private static sendAppMessage;
|
|
13
|
+
private static getCurrentModuleContext;
|
|
14
|
+
static isModule(): boolean;
|
|
15
|
+
static goToTime(date: Date): void;
|
|
16
|
+
static showMessage(message: string): void;
|
|
17
|
+
static requestModuleData(): void;
|
|
18
|
+
static refreshAuthToken(): void;
|
|
19
|
+
static setupModuleMenus(menus: {
|
|
20
|
+
label: string;
|
|
21
|
+
}[]): void;
|
|
22
|
+
static addMenuListener(handler: (label: string) => void): void;
|
|
23
|
+
static addAccessTokenRefreshListener(handler: (token: string) => void): void;
|
|
24
|
+
static addModuleDataListener(handler: (data: ModuleData) => void): void;
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"version": "0.0.49",
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "vite --port 9146",
|
|
24
|
-
"build": "tsc && vite build",
|
|
25
|
-
"serve": "vite preview",
|
|
26
|
-
"types": "tsc src/*.ts --lib ESNext,DOM --declaration --emitDeclarationOnly --downlevelIteration --outDir dist/types",
|
|
27
|
-
"docs": "typedoc src/main.ts --theme minimal --out ../../docs/data-sdk/"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"typedoc": "^0.21.9",
|
|
31
|
-
"typescript": "^4.3.2",
|
|
32
|
-
"vite": "^2.5.4"
|
|
33
|
-
},
|
|
34
|
-
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@types/google-protobuf": "^3.15.5",
|
|
37
|
-
"@formant/realtime-sdk": "0.0.4"
|
|
2
|
+
"name": "@formant/data-sdk",
|
|
3
|
+
"description": "A library for getting data from Formant",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/formantio/toolkit.git"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"homepage": "https://github.com/formantio/toolkit",
|
|
13
|
+
"main": "./dist/data-sdk.umd.js",
|
|
14
|
+
"module": "./dist/data-sdk.es.js",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/data-sdk.es.js",
|
|
18
|
+
"require": "./dist/data-sdk.umd.js"
|
|
38
19
|
}
|
|
20
|
+
},
|
|
21
|
+
"version": "0.0.50",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite --port 9146",
|
|
24
|
+
"build": "tsc && vite build",
|
|
25
|
+
"serve": "vite preview",
|
|
26
|
+
"types": "tsc src/*.ts --lib ESNext,DOM --declaration --emitDeclarationOnly --downlevelIteration --outDir dist/types",
|
|
27
|
+
"docs": "typedoc src/main.ts --theme minimal --out ../../docs/data-sdk/"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"typedoc": "^0.21.9",
|
|
31
|
+
"typescript": "^4.3.2",
|
|
32
|
+
"vite": "^2.5.4"
|
|
33
|
+
},
|
|
34
|
+
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@types/google-protobuf": "^3.15.5",
|
|
37
|
+
"@formant/realtime-sdk": "0.0.4"
|
|
38
|
+
}
|
|
39
39
|
}
|