-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathindex.d.ts
141 lines (121 loc) · 2.44 KB
/
index.d.ts
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import { Icon } from "lucide-react";
import { string } from "zod";
export type SeoType = {
title: string;
subTitle: string;
absoluteTitle: string;
ogTitle: string;
author: { name: string; twitterUrl: string; twitterAddress: string };
description: string;
keywords: Array<string>;
tags: Array<string>;
};
export type FooterType = {
categories: CategoryType[];
pages: PageType[];
socials: SocialType[];
legals: PageType[];
copyright: string;
};
export type PageType = {
title: string;
slug: string;
};
export type CategoryType = {
id: string;
title: string;
slug: string;
icon: Icon;
};
export type DashBoardType = {
title: string;
slug?: string;
icon: Icon;
};
export type DashBoardPageType = {
title: string;
slug?: string;
initial: string;
};
// Types for comment section
export interface CommentType {
id: number;
slug: string;
title: string;
content: string;
authorId: string;
parentId: number;
createdAt: string;
isPublished: boolean;
updatedAt: string;
author: definitions["profiles"];
isPinned: boolean;
responsesCount: number;
responses: CommentType[];
parent?: CommentType;
live: boolean;
depth: number;
justAuthored?: boolean;
continueThread?: boolean;
highlight?: boolean;
isDeleted: boolean;
isApproved: boolean;
totalChildrenCount?: number;
pageIndex?: number;
path: number[];
votes: number;
upvotes: number;
downvotes: number;
userVoteValue: number;
pathVotesRecent: number[];
pathLeastRecent: number[];
pathMostRecent: number[];
}
export interface User {
handle?: string;
name?: string;
role?: any;
id: string;
image?: string;
}
export type SocialType = {
name: string;
url: string;
icon: Icon;
};
// Page Policy
export type PolicyPageType = {
title: string;
description: string;
paragraphs: ParagraphWithTitle[];
};
// Page Terms
export type TermsPageType = {
title: string;
description: string;
paragraphs: ParagraphWithoutTitle[];
};
// About Page
export type AboutPageType = {
general: AboutGeneralType;
features: AboutFeatureType[];
};
export type AboutGeneralType = {
title: string;
subTitle: string;
description: string;
paragraphs: ParagraphWithOutTitle[];
};
export type AboutFeatureType = {
name: string;
description: string;
icon: Icon;
};
// Shared
export type ParagraphWithTitle = {
title: string;
description: string;
};
export type ParagraphWithoutTitle = {
description: string;
};