forked from jomei/notionapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
166 lines (149 loc) · 5.89 KB
/
const.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
package notionapi
const (
ObjectTypeDatabase ObjectType = "database"
ObjectTypeBlock ObjectType = "block"
ObjectTypePage ObjectType = "page"
ObjectTypeList ObjectType = "list"
ObjectTypeText ObjectType = "text"
ObjectTypeUser ObjectType = "user"
ObjectTypeError ObjectType = "error"
)
const (
PropertyTypeTitle PropertyType = "title"
PropertyTypeRichText PropertyType = "rich_text"
PropertyTypeSelect PropertyType = "select"
PropertyTypeMultiSelect PropertyType = "multi_select"
PropertyTypeNumber PropertyType = "number"
PropertyTypeCheckbox PropertyType = "checkbox"
PropertyTypeEmail PropertyType = "email"
PropertyTypeURL PropertyType = "url"
PropertyTypeFile PropertyType = "file"
PropertyTypePhoneNumber PropertyType = "phone_number"
PropertyTypeFormula PropertyType = "formula"
PropertyTypeDate PropertyType = "date"
PropertyTypeRelation PropertyType = "relation"
PropertyTypeRollup PropertyType = "rollup"
PropertyTypePeople PropertyType = "people"
PropertyTypeCreatedTime PropertyType = "created_time"
PropertyTypeCreatedBy PropertyType = "created_by"
PropertyTypeLastEditedTime PropertyType = "last_edited_time"
PropertyTypeLastEditedBy PropertyType = "last_edited_by"
)
const (
FormatNumber FormatType = "number"
FormatNumberWithCommas FormatType = "number_with_commas"
FormatPercent FormatType = "percent"
FormatDollar FormatType = "dollar"
FormatEuro FormatType = "euro"
FormatPound FormatType = "pound"
FormatYen FormatType = "yen"
FormatRuble FormatType = "ruble"
FormatRupee FormatType = "rupee"
FormatYuan FormatType = "yuan"
FormatHongKongDollar FormatType = "hong_kong_dollar"
FormatNewZealandDollar FormatType = "hong_kong_dollar"
FormatKrona FormatType = "krona"
FormatNorwegianKrone FormatType = "norwegian_krone"
FormatMexicanPeso FormatType = "mexican_peso"
FormatRand FormatType = "rand"
FormatNewTaiwanDollar FormatType = "new_taiwan_dollar"
FormatDanishKrone FormatType = "danish_krone"
FormatZloty FormatType = "zloty"
FormatBath FormatType = "baht"
FormatForint FormatType = "forint"
FormatKoruna FormatType = "koruna"
FormatShekel FormatType = "shekel"
FormatChileanPeso FormatType = "chilean_peso"
FormatPhilippinePeso FormatType = "philippine_peso"
FormatDirham FormatType = "dirham"
FormatColombianPeso FormatType = "colombian_peso"
FormatRiyal FormatType = "riyal"
FormatRinggit FormatType = "ringgit"
FormatLeu FormatType = "leu"
)
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"
)
const (
FilterOperatorAND FilterOperator = "and"
FilterOperatorOR FilterOperator = "or"
)
const (
FunctionCountAll FunctionType = "count_all"
FunctionCountValues FunctionType = "count_values"
FunctionCountUniqueValues FunctionType = "count_unique_values"
FunctionCountEmpty FunctionType = "count_empty"
FunctionCountNotEmpty FunctionType = "count_not_empty"
FunctionPercentEmpty FunctionType = "percent_empty"
FunctionPercentNotEmpty FunctionType = "percent_not_empty"
FunctionSum FunctionType = "sum"
FunctionAverage FunctionType = "average"
FunctionMedian FunctionType = "median"
FunctionMin FunctionType = "min"
FunctionMax FunctionType = "max"
FunctionRange FunctionType = "range"
)
const (
ConditionEquals Condition = "equals"
ConditionDoesNotEqual Condition = "does_not_equal"
ConditionContains Condition = "contains"
ConditionDoesNotContain Condition = "does_not_contain"
ConditionDoesStartsWith Condition = "starts_with"
ConditionDoesEndsWith Condition = "ends_with"
ConditionDoesIsEmpty Condition = "is_empty"
ConditionGreaterThan Condition = "greater_than"
ConditionLessThan Condition = "less_than"
ConditionGreaterThanOrEqualTo Condition = "greater_than_or_equal_to"
ConditionLessThanOrEqualTo Condition = "greater_than_or_equal_to"
ConditionBefore Condition = "before"
ConditionAfter Condition = "after"
ConditionOnOrBefore Condition = "on_or_before"
ConditionOnOrAfter Condition = "on_or_after"
ConditionPastWeek Condition = "past_week"
ConditionPastMonth Condition = "past_month"
ConditionPastYear Condition = "past_year"
ConditionNextWeek Condition = "next_week"
ConditionNextMonth Condition = "next_month"
ConditionNextYear Condition = "next_year"
ConditionText Condition = "text"
ConditionCheckbox Condition = "checkbox"
ConditionNumber Condition = "number"
ConditionDate Condition = "date"
)
const (
TimestampCreated TimestampType = "created_time"
TimestampLastEdited TimestampType = "last_edited_time"
)
const (
SortOrderASC SortOrder = "ascending"
SortOrderDESC SortOrder = "descending"
)
const (
ParentTypeDatabaseID ParentType = "database_id"
ParentTypePageID ParentType = "page_id"
)
const (
UserTypePerson UserType = "person"
UserTypeBot UserType = "bot"
)
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"
)