export type UserStatus = "pending" | "accepted" | "rejected" | "submitted"; // Based on backend API response

export interface LocalizedName {
  am: string;
  en: string;
}

export interface ExternalUserDto {
  id: string;
  createdAt: string;
  updatedAt: string;
  name: LocalizedName;
  username: string;
  phoneNumber: string;
  email: string;
  userType: "external_organization" | "employee" | "individual";
  sharepointId: string | null;
  status: UserStatus;
  isActive: boolean;
  hasSetPassword: boolean;
  isPhoneNumberVerified: boolean;
}

export interface ExternalUsersResponseDto {
  count: number;
  items: ExternalUserDto[];
}

export enum UserType {
  NON_SMART_USER = "non_smart_user",
  INTERNAL = "internal",
}

export interface UserTypeDto {
  type: UserType;
  count: number;
}
