import ISummary from '@/core/models/summary';

export type PosVariant = 'consumer' | 'partner' | 'full';

export interface IPosEntity {
  id: string;
  name: string;
  serial_number: string;
  model?: string;
  status: string;
  pos_type: string;
  complex: ISummary;
  device?: ISummary;
  provider?: ISummary;
}

export interface IPosDisplayConfig {
  variant: PosVariant;
  editable?: boolean;
  showMoreActions?: boolean;
}

export const POS_VARIANT_FIELDS: Record<PosVariant, Array<keyof IPosEntity>> = {
  consumer: ['name', 'pos_type', 'serial_number', 'device', 'model', 'provider'],
  partner: ['name', 'pos_type', 'serial_number'],
  full: ['name', 'pos_type', 'serial_number', 'device', 'model', 'provider'],
};
