forked from kjk/notionapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
59 lines (54 loc) · 1.68 KB
/
constants.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
package notionapi
const (
// PermissionTypeUser describes permissions for a user
PermissionTypeUser = "user_permission"
// PermissionTypePublic describes permissions for public
PermissionTypePublic = "public_permission"
)
// for Schema.Type
const (
ColumnTypeCheckbox = "checkbox"
ColumnTypeCreatedBy = "created_by"
ColumnTypeCreatedTime = "created_time"
ColumnTypeDate = "date"
ColumnTypeEmail = "email"
ColumnTypeFile = "file"
ColumnTypeFormula = "formula"
ColumnTypeLastEditedBy = "last_edited_by"
ColumnTypeLastEditedTime = "last_edited_time"
ColumnTypeMultiSelect = "multi_select"
ColumnTypeNumber = "number"
ColumnTypePerson = "person"
ColumnTypePhoneNumber = "phone_number"
ColumnTypeRelation = "relation"
ColumnTypeRollup = "rollup"
ColumnTypeSelect = "select"
ColumnTypeText = "text"
ColumnTypeTitle = "title"
ColumnTypeURL = "url"
)
const (
// those are Record.Type and determine the type of Record.Value
TableSpace = "space"
TableActivity = "activity"
TableBlock = "block"
TableNotionUser = "notion_user"
TableUserRoot = "user_root"
TableUserSettings = "user_settings"
TableCollection = "collection"
TableCollectionView = "collection_view"
TableComment = "comment"
TableDiscussion = "discussion"
)
const (
// RoleReader represents a reader
RoleReader = "reader"
// RoleEditor represents an editor
RoleEditor = "editor"
)
const (
// DateTypeDate represents a date in Date.Type
DateTypeDate = "date"
// DateTypeDateTime represents a datetime in Date.Type
DateTypeDateTime = "datetime"
)