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

44 lines
2.0 KiB
TypeScript
Raw Normal View History

/**
* 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 AndroidiOS
*/
export declare function componentPunchFromPartner$(params: IBizPbpComponentPunchFromPartnerParams): Promise<IBizPbpComponentPunchFromPartnerResult>;
export default componentPunchFromPartner$;