simple_notion/
non_magic.rs1pub mod notion {
2 pub const NOTION_JSON_RESULTS: &str = "results";
3 pub const NOTION_JSON_PROPERTIES: &str = "properties";
4
5 pub const NOTION_TYPE_TITLE: &str = "title";
6 pub const NOTION_TYPE_FILES: &str = "files";
7 pub const NOTION_TYPE_SELECT: &str = "select";
8 pub const NOTION_TYPE_MULTI_SELECT: &str = "multi_select";
9 pub const NOTION_TYPE_NUMBER: &str = "number";
10 pub const NOTION_TYPE_CHECKBOX: &str = "checkbox";
11 pub const NOTION_TYPE_URL: &str = "url";
12 pub const NOTION_TYPE_EMAIL: &str = "email";
13 pub const NOTION_TYPE_STATUS: &str = "status";
14 pub const NOTION_TYPE_PEOPLE: &str = "people";
15 pub const NOTION_TYPE_CREATED_BY: &str = "created_by";
16 pub const NOTION_TYPE_FORMULA: &str = "formula";
17 pub const NOTION_TYPE_PHONE_NUMBER: &str = "phone_number";
18 pub const NOTION_TYPE_RELATION: &str = "relation";
19 pub const NOTION_TYPE_DATE: &str = "date";
20 pub const NOTION_TYPE_ROLLUP: &str = "rollup";
21 pub const NOTION_TYPE_CREATED_TIME: &str = "created_time";
22 pub const NOTION_TYPE_LAST_EDITED_TIME: &str = "last_edited_time";
23 pub const NOTION_TYPE_LAST_EDITED_BY: &str = "last_edited_by";
24
25 pub const NOTION_KEYWORD_ID: &str = "id";
26 pub const NOTION_KEYWORD_NAME: &str = "name";
27 pub const NOTION_KEYWORD_TEXT: &str = "text";
28 pub const NOTION_KEYWORD_CONTENT: &str = "content";
29 pub const NOTION_KEYWORD_FILE: &str = "file";
30 pub const NOTION_KEYWORD_URL: &str = "url";
31 pub const NOTION_KEYWORD_EXTERNAL: &str = "external";
32
33 pub const NOTION_KEYWORD_START: &str = "start";
34 pub const NOTION_KEYWORD_END: &str = "end";
35 pub const NOTION_KEYWORD_TIME_ZONE: &str = "time_zone";
36 pub const NOTION_KEYWORD_ARRAY: &str = "array";
37
38 pub const NOTION_API_VERSION_HEADER: &str = "Notion-Version";
39 pub const NOTION_API_VERSION_VALUE: &str = "2022-06-28";
40
41 pub const NOTION_API_DATABASE_START_URL: &str = "https://api.notion.com/v1/databases/";
42 pub const NOTION_API_DATABASE_END_URL: &str = "/query";
43}