custom-markup-data.model.ts 840 Bytes
Newer Older
Chocobozzz's avatar
Chocobozzz committed
1
2
3
4
5
6
7
8
export type EmbedMarkupData = {
  // Video or playlist uuid
  uuid: string
}

export type VideoMiniatureMarkupData = {
  // Video uuid
  uuid: string
9
10

  onlyDisplayTitle?: string // boolean
Chocobozzz's avatar
Chocobozzz committed
11
12
13
14
15
16
17
18
19
20
21
22
23
}

export type PlaylistMiniatureMarkupData = {
  // Playlist uuid
  uuid: string
}

export type ChannelMiniatureMarkupData = {
  // Channel name (username)
  name: string
}

export type VideosListMarkupData = {
24
25
26
27
28
29
30
31
32
  onlyDisplayTitle?: string // boolean

  sort?: string
  count?: string

  categoryOneOf?: string // coma separated values
  languageOneOf?: string // coma separated values

  onlyLocal?: string // boolean
Chocobozzz's avatar
Chocobozzz committed
33
}
34
35
36
37
38

export type ButtonMarkupData = {
  theme: 'primary' | 'secondary'
  href: string
  label: string
39
  blankTarget?: string // boolean
40
}
41
42
43
44
45
46

export type ContainerMarkupData = {
  width?: string
  title?: string
  description?: string
}