-
Notifications
You must be signed in to change notification settings - Fork 1
/
consts.go
204 lines (170 loc) · 6.89 KB
/
consts.go
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
package notion
type BlockType string
const (
BlockTypeParagraph BlockType = "paragraph"
BlockTypeHeading1 BlockType = "heading_1"
BlockTypeHeading2 BlockType = "heading_2"
BlockTypeHeading3 BlockType = "heading_3"
BlockTypeBulletedListItem BlockType = "bulleted_list_item"
BlockTypeNumberedListItem BlockType = "numbered_list_item"
BlockTypeToDo BlockType = "to_do"
BlockTypeToggle BlockType = "toggle"
BlockTypeChildPage BlockType = "child_page"
BlockTypeUnsupported BlockType = "unsupported"
)
type Color string
const (
ColorDefault Color = "default"
ColorGray Color = "gray"
ColorBrown Color = "brown"
ColorOrange Color = "orange"
ColorYellow Color = "yellow"
ColorGreen Color = "green"
ColorBlue Color = "blue"
ColorPurple Color = "purple"
ColorPink Color = "pink"
ColorRed Color = "red"
BackgroundColorGray Color = "gray_background"
BackgroundColorBrown Color = "brown_background"
BackgroundColorOrange Color = "orange_background"
BackgroundColorYellow Color = "yellow_background"
BackgroundColorGreen Color = "green_background"
BackgroundColorBlue Color = "blue_background"
BackgroundColorPurple Color = "purple_background"
BackgroundColorPink Color = "pink_background"
BackgroundColorRed Color = "red_background"
)
type NumberFormat string
const (
NumberFormatNumber NumberFormat = "number"
NumberFormatNumberWithCommas NumberFormat = "number_with_commas"
NumberFormatPercent NumberFormat = "percent"
NumberFormatDollar NumberFormat = "dollar"
NumberFormatEuro NumberFormat = "euro"
NumberFormatPound NumberFormat = "pound"
NumberFormatYen NumberFormat = "yen"
NumberFormatRuble NumberFormat = "ruble"
NumberFormatRupee NumberFormat = "rupee"
NumberFormatWon NumberFormat = "won"
NumberFormatYuan NumberFormat = "yuan"
)
type FormulaValueType string
const (
FormulaValueTypeString FormulaValueType = "string"
FormulaValueTypeNumber FormulaValueType = "number"
FormulaValueTypeBoolean FormulaValueType = "boolean"
FormulaValueTypeDate FormulaValueType = "date"
)
type RollupFunction string
const (
RollupFunctionCountAll RollupFunction = "count_all"
RollupFunctionCountValues RollupFunction = "count_values"
RollupFunctionCountUniqueValues RollupFunction = "count_unique_values"
RollupFunctionCountEmpty RollupFunction = "count_empty"
RollupFunctionCountNotEmpty RollupFunction = "count_not_empty"
RollupFunctionPercentEmpty RollupFunction = "percent_empty"
RollupFunctionPercentNotEmpty RollupFunction = "percent_not_empty"
RollupFunctionSum RollupFunction = "sum"
RollupFunctionAverage RollupFunction = "average"
RollupFunctionMedian RollupFunction = "median"
RollupFunctionMin RollupFunction = "min"
RollupFunctionMax RollupFunction = "max"
RollupFunctionRange RollupFunction = "range"
)
type ObjectType string
const (
ObjectTypeBlock ObjectType = "block"
ObjectTypePage ObjectType = "page"
ObjectTypeDatabase ObjectType = "database"
ObjectTypeList ObjectType = "list"
ObjectTypeUser ObjectType = "user"
)
type ParentType string
const (
ParentTypeDatabase ParentType = "database_id"
ParentTypePage ParentType = "page"
ParentTypeWorkspace ParentType = "workspace"
)
type PropertyType string
const (
PropertyTypeTitle PropertyType = "title"
PropertyTypeRichText PropertyType = "rich_text"
PropertyTypeNumber PropertyType = "number"
PropertyTypeSelect PropertyType = "select"
PropertyTypeMultiSelect PropertyType = "multi_select"
PropertyTypeDate PropertyType = "date"
PropertyTypePeople PropertyType = "people"
PropertyTypeFile PropertyType = "file"
PropertyTypeCheckbox PropertyType = "checkbox"
PropertyTypeURL PropertyType = "url"
PropertyTypeEmail PropertyType = "email"
PropertyTypePhoneNumber PropertyType = "phone_number"
PropertyTypeFormula PropertyType = "formula"
PropertyTypeRelation PropertyType = "relation"
PropertyTypeRollup PropertyType = "rollup"
PropertyTypeCreatedTime PropertyType = "created_time"
PropertyTypeCreatedBy PropertyType = "created_by"
PropertyTypeLastEditedTime PropertyType = "last_edited_time"
PropertyTypeLastEditedBy PropertyType = "last_edited_by"
)
type PropertyValueType string
const (
PropertyValueTypeRichText PropertyValueType = "rich_text"
PropertyValueTypeNumber PropertyValueType = "number"
PropertyValueTypeSelect PropertyValueType = "select"
PropertyValueTypeMultiSelect PropertyValueType = "multi_select"
PropertyValueTypeDate PropertyValueType = "date"
PropertyValueTypeFormula PropertyValueType = "formula"
PropertyValueTypeRelation PropertyValueType = "relation"
PropertyValueTypeRollup PropertyValueType = "rollup"
PropertyValueTypeTitle PropertyValueType = "title"
PropertyValueTypePeople PropertyValueType = "people"
PropertyValueTypeFiles PropertyValueType = "files"
PropertyValueTypeCheckbox PropertyValueType = "checkbox"
PropertyValueTypeURL PropertyValueType = "url"
PropertyValueTypeEmail PropertyValueType = "email"
PropertyValueTypePhoneNumber PropertyValueType = "phone_number"
PropertyValueTypeCreatedTime PropertyValueType = "created_time"
PropertyValueTypeCreatedBy PropertyValueType = "created_by"
PropertyValueTypeLastEditedTime PropertyValueType = "last_edited_time"
PropertyValueTypeLastEditedBy PropertyValueType = "last_edited_by"
)
type RichTextType string
const (
RichTextTypeText RichTextType = "text"
RichTextTypeMention RichTextType = "mention"
RichTextTypeEquation RichTextType = "equation"
)
type SearchFilterValue string
const (
SearchFilterValuePage SearchFilterValue = "page"
SearchFilterValueDatabase SearchFilterValue = "database"
)
type SearchFilterProperty string
const (
SearchFilterPropertyObject SearchFilterProperty = "object"
)
type SearchSortDirection string
const (
SearchSortDirectionAscending SearchSortDirection = "ascending"
SearchSortDirectionDescending SearchSortDirection = " descending"
)
type SearchSortTimestamp string
const (
SearchSortTimestampLastEditedTime SearchSortTimestamp = "last_edited_time"
)
type SortTimestamp string
const (
SortTimestampByCreatedTime SortTimestamp = "created_time"
SortTimestampByLastEditedTime SortTimestamp = "last_edited_time"
)
type SortDirection string
const (
SortDirectionAscending SortDirection = "ascending"
SortDirectionDescending SortDirection = "descending"
)
type UserType string
const (
UserTypePerson UserType = "person"
UserTypeBot UserType = "bot"
)