startMatchRuleFromPartner.d.ts 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * 开始匹配打卡规则,多次回调如未成功回调,表示此时没有正常扫描到对应的资源,此时调用打卡接口不能得到对应的资源信息拒绝同一微应用、同一企业、同一bizInstId的连续多次调用,调用前需stop上一次操作 请求参数定义
  3. * @apiName biz.pbp.startMatchRuleFromPartner
  4. */
  5. export interface IBizPbpStartMatchRuleFromPartnerParams {
  6. /** 业务实例唯一标识 */
  7. bizInstId: string;
  8. /** 需要满足的位置信息,与打卡方式映射。满足其中条件即视为。 key:positionType,定义如下
  9. * "1":地理位置
  10. * "2":Wi-Fi
  11. * "101":蓝牙
  12. * value:positionList,可传空,空的情况下不做匹配,返回扫描到的资源信息,定义如下:
  13. * 位置id
  14. * String positionId
  15. * 目前仅支持蓝牙
  16. * 蓝牙打卡方式下,key为"101",value为蓝牙匹配规则的JSON结构体,
  17. * 如
  18. * {
  19. * "101":{"positions": [{"positionId":"123123"}, {"positionId":"123123123"}]}
  20. * }
  21. **/
  22. positionMap: {
  23. [key: string]: any;
  24. };
  25. }
  26. /**
  27. * 开始匹配打卡规则,多次回调如未成功回调,表示此时没有正常扫描到对应的资源,此时调用打卡接口不能得到对应的资源信息拒绝同一微应用、同一企业、同一bizInstId的连续多次调用,调用前需stop上一次操作 返回结果定义
  28. * @apiName biz.pbp.startMatchRuleFromPartner
  29. */
  30. export interface IBizPbpStartMatchRuleFromPartnerResult {
  31. /**
  32. * 匹配结果状态码,定义如下:
  33. * "10000":卡点匹配成功
  34. * "10001":卡点未匹配
  35. * "10002":卡点匹配停止
  36. **/
  37. code: string;
  38. /**
  39. * 返回匹配数据,定义如下:
  40. * 每次调用开始匹配接口为调用方生成唯一的ID,打卡用
  41. * 1: string positionSessionId
  42. * // 位置类型,"101" 为蓝牙
  43. * 2: string positionType
  44. * // 当前返回的位置信息,"positionName"为位置名称,"positionId"为位置ID
  45. * 3: list<Object> positions
  46. * // 预留字段
  47. * 4: map<string, string> extension
  48. * 目前仅支持蓝牙。蓝牙返回的结果是当前周边所有匹配到的蓝牙设备列表信息
  49. * 如
  50. * {
  51. * "positionSessionId":"positionSessionId",
  52. * "positionType":"101",
  53. * "positions":[{
  54. * "positionName":"测试B1",
  55. * "positionId":"123123"
  56. * }]
  57. * }
  58. */
  59. data: any;
  60. }
  61. /**
  62. * 开始匹配打卡规则,多次回调如未成功回调,表示此时没有正常扫描到对应的资源,此时调用打卡接口不能得到对应的资源信息拒绝同一微应用、同一企业、同一bizInstId的连续多次调用,调用前需stop上一次操作
  63. * @apiName biz.pbp.startMatchRuleFromPartner
  64. * @supportVersion ios: 5.1.10 android: 5.1.10
  65. * @author Android:序望,iOS:度尽
  66. */
  67. export declare function startMatchRuleFromPartner$(params: IBizPbpStartMatchRuleFromPartnerParams): Promise<IBizPbpStartMatchRuleFromPartnerResult>;
  68. export default startMatchRuleFromPartner$;