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.
@@ -29570,6 +29570,7 @@ __webpack_require__.d(__webpack_exports__, {
29570
29570
  getAuthPic: function() { return /* reexport */ getAuthPic; },
29571
29571
  getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
29572
29572
  getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
29573
+ getCurrentUserPortalMapping: function() { return /* reexport */ getCurrentUserPortalMapping; },
29573
29574
  getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
29574
29575
  getDifyFileType: function() { return /* reexport */ getDifyFileType; },
29575
29576
  getFileSize: function() { return /* reexport */ getFileSize; },
@@ -29577,6 +29578,7 @@ __webpack_require__.d(__webpack_exports__, {
29577
29578
  getIMHanlder: function() { return /* reexport */ getIMHanlder; },
29578
29579
  getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
29579
29580
  getKey: function() { return /* reexport */ getKey; },
29581
+ getLanguages: function() { return /* reexport */ getLanguages; },
29580
29582
  getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
29581
29583
  getLoginPortalAccountKey: function() { return /* reexport */ getLoginPortalAccountKey; },
29582
29584
  getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
@@ -29602,8 +29604,10 @@ __webpack_require__.d(__webpack_exports__, {
29602
29604
  getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
29603
29605
  getUserID: function() { return /* reexport */ getUserID; },
29604
29606
  hasListener: function() { return /* reexport */ hasListener; },
29607
+ i18n: function() { return /* reexport */ i18n; },
29605
29608
  initEventCenter: function() { return /* reexport */ initEventCenter; },
29606
29609
  initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
29610
+ loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
29607
29611
  loginAccount: function() { return /* reexport */ loginAccount; },
29608
29612
  logoutAccount: function() { return /* reexport */ logoutAccount; },
29609
29613
  queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
@@ -30254,6 +30258,24 @@ const getCurrentUserPortalPageID = async userData => {
30254
30258
  return portal_id;
30255
30259
  };
30256
30260
 
30261
+ /**
30262
+ * 获取当前用户默认的门户页面ID
30263
+ *
30264
+ * 该方法用于获取当前用户在门户中的默认页面ID
30265
+ * @param {信息} userData
30266
+ * @returns
30267
+ */
30268
+ const getCurrentUserPortalMapping = async userData => {
30269
+ let queryData = {
30270
+ param: {
30271
+ userData: userData
30272
+ }
30273
+ };
30274
+ let response = await request.post(`/dataservice/rest/orchestration/getPortalMappingInfo`, queryData);
30275
+ let portal_id = response.data.portal_info;
30276
+ return portal_id;
30277
+ };
30278
+
30257
30279
  /**
30258
30280
  * 获取当前用户在门户中的所有映射数据
30259
30281
  * @param {信息} data
@@ -33063,6 +33085,35 @@ const dify_extractFilenameFromUrl = url => {
33063
33085
  return "downloaded_file"; // URL 解析失败时的默认文件名
33064
33086
  }
33065
33087
  };
33088
+ ;// ./src/api/i18n.js
33089
+
33090
+ const getLanguages = async appID => {
33091
+ let queryData = {
33092
+ param: {
33093
+ appID: appID
33094
+ }
33095
+ };
33096
+ let response = await request.post(`/dataservice/rest/orchestration/getAppLanguages`, queryData);
33097
+ let resultDatas = response.data.resultDatas || [];
33098
+ return resultDatas;
33099
+ };
33100
+ const i18n = (key, appID, localID) => {
33101
+ let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
33102
+ return result;
33103
+ };
33104
+ const loadi18nTexts = async appID => {
33105
+ let queryData = {
33106
+ param: {
33107
+ appID: appID
33108
+ }
33109
+ };
33110
+ let response = await request.post(`/dataservice/rest/orchestration/getAllTexts`, queryData);
33111
+ let resultDatas = response.data.resultDatas || [];
33112
+ window.customI18nObject = new Map();
33113
+ for (let item of resultDatas) {
33114
+ window.customI18nObject.set(`${appID}-${item.key}-${item.lang}`, item.value);
33115
+ }
33116
+ };
33066
33117
  ;// ./src/main.js
33067
33118
 
33068
33119
 
@@ -33071,6 +33122,7 @@ const dify_extractFilenameFromUrl = url => {
33071
33122
 
33072
33123
 
33073
33124
 
33125
+
33074
33126
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
33075
33127
 
33076
33128