isdata-customer-sdk 0.2.13 → 0.2.15
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/index.common.js +29 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +29 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -29562,6 +29562,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29562
29562
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29563
29563
|
encrypt: function() { return /* reexport */ encrypt; },
|
|
29564
29564
|
extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
|
|
29565
|
+
extractNewItems: function() { return /* reexport */ extractNewItems; },
|
|
29565
29566
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
29566
29567
|
getAIRobotInfos: function() { return /* reexport */ getAIRobotInfos; },
|
|
29567
29568
|
getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
|
|
@@ -29594,6 +29595,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29594
29595
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29595
29596
|
getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
|
|
29596
29597
|
getPortalDocmentInfo: function() { return /* reexport */ getPortalDocmentInfo; },
|
|
29598
|
+
getPortalNotices: function() { return /* reexport */ getPortalNotices; },
|
|
29597
29599
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29598
29600
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29599
29601
|
getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
|
|
@@ -30400,6 +30402,21 @@ const getLoginPageNotices = async () => {
|
|
|
30400
30402
|
return noticeInfos;
|
|
30401
30403
|
};
|
|
30402
30404
|
|
|
30405
|
+
/**
|
|
30406
|
+
* 获取对应租户的组织的公告信息
|
|
30407
|
+
* @param {*} groupID
|
|
30408
|
+
* @returns
|
|
30409
|
+
*/
|
|
30410
|
+
const getPortalNotices = async groupID => {
|
|
30411
|
+
let queryData = {
|
|
30412
|
+
"param": {
|
|
30413
|
+
"id": groupID
|
|
30414
|
+
}
|
|
30415
|
+
};
|
|
30416
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getNoticesInfosByGroupID`, queryData);
|
|
30417
|
+
return resultData;
|
|
30418
|
+
};
|
|
30419
|
+
|
|
30403
30420
|
/**
|
|
30404
30421
|
* 获取门户单点登录接入Token
|
|
30405
30422
|
* @param {*} appKey
|
|
@@ -32419,6 +32436,8 @@ const getKey = async () => {
|
|
|
32419
32436
|
;// ./src/api/utils.js
|
|
32420
32437
|
|
|
32421
32438
|
|
|
32439
|
+
|
|
32440
|
+
|
|
32422
32441
|
/**
|
|
32423
32442
|
* 查询资产
|
|
32424
32443
|
* @param id 资产ID
|
|
@@ -32495,6 +32514,16 @@ const extractFilenameFromUrl = url => {
|
|
|
32495
32514
|
}
|
|
32496
32515
|
};
|
|
32497
32516
|
|
|
32517
|
+
/**
|
|
32518
|
+
* 提取数组中不在另一个数组中的元素
|
|
32519
|
+
* @param {*} oldItems 基础比较数组
|
|
32520
|
+
* @param {*} newItems 被提取检测的数组
|
|
32521
|
+
* @returns
|
|
32522
|
+
*/
|
|
32523
|
+
const extractNewItems = (oldItems, newItems) => {
|
|
32524
|
+
return oldItems.filter(item => !newItems.includes(item));
|
|
32525
|
+
};
|
|
32526
|
+
|
|
32498
32527
|
/**
|
|
32499
32528
|
* 获取远程文件大小(单位:字节)
|
|
32500
32529
|
* @param {string} url - 文件的URL地址
|