-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocks.d.ts
More file actions
71 lines (62 loc) · 1.25 KB
/
Copy pathblocks.d.ts
File metadata and controls
71 lines (62 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import type { SharedCategoryFilter } from './category'
export type BlockType = 'integrations' |
'featured_categories' |
'courtesy_slider' |
'site_supporters' |
'site_patrons' |
'category_filters'
export type BlockPayloadContent = Integration[] |
FeaturedCategory[] |
IndexPageCourtesySlide[] |
SiteSupporter[] |
SitePatron[] |
SharedCategoryFilter[]
export type BlockParams = Integration |
FeaturedCategory |
IndexPageCourtesySlide |
SiteSupporter |
SitePatron |
SharedCategoryFilter
export type Integration = {
title: string;
url: string;
logo: string;
params: {
auth: boolean;
filters: boolean;
purchase: boolean;
download: boolean;
custom_install: boolean;
}
}
export type FeaturedCategory = {
title_en: string;
title_ru: string;
thumbnail: string;
tag: string;
category_slug: string;
}
export type IndexPageCourtesySlide = {
title_en: string;
title_ru: string;
description_en: string;
description_ru: string;
background: string;
courtesy: string;
}
export type SiteSupporter = {
title: string;
logo: string;
url: string;
}
export type SitePatron = {
title: string;
level: string;
}
export type DynamicBlock<T> = {
id: number;
type: BlockType;
content: T[];
created_at: string;
updated_at: string;
}