import { AssetFileType, AssetType } from 'src/enum';
import { AssetFileFactory } from 'test/factories/asset-file.factory';
import { userStub } from 'test/fixtures/user.stub';

export const personThumbnailStub = {
  newThumbnailStart: Object.freeze({
    ownerId: userStub.admin.id,
    x1: 5,
    y1: 5,
    x2: 505,
    y2: 505,
    oldHeight: 2880,
    oldWidth: 2160,
    type: AssetType.Image,
    originalPath: '/original/path.jpg',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
  newThumbnailMiddle: Object.freeze({
    ownerId: userStub.admin.id,
    x1: 100,
    y1: 100,
    x2: 200,
    y2: 200,
    oldHeight: 500,
    oldWidth: 400,
    type: AssetType.Image,
    originalPath: '/original/path.jpg',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
  newThumbnailEnd: Object.freeze({
    ownerId: userStub.admin.id,
    x1: 300,
    y1: 300,
    x2: 495,
    y2: 495,
    oldHeight: 500,
    oldWidth: 500,
    type: AssetType.Image,
    originalPath: '/original/path.jpg',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
  rawEmbeddedThumbnail: Object.freeze({
    ownerId: userStub.admin.id,
    x1: 100,
    y1: 100,
    x2: 200,
    y2: 200,
    oldHeight: 500,
    oldWidth: 400,
    type: AssetType.Image,
    originalPath: '/original/path.dng',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
  negativeCoordinate: Object.freeze({
    ownerId: userStub.admin.id,
    x1: -176,
    y1: -230,
    x2: 193,
    y2: 251,
    oldHeight: 1440,
    oldWidth: 2162,
    type: AssetType.Image,
    originalPath: '/original/path.jpg',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
  overflowingCoordinate: Object.freeze({
    ownerId: userStub.admin.id,
    x1: 2097,
    y1: 0,
    x2: 2171,
    y2: 152,
    oldHeight: 1440,
    oldWidth: 2162,
    type: AssetType.Image,
    originalPath: '/original/path.jpg',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
  videoThumbnail: Object.freeze({
    ownerId: userStub.admin.id,
    x1: 100,
    y1: 100,
    x2: 200,
    y2: 200,
    oldHeight: 500,
    oldWidth: 400,
    type: AssetType.Video,
    originalPath: '/original/path.mp4',
    exifOrientation: '1',
    previewPath: AssetFileFactory.create({ type: AssetFileType.Preview }).path,
  }),
};
