isdata-customer-sdk 0.1.93 → 0.1.95

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
@@ -29580,6 +29580,7 @@ __webpack_require__.d(__webpack_exports__, {
29580
29580
  getAuthPic: function() { return /* reexport */ getAuthPic; },
29581
29581
  getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
29582
29582
  getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
29583
+ getCurrentUserPortalMapping: function() { return /* reexport */ getCurrentUserPortalMapping; },
29583
29584
  getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
29584
29585
  getDifyFileType: function() { return /* reexport */ getDifyFileType; },
29585
29586
  getFileSize: function() { return /* reexport */ getFileSize; },
@@ -29587,6 +29588,7 @@ __webpack_require__.d(__webpack_exports__, {
29587
29588
  getIMHanlder: function() { return /* reexport */ getIMHanlder; },
29588
29589
  getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
29589
29590
  getKey: function() { return /* reexport */ getKey; },
29591
+ getLanguages: function() { return /* reexport */ getLanguages; },
29590
29592
  getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
29591
29593
  getLoginPortalAccountKey: function() { return /* reexport */ getLoginPortalAccountKey; },
29592
29594
  getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
@@ -29612,8 +29614,10 @@ __webpack_require__.d(__webpack_exports__, {
29612
29614
  getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
29613
29615
  getUserID: function() { return /* reexport */ getUserID; },
29614
29616
  hasListener: function() { return /* reexport */ hasListener; },
29617
+ i18n: function() { return /* reexport */ i18n; },
29615
29618
  initEventCenter: function() { return /* reexport */ initEventCenter; },
29616
29619
  initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
29620
+ loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
29617
29621
  loginAccount: function() { return /* reexport */ loginAccount; },
29618
29622
  logoutAccount: function() { return /* reexport */ logoutAccount; },
29619
29623
  queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
@@ -30264,6 +30268,24 @@ const getCurrentUserPortalPageID = async userData => {
30264
30268
  return portal_id;
30265
30269
  };
30266
30270
 
30271
+ /**
30272
+ * 获取当前用户默认的门户页面ID
30273
+ *
30274
+ * 该方法用于获取当前用户在门户中的默认页面ID
30275
+ * @param {信息} userData
30276
+ * @returns
30277
+ */
30278
+ const getCurrentUserPortalMapping = async userData => {
30279
+ let queryData = {
30280
+ param: {
30281
+ userData: userData
30282
+ }
30283
+ };
30284
+ let response = await request.post(`/dataservice/rest/orchestration/getPortalMappingInfo`, queryData);
30285
+ let portal_id = response.data.portal_info;
30286
+ return portal_id;
30287
+ };
30288
+
30267
30289
  /**
30268
30290
  * 获取当前用户在门户中的所有映射数据
30269
30291
  * @param {信息} data
@@ -33073,6 +33095,35 @@ const dify_extractFilenameFromUrl = url => {
33073
33095
  return "downloaded_file"; // URL 解析失败时的默认文件名
33074
33096
  }
33075
33097
  };
33098
+ ;// ./src/api/i18n.js
33099
+
33100
+ const getLanguages = async appID => {
33101
+ let queryData = {
33102
+ param: {
33103
+ appID: appID
33104
+ }
33105
+ };
33106
+ let response = await request.post(`/dataservice/rest/orchestration/getAppLanguages`, queryData);
33107
+ let resultDatas = response.data.resultDatas || [];
33108
+ return resultDatas;
33109
+ };
33110
+ const i18n = (key, appID, localID) => {
33111
+ let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
33112
+ return result;
33113
+ };
33114
+ const loadi18nTexts = async appID => {
33115
+ let queryData = {
33116
+ param: {
33117
+ appID: appID
33118
+ }
33119
+ };
33120
+ let response = await request.post(`/dataservice/rest/orchestration/getAllTexts`, queryData);
33121
+ let resultDatas = response.data.resultDatas || [];
33122
+ window.customI18nObject = new Map();
33123
+ for (let item of resultDatas) {
33124
+ window.customI18nObject.set(`${appID}-${item.key}-${item.lang}`, item.value);
33125
+ }
33126
+ };
33076
33127
  ;// ./src/main.js
33077
33128
 
33078
33129
 
@@ -33081,6 +33132,7 @@ const dify_extractFilenameFromUrl = url => {
33081
33132
 
33082
33133
 
33083
33134
 
33135
+
33084
33136
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
33085
33137
 
33086
33138