export type UserCompanySelectorObjectType = 'company' | 'internalUser' | 'client'; export type UserCompanySelectorOption = Prettify<{ value: string; label: string; avatarSrc?: string; avatarFallbackColor?: string; companyId?: string; type: UserCompanySelectorObjectType; }>; export type UserCompanySelectorGroupedOption = { label: string; options: UserCompanySelectorOption[]; }; export type OptionWithCompanyMetadata = UserCompanySelectorOption & { companyName?: string; companyAvatarSrc?: string; companyAvatarFallbackColor?: string; }; export type UserCompanySelectorInputValue = { id: string; companyId: string; object: UserCompanySelectorObjectType; }; export type UserCompanySelectorProps = { autoFocus?: boolean; initialValue?: UserCompanySelectorOption[]; clientUsers: UserCompanySelectorOption[]; companies: UserCompanySelectorOption[]; name: string; onChange: (inputValue: UserCompanySelectorInputValue[]) => void; placeholder?: string; ignoreCompanies?: boolean; grouped?: boolean; internalUsers?: UserCompanySelectorOption[]; ignoreFilterClientsByCompany?: boolean; limitSelectedOptions?: number; customLabels?: { individualTerm: string; individualTermPlural: string; groupTerm: string; groupTermPlural: string; }; listHeading?: string; }; /** * @deprecated Use Option instead */ export type ComboOption = UserCompanySelectorOption;