forked from seatable/seatable-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
46 lines (40 loc) · 1.11 KB
/
constants.py
File metadata and controls
46 lines (40 loc) · 1.11 KB
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
from enum import Enum, unique
ROW_FILTER_KEYS = ['column_name', 'filter_predicate', 'filter_term', 'filter_term_modifier']
JOIN_ROOM = 'join-room'
UPDATE_DTABLE = 'update-dtable'
NEW_NOTIFICATION = 'new-notification'
##### column operations #####
RENAME_COLUMN = 'rename_column'
RESIZE_COLUMN = 'resize_column'
FREEZE_COLUMN = 'freeze_column'
MOVE_COLUMN = 'move_column'
MODIFY_COLUMN_TYPE = 'modify_column_type'
DELETE_COLUMN = 'delete_column'
##### column types #####
@unique
class ColumnTypes(Enum):
DEFAULT = 'default'
NUMBER = 'number'
TEXT = 'text'
CHECKBOX = 'checkbox'
DATE = 'date'
SINGLE_SELECT = 'single-select'
LONG_TEXT = 'long-text'
IMAGE = 'image'
FILE = 'file'
MULTIPLE_SELECT = 'multiple-select'
COLLABORATOR = 'collaborator'
LINK = 'link'
FORMULA = 'formula'
LINK_FORMULA = 'link-formula'
CREATOR = 'creator'
CTIME = 'ctime'
LAST_MODIFIER = 'last-modifier'
MTIME = 'mtime'
GEOLOCATION = 'geolocation'
AUTO_NUMBER = 'auto-number'
URL = 'url'
EMAIL = 'email'
DURATION = 'duration'
BUTTON = 'button'
RATE = 'rate'