import { gql } from '@apollo/client/core';

export const TEAM_PROFILES_QUERY = gql`
	query TeamProfiles {
		teamProfiles {
			id
			firstName
			lastName
			fullName
			email
			phone
			role
			status
			notes
			createdAt
			updatedAt
		}
	}
`;

export const TEAM_PROFILE_QUERY = gql`
	query TeamProfile($id: UUID!) {
		teamProfile(id: $id) {
			id
			firstName
			lastName
			fullName
			email
			phone
			role
			status
			notes
			createdAt
			updatedAt
		}
	}
`;

export type TeamRole = 'ADMIN' | 'TEAM_LEADER' | 'TEAM_MEMBER';
export type EntityStatus = 'ACTIVE' | 'INACTIVE' | 'PENDING';

export interface TeamProfile {
	id: string;
	firstName: string;
	lastName: string;
	fullName: string;
	email: string | null;
	phone: string | null;
	role: TeamRole;
	status: EntityStatus;
	notes: string | null;
	createdAt: string;
	updatedAt: string;
}

export interface TeamProfilesQueryResult {
	teamProfiles: TeamProfile[];
}

export interface TeamProfileQueryResult {
	teamProfile: TeamProfile;
}
