isdata-customer-sdk 0.2.12 → 0.2.14
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 +26 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +26 -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
|
@@ -29576,6 +29576,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29576
29576
|
getDifyFileType: function() { return /* reexport */ getDifyFileType; },
|
|
29577
29577
|
getFileSize: function() { return /* reexport */ getFileSize; },
|
|
29578
29578
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29579
|
+
getI18nKey: function() { return /* reexport */ getI18nKey; },
|
|
29579
29580
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
29580
29581
|
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29581
29582
|
getKey: function() { return /* reexport */ getKey; },
|
|
@@ -29593,6 +29594,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29593
29594
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29594
29595
|
getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
|
|
29595
29596
|
getPortalDocmentInfo: function() { return /* reexport */ getPortalDocmentInfo; },
|
|
29597
|
+
getPortalNotices: function() { return /* reexport */ getPortalNotices; },
|
|
29596
29598
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29597
29599
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29598
29600
|
getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
|
|
@@ -30399,6 +30401,21 @@ const getLoginPageNotices = async () => {
|
|
|
30399
30401
|
return noticeInfos;
|
|
30400
30402
|
};
|
|
30401
30403
|
|
|
30404
|
+
/**
|
|
30405
|
+
* 获取对应租户的组织的公告信息
|
|
30406
|
+
* @param {*} groupID
|
|
30407
|
+
* @returns
|
|
30408
|
+
*/
|
|
30409
|
+
const getPortalNotices = async groupID => {
|
|
30410
|
+
let queryData = {
|
|
30411
|
+
"param": {
|
|
30412
|
+
"id": groupID
|
|
30413
|
+
}
|
|
30414
|
+
};
|
|
30415
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getNoticesInfosByGroupID`, queryData);
|
|
30416
|
+
return resultData;
|
|
30417
|
+
};
|
|
30418
|
+
|
|
30402
30419
|
/**
|
|
30403
30420
|
* 获取门户单点登录接入Token
|
|
30404
30421
|
* @param {*} appKey
|
|
@@ -32517,6 +32534,15 @@ const getFileSize = async url => {
|
|
|
32517
32534
|
return -1; // 返回-1表示失败
|
|
32518
32535
|
}
|
|
32519
32536
|
};
|
|
32537
|
+
// 获取i18n key
|
|
32538
|
+
const getI18nKey = text => {
|
|
32539
|
+
// 正则表达式匹配 $L{...} 格式
|
|
32540
|
+
const regex = /\$L\{([^}]+)\}/g;
|
|
32541
|
+
let match = regex.exec(text);
|
|
32542
|
+
if (!match) return text;
|
|
32543
|
+
let key = match[1];
|
|
32544
|
+
return key;
|
|
32545
|
+
};
|
|
32520
32546
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
32521
32547
|
var es_iterator_some = __webpack_require__(3579);
|
|
32522
32548
|
;// ./src/api/iframe.js
|