import { HistoryDTO } from '@cmf/trade-api';

export const historyDtoMock: HistoryDTO = {
  location: 'München Neuhausen',
  id: 114392259,
  version: 5,
  changed: '2020-07-02T10:56:54.7541',
  changedBy: 'Günther Schmidlehner',
  changeset: 69134345,
  description: 'Test Description',
  values: [{ caption: 'vorgemerkt', value: 'ja', previousValue: 'nein' }],
};

export const historiesDtoMock: HistoryDTO[] = [
  {
    location: 'München Neuhausen',
    id: 114392259,
    version: 5,
    changed: '2020-07-02T10:56:54.7541',
    changedBy: 'Günther Schmidlehner',
    changeset: 69134345,
    values: [{ caption: 'vorgemerkt', value: 'ja', previousValue: 'nein' }],
  },
  {
    location: 'München Neuhausen',
    id: 114392259,
    version: 3,
    changed: '2020-07-02T10:55:23.5543',
    changedBy: 'Günther Schmidlehner',
    changeset: 69134341,
    historyset: 10896420,
    values: [{ caption: 'Abholfach-Zusatz', value: '', previousValue: 'Extra' }],
  },
  {
    location: 'München Neuhausen',
    id: 114392259,
    version: 2,
    changed: '2020-02-24T14:53:58.9359',
    changedBy: 'Lorenz Hilpert',
    changeset: 68359312,
    historyset: 10896418,
    values: [
      {
        caption: 'Eingetroffen/Versendet',
        value: '',
        previousValue: '02.07.2020 10:55:23',
      },
      { caption: 'Status', value: 'bestellt', previousValue: 'eingetroffen' },
      {
        caption: 'Status Datum',
        value: '24.02.2020 14:53:58',
        previousValue: '02.07.2020 10:55:23',
      },
      { caption: 'Abholfach-Nr', value: '', previousValue: '130_0207_1' },
      {
        caption: 'Im Abholfach seit',
        value: '',
        previousValue: '02.07.2020 10:55:23',
      },
      {
        caption: 'Im Abholfach bis',
        value: '',
        previousValue: '16.07.2020 10:55:23',
      },
    ],
  },
  {
    location: 'München Neuhausen',
    id: 114392259,
    version: 1,
    changed: '2020-02-24T14:53:57.6544',
    changedBy: 'Lorenz Hilpert',
    changeset: 68359310,
    historyset: 9520697,
    values: [
      { caption: 'Meldenummer', value: '', previousValue: '999' },
      {
        caption: 'bestellt bei Lieferant am',
        value: '',
        previousValue: '24.02.2020 14:53:58',
      },
      {
        caption: 'vsl. Lieferdatum',
        value: '25.02.2020 15:00:00',
        previousValue: '25.02.2020 14:00:00',
      },
      { caption: 'Status', value: 'neu', previousValue: 'bestellt' },
      {
        caption: 'Status Datum',
        value: '24.02.2020 14:53:57',
        previousValue: '24.02.2020 14:53:58',
      },
    ],
  },
];
