import { AgeRange } from '../../common/model/AgeRange'; import { EntityWithLinks } from '../../common/model/common'; import { LinkEntity } from '../../common/model/LinkEntity'; import { AttachmentEntity } from '../../common/model/Attachment'; import { CollectionPermissions } from './CollectionPermissions'; import { PromotedForProduct } from './PromotedForProduct'; import { CollectionAssetEntity } from './CollectionAsset'; export interface CollectionEntity extends EntityWithLinks { id: string; owner: string; ownerName: string; title: string; assets: CollectionAssetEntity[]; updatedAt: string; promotedFor: PromotedForProduct[]; discoverable: boolean; mine: boolean; createdBy: string; subjects: any[]; ageRange: AgeRange | null; description: string | null; attachments: AttachmentEntity[]; permissions: CollectionPermissions; _links: { self: LinkEntity; edit?: LinkEntity; safeEdit?: LinkEntity; remove?: LinkEntity; addVideo?: LinkEntity; removeVideo?: LinkEntity; bookmark?: LinkEntity; unbookmark?: LinkEntity; myLatestRel?: LinkEntity; addComment?: LinkEntity; removeComment?: LinkEntity; }; }