@hyext/types-ext-sdk-hy 3.12.2 → 3.12.3-beta.2

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3754,9 +3754,11 @@ type UploadFilesReq = {
3754
3754
  /**
3755
3755
  * 选中目录信息
3756
3756
  * @property path - 选中的目录路径,空字符串表示用户取消选择
3757
+ * @property fileName - 另存为文件名,type为saveAsFile时返回
3757
3758
  */
3758
3759
  type SelectDirInfo = {
3759
3760
  path: string;
3761
+ fileName: string;
3760
3762
  };
3761
3763
 
3762
3764
  /**
@@ -3767,9 +3769,13 @@ type SelectDirCallback = (rsp: SelectDirInfo) => void;
3767
3769
  /**
3768
3770
  * 选择本地目录参数
3769
3771
  * @property callback - 选完之后的回调函数
3772
+ * @property [type] - 调用类型, saveAsFile-另存为
3773
+ * @property [fileName] - 另存为文件名,type为saveAsFile时传入
3770
3774
  */
3771
3775
  type SelectDirReq = {
3772
3776
  callback: SelectDirCallback;
3777
+ type?: string;
3778
+ fileName?: string;
3773
3779
  };
3774
3780
 
3775
3781
  /**
@@ -3781,7 +3787,8 @@ type SelectDirReq = {
3781
3787
  * @property width - 媒体的宽度,单位是像素
3782
3788
  * @property height - 媒体的高度,单位是像素
3783
3789
  * @property type - 媒体类型, image-图片, video-视频
3784
- * @property faceDetectResult - 人脸识别结果, 0-SUCCESS, 1-NO_FACE无人脸, 2-TOO_MUCH_FACES太多人脸, 3-SIDE_FACE侧脸, 4-SUB_FACE_OCCLUSION人脸部分遮挡, 5-FACE_TOO_SMALL脸太小
3790
+ * @property faceDetectResult - 人脸识别结果, 0-SUCCESS, 1-NO_FACE无人脸, 2-TOO_MUCH_FACES太多人脸, 3-SIDE_FACE侧脸, 4-SUB_FACE_OCCLUSION人脸部分遮挡, 5-FACE_TOO_SMALL脸太小, 6-EYE_CLOSE闭眼, -1-终端错误
3791
+ * @property msg - 异常信息
3785
3792
  */
3786
3793
  type MediaData = {
3787
3794
  fileId: string;
@@ -3792,6 +3799,7 @@ type MediaData = {
3792
3799
  height: number;
3793
3800
  type: string;
3794
3801
  faceDetectResult: number;
3802
+ msg: string;
3795
3803
  };
3796
3804
 
3797
3805
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "3.12.2",
3
+ "version": "3.12.3-beta.2",
4
4
  "description": "TypeScript definitions for @hyext/ext-sdk-hy",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",