isdata-customer-sdk 0.1.68 → 0.1.70

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.
@@ -29619,16 +29619,6 @@ __webpack_require__.d(__webpack_exports__, {
29619
29619
  validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
29620
29620
  });
29621
29621
 
29622
- // NAMESPACE OBJECT: ./src/api/utils.js
29623
- var utils_namespaceObject = {};
29624
- __webpack_require__.r(utils_namespaceObject);
29625
- __webpack_require__.d(utils_namespaceObject, {
29626
- w$: function() { return createFileFromUrl; },
29627
- KQ: function() { return extractFilenameFromUrl; },
29628
- Ie: function() { return getUrlParamValue; },
29629
- Ju: function() { return queryAssetById; }
29630
- });
29631
-
29632
29622
  ;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
29633
29623
  /* eslint-disable no-var */
29634
29624
  // This file is imported into lib/wc client bundles.
@@ -31193,7 +31183,6 @@ class ChatClientMgr {
31193
31183
 
31194
31184
 
31195
31185
 
31196
-
31197
31186
  const getRobotInfoByID = async (robotID, groupID) => {
31198
31187
  let queryData = {
31199
31188
  "param": {
@@ -31214,20 +31203,20 @@ const getIMHanlder = customerHanlder => {
31214
31203
  return [];
31215
31204
  },
31216
31205
  getAIRobotInfos: async (user_id, groupID) => {
31217
- return (0,utils_namespaceObject.getAIRobotInfos)(user_id, groupID);
31206
+ return getAIRobotInfos(user_id, groupID);
31218
31207
  },
31219
31208
  getPortalUserSig: async (robotKey, platType, groupID) => {
31220
31209
  return getPortalUserSig(robotKey, platType, groupID);
31221
31210
  },
31222
31211
  addIMMapping: async (robotKey, platType, userSig, groupID) => {
31223
- return (0,utils_namespaceObject.addIMMapping)(robotKey, platType, groupID, userSig);
31212
+ return addIMMapping(robotKey, platType, groupID, userSig);
31224
31213
  },
31225
31214
  updateIMMapping: async data => {
31226
31215
  let robotKey = data.userID;
31227
31216
  let platType = data.im_type;
31228
31217
  let groupID = data.group_id;
31229
31218
  let userSig = data.userSig;
31230
- return (0,utils_namespaceObject.updateIMMapping)(robotKey, platType, groupID, userSig);
31219
+ return updateIMMapping(robotKey, platType, groupID, userSig);
31231
31220
  },
31232
31221
  getPortalAccessToken: async data => {
31233
31222
  let appKey = data.appKey;
@@ -31241,16 +31230,16 @@ const getIMHanlder = customerHanlder => {
31241
31230
  },
31242
31231
  getAllUserInfosByGroupID: async data => {
31243
31232
  let groupID = data.groupID;
31244
- return (0,utils_namespaceObject.getAllUserInfosByGroupID)(groupID);
31233
+ return getAllUserInfosByGroupID(groupID);
31245
31234
  },
31246
31235
  getChildrenOfficeInfosByID: async data => {
31247
31236
  let groupID = data.groupID;
31248
- return (0,utils_namespaceObject.getChildrenOfficeInfosByID)(groupID);
31237
+ return getChildrenOfficeInfosByID(groupID);
31249
31238
  },
31250
31239
  getPojectDptsByUserAndGroupID: async data => {
31251
31240
  let groupID = data.groupID;
31252
31241
  let userID = data.userID;
31253
- return (0,utils_namespaceObject.getPojectDptsByUserAndGroupID)(userID, groupID);
31242
+ return getPojectDptsByUserAndGroupID(userID, groupID);
31254
31243
  },
31255
31244
  closeWindow: () => {
31256
31245
  // this.visable = false;
@@ -31280,6 +31269,7 @@ const addAndCleanDocument = async (fileUrl, options = {}) => {
31280
31269
  let home_page = window.smardaten_api_context_path;
31281
31270
  let finalUrl = `${home_page}/storage_area/public${fileUrl}`;
31282
31271
  let fileType = finalUrl.split(".").pop().toLowerCase();
31272
+ let fileName = options.fileName ? `${options.fileName}.${fileType}` : dify_extractFilenameFromUrl(finalUrl);
31283
31273
  fileType = getDifyFileType(fileType);
31284
31274
  let loginUserData = window.anonymousIsLogin || window.currentUser;
31285
31275
  let user_id = options.userID || loginUserData?.id;
@@ -31290,7 +31280,7 @@ const addAndCleanDocument = async (fileUrl, options = {}) => {
31290
31280
  let queryData = {
31291
31281
  params: {
31292
31282
  inputs: {
31293
- fileName: options.fileName || dify_extractFilenameFromUrl(finalUrl)
31283
+ fileName: fileName
31294
31284
  },
31295
31285
  files: [{
31296
31286
  type: fileType,