interface Store {
  id_structure: number
  nom: string
  ip_master: string
  telephone: string
  photoLink: string
  enseigne: string
  nbcaisses: number
  pays: string
  adresse: string
  caisses: Caisse[]
  date_migration: string
}

interface Caisse {
  id_caisse: number
  ip: string
}

interface storePos {
  workstationId: number
  ip: string
  version: string
  businessDate: Date
  businessDateS: string
  openingDate: string
  closingDate: string
  boTransaction: Transaction
  replication: Replication
  saleTransaction: xStoreTransaction
  primaryRegister: boolean
  fatalError: boolean
}

interface Replication {
  pendingReplications: number
  minPendingReplicationDate: string
  maxPendingReplicationDate: string
}

interface Transaction {
  backOfficeTransactions: number
  minBackOfficeTransactionDate: string
  maxBackOfficeTransactionDate: string
}

interface xStoreTransaction {
  count: number
  minDate: string
  minDateT: string
  minDateH: string
  maxDate: string
  maxDateT: string
  maxDateH: string
}

export interface StoreData {
  store: Store
  pos: storePos[]
}
