isdata-customer-sdk 0.2.45 → 0.2.47
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 +26 -14
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +26 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29570,7 +29570,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29570
29570
|
// EXPORTS
|
|
29571
29571
|
__webpack_require__.d(__webpack_exports__, {
|
|
29572
29572
|
ChatClientMgr: function() { return /* reexport */ ChatClientMgr; },
|
|
29573
|
-
SendSms: function() { return /* reexport */ SendSms; },
|
|
29574
29573
|
addEventAction: function() { return /* reexport */ addEventAction; },
|
|
29575
29574
|
addIMMapping: function() { return /* reexport */ addIMMapping; },
|
|
29576
29575
|
addObjectUsedTimes: function() { return /* reexport */ addObjectUsedTimes; },
|
|
@@ -29612,6 +29611,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29612
29611
|
getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
|
|
29613
29612
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29614
29613
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29614
|
+
getPhoneNumberByAccountName: function() { return /* reexport */ getPhoneNumberByAccountName; },
|
|
29615
29615
|
getPlatformBortherMenusByMenuID: function() { return /* reexport */ getPlatformBortherMenusByMenuID; },
|
|
29616
29616
|
getPlatformMenuMappingsByRoleIDs: function() { return /* reexport */ getPlatformMenuMappingsByRoleIDs; },
|
|
29617
29617
|
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
@@ -29657,6 +29657,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29657
29657
|
removeWindowTrustedOrigin: function() { return /* reexport */ removeWindowTrustedOrigin; },
|
|
29658
29658
|
savePortalI18nText: function() { return /* reexport */ savePortalI18nText; },
|
|
29659
29659
|
sendPostToAIAgent: function() { return /* reexport */ sendPostToAIAgent; },
|
|
29660
|
+
sendSms: function() { return /* reexport */ sendSms; },
|
|
29660
29661
|
sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
|
|
29661
29662
|
setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
|
|
29662
29663
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
@@ -30996,14 +30997,17 @@ const savePortalI18nText = async (key, value, lang, beyondID, i18nType) => {
|
|
|
30996
30997
|
return resultData;
|
|
30997
30998
|
};
|
|
30998
30999
|
|
|
30999
|
-
//
|
|
31000
|
-
const
|
|
31000
|
+
// 通过账户名和租户获取手机号
|
|
31001
|
+
const getPhoneNumberByAccountName = async (accountName, groupID) => {
|
|
31001
31002
|
let requestData = {
|
|
31002
|
-
param: {
|
|
31003
|
+
param: {
|
|
31004
|
+
accountName: accountName,
|
|
31005
|
+
groupID: groupID
|
|
31006
|
+
}
|
|
31003
31007
|
};
|
|
31004
|
-
let result = await request.post(`/dataservice/rest/orchestration/
|
|
31005
|
-
let
|
|
31006
|
-
return
|
|
31008
|
+
let result = await request.post(`/dataservice/rest/orchestration/getPhoneNumberByAccountName`, requestData);
|
|
31009
|
+
let phone = result.data.phone;
|
|
31010
|
+
return phone;
|
|
31007
31011
|
};
|
|
31008
31012
|
;// ./node_modules/ua-parser-js/src/main/ua-parser.mjs
|
|
31009
31013
|
// Generated ESM version of ua-parser-js
|
|
@@ -33670,6 +33674,16 @@ function processViewElement(element) {
|
|
|
33670
33674
|
viewCheckResult.scriptFunction();
|
|
33671
33675
|
return true;
|
|
33672
33676
|
}
|
|
33677
|
+
|
|
33678
|
+
// 获取所有i18n的类型
|
|
33679
|
+
const getAllI18nTypes = async () => {
|
|
33680
|
+
let requestData = {
|
|
33681
|
+
param: {}
|
|
33682
|
+
};
|
|
33683
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAllI18nTypes`, requestData);
|
|
33684
|
+
let resultData = result.data.resultDatas;
|
|
33685
|
+
return resultData;
|
|
33686
|
+
};
|
|
33673
33687
|
;// ./src/api/security.js
|
|
33674
33688
|
|
|
33675
33689
|
|
|
@@ -34583,18 +34597,16 @@ const dify_extractFilenameFromUrl = url => {
|
|
|
34583
34597
|
};
|
|
34584
34598
|
;// ./src/api/sms.js
|
|
34585
34599
|
|
|
34586
|
-
|
|
34587
|
-
const SendSms = async (queryData, successCallback, errorCallback) => {
|
|
34588
|
-
let appid = getPoratlAppID();
|
|
34589
|
-
let appCustomData = await getAppCustomData(appid);
|
|
34590
|
-
let smsServerIP = appCustomData?.smsServerIP || "";
|
|
34600
|
+
const sendSms = async (smsServerIP, queryData, successCallback, errorCallback) => {
|
|
34591
34601
|
if (!smsServerIP) {
|
|
34592
34602
|
console.error("没有配置短信服务地址,请联系管理员");
|
|
34593
34603
|
if (errorCallback) errorCallback("没有配置短信服务地址,请联系管理员");
|
|
34594
34604
|
return;
|
|
34595
34605
|
}
|
|
34596
|
-
let
|
|
34597
|
-
|
|
34606
|
+
let options = {
|
|
34607
|
+
options: queryData
|
|
34608
|
+
};
|
|
34609
|
+
request.post(smsServerIP, JSON.stringify(options)).then(res => {
|
|
34598
34610
|
console.log("发送消息成功:", res);
|
|
34599
34611
|
if (successCallback) successCallback(res);
|
|
34600
34612
|
}).catch(error => {
|