export type CustomerItemType = {
  birthDate: string;
  createdAt: string;
  email: string | null;
  firstName: string;
  id: string;
  invoices: unknown[];
  lastName: string;
  nationalCode: string;
  phone: string;
  role: {
    id: string;
    createdAt: string;
    // Add other properties of role if needed
  };
  legalUser: {
    id: string;
    economicCode: string;
    nationalIdentity: string;
    registrationCode: string;
    registrationName: string;
    phone: string;
    address: {
      id: string;
      createdAt: string;
      updatedAt: string;
      fullAddress: string;
      postalCode: string;
      city: {
        id: number;
        name: string;
        province: {
          id: number;
          name: string;
        };
      };
    };
  };
  subscriptions: unknown[];
  tickets: unknown[];
  updatedAt: string;
  userName: string | null;
  subscriptionsCount: string;
  ticketsCount: string;
  invoicesCount: string;
  realUser: {
    phone: string;
    address: {
      id: string;
      createdAt: string;
      updatedAt: string;
      fullAddress: string;
      postalCode: string;
      city: {
        id: number;
        name: string;
        province: {
          id: number;
          name: string;
        };
      };
    };
  };
};

export type CreateCustomerType = {
  phone: string;
  firstName: string;
  lastName: string;
  email: string;
  birthDate: string;
  nationalCode: string;
  password?: string;
  economicCode: string;
  registrationName: string;
  registrationCode: string;
  nationalIdentity: string;
  postalCode: string;
  address: string;
  cityId: string | number;
  profilePic?: string;
};

export type ProvinesItemType = {
  id: string;
  name: string;
};
