-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
Copy pathpages.d.ts
71 lines (62 loc) · 1.69 KB
/
pages.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
import { TLogoProps } from "./common";
import { EPageAccess } from "./enums";
export type TPage = {
access: EPageAccess | undefined;
anchor?: string | null | undefined;
archived_at: string | null | undefined;
color: string | undefined;
created_at: Date | undefined;
created_by: string | undefined;
description_html: string | undefined;
id: string | undefined;
is_favorite: boolean;
is_locked: boolean;
label_ids: string[] | undefined;
name: string | undefined;
owned_by: string | undefined;
project_ids: string[] | undefined;
updated_at: Date | undefined;
updated_by: string | undefined;
workspace: string | undefined;
logo_props: TLogoProps | undefined;
};
// page filters
export type TPageNavigationTabs = "public" | "private" | "archived";
export type TPageFiltersSortKey =
| "name"
| "created_at"
| "updated_at"
| "opened_at";
export type TPageFiltersSortBy = "asc" | "desc";
export type TPageFilterProps = {
created_at?: string[] | null;
created_by?: string[] | null;
favorites?: boolean;
labels?: string[] | null;
};
export type TPageFilters = {
searchQuery: string;
sortKey: TPageFiltersSortKey;
sortBy: TPageFiltersSortBy;
filters?: TPageFilterProps;
};
export type TPageEmbedType = "mention" | "issue";
export type TEditorVersion = {
created_at: string;
created_by: string;
deleted_at: string | null;
description_binary?: string | null;
description_html?: string | null;
description_json?: object;
id: string;
last_saved_at: string;
owned_by: string;
updated_at: string;
updated_by: string;
workspace: string;
}
export type TDocumentPayload = {
description_binary: string;
description_html: string;
description: object;
}