chooseContact.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. export declare enum SelectVersionEnum {
  2. DEFAULT = 1,
  3. NEW = 2
  4. }
  5. export declare enum PanelTypeEnum {
  6. GLOBAL_ORG = 1,
  7. FRIEND = 2,
  8. GROUP = 4,
  9. RECOMMEND = 5,
  10. SPECIAL_ATTENTION = 7,
  11. LOAD_GROUP_PERSON = 8,
  12. ORG = 9
  13. }
  14. export declare enum VisibilityCodesEnum {
  15. PHONE_HIDE = "PHONE_HIDE",
  16. CHAT_INVALID = "CHAT_INVALID",
  17. GROUP_CHAT_PULL_INVALID = "GROUP_CHAT_PULL_INVALID",
  18. APP_DING_INVALID = "APP_DING_INVALID",
  19. PHONE_DING_INVALID = "PHONE_DING_INVALID",
  20. SMS_DING_INVALID = "SMS_DING_INVALID",
  21. AUDIO_VIDEO_HIDE = "AUDIO_VIDEO_HIDE"
  22. }
  23. export interface RequestChooseContactParams {
  24. multiple?: boolean;
  25. users?: Array<string>;
  26. max?: number;
  27. responseUserOnly?: boolean;
  28. limitTips?: string;
  29. title?: string;
  30. pickedUsers?: string[];
  31. requiredUsers?: string[];
  32. disabledUsers?: string[];
  33. selectVersion?: SelectVersionEnum;
  34. panelTypes?: PanelTypeEnum[];
  35. visibilityCodes?: VisibilityCodesEnum;
  36. enableExternalUser?: boolean;
  37. }
  38. export interface ChooseContactResultItem {
  39. name: string;
  40. avatar: string;
  41. emplId: string;
  42. }
  43. declare function chooseContact(args: RequestChooseContactParams): Promise<ChooseContactResultItem[]>;
  44. declare namespace chooseContact {
  45. var version: {
  46. pc: string;
  47. };
  48. }
  49. export default chooseContact;