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.umd.js
CHANGED
|
@@ -29580,6 +29580,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29580
29580
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29581
29581
|
encrypt: function() { return /* reexport */ encrypt; },
|
|
29582
29582
|
extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
|
|
29583
|
+
extractNewItems: function() { return /* reexport */ extractNewItems; },
|
|
29583
29584
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
29584
29585
|
getAIRobotInfos: function() { return /* reexport */ getAIRobotInfos; },
|
|
29585
29586
|
getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
|
|
@@ -29612,6 +29613,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29612
29613
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29613
29614
|
getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
|
|
29614
29615
|
getPortalDocmentInfo: function() { return /* reexport */ getPortalDocmentInfo; },
|
|
29616
|
+
getPortalNotices: function() { return /* reexport */ getPortalNotices; },
|
|
29615
29617
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29616
29618
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29617
29619
|
getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
|
|
@@ -30418,6 +30420,21 @@ const getLoginPageNotices = async () => {
|
|
|
30418
30420
|
return noticeInfos;
|
|
30419
30421
|
};
|
|
30420
30422
|
|
|
30423
|
+
/**
|
|
30424
|
+
* 获取对应租户的组织的公告信息
|
|
30425
|
+
* @param {*} groupID
|
|
30426
|
+
* @returns
|
|
30427
|
+
*/
|
|
30428
|
+
const getPortalNotices = async groupID => {
|
|
30429
|
+
let queryData = {
|
|
30430
|
+
"param": {
|
|
30431
|
+
"id": groupID
|
|
30432
|
+
}
|
|
30433
|
+
};
|
|
30434
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getNoticesInfosByGroupID`, queryData);
|
|
30435
|
+
return resultData;
|
|
30436
|
+
};
|
|
30437
|
+
|
|
30421
30438
|
/**
|
|
30422
30439
|
* 获取门户单点登录接入Token
|
|
30423
30440
|
* @param {*} appKey
|
|
@@ -32437,6 +32454,8 @@ const getKey = async () => {
|
|
|
32437
32454
|
;// ./src/api/utils.js
|
|
32438
32455
|
|
|
32439
32456
|
|
|
32457
|
+
|
|
32458
|
+
|
|
32440
32459
|
/**
|
|
32441
32460
|
* 查询资产
|
|
32442
32461
|
* @param id 资产ID
|
|
@@ -32513,6 +32532,16 @@ const extractFilenameFromUrl = url => {
|
|
|
32513
32532
|
}
|
|
32514
32533
|
};
|
|
32515
32534
|
|
|
32535
|
+
/**
|
|
32536
|
+
* 提取数组中不在另一个数组中的元素
|
|
32537
|
+
* @param {*} oldItems 基础比较数组
|
|
32538
|
+
* @param {*} newItems 被提取检测的数组
|
|
32539
|
+
* @returns
|
|
32540
|
+
*/
|
|
32541
|
+
const extractNewItems = (oldItems, newItems) => {
|
|
32542
|
+
return oldItems.filter(item => !newItems.includes(item));
|
|
32543
|
+
};
|
|
32544
|
+
|
|
32516
32545
|
/**
|
|
32517
32546
|
* 获取远程文件大小(单位:字节)
|
|
32518
32547
|
* @param {string} url - 文件的URL地址
|