custom-markup-data.model.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. export type EmbedMarkupData = {
  2. // Video or playlist uuid
  3. uuid: string
  4. }
  5. export type VideoMiniatureMarkupData = {
  6. // Video uuid
  7. uuid: string
  8. onlyDisplayTitle?: string // boolean
  9. }
  10. export type PlaylistMiniatureMarkupData = {
  11. // Playlist uuid
  12. uuid: string
  13. }
  14. export type ChannelMiniatureMarkupData = {
  15. // Channel name (username)
  16. name: string
  17. displayLatestVideo?: string // boolean
  18. displayDescription?: string // boolean
  19. }
  20. export type VideosListMarkupData = {
  21. onlyDisplayTitle?: string // boolean
  22. maxRows?: string // number
  23. sort?: string
  24. count?: string // number
  25. categoryOneOf?: string // coma separated values, number[]
  26. languageOneOf?: string // coma separated values
  27. channelHandle?: string
  28. accountHandle?: string
  29. isLive?: string // number
  30. onlyLocal?: string // boolean
  31. }
  32. export type ButtonMarkupData = {
  33. theme: 'primary' | 'secondary'
  34. href: string
  35. label: string
  36. blankTarget?: string // boolean
  37. }
  38. export type ContainerMarkupData = {
  39. width?: string
  40. title?: string
  41. description?: string
  42. layout?: 'row' | 'column'
  43. justifyContent?: 'space-between' | 'normal' // default to 'space-between'
  44. }