mirror of https://github.com/immich-app/immich.git
14 lines
298 B
TypeScript
14 lines
298 B
TypeScript
import { SmartInfoEntity } from '@app/infra/entities';
|
|
|
|
export class SmartInfoResponseDto {
|
|
tags?: string[] | null;
|
|
objects?: string[] | null;
|
|
}
|
|
|
|
export function mapSmartInfo(entity: SmartInfoEntity): SmartInfoResponseDto {
|
|
return {
|
|
tags: entity.tags,
|
|
objects: entity.objects,
|
|
};
|
|
}
|