yach.open.jssdk 4.4.9 → 4.4.10-beta.2
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/api/biz/navigation/close.d.ts +0 -1
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/es/api/device/notification/hidePreloader.d.ts +1 -6
- package/es/api/device/notification/hidePreloader.js +2 -15
- package/es/api/device/notification/showPreloader.d.ts +1 -10
- package/es/api/device/notification/showPreloader.js +2 -15
- package/es/index.d.ts +3 -41
- package/es/index.js +5 -44
- package/es/lib/bridge/mobile.js +20 -61
- package/es/lib/bridge/pc.js +8 -50
- package/es/lib/helper/pcIframe.d.ts +25 -8
- package/es/lib/helper/pcIframe.js +8 -34
- package/es/lib/sdk/index.js +4 -13
- package/es/lib/sdk/sdk.typings.d.ts +0 -2
- package/es/utils/console.d.ts +1 -1
- package/es/utils/console.js +2 -2
- package/es/utils/env.js +3 -7
- package/es/utils/index.js +1 -1
- package/libs/api/biz/navigation/close.d.ts +0 -1
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/libs/api/device/notification/hidePreloader.d.ts +1 -6
- package/libs/api/device/notification/hidePreloader.js +1 -15
- package/libs/api/device/notification/showPreloader.d.ts +1 -10
- package/libs/api/device/notification/showPreloader.js +1 -15
- package/libs/api/initAPI.js +2 -1
- package/libs/index.d.ts +3 -41
- package/libs/index.js +25 -186
- package/libs/lib/bridge/mobile.js +25 -64
- package/libs/lib/bridge/pc.js +13 -53
- package/libs/lib/helper/event.js +2 -1
- package/libs/lib/helper/pcIframe.d.ts +25 -8
- package/libs/lib/helper/pcIframe.js +10 -35
- package/libs/lib/index.js +2 -1
- package/libs/lib/sdk/index.js +5 -13
- package/libs/lib/sdk/sdk.typings.d.ts +0 -2
- 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 +3 -7
- package/libs/utils/index.js +1 -1
- package/package.json +3 -1
- package/dist/yach_jssdk_4.4.9.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/copy.d.ts +0 -11
- package/es/api/biz/util/copy.js +0 -19
- package/es/api/biz/util/focus.d.ts +0 -7
- package/es/api/biz/util/focus.js +0 -23
- package/es/api/biz/util/getConfig.d.ts +0 -13
- package/es/api/biz/util/getConfig.js +0 -19
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -23
- package/es/api/biz/util/knowledgeSelectParams.d.ts +0 -14
- package/es/api/biz/util/knowledgeSelectParams.js +0 -19
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -19
- package/es/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/es/api/biz/util/lorebaseShowList.js +0 -19
- package/es/api/biz/util/mediaFileUploadV2.d.ts +0 -26
- package/es/api/biz/util/mediaFileUploadV2.js +0 -15
- package/es/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/es/api/biz/util/openAudioPlayer.js +0 -23
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -23
- package/es/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
- package/es/api/biz/util/openMediaFileDialogV2.js +0 -16
- package/es/api/biz/util/openPublish.d.ts +0 -22
- package/es/api/biz/util/openPublish.js +0 -15
- package/es/api/biz/util/screen.d.ts +0 -15
- package/es/api/biz/util/screen.js +0 -15
- package/es/api/biz/util/topicEvent.d.ts +0 -13
- package/es/api/biz/util/topicEvent.js +0 -27
- package/es/api/biz/util/weeklyRead.d.ts +0 -5
- package/es/api/biz/util/weeklyRead.js +0 -23
- package/es/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
- package/es/api/device/connection/startNetworkChangeWatch.js +0 -23
- package/es/api/primary/updateTab.d.ts +0 -9
- package/es/api/primary/updateTab.js +0 -15
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -30
- package/libs/api/biz/util/copy.d.ts +0 -11
- package/libs/api/biz/util/copy.js +0 -26
- package/libs/api/biz/util/focus.d.ts +0 -7
- package/libs/api/biz/util/focus.js +0 -30
- package/libs/api/biz/util/getConfig.d.ts +0 -13
- package/libs/api/biz/util/getConfig.js +0 -26
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -30
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +0 -14
- package/libs/api/biz/util/knowledgeSelectParams.js +0 -26
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +0 -26
- package/libs/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/libs/api/biz/util/lorebaseShowList.js +0 -26
- package/libs/api/biz/util/mediaFileUploadV2.d.ts +0 -26
- package/libs/api/biz/util/mediaFileUploadV2.js +0 -23
- package/libs/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/libs/api/biz/util/openAudioPlayer.js +0 -30
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -30
- package/libs/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
- package/libs/api/biz/util/openMediaFileDialogV2.js +0 -24
- package/libs/api/biz/util/openPublish.d.ts +0 -22
- package/libs/api/biz/util/openPublish.js +0 -22
- package/libs/api/biz/util/screen.d.ts +0 -15
- package/libs/api/biz/util/screen.js +0 -22
- package/libs/api/biz/util/topicEvent.d.ts +0 -13
- package/libs/api/biz/util/topicEvent.js +0 -34
- package/libs/api/biz/util/weeklyRead.d.ts +0 -5
- package/libs/api/biz/util/weeklyRead.js +0 -30
- package/libs/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
- package/libs/api/device/connection/startNetworkChangeWatch.js +0 -30
- package/libs/api/primary/updateTab.d.ts +0 -9
- package/libs/api/primary/updateTab.js +0 -22
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var apiName = 'biz.util.topicEvent';
|
|
3
|
-
var ios = {
|
|
4
|
-
vs: '0.0.0'
|
|
5
|
-
};
|
|
6
|
-
var android = {
|
|
7
|
-
vs: '0.0.0'
|
|
8
|
-
};
|
|
9
|
-
var pc = {
|
|
10
|
-
vs: '0.0.0'
|
|
11
|
-
};
|
|
12
|
-
var platform = {
|
|
13
|
-
ios: ios,
|
|
14
|
-
android: android,
|
|
15
|
-
pc: pc
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* 话题群 公共事件
|
|
19
|
-
* @param params
|
|
20
|
-
*/
|
|
21
|
-
function topicEvent(params) {
|
|
22
|
-
initAPI(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export { topicEvent };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var ios = {
|
|
3
|
-
vs: '1.9.3.1'
|
|
4
|
-
};
|
|
5
|
-
var android = {
|
|
6
|
-
vs: '1.9.3.1'
|
|
7
|
-
};
|
|
8
|
-
var pc = {
|
|
9
|
-
vs: '1.9.3.1'
|
|
10
|
-
};
|
|
11
|
-
var platform = {
|
|
12
|
-
pc: pc,
|
|
13
|
-
ios: ios,
|
|
14
|
-
android: android
|
|
15
|
-
};
|
|
16
|
-
var apiName = 'biz.util.weeklyRead';
|
|
17
|
-
function weeklyRead(params) {
|
|
18
|
-
initAPI(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { weeklyRead };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IDeviceConnectionStartNetworkChangeWatchParams {
|
|
3
|
-
enable?: boolean;
|
|
4
|
-
onSuccess?: () => void;
|
|
5
|
-
onFail?: (err: IError) => void;
|
|
6
|
-
}
|
|
7
|
-
declare function startNetworkChangeWatch(params?: IDeviceConnectionStartNetworkChangeWatchParams): void;
|
|
8
|
-
export { startNetworkChangeWatch };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var apiName = 'device.connection.startNetworkChangeWatch';
|
|
3
|
-
var ios = {
|
|
4
|
-
vs: '1.9.16.1'
|
|
5
|
-
};
|
|
6
|
-
var android = {
|
|
7
|
-
vs: '1.9.16.1'
|
|
8
|
-
};
|
|
9
|
-
var pc = {
|
|
10
|
-
vs: '1.9.16.1'
|
|
11
|
-
};
|
|
12
|
-
var platform = {
|
|
13
|
-
pc: pc,
|
|
14
|
-
ios: ios,
|
|
15
|
-
android: android
|
|
16
|
-
};
|
|
17
|
-
function startNetworkChangeWatch(params) {
|
|
18
|
-
initAPI(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export { startNetworkChangeWatch };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IError } from '../common.typings';
|
|
2
|
-
export interface IPrimaryUpdateTab {
|
|
3
|
-
/** 应用标题 */
|
|
4
|
-
title?: string;
|
|
5
|
-
onSuccess?: () => void;
|
|
6
|
-
onFail?: (err: IError) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function updateTab(params: IPrimaryUpdateTab): void;
|
|
9
|
-
export { updateTab };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import initAPI from '../initAPI';
|
|
2
|
-
var apiName = 'primary.updateTab';
|
|
3
|
-
var pc = {
|
|
4
|
-
vs: '1.9.12'
|
|
5
|
-
};
|
|
6
|
-
var platform = {
|
|
7
|
-
pc: pc
|
|
8
|
-
};
|
|
9
|
-
function updateTab(params) {
|
|
10
|
-
initAPI(apiName, {
|
|
11
|
-
params: params,
|
|
12
|
-
platform: platform
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { updateTab };
|
|
@@ -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,11 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilCopyResult {
|
|
3
|
-
data?: Object;
|
|
4
|
-
}
|
|
5
|
-
export interface IBizUtilCopyParams {
|
|
6
|
-
text: string;
|
|
7
|
-
onSuccess?: (data: IBizUtilCopyResult) => void;
|
|
8
|
-
onFail?: (err: IError) => void;
|
|
9
|
-
}
|
|
10
|
-
declare function copy(params: IBizUtilCopyParams): void;
|
|
11
|
-
export { copy };
|
|
@@ -1,26 +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.copy = copy;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '0.0.0'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '0.0.0'
|
|
15
|
-
};
|
|
16
|
-
var platform = {
|
|
17
|
-
ios: ios,
|
|
18
|
-
android: android
|
|
19
|
-
};
|
|
20
|
-
var apiName = 'biz.util.copy';
|
|
21
|
-
function copy(params) {
|
|
22
|
-
(0, _initAPI["default"])(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -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.focus = focus;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var pc = {
|
|
11
|
-
vs: '1.9.13'
|
|
12
|
-
};
|
|
13
|
-
var ios = {
|
|
14
|
-
vs: '1.9.13'
|
|
15
|
-
};
|
|
16
|
-
var android = {
|
|
17
|
-
vs: '1.9.13'
|
|
18
|
-
};
|
|
19
|
-
var platform = {
|
|
20
|
-
pc: pc,
|
|
21
|
-
ios: ios,
|
|
22
|
-
android: android
|
|
23
|
-
};
|
|
24
|
-
var apiName = 'biz.util.focus';
|
|
25
|
-
function focus(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params,
|
|
28
|
-
platform: platform
|
|
29
|
-
});
|
|
30
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface GetConfigResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface GetConfigParams {
|
|
8
|
-
configNode: String;
|
|
9
|
-
onSuccess?: (res: GetConfigResult) => void;
|
|
10
|
-
onFail?: (err: IError) => void;
|
|
11
|
-
}
|
|
12
|
-
declare function getConfig(params: GetConfigParams): void;
|
|
13
|
-
export { getConfig };
|
|
@@ -1,26 +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.getConfig = getConfig;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '1.9.12'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '1.9.12'
|
|
15
|
-
};
|
|
16
|
-
var platform = {
|
|
17
|
-
ios: ios,
|
|
18
|
-
android: android
|
|
19
|
-
};
|
|
20
|
-
var apiName = 'biz.util.getConfig';
|
|
21
|
-
function getConfig(params) {
|
|
22
|
-
(0, _initAPI["default"])(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -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,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.knowledgeBaseSelect = knowledgeBaseSelect;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var pc = {
|
|
11
|
-
vs: '1.8.8'
|
|
12
|
-
};
|
|
13
|
-
var ios = {
|
|
14
|
-
vs: '1.9.12'
|
|
15
|
-
};
|
|
16
|
-
var android = {
|
|
17
|
-
vs: '1.9.12'
|
|
18
|
-
};
|
|
19
|
-
var platform = {
|
|
20
|
-
pc: pc,
|
|
21
|
-
ios: ios,
|
|
22
|
-
android: android
|
|
23
|
-
};
|
|
24
|
-
var apiName = 'biz.util.knowledgeBaseSelect';
|
|
25
|
-
function knowledgeBaseSelect(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params,
|
|
28
|
-
platform: platform
|
|
29
|
-
});
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface KnowledgeSelectParamsResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface KnowledgeSelectParams {
|
|
8
|
-
type: number;
|
|
9
|
-
result: KnowledgeSelectParamsResult;
|
|
10
|
-
onSuccess?: (res: KnowledgeSelectParamsResult) => void;
|
|
11
|
-
onFail?: (err: IError) => void;
|
|
12
|
-
}
|
|
13
|
-
declare function knowledgeSelectParams(params: KnowledgeSelectParams): void;
|
|
14
|
-
export { knowledgeSelectParams };
|
|
@@ -1,26 +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.knowledgeSelectParams = knowledgeSelectParams;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '1.9.12'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '1.9.12'
|
|
15
|
-
};
|
|
16
|
-
var platform = {
|
|
17
|
-
ios: ios,
|
|
18
|
-
android: android
|
|
19
|
-
};
|
|
20
|
-
var apiName = 'biz.util.knowledgeSelectParams';
|
|
21
|
-
function knowledgeSelectParams(params) {
|
|
22
|
-
(0, _initAPI["default"])(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilLorebaseRefreshNodeWebviewResult {
|
|
3
|
-
data?: Object;
|
|
4
|
-
}
|
|
5
|
-
export interface IBizUtilLorebaseRefreshNodeWebviewParams {
|
|
6
|
-
link: string;
|
|
7
|
-
onSuccess?: (data: IBizUtilLorebaseRefreshNodeWebviewResult) => void;
|
|
8
|
-
onFail?: (err: IError) => void;
|
|
9
|
-
}
|
|
10
|
-
declare function lorebaseRefreshNodeWebview(params: IBizUtilLorebaseRefreshNodeWebviewParams): void;
|
|
11
|
-
export { lorebaseRefreshNodeWebview };
|
|
@@ -1,26 +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.lorebaseRefreshNodeWebview = lorebaseRefreshNodeWebview;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '0.0.0'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '0.0.0'
|
|
15
|
-
};
|
|
16
|
-
var platform = {
|
|
17
|
-
ios: ios,
|
|
18
|
-
android: android
|
|
19
|
-
};
|
|
20
|
-
var apiName = 'biz.util.lorebaseRefreshNodeWebview';
|
|
21
|
-
function lorebaseRefreshNodeWebview(params) {
|
|
22
|
-
(0, _initAPI["default"])(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilLorebaseShowListResult {
|
|
3
|
-
data?: Object;
|
|
4
|
-
}
|
|
5
|
-
export interface IBizUtilLorebaseShowListParams {
|
|
6
|
-
isShow: Boolean;
|
|
7
|
-
onSuccess?: (data: IBizUtilLorebaseShowListResult) => void;
|
|
8
|
-
onFail?: (err: IError) => void;
|
|
9
|
-
}
|
|
10
|
-
declare function lorebaseShowList(params: IBizUtilLorebaseShowListParams): void;
|
|
11
|
-
export { lorebaseShowList };
|
|
@@ -1,26 +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.lorebaseShowList = lorebaseShowList;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '0.0.0'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '0.0.0'
|
|
15
|
-
};
|
|
16
|
-
var platform = {
|
|
17
|
-
ios: ios,
|
|
18
|
-
android: android
|
|
19
|
-
};
|
|
20
|
-
var apiName = 'biz.util.lorebaseShowList';
|
|
21
|
-
function lorebaseShowList(params) {
|
|
22
|
-
(0, _initAPI["default"])(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilFileUploadProgress {
|
|
3
|
-
loaded: number;
|
|
4
|
-
total: number;
|
|
5
|
-
speed: number;
|
|
6
|
-
percent: number;
|
|
7
|
-
}
|
|
8
|
-
export interface IBizUtilFileUploadResult {
|
|
9
|
-
data?: {
|
|
10
|
-
fileId?: string;
|
|
11
|
-
filePath?: string;
|
|
12
|
-
fileName?: string;
|
|
13
|
-
sourcePath?: string;
|
|
14
|
-
relation_id?: string;
|
|
15
|
-
videoPic?: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export interface IBizUtilFileUploadParams {
|
|
19
|
-
/** 支持上传附件的文件类型,至少一个,支持多种类型 */
|
|
20
|
-
files?: Array<Object>;
|
|
21
|
-
onSuccess?: (data: IBizUtilFileUploadResult) => void;
|
|
22
|
-
onFail?: (err: IError) => void;
|
|
23
|
-
onProgress?: (data: IBizUtilFileUploadProgress) => void;
|
|
24
|
-
}
|
|
25
|
-
declare function mediaFileUploadV2(params: IBizUtilFileUploadParams): void;
|
|
26
|
-
export { mediaFileUploadV2 };
|
|
@@ -1,23 +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.mediaFileUploadV2 = mediaFileUploadV2;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
/*
|
|
11
|
-
* @Descripttion:
|
|
12
|
-
* @Author: olei<wangzheng_jzb@100tal.com>
|
|
13
|
-
* @Date: 2020-09-08 17:15:21
|
|
14
|
-
* @LastEditors: olei<wangzheng_jzb@100tal.com>
|
|
15
|
-
* @LastEditTime: 2020-09-15 11:48:01
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
var apiName = 'biz.util.mediaFileUploadV2';
|
|
19
|
-
function mediaFileUploadV2(params) {
|
|
20
|
-
(0, _initAPI["default"])(apiName, {
|
|
21
|
-
params: params
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilopenAudioPlayerParams {
|
|
3
|
-
/**
|
|
4
|
-
* 播放地址
|
|
5
|
-
*/
|
|
6
|
-
url?: string;
|
|
7
|
-
/**
|
|
8
|
-
* 腾讯云所返回,可根据 relationId 获取到视频资源
|
|
9
|
-
*/
|
|
10
|
-
relationId?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
size?: number;
|
|
13
|
-
onSuccess?: () => void;
|
|
14
|
-
onFail?: (err: IError) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function openAudioPlayer(params: IBizUtilopenAudioPlayerParams): void;
|
|
17
|
-
export { openAudioPlayer };
|
|
@@ -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.openAudioPlayer = openAudioPlayer;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var apiName = 'biz.util.openAudioPlayer';
|
|
11
|
-
var pc = {
|
|
12
|
-
vs: '1.9.13'
|
|
13
|
-
};
|
|
14
|
-
var ios = {
|
|
15
|
-
vs: '1.9.13'
|
|
16
|
-
};
|
|
17
|
-
var android = {
|
|
18
|
-
vs: '1.9.13'
|
|
19
|
-
};
|
|
20
|
-
var platform = {
|
|
21
|
-
pc: pc,
|
|
22
|
-
ios: ios,
|
|
23
|
-
android: android
|
|
24
|
-
};
|
|
25
|
-
function openAudioPlayer(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params,
|
|
28
|
-
platform: platform
|
|
29
|
-
});
|
|
30
|
-
}
|
|
@@ -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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtilOpenFileDialogResult {
|
|
3
|
-
data?: {
|
|
4
|
-
files?: Array<Object>;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface IBizUtilOpenFileDialogParams {
|
|
8
|
-
/** multiple是否支持多文件 */
|
|
9
|
-
multiple?: boolean;
|
|
10
|
-
/** 支持图片附件的文件类型 */
|
|
11
|
-
imageOpt?: {
|
|
12
|
-
max?: Number;
|
|
13
|
-
};
|
|
14
|
-
/** 支持视频附件的文件类型 */
|
|
15
|
-
videoOpt?: {
|
|
16
|
-
max?: Number;
|
|
17
|
-
duration?: Number;
|
|
18
|
-
};
|
|
19
|
-
onSuccess?: (data: IBizUtilOpenFileDialogResult) => void;
|
|
20
|
-
onFail?: (err: IError) => void;
|
|
21
|
-
}
|
|
22
|
-
declare function openMediaFileDialogV2(params: IBizUtilOpenFileDialogParams): void;
|
|
23
|
-
export { openMediaFileDialogV2 };
|
|
@@ -1,24 +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.openMediaFileDialogV2 = openMediaFileDialogV2;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
/*
|
|
11
|
-
* @Descripttion:
|
|
12
|
-
* @Author: zhangyong<zhangyong_jzb@100tal.com>
|
|
13
|
-
* @Date: 2025-07-28 17:15:05
|
|
14
|
-
* @LastEditors: zhangyong<zhangyong_jzb@100tal.com>
|
|
15
|
-
* @LastEditTime: 2025-07-28 17:16:05
|
|
16
|
-
* 新增文件选择器——针对移动端专用——支持ios文件导出
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
var apiName = 'biz.util.openMediaFileDialogV2';
|
|
20
|
-
function openMediaFileDialogV2(params) {
|
|
21
|
-
(0, _initAPI["default"])(apiName, {
|
|
22
|
-
params: params
|
|
23
|
-
});
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IOpenPublishResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface IOpenPublishParams {
|
|
8
|
-
squadId?: string;
|
|
9
|
-
squadName?: string;
|
|
10
|
-
source: string;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
topicType: '0' | '1' | '2';
|
|
13
|
-
topicTypeMultiple?: boolean;
|
|
14
|
-
content?: string;
|
|
15
|
-
pic?: string;
|
|
16
|
-
video?: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
onSuccess?: (res: IOpenPublishResult) => void;
|
|
19
|
-
onFail?: (err: IError) => void;
|
|
20
|
-
}
|
|
21
|
-
declare function openPublish(params: IOpenPublishParams): void;
|
|
22
|
-
export { openPublish };
|