import { UserFeedback } from '../../../../../libs/common/domain/src/lib/model/record'

export const userFeedbackFixture = (): UserFeedback => ({
  uuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
  comment: 'A nice comment.',
  metadataUUID: 'my-dataset-001',
  authorUserId: '46798',
  authorName: 'Arnaud De Maison',
  authorEmail: 'a.demaison@geo2france.fr',
  published: true,
  parentUuid: undefined,
  date: new Date('2023-01-01T08:00:00Z'),
})

export const someUserFeedbacksFixture = (): UserFeedback[] => [
  {
    uuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
    comment: 'A nice comment.',
    metadataUUID: 'my-dataset-001',
    authorUserId: '46798',
    authorName: 'Arnaud De Maison',
    authorEmail: 'a.demaison@geo2france.fr',
    published: true,
    parentUuid: undefined,
    date: new Date('2023-01-01T08:00:00Z'),
  },
  {
    uuid: '52cbd0f1-9cb9-4409-8e85-bc608f049af4',
    comment: 'A very nice comment that is a reply.',
    metadataUUID: 'my-dataset-001',
    authorUserId: '46798',
    authorName: 'Arnaud De Maison',
    authorEmail: 'a.demaison@geo2france.fr',
    published: true,
    parentUuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
    date: new Date('2023-01-01T09:00:00Z'),
  },
  {
    uuid: 'b48f62ec-b5e6-4d27-a396-2c2b44f6dcb5',
    comment: 'Another nice comment.',
    metadataUUID: 'my-dataset-001',
    authorUserId: '46798',
    authorName: 'Arnaud De Maison',
    authorEmail: 'a.demaison@geo2france.fr',
    published: true,
    parentUuid: undefined,
    date: new Date('2023-01-01T10:00:00Z'),
  },
  {
    uuid: '1f12a3be-fc8a-4e83-968f-9b88ffbcab02',
    comment: 'Another very nice reply.',
    metadataUUID: 'my-dataset-001',
    authorUserId: '46798',
    authorName: 'Arnaud De Maison',
    authorEmail: 'a.demaison@geo2france.fr',
    published: true,
    parentUuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
    date: new Date('2023-01-01T11:00:00Z'),
  },
  {
    uuid: 'f8dd778d-e93c-4b3c-ba9b-9574be070f46',
    comment: 'Another nice comment.',
    metadataUUID: 'my-dataset-001',
    authorUserId: '46798',
    authorName: 'Arnaud De Maison',
    authorEmail: 'a.demaison@geo2france.fr',
    published: true,
    parentUuid: undefined,
    date: new Date('2023-01-01T10:00:00Z'),
  },
  {
    uuid: 'df3b8872-61d1-4ae9-8822-bb070b94d7d1',
    comment: 'Another nice comment.',
    metadataUUID: 'my-dataset-001',
    authorUserId: '46798',
    authorName: 'Arnaud De Maison',
    authorEmail: 'a.demaison@geo2france.fr',
    published: true,
    parentUuid: undefined,
    date: new Date('2023-01-01T11:00:00Z'),
  },
]
