zhizhi/node_modules/dingtalk-jsapi/api/biz/ATMBle/punchModePicker.d.ts

53 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 选择打卡方式的通用组件目前支持选择地理位置、Wi-Fi、智点B1、考勤机 请求参数定义
* @apiName biz.ATMBle.punchModePicker
*/
export interface IBizATMBlePunchModePickerParams {
/** 当选择支持智点B1打卡、考勤机打卡时则必须有corpId */
corpId?: string;
/** 需要支持的打卡方式json序列化后的数据格式 ['location', 'wifi', 'beacon', 'atm']
* 含义:
* 'location':地理位置打卡
* 'wifi':Wi-Fi打卡
* 'beacon':智点B1打卡
* 'atm':考勤机打卡
*/
supportModes: string[];
/** 禁用的打卡方式json序列化后的数据格式 ['location', 'wifi', 'beacon', 'atm']
* 含义:
* 'location':地理位置打卡
* 'wifi':Wi-Fi打卡
* 'beacon':智点B1打卡
* 'atm':考勤机打卡
*/
disabledModes: string[];
/** 用于透传json序列化后的数据格式 [{type: 'location', enable: true, list: []}] 意义待补充 */
modes: Array<{
type: string;
enable: boolean;
list: any[];
}>;
/** 扩展字段,先预留 */
extData?: string;
}
/**
* 选择打卡方式的通用组件目前支持选择地理位置、Wi-Fi、智点B1、考勤机 返回结果定义
* @apiName biz.ATMBle.punchModePicker
*/
export interface IBizATMBlePunchModePickerResult {
/** 选择结果也是下次调用组件的入参json序列化后的数据格式 [{type: 'location', enable: true, list: []}] 意义待补充 */
modes: Array<{
type: string;
enable: boolean;
list: any[];
}>;
}
/**
* 选择打卡方式的通用组件目前支持选择地理位置、Wi-Fi、智点B1、考勤机
* @apiName biz.ATMBle.punchModePicker
* @supportVersion ios: 5.0.7 android: 5.0.7
* @author Android序望iOS度尽
*/
export declare function punchModePicker$(params: IBizATMBlePunchModePickerParams): Promise<IBizATMBlePunchModePickerResult>;
export default punchModePicker$;