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.
package/dist/index.umd.js CHANGED
@@ -29629,16 +29629,6 @@ __webpack_require__.d(__webpack_exports__, {
29629
29629
  validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
29630
29630
  });
29631
29631
 
29632
- // NAMESPACE OBJECT: ./src/api/utils.js
29633
- var utils_namespaceObject = {};
29634
- __webpack_require__.r(utils_namespaceObject);
29635
- __webpack_require__.d(utils_namespaceObject, {
29636
- w$: function() { return createFileFromUrl; },
29637
- KQ: function() { return extractFilenameFromUrl; },
29638
- Ie: function() { return getUrlParamValue; },
29639
- Ju: function() { return queryAssetById; }
29640
- });
29641
-
29642
29632
  ;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
29643
29633
  /* eslint-disable no-var */
29644
29634
  // This file is imported into lib/wc client bundles.
@@ -31203,7 +31193,6 @@ class ChatClientMgr {
31203
31193
 
31204
31194
 
31205
31195
 
31206
-
31207
31196
  const getRobotInfoByID = async (robotID, groupID) => {
31208
31197
  let queryData = {
31209
31198
  "param": {
@@ -31224,20 +31213,20 @@ const getIMHanlder = customerHanlder => {
31224
31213
  return [];
31225
31214
  },
31226
31215
  getAIRobotInfos: async (user_id, groupID) => {
31227
- return (0,utils_namespaceObject.getAIRobotInfos)(user_id, groupID);
31216
+ return getAIRobotInfos(user_id, groupID);
31228
31217
  },
31229
31218
  getPortalUserSig: async (robotKey, platType, groupID) => {
31230
31219
  return getPortalUserSig(robotKey, platType, groupID);
31231
31220
  },
31232
31221
  addIMMapping: async (robotKey, platType, userSig, groupID) => {
31233
- return (0,utils_namespaceObject.addIMMapping)(robotKey, platType, groupID, userSig);
31222
+ return addIMMapping(robotKey, platType, groupID, userSig);
31234
31223
  },
31235
31224
  updateIMMapping: async data => {
31236
31225
  let robotKey = data.userID;
31237
31226
  let platType = data.im_type;
31238
31227
  let groupID = data.group_id;
31239
31228
  let userSig = data.userSig;
31240
- return (0,utils_namespaceObject.updateIMMapping)(robotKey, platType, groupID, userSig);
31229
+ return updateIMMapping(robotKey, platType, groupID, userSig);
31241
31230
  },
31242
31231
  getPortalAccessToken: async data => {
31243
31232
  let appKey = data.appKey;
@@ -31251,16 +31240,16 @@ const getIMHanlder = customerHanlder => {
31251
31240
  },
31252
31241
  getAllUserInfosByGroupID: async data => {
31253
31242
  let groupID = data.groupID;
31254
- return (0,utils_namespaceObject.getAllUserInfosByGroupID)(groupID);
31243
+ return getAllUserInfosByGroupID(groupID);
31255
31244
  },
31256
31245
  getChildrenOfficeInfosByID: async data => {
31257
31246
  let groupID = data.groupID;
31258
- return (0,utils_namespaceObject.getChildrenOfficeInfosByID)(groupID);
31247
+ return getChildrenOfficeInfosByID(groupID);
31259
31248
  },
31260
31249
  getPojectDptsByUserAndGroupID: async data => {
31261
31250
  let groupID = data.groupID;
31262
31251
  let userID = data.userID;
31263
- return (0,utils_namespaceObject.getPojectDptsByUserAndGroupID)(userID, groupID);
31252
+ return getPojectDptsByUserAndGroupID(userID, groupID);
31264
31253
  },
31265
31254
  closeWindow: () => {
31266
31255
  // this.visable = false;
@@ -31290,6 +31279,7 @@ const addAndCleanDocument = async (fileUrl, options = {}) => {
31290
31279
  let home_page = window.smardaten_api_context_path;
31291
31280
  let finalUrl = `${home_page}/storage_area/public${fileUrl}`;
31292
31281
  let fileType = finalUrl.split(".").pop().toLowerCase();
31282
+ let fileName = options.fileName ? `${options.fileName}.${fileType}` : dify_extractFilenameFromUrl(finalUrl);
31293
31283
  fileType = getDifyFileType(fileType);
31294
31284
  let loginUserData = window.anonymousIsLogin || window.currentUser;
31295
31285
  let user_id = options.userID || loginUserData?.id;
@@ -31300,7 +31290,7 @@ const addAndCleanDocument = async (fileUrl, options = {}) => {
31300
31290
  let queryData = {
31301
31291
  params: {
31302
31292
  inputs: {
31303
- fileName: options.fileName || dify_extractFilenameFromUrl(finalUrl)
31293
+ fileName: fileName
31304
31294
  },
31305
31295
  files: [{
31306
31296
  type: fileType,