isdata-customer-sdk 0.1.70 → 0.1.72
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 +18 -1
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +18 -1
- 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.umd.js
CHANGED
|
@@ -29606,6 +29606,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29606
29606
|
getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
|
|
29607
29607
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
29608
29608
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29609
|
+
getUserRoles: function() { return /* reexport */ getUserRoles; },
|
|
29609
29610
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
29610
29611
|
initEventCenter: function() { return /* reexport */ initEventCenter; },
|
|
29611
29612
|
initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
|
|
@@ -30579,6 +30580,22 @@ const getIntegrateAppInfoByID = async appID => {
|
|
|
30579
30580
|
let appInfo = result.data.appInfo;
|
|
30580
30581
|
return appInfo;
|
|
30581
30582
|
};
|
|
30583
|
+
|
|
30584
|
+
/**
|
|
30585
|
+
* getUserRoles
|
|
30586
|
+
* @param {信息} userID
|
|
30587
|
+
* @returns
|
|
30588
|
+
*/
|
|
30589
|
+
const getUserRoles = async userID => {
|
|
30590
|
+
let queryData = {
|
|
30591
|
+
"param": {
|
|
30592
|
+
"userID": userID
|
|
30593
|
+
}
|
|
30594
|
+
};
|
|
30595
|
+
let responseData = await request.post(`/dataservice/rest/orchestration/getUserRoles`, queryData);
|
|
30596
|
+
let role_ids = responseData.data.role_ids;
|
|
30597
|
+
return role_ids;
|
|
30598
|
+
};
|
|
30582
30599
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
30583
30600
|
var crypto_js = __webpack_require__(1396);
|
|
30584
30601
|
var crypto_js_default = /*#__PURE__*/__webpack_require__.n(crypto_js);
|
|
@@ -31279,7 +31296,7 @@ const addAndCleanDocument = async (fileUrl, options = {}) => {
|
|
|
31279
31296
|
let home_page = window.smardaten_api_context_path;
|
|
31280
31297
|
let finalUrl = `${home_page}/storage_area/public${fileUrl}`;
|
|
31281
31298
|
let fileType = finalUrl.split(".").pop().toLowerCase();
|
|
31282
|
-
let fileName = options.fileName
|
|
31299
|
+
let fileName = options.fileName || dify_extractFilenameFromUrl(finalUrl);
|
|
31283
31300
|
fileType = getDifyFileType(fileType);
|
|
31284
31301
|
let loginUserData = window.anonymousIsLogin || window.currentUser;
|
|
31285
31302
|
let user_id = options.userID || loginUserData?.id;
|