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.umd.js CHANGED
@@ -29594,6 +29594,7 @@ __webpack_require__.d(__webpack_exports__, {
29594
29594
  getDifyFileType: function() { return /* reexport */ getDifyFileType; },
29595
29595
  getFileSize: function() { return /* reexport */ getFileSize; },
29596
29596
  getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
29597
+ getI18nKey: function() { return /* reexport */ getI18nKey; },
29597
29598
  getIMHanlder: function() { return /* reexport */ getIMHanlder; },
29598
29599
  getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
29599
29600
  getKey: function() { return /* reexport */ getKey; },
@@ -29611,6 +29612,7 @@ __webpack_require__.d(__webpack_exports__, {
29611
29612
  getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
29612
29613
  getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
29613
29614
  getPortalDocmentInfo: function() { return /* reexport */ getPortalDocmentInfo; },
29615
+ getPortalNotices: function() { return /* reexport */ getPortalNotices; },
29614
29616
  getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
29615
29617
  getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
29616
29618
  getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
@@ -30417,6 +30419,21 @@ const getLoginPageNotices = async () => {
30417
30419
  return noticeInfos;
30418
30420
  };
30419
30421
 
30422
+ /**
30423
+ * 获取对应租户的组织的公告信息
30424
+ * @param {*} groupID
30425
+ * @returns
30426
+ */
30427
+ const getPortalNotices = async groupID => {
30428
+ let queryData = {
30429
+ "param": {
30430
+ "id": groupID
30431
+ }
30432
+ };
30433
+ let resultData = await request.post(`/dataservice/rest/orchestration/getNoticesInfosByGroupID`, queryData);
30434
+ return resultData;
30435
+ };
30436
+
30420
30437
  /**
30421
30438
  * 获取门户单点登录接入Token
30422
30439
  * @param {*} appKey
@@ -32535,6 +32552,15 @@ const getFileSize = async url => {
32535
32552
  return -1; // 返回-1表示失败
32536
32553
  }
32537
32554
  };
32555
+ // 获取i18n key
32556
+ const getI18nKey = text => {
32557
+ // 正则表达式匹配 $L{...} 格式
32558
+ const regex = /\$L\{([^}]+)\}/g;
32559
+ let match = regex.exec(text);
32560
+ if (!match) return text;
32561
+ let key = match[1];
32562
+ return key;
32563
+ };
32538
32564
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
32539
32565
  var es_iterator_some = __webpack_require__(3579);
32540
32566
  ;// ./src/api/iframe.js