You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
797 B

  1. export type CardType = 'INFO_PAGE' | 'EXTERNAL_LINK' | 'IMAGE_GALLERY' | 'SERVICE_REQUEST';
  2. export type MediaItem = {
  3. url: string;
  4. autoplay?: boolean; // videos only — autoplay muted when shown
  5. };
  6. export interface Card {
  7. id: string;
  8. portalId: string;
  9. title: string;
  10. imageUrl: string;
  11. extraMedia?: MediaItem[];
  12. shortDescription: string;
  13. fullContent: string;
  14. cardType: CardType;
  15. actionUrl?: string;
  16. displayOrder: number;
  17. autoFullscreen?: boolean; // open the fullscreen viewer immediately when this card is clicked
  18. }
  19. export interface Portal {
  20. id: string;
  21. tenantId: string;
  22. title: string;
  23. welcomeText: string;
  24. heroImageUrl: string;
  25. logoUrl: string;
  26. themeColor: string;
  27. fadeHeroImage?: boolean;
  28. maxGridColumns?: number;
  29. }