isdata-customer-sdk 0.2.42 → 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 +19 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +19 -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; },
|
|
@@ -44469,6 +44470,24 @@ const getUserID = async (acccountName, old_key, group_id) => {
|
|
|
44469
44470
|
return persion_id;
|
|
44470
44471
|
};
|
|
44471
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
|
+
|
|
44472
44491
|
/**
|
|
44473
44492
|
* 登录账号
|
|
44474
44493
|
* @param data 登录数据
|