yach.open.jssdk 4.4.0 → 4.4.1-beta10
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/dist/yach_jssdk_4.3.3.js +1 -0
- package/es/index.d.ts +1 -7
- package/es/index.js +2 -8
- package/es/lib/bridge/mobile.js +20 -52
- package/es/lib/bridge/pc.js +8 -51
- package/es/lib/helper/pcIframe.js +3 -5
- package/es/lib/sdk/index.js +2 -12
- package/es/lib/sdk/sdk.typings.d.ts +0 -1
- package/es/utils/console.d.ts +1 -1
- package/es/utils/console.js +2 -2
- package/es/utils/env.js +2 -4
- package/es/utils/index.js +1 -1
- package/libs/api/initAPI.js +2 -1
- package/libs/index.d.ts +1 -7
- package/libs/index.js +24 -37
- package/libs/lib/bridge/mobile.js +25 -54
- package/libs/lib/bridge/pc.js +13 -53
- package/libs/lib/helper/event.js +2 -1
- package/libs/lib/helper/pcIframe.js +5 -6
- package/libs/lib/index.js +2 -1
- package/libs/lib/sdk/index.js +3 -12
- package/libs/lib/sdk/sdk.typings.d.ts +0 -1
- package/libs/lib/sdk/sdk.typings.js +1 -0
- package/libs/utils/compareVersions.js +8 -4
- package/libs/utils/console.d.ts +1 -1
- package/libs/utils/console.js +2 -2
- package/libs/utils/env.js +2 -4
- package/libs/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/yach_jssdk_4.4.0.js +0 -1
- package/es/api/biz/util/addAppToNav.d.ts +0 -9
- package/es/api/biz/util/addAppToNav.js +0 -23
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -15
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -23
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -30
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -22
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -30
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var ios = {
|
|
3
|
-
vs: '1.8.8'
|
|
4
|
-
};
|
|
5
|
-
var android = {
|
|
6
|
-
vs: '1.8.8'
|
|
7
|
-
};
|
|
8
|
-
var pc = {
|
|
9
|
-
vs: '1.8.8'
|
|
10
|
-
};
|
|
11
|
-
var platform = {
|
|
12
|
-
ios: ios,
|
|
13
|
-
android: android,
|
|
14
|
-
pc: pc
|
|
15
|
-
};
|
|
16
|
-
var apiName = 'biz.util.addAppToNav';
|
|
17
|
-
function addAppToNav(params) {
|
|
18
|
-
initAPI(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { addAppToNav };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IKnowledgeBaseSelectResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
declare type YachNode = {
|
|
8
|
-
node_name: string;
|
|
9
|
-
node_type: string;
|
|
10
|
-
link: string;
|
|
11
|
-
};
|
|
12
|
-
export interface IKnowledgeBaseSelectParams {
|
|
13
|
-
source: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
list: YachNode[];
|
|
16
|
-
isAddToBase?: boolean;
|
|
17
|
-
onSuccess?: (res: IKnowledgeBaseSelectResult) => void;
|
|
18
|
-
onFail?: (err: IError) => void;
|
|
19
|
-
}
|
|
20
|
-
declare function knowledgeBaseSelect(params: IKnowledgeBaseSelectParams): void;
|
|
21
|
-
export { knowledgeBaseSelect };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var pc = {
|
|
3
|
-
vs: '1.8.8'
|
|
4
|
-
};
|
|
5
|
-
var platform = {
|
|
6
|
-
pc: pc
|
|
7
|
-
};
|
|
8
|
-
var apiName = 'biz.util.knowledgeBaseSelect';
|
|
9
|
-
function knowledgeBaseSelect(params) {
|
|
10
|
-
initAPI(apiName, {
|
|
11
|
-
params: params,
|
|
12
|
-
platform: platform
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { knowledgeBaseSelect };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface OpenFutureGroupParams {
|
|
3
|
-
bigType: string;
|
|
4
|
-
type: number | string;
|
|
5
|
-
subType: number | string;
|
|
6
|
-
onSuccess?: () => void;
|
|
7
|
-
onFail?: (err: IError) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function openFutureGroup(params?: OpenFutureGroupParams): void;
|
|
10
|
-
export { openFutureGroup };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var ios = {
|
|
3
|
-
vs: '1.8.8'
|
|
4
|
-
};
|
|
5
|
-
var android = {
|
|
6
|
-
vs: '1.8.8'
|
|
7
|
-
};
|
|
8
|
-
var pc = {
|
|
9
|
-
vs: '1.8.8'
|
|
10
|
-
};
|
|
11
|
-
var platform = {
|
|
12
|
-
pc: pc,
|
|
13
|
-
ios: ios,
|
|
14
|
-
android: android
|
|
15
|
-
};
|
|
16
|
-
var apiName = 'biz.util.openFutureGroup';
|
|
17
|
-
function openFutureGroup(params) {
|
|
18
|
-
initAPI(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { openFutureGroup };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IAddAppToNavParams {
|
|
3
|
-
appId: string;
|
|
4
|
-
platfrorm?: string;
|
|
5
|
-
onSuccess?: (res: any) => void;
|
|
6
|
-
onFail?: (err: IError) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function addAppToNav(params: IAddAppToNavParams): void;
|
|
9
|
-
export { addAppToNav };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.addAppToNav = addAppToNav;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '1.8.8'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '1.8.8'
|
|
15
|
-
};
|
|
16
|
-
var pc = {
|
|
17
|
-
vs: '1.8.8'
|
|
18
|
-
};
|
|
19
|
-
var platform = {
|
|
20
|
-
ios: ios,
|
|
21
|
-
android: android,
|
|
22
|
-
pc: pc
|
|
23
|
-
};
|
|
24
|
-
var apiName = 'biz.util.addAppToNav';
|
|
25
|
-
function addAppToNav(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params,
|
|
28
|
-
platform: platform
|
|
29
|
-
});
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IKnowledgeBaseSelectResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
declare type YachNode = {
|
|
8
|
-
node_name: string;
|
|
9
|
-
node_type: string;
|
|
10
|
-
link: string;
|
|
11
|
-
};
|
|
12
|
-
export interface IKnowledgeBaseSelectParams {
|
|
13
|
-
source: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
list: YachNode[];
|
|
16
|
-
isAddToBase?: boolean;
|
|
17
|
-
onSuccess?: (res: IKnowledgeBaseSelectResult) => void;
|
|
18
|
-
onFail?: (err: IError) => void;
|
|
19
|
-
}
|
|
20
|
-
declare function knowledgeBaseSelect(params: IKnowledgeBaseSelectParams): void;
|
|
21
|
-
export { knowledgeBaseSelect };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.knowledgeBaseSelect = knowledgeBaseSelect;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var pc = {
|
|
11
|
-
vs: '1.8.8'
|
|
12
|
-
};
|
|
13
|
-
var platform = {
|
|
14
|
-
pc: pc
|
|
15
|
-
};
|
|
16
|
-
var apiName = 'biz.util.knowledgeBaseSelect';
|
|
17
|
-
function knowledgeBaseSelect(params) {
|
|
18
|
-
(0, _initAPI["default"])(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface OpenFutureGroupParams {
|
|
3
|
-
bigType: string;
|
|
4
|
-
type: number | string;
|
|
5
|
-
subType: number | string;
|
|
6
|
-
onSuccess?: () => void;
|
|
7
|
-
onFail?: (err: IError) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function openFutureGroup(params?: OpenFutureGroupParams): void;
|
|
10
|
-
export { openFutureGroup };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.openFutureGroup = openFutureGroup;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '1.8.8'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '1.8.8'
|
|
15
|
-
};
|
|
16
|
-
var pc = {
|
|
17
|
-
vs: '1.8.8'
|
|
18
|
-
};
|
|
19
|
-
var platform = {
|
|
20
|
-
pc: pc,
|
|
21
|
-
ios: ios,
|
|
22
|
-
android: android
|
|
23
|
-
};
|
|
24
|
-
var apiName = 'biz.util.openFutureGroup';
|
|
25
|
-
function openFutureGroup(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params,
|
|
28
|
-
platform: platform
|
|
29
|
-
});
|
|
30
|
-
}
|