isdata-customer-sdk 0.2.36 → 0.2.38
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 +28 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +28 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +3 -3
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -29577,6 +29577,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29577
29577
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
29578
29578
|
getDifyFileType: function() { return /* reexport */ getDifyFileType; },
|
|
29579
29579
|
getFileSize: function() { return /* reexport */ getFileSize; },
|
|
29580
|
+
getGourpMappingsByPhoneNumber: function() { return /* reexport */ getGourpMappingsByPhoneNumber; },
|
|
29580
29581
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29581
29582
|
getI18nKey: function() { return /* reexport */ getI18nKey; },
|
|
29582
29583
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
@@ -29611,6 +29612,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29611
29612
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29612
29613
|
getUserID: function() { return /* reexport */ getUserID; },
|
|
29613
29614
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
29615
|
+
hasUrlParams: function() { return /* reexport */ hasUrlParams; },
|
|
29614
29616
|
i18n: function() { return /* reexport */ i18n; },
|
|
29615
29617
|
i18nText: function() { return /* reexport */ i18nText; },
|
|
29616
29618
|
initDomNodeI18NObserver: function() { return /* reexport */ initDomNodeI18NObserver; },
|
|
@@ -30759,6 +30761,22 @@ const getGroupMappingsByAccount = async account => {
|
|
|
30759
30761
|
return tenetGroupDatas;
|
|
30760
30762
|
};
|
|
30761
30763
|
|
|
30764
|
+
/**
|
|
30765
|
+
* 通过手机号获取集团组织映射数据
|
|
30766
|
+
* @param {*} phone
|
|
30767
|
+
* @returns
|
|
30768
|
+
*/
|
|
30769
|
+
const getGourpMappingsByPhoneNumber = async phone => {
|
|
30770
|
+
let queryData = {
|
|
30771
|
+
param: {
|
|
30772
|
+
phone: phone
|
|
30773
|
+
}
|
|
30774
|
+
};
|
|
30775
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getGourpMappingsByPhoneNumber`, queryData);
|
|
30776
|
+
let tenetGroupDatas = resultData.data.resultGroups;
|
|
30777
|
+
return tenetGroupDatas;
|
|
30778
|
+
};
|
|
30779
|
+
|
|
30762
30780
|
/**
|
|
30763
30781
|
* 查询当前企业组织的集团组织ID
|
|
30764
30782
|
* @param id 组织ID
|
|
@@ -33909,6 +33927,16 @@ const findClosestAncestorByClass = (element, className) => {
|
|
|
33909
33927
|
// 未找到匹配的祖先节点
|
|
33910
33928
|
return null;
|
|
33911
33929
|
};
|
|
33930
|
+
const hasUrlParams = url => {
|
|
33931
|
+
try {
|
|
33932
|
+
// 浏览器环境
|
|
33933
|
+
const urlObj = new URL(url, window.location.href);
|
|
33934
|
+
return urlObj.search.length > 0;
|
|
33935
|
+
} catch (e) {
|
|
33936
|
+
// Node.js 环境
|
|
33937
|
+
return false;
|
|
33938
|
+
}
|
|
33939
|
+
};
|
|
33912
33940
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
33913
33941
|
var es_iterator_some = __webpack_require__(3579);
|
|
33914
33942
|
;// ./src/api/iframe.js
|