isdata-customer-sdk 0.2.41 → 0.2.43
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 +24 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +24 -0
- 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
|
@@ -40344,6 +40344,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40344
40344
|
initDomNodeViewObserver: function() { return /* reexport */ initDomNodeViewObserver; },
|
|
40345
40345
|
initEventCenter: function() { return /* reexport */ initEventCenter; },
|
|
40346
40346
|
initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
|
|
40347
|
+
isSecurityAccount: function() { return /* reexport */ isSecurityAccount; },
|
|
40347
40348
|
loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
|
|
40348
40349
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
40349
40350
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
@@ -40366,6 +40367,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40366
40367
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
40367
40368
|
transformPortalQuickMenuDatas: function() { return /* reexport */ transformPortalQuickMenuDatas; },
|
|
40368
40369
|
transformPortalSystemMenuDatas: function() { return /* reexport */ transformPortalSystemMenuDatas; },
|
|
40370
|
+
updateI18nValue: function() { return /* reexport */ updateI18nValue; },
|
|
40369
40371
|
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
40370
40372
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
40371
40373
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
@@ -43998,6 +44000,10 @@ const getLanguages = async appID => {
|
|
|
43998
44000
|
let resultDatas = response.data.resultDatas || [];
|
|
43999
44001
|
return resultDatas;
|
|
44000
44002
|
};
|
|
44003
|
+
const updateI18nValue = (appID, key, localID, value) => {
|
|
44004
|
+
let realKey = `${appID}-${key}-${localID}`;
|
|
44005
|
+
window.customI18nObject.set(realKey, value);
|
|
44006
|
+
};
|
|
44001
44007
|
const i18n = (key, appID, localID) => {
|
|
44002
44008
|
let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
|
|
44003
44009
|
return result;
|
|
@@ -44464,6 +44470,24 @@ const getUserID = async (acccountName, old_key, group_id) => {
|
|
|
44464
44470
|
return persion_id;
|
|
44465
44471
|
};
|
|
44466
44472
|
|
|
44473
|
+
/**
|
|
44474
|
+
* 是否是安全账号
|
|
44475
|
+
* @param {*} acccountName
|
|
44476
|
+
* @param {*} group_id
|
|
44477
|
+
* @returns
|
|
44478
|
+
*/
|
|
44479
|
+
const isSecurityAccount = async (acccountName, group_id) => {
|
|
44480
|
+
let queryData = {
|
|
44481
|
+
param: {
|
|
44482
|
+
account_name: acccountName,
|
|
44483
|
+
group_id: group_id
|
|
44484
|
+
}
|
|
44485
|
+
};
|
|
44486
|
+
let result = await request.post(`/dataservice/rest/orchestration/isSecurityAccount`, queryData);
|
|
44487
|
+
let isSecurityAccount = result.data.isSecurityAccount;
|
|
44488
|
+
return isSecurityAccount;
|
|
44489
|
+
};
|
|
44490
|
+
|
|
44467
44491
|
/**
|
|
44468
44492
|
* 登录账号
|
|
44469
44493
|
* @param data 登录数据
|