import { KYC_STATUS } from "../constants/app";

export interface IUserProfile {
  id: number;
  bid: string;
  email: string;
  userName: string;
  firstName: string;
  lastName: string;
  phone: string;
  activeMembership: boolean;
  walletConsentConfirmed: boolean;
  originType: string;
  subscriptionType: string | null;
  accountType: string;
  membershipExpiryDate: string | null;
  picture: string;
  pgUser: {
    clientUserId: string;
    status: KycStatus;
    aletaHomnifiConsent: boolean;
    aletaHomnifiConsentDate: string;
    aletaState: KycStatus;
    createdAt: string;
    updatedAt: string;
  };
  subscriptionActivationPending?: boolean;
}

export interface DecodedToken {
  exp: number;
  iat: number;
  [key: string]: any;
}

export type KycStatus = (typeof KYC_STATUS)[keyof typeof KYC_STATUS];
