prevision / apps /prevision-api /src /catalog /interfaces /catalog-entry.interface.ts
github-actions[bot]
Automated Deploy: 6d2e55112e3ada832d411bd3301a883ce9eba3a9
c7a38a3
Raw History Blame Contribute Delete
721 Bytes
export const TILE_VISIBILITIES = ['public', 'admin'] as const;
export type TileVisibilityValue = (typeof TILE_VISIBILITIES)[number];
export interface CatalogEntry {
slug: string;
name: string;
collection: string | null;
/** Supplier brand and owning organization; null for the shared demo tiles. */
brand?: string | null;
organization?: string | null;
/** Defaults to `public`. `admin` tiles are only listed for users with role=admin. */
visibility?: TileVisibilityValue;
surfaces: string[];
widthMm: number | null;
heightMm: number | null;
position: number | null;
imageUrl: string | null;
thumbnailUrl: string | null;
assets: Record<string, unknown>;
render: Record<string, unknown>;
}