|
|
|
|
@ -209,6 +209,46 @@ export const assetStub = {
|
|
|
|
|
duplicateId: null,
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
trashed: Object.freeze<AssetEntity>({
|
|
|
|
|
id: 'asset-id',
|
|
|
|
|
deviceAssetId: 'device-asset-id',
|
|
|
|
|
fileModifiedAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
|
fileCreatedAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
|
owner: userStub.user1,
|
|
|
|
|
ownerId: 'user-id',
|
|
|
|
|
deviceId: 'device-id',
|
|
|
|
|
originalPath: '/original/path.jpg',
|
|
|
|
|
previewPath: '/uploads/user-id/thumbs/path.jpg',
|
|
|
|
|
checksum: Buffer.from('file hash', 'utf8'),
|
|
|
|
|
type: AssetType.IMAGE,
|
|
|
|
|
thumbnailPath: '/uploads/user-id/webp/path.ext',
|
|
|
|
|
thumbhash: Buffer.from('blablabla', 'base64'),
|
|
|
|
|
encodedVideoPath: null,
|
|
|
|
|
createdAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
|
updatedAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
|
deletedAt: new Date('2023-02-24T05:06:29.716Z'),
|
|
|
|
|
localDateTime: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
|
isFavorite: false,
|
|
|
|
|
isArchived: false,
|
|
|
|
|
duration: null,
|
|
|
|
|
isVisible: true,
|
|
|
|
|
isExternal: false,
|
|
|
|
|
livePhotoVideo: null,
|
|
|
|
|
livePhotoVideoId: null,
|
|
|
|
|
isOffline: false,
|
|
|
|
|
tags: [],
|
|
|
|
|
sharedLinks: [],
|
|
|
|
|
originalFileName: 'asset-id.jpg',
|
|
|
|
|
faces: [],
|
|
|
|
|
sidecarPath: null,
|
|
|
|
|
exifInfo: {
|
|
|
|
|
fileSizeInByte: 5000,
|
|
|
|
|
exifImageHeight: 3840,
|
|
|
|
|
exifImageWidth: 2160,
|
|
|
|
|
} as ExifEntity,
|
|
|
|
|
duplicateId: null,
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
external: Object.freeze<AssetEntity>({
|
|
|
|
|
id: 'asset-id',
|
|
|
|
|
deviceAssetId: 'device-asset-id',
|
|
|
|
|
|