mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 00:59:18 -05:00
1869b1b41a
* refactor: version history repository * refactor: oauth repository * refactor: trash repository * refactor: telemetry repository * refactor: metadata repository * refactor: cron repository * refactor: map repository * refactor: server-info repository * refactor: album user repository * refactor: notification repository
71 lines
1.4 KiB
TypeScript
71 lines
1.4 KiB
TypeScript
import { ImmichTags } from 'src/repositories/metadata.repository';
|
|
import { personStub } from 'test/fixtures/person.stub';
|
|
|
|
export const metadataStub = {
|
|
empty: Object.freeze<ImmichTags>({}),
|
|
withFace: Object.freeze<ImmichTags>({
|
|
RegionInfo: {
|
|
AppliedToDimensions: {
|
|
W: 100,
|
|
H: 100,
|
|
Unit: 'normalized',
|
|
},
|
|
RegionList: [
|
|
{
|
|
Type: 'face',
|
|
Name: personStub.withName.name,
|
|
Area: {
|
|
X: 0.05,
|
|
Y: 0.05,
|
|
W: 0.1,
|
|
H: 0.1,
|
|
Unit: 'normalized',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
withFaceEmptyName: Object.freeze<ImmichTags>({
|
|
RegionInfo: {
|
|
AppliedToDimensions: {
|
|
W: 100,
|
|
H: 100,
|
|
Unit: 'normalized',
|
|
},
|
|
RegionList: [
|
|
{
|
|
Type: 'face',
|
|
Name: '',
|
|
Area: {
|
|
X: 0.05,
|
|
Y: 0.05,
|
|
W: 0.1,
|
|
H: 0.1,
|
|
Unit: 'normalized',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
withFaceNoName: Object.freeze<ImmichTags>({
|
|
RegionInfo: {
|
|
AppliedToDimensions: {
|
|
W: 100,
|
|
H: 100,
|
|
Unit: 'normalized',
|
|
},
|
|
RegionList: [
|
|
{
|
|
Type: 'face',
|
|
Area: {
|
|
X: 0.05,
|
|
Y: 0.05,
|
|
W: 0.1,
|
|
H: 0.1,
|
|
Unit: 'normalized',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
};
|