complexPickerAdmin.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. export declare enum EmployeeKeyTypeEnum {
  2. CODE = "code",
  3. ACCOUNTID = "accountId"
  4. }
  5. export declare enum KeyTypeEnum {
  6. CODE = "code",
  7. id = "id"
  8. }
  9. export interface ComplexPickerAdminParams {
  10. corpId?: string;
  11. title?: string;
  12. appId?: string;
  13. roleName?: string;
  14. multiple?: boolean;
  15. users?: Array<string>;
  16. maxUsers?: number;
  17. maxDepartments?: number;
  18. maxStripOrgs?: number;
  19. maxSystemTags?: number;
  20. maxRoleTags?: number;
  21. limitTips?: string;
  22. searchPlaceholder?: string;
  23. pickedUsers?: string[] | {
  24. [key: string]: any;
  25. }[];
  26. pickedDepartments?: string[] | {
  27. [key: string]: any;
  28. }[];
  29. pickedStripOrgs?: {
  30. [key: string]: any;
  31. }[];
  32. pickedSystemTags?: string[] | {
  33. [key: string]: any;
  34. }[];
  35. pickedRoleTags?: string[] | {
  36. [key: string]: any;
  37. }[];
  38. permissionType?: string;
  39. employeeKeyType?: EmployeeKeyTypeEnum;
  40. organizationKeyType?: KeyTypeEnum;
  41. tagKeyType?: KeyTypeEnum;
  42. normalTagKeyType?: KeyTypeEnum;
  43. openSearch?: boolean;
  44. locale?: string;
  45. canShowSelectOrg?: boolean;
  46. canSelectTag?: boolean;
  47. canSelectStripOrg?: boolean;
  48. needSelectUser?: boolean;
  49. canSelectOrg?: boolean;
  50. canSelectNormalTag?: boolean;
  51. limitOrganization?: string;
  52. limitOrganizationParamType?: string;
  53. disabledUsers?: string[];
  54. disabledDepartments?: string[];
  55. requiredUsers?: string[];
  56. requiredDepartments?: string[];
  57. }
  58. export interface ComplexPickerAdminResult {
  59. selectedCount: number;
  60. users: {
  61. name: string;
  62. avatar: string;
  63. empId: string;
  64. }[];
  65. departments: {
  66. name: string;
  67. id: string;
  68. number: number;
  69. }[];
  70. stripOrgs: {
  71. [key: string]: any;
  72. }[];
  73. systemTags: {
  74. [key: string]: any;
  75. }[];
  76. normalTags: {
  77. [key: string]: any;
  78. }[];
  79. }
  80. declare function complexPickerAdmin(args: ComplexPickerAdminParams): Promise<ComplexPickerAdminResult>;
  81. declare namespace complexPickerAdmin {
  82. var version: {
  83. pc: string;
  84. };
  85. }
  86. export default complexPickerAdmin;