zhizhi/node_modules/dingtalk-jsapi/api/biz/pbp/componentPunchFromPartner.d.ts

44 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.

/**
* 组件打卡开放接口前置调用位置匹配接口此接口只提供给ISV运行期间内的多次相同入参调用会被拒绝 请求参数定义
* @apiName biz.pbp.componentPunchFromPartner
*/
export interface IBizPbpComponentPunchFromPartnerParams {
/** 业务实例唯一标识 */
bizInstId: string;
/** 业务code */
bizCode: string;
/** 由匹配打卡规则获取到的sessionId */
positionSessionId?: string;
/** 由调用人脸组件获取到的sessionId本期暂不支持因此positionSessionId必填 */
faceSessionId?: string;
/** 最长1024个字节 该数据会透传给业务系统打卡成功后会将业务系统推送结果进行透传。建议可以传入标识唯一性的id用作上下文处理等 */
extension?: string;
}
/**
* 组件打卡开放接口前置调用位置匹配接口此接口只提供给ISV运行期间内的多次相同入参调用会被拒绝 返回结果定义
* @apiName biz.pbp.componentPunchFromPartner
*/
export interface IBizPbpComponentPunchFromPartnerResult {
/** 是否成功 */
success: boolean;
/** 接口错误码 */
code: string;
/** 接口错误信息 */
message: string;
/** 推送事件
* "pbp_punch_result":打卡平台打卡结果
* "biz_punch_result": 业务系统打卡结果
**/
event: string;
/** 推送数据,如果为业务系统打卡结果,数据结构由业务方自己定义 为打卡平台打卡结果时,需要自己做反序列化 */
data: string;
}
/**
* 组件打卡开放接口前置调用位置匹配接口此接口只提供给ISV运行期间内的多次相同入参调用会被拒绝
* @apiName biz.pbp.componentPunchFromPartner
* @supportVersion ios: 5.1.10 android: 5.1.10
* @author Android序望iOS度尽
*/
export declare function componentPunchFromPartner$(params: IBizPbpComponentPunchFromPartnerParams): Promise<IBizPbpComponentPunchFromPartnerResult>;
export default componentPunchFromPartner$;