isdata-customer-sdk 0.2.46 → 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 +25 -13
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +25 -13
- 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.common.js
CHANGED
|
@@ -29593,6 +29593,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29593
29593
|
getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
|
|
29594
29594
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29595
29595
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29596
|
+
getPhoneNumberByAccountName: function() { return /* reexport */ getPhoneNumberByAccountName; },
|
|
29596
29597
|
getPlatformBortherMenusByMenuID: function() { return /* reexport */ getPlatformBortherMenusByMenuID; },
|
|
29597
29598
|
getPlatformMenuMappingsByRoleIDs: function() { return /* reexport */ getPlatformMenuMappingsByRoleIDs; },
|
|
29598
29599
|
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
@@ -30978,14 +30979,17 @@ const savePortalI18nText = async (key, value, lang, beyondID, i18nType) => {
|
|
|
30978
30979
|
return resultData;
|
|
30979
30980
|
};
|
|
30980
30981
|
|
|
30981
|
-
//
|
|
30982
|
-
const
|
|
30982
|
+
// 通过账户名和租户获取手机号
|
|
30983
|
+
const getPhoneNumberByAccountName = async (accountName, groupID) => {
|
|
30983
30984
|
let requestData = {
|
|
30984
|
-
param: {
|
|
30985
|
+
param: {
|
|
30986
|
+
accountName: accountName,
|
|
30987
|
+
groupID: groupID
|
|
30988
|
+
}
|
|
30985
30989
|
};
|
|
30986
|
-
let result = await request.post(`/dataservice/rest/orchestration/
|
|
30987
|
-
let
|
|
30988
|
-
return
|
|
30990
|
+
let result = await request.post(`/dataservice/rest/orchestration/getPhoneNumberByAccountName`, requestData);
|
|
30991
|
+
let phone = result.data.phone;
|
|
30992
|
+
return phone;
|
|
30989
30993
|
};
|
|
30990
30994
|
;// ./node_modules/ua-parser-js/src/main/ua-parser.mjs
|
|
30991
30995
|
// Generated ESM version of ua-parser-js
|
|
@@ -33652,6 +33656,16 @@ function processViewElement(element) {
|
|
|
33652
33656
|
viewCheckResult.scriptFunction();
|
|
33653
33657
|
return true;
|
|
33654
33658
|
}
|
|
33659
|
+
|
|
33660
|
+
// 获取所有i18n的类型
|
|
33661
|
+
const getAllI18nTypes = async () => {
|
|
33662
|
+
let requestData = {
|
|
33663
|
+
param: {}
|
|
33664
|
+
};
|
|
33665
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAllI18nTypes`, requestData);
|
|
33666
|
+
let resultData = result.data.resultDatas;
|
|
33667
|
+
return resultData;
|
|
33668
|
+
};
|
|
33655
33669
|
;// ./src/api/security.js
|
|
33656
33670
|
|
|
33657
33671
|
|
|
@@ -34565,18 +34579,16 @@ const dify_extractFilenameFromUrl = url => {
|
|
|
34565
34579
|
};
|
|
34566
34580
|
;// ./src/api/sms.js
|
|
34567
34581
|
|
|
34568
|
-
|
|
34569
|
-
const sendSms = async (queryData, successCallback, errorCallback) => {
|
|
34570
|
-
let appid = getPoratlAppID();
|
|
34571
|
-
let appCustomData = await getAppCustomData(appid);
|
|
34572
|
-
let smsServerIP = appCustomData?.smsServerIP || "";
|
|
34582
|
+
const sendSms = async (smsServerIP, queryData, successCallback, errorCallback) => {
|
|
34573
34583
|
if (!smsServerIP) {
|
|
34574
34584
|
console.error("没有配置短信服务地址,请联系管理员");
|
|
34575
34585
|
if (errorCallback) errorCallback("没有配置短信服务地址,请联系管理员");
|
|
34576
34586
|
return;
|
|
34577
34587
|
}
|
|
34578
|
-
let
|
|
34579
|
-
|
|
34588
|
+
let options = {
|
|
34589
|
+
options: queryData
|
|
34590
|
+
};
|
|
34591
|
+
request.post(smsServerIP, JSON.stringify(options)).then(res => {
|
|
34580
34592
|
console.log("发送消息成功:", res);
|
|
34581
34593
|
if (successCallback) successCallback(res);
|
|
34582
34594
|
}).catch(error => {
|