isdata-customer-sdk 0.1.92 → 0.1.94

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; },
@@ -29709,6 +29710,7 @@ const removeEventListener = (eventName, actionFun) => {
29709
29710
  };
29710
29711
  const fireEvent = (eventName, eventData) => {
29711
29712
  let eventBus = window.rjEventCenter;
29713
+ eventData.eventKey = eventName;
29712
29714
  if (eventBus && eventBus.fireEvent) {
29713
29715
  eventBus.fireEvent(eventName, eventData);
29714
29716
  }
@@ -30263,6 +30265,24 @@ const getCurrentUserPortalPageID = async userData => {
30263
30265
  return portal_id;
30264
30266
  };
30265
30267
 
30268
+ /**
30269
+ * 获取当前用户默认的门户页面ID
30270
+ *
30271
+ * 该方法用于获取当前用户在门户中的默认页面ID
30272
+ * @param {信息} userData
30273
+ * @returns
30274
+ */
30275
+ const getCurrentUserPortalMapping = async userData => {
30276
+ let queryData = {
30277
+ param: {
30278
+ userData: userData
30279
+ }
30280
+ };
30281
+ let response = await request.post(`/dataservice/rest/orchestration/getPortalMappingInfo`, queryData);
30282
+ let portal_id = response.data.portal_info;
30283
+ return portal_id;
30284
+ };
30285
+
30266
30286
  /**
30267
30287
  * 获取当前用户在门户中的所有映射数据
30268
30288
  * @param {信息} data