punchModePicker.d.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * 选择打卡方式的通用组件,目前支持选择地理位置、Wi-Fi、智点B1、考勤机 请求参数定义
  3. * @apiName biz.ATMBle.punchModePicker
  4. */
  5. export interface IBizATMBlePunchModePickerParams {
  6. /** 当选择支持智点B1打卡、考勤机打卡时,则必须有corpId */
  7. corpId?: string;
  8. /** 需要支持的打卡方式,json序列化后的数据格式: ['location', 'wifi', 'beacon', 'atm']
  9. * 含义:
  10. * 'location':地理位置打卡
  11. * 'wifi':Wi-Fi打卡
  12. * 'beacon':智点B1打卡
  13. * 'atm':考勤机打卡
  14. */
  15. supportModes: string[];
  16. /** 禁用的打卡方式,json序列化后的数据格式: ['location', 'wifi', 'beacon', 'atm']
  17. * 含义:
  18. * 'location':地理位置打卡
  19. * 'wifi':Wi-Fi打卡
  20. * 'beacon':智点B1打卡
  21. * 'atm':考勤机打卡
  22. */
  23. disabledModes: string[];
  24. /** 用于透传,json序列化后的数据格式: [{type: 'location', enable: true, list: []}] 意义待补充 */
  25. modes: Array<{
  26. type: string;
  27. enable: boolean;
  28. list: any[];
  29. }>;
  30. /** 扩展字段,先预留 */
  31. extData?: string;
  32. }
  33. /**
  34. * 选择打卡方式的通用组件,目前支持选择地理位置、Wi-Fi、智点B1、考勤机 返回结果定义
  35. * @apiName biz.ATMBle.punchModePicker
  36. */
  37. export interface IBizATMBlePunchModePickerResult {
  38. /** 选择结果,也是下次调用组件的入参,json序列化后的数据格式: [{type: 'location', enable: true, list: []}] 意义待补充 */
  39. modes: Array<{
  40. type: string;
  41. enable: boolean;
  42. list: any[];
  43. }>;
  44. }
  45. /**
  46. * 选择打卡方式的通用组件,目前支持选择地理位置、Wi-Fi、智点B1、考勤机
  47. * @apiName biz.ATMBle.punchModePicker
  48. * @supportVersion ios: 5.0.7 android: 5.0.7
  49. * @author Android:序望,iOS:度尽
  50. */
  51. export declare function punchModePicker$(params: IBizATMBlePunchModePickerParams): Promise<IBizATMBlePunchModePickerResult>;
  52. export default punchModePicker$;