beaconPicker.d.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * B1设备选择器,对外开放接口 请求参数定义
  3. * @apiName biz.ATMBle.beaconPicker
  4. */
  5. export interface IBizATMBleBeaconPickerParams {
  6. /** 企业ID,服务端会对权限做控制 */
  7. corpId: string;
  8. /** 使用场景,通过调取平台服务获取 */
  9. bizCode: string;
  10. /** 默认勾选B1设备ID列表,List<Long>,json格式 */
  11. pickedBeacons?: string;
  12. /** 不可选设备ID列表,List<Long>,json格式 */
  13. disabledBeacons?: string;
  14. /** 必选设备ID列表,List<Long>,json格式 */
  15. requireBeacons?: string;
  16. /** 人脸管理,用户ID列表,List<Long>,json格式 */
  17. userIds?: string;
  18. /** 人脸管理,排除的用户ID列表,List<Long>,json格式 */
  19. excludeUserIds?: string;
  20. /** 人脸管理,部门ID列表,List<Long>,json格式 */
  21. deptIds?: string;
  22. /** 人脸管理,排除的部门ID列表,List<Long>,json格式 */
  23. excludeDeptIds?: string;
  24. /** 是否支持多选 */
  25. multiple?: boolean;
  26. /** 最大可选数量 */
  27. max?: number;
  28. /** 超过限定数量提示 */
  29. limitTips?: string;
  30. /** 页面标题 */
  31. title?: string;
  32. /** 上游业务来源 */
  33. origin?: string;
  34. /** 是否支持实人 */
  35. supportFace?: boolean;
  36. /** 是否支持距离 */
  37. supportDistance?: boolean;
  38. /** 设置的蓝牙设备距离 */
  39. distance?: string;
  40. /** 人脸开关 */
  41. useFaceRecognition?: boolean;
  42. /** 扩展字段,先预留 */
  43. extData?: string;
  44. }
  45. /**
  46. * B1设备选择器,对外开放接口 返回结果定义
  47. * @apiName biz.ATMBle.beaconPicker
  48. */
  49. export interface IBizATMBleBeaconPickerResult {
  50. /** 选择的设备ID列表 */
  51. chosenBeacons: number[];
  52. /** 人脸识别开关 */
  53. useFaceRecognition: boolean;
  54. /** 设置的蓝牙设备距离 */
  55. distance: number;
  56. }
  57. /**
  58. * B1设备选择器,对外开放接口
  59. * @apiName biz.ATMBle.beaconPicker
  60. * @supportVersion ios: 5.0.7 android: 5.0.7
  61. * @author Android:序望,iOS:度尽
  62. */
  63. export declare function beaconPicker$(params: IBizATMBleBeaconPickerParams): Promise<IBizATMBleBeaconPickerResult>;
  64. export default beaconPicker$;