@bi_funsdata/js-sdk 1.0.0

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/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@bi_funsdata/js-sdk",
3
+ "version": "1.0.0",
4
+ "description": "The JavaScript browser client library for DataEye",
5
+ "main": "dist/cjs.min.js",
6
+ "module": "dist/esm.min.js",
7
+ "types": "types/index.d.ts",
8
+ "unpkg": "dist/umd.min.js",
9
+ "license": "Apache-2.0",
10
+ "scripts": {
11
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
12
+ "bump": "bumpp package.json -c -p -t --all -x \"pnpm run changelog\"",
13
+ "prepublishOnly": "npm run build",
14
+ "lint": "eslint ./src",
15
+ "build": "rollup -c"
16
+ },
17
+ "keywords": [
18
+ "sdk",
19
+ "jssdk",
20
+ "funsdata",
21
+ "yeahmobi"
22
+ ],
23
+ "files": [
24
+ "dist",
25
+ "types",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "publishConfig": {
29
+ "access": "public",
30
+ "registry": "https://registry.npmjs.org/"
31
+ },
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://gitlab.yeahmobi.com/gst/javascript-sdk"
35
+ },
36
+ "devDependencies": {
37
+ "@babel/core": "^7.5.4",
38
+ "@babel/preset-env": "^7.5.4",
39
+ "@rollup/plugin-commonjs": "^28.0.1",
40
+ "@rollup/plugin-dynamic-import-vars": "^2.1.5",
41
+ "@rollup/plugin-node-resolve": "^15.3.0",
42
+ "bumpp": "^9.8.1",
43
+ "conventional-changelog-cli": "^5.0.0",
44
+ "eslint": "^6.0.1",
45
+ "rollup": "2.79.2",
46
+ "rollup-plugin-babel": "^4.3.3",
47
+ "rollup-plugin-replace": "^2.2.0",
48
+ "rollup-plugin-terser": "^7.0.2"
49
+ },
50
+ "dependencies": {
51
+ "crypto-js": "^4.2.0",
52
+ "jsencrypt": "^3.3.2",
53
+ "pako": "^2.1.0"
54
+ }
55
+ }
@@ -0,0 +1,52 @@
1
+ declare namespace Funsdata {
2
+ function init(param: object): void;
3
+ function trackLink(dom: any, eventName: String, eventProperties: any): void;
4
+ function track(eventName: String): void;
5
+ function track(eventName: String, eventProperties: object): void;
6
+ function track(eventName: String, eventProperties: object, eventTime: any): void;
7
+ function track(eventName: String, eventProperties: object, eventTime: any, callback: any): void;
8
+ function initInstance(name: String, param: object): void;
9
+ function login(accountId: String): void;
10
+ function setPageProperty(obj: any): void;
11
+ function getPageProperty(): any;
12
+ function getPresetProperties(): PresetProperties;
13
+ function logout(): void;
14
+ function logout(isChangeId: boolean): void;
15
+ function userSet(userProperties: any, callback, any): void;
16
+ function userSet(userProperties: any): void;
17
+ function userSetOnce(userProperties: any, callback: any): void;
18
+ function userSetOnce(userProperties: any): void;
19
+ function userUnset(property: any, callback: any): void;
20
+ function userUnset(property: any): void;
21
+ function userAdd(userProperties: any, callback: any): void;
22
+ function userAdd(userProperties: any): void;
23
+ function userAppend(userProperties: any, callback: any): void;
24
+ function userAppend(userProperties: any): void;
25
+ function userUniqAppend(userProperties: any, callback: any): void;
26
+ function userUniqAppend(userProperties: any): void;
27
+ function flush(): void;
28
+ function userDel(callback: any): void;
29
+ function userDel(): void;
30
+ function trackUpdate(taEvent: any): void;
31
+ function trackOverwrite(taEvent: any): void;
32
+ function trackFirstEvent(taEvent: any): void;
33
+ function identify(id: any): void;
34
+ function getDistinctId(): String;
35
+ function getDeviceId(): String;
36
+ function setSuperProperties(superProperties: any): void;
37
+ function getSuperProperties(): any;
38
+ function clearSuperProperties(): void;
39
+ function unsetSuperProperty(propertyName: String): void;
40
+ function setDynamicSuperProperties(dynamicProperties: any): void;
41
+ function timeEvent(eventName: String): void;
42
+ function quick(type: String, properties: any): void;
43
+ function quick(type: String): void;
44
+ function enableTracking(enabled: boolean): void;
45
+ function optOutTracking(): void;
46
+ function optInTracking(): void;
47
+ function setTrackStatus(config: any): void;
48
+ }
49
+ declare class PresetProperties {
50
+ toEventPresetProperties(): any;
51
+ }
52
+ export default Funsdata;