mirror of
https://github.com/immich-app/immich.git
synced 2026-02-14 04:47:57 +03:00
23 lines
638 B
TypeScript
23 lines
638 B
TypeScript
import { AlbumEntity } from 'src/entities/album.entity';
|
|
import { AssetEntity } from 'src/entities/asset.entity';
|
|
import { UserEntity } from 'src/entities/user.entity';
|
|
import { SharedLinkType } from 'src/enum';
|
|
|
|
export class SharedLinkEntity {
|
|
id!: string;
|
|
description!: string | null;
|
|
password!: string | null;
|
|
userId!: string;
|
|
user!: UserEntity;
|
|
key!: Buffer; // use to access the inidividual asset
|
|
type!: SharedLinkType;
|
|
createdAt!: Date;
|
|
expiresAt!: Date | null;
|
|
allowUpload!: boolean;
|
|
allowDownload!: boolean;
|
|
showExif!: boolean;
|
|
assets!: AssetEntity[];
|
|
album?: AlbumEntity;
|
|
albumId!: string | null;
|
|
}
|