forked from JulyFaraway/GAS-Notion-GCal-Todoist-Sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrobal_variables.gs
45 lines (40 loc) · 1.17 KB
/
grobal_variables.gs
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
// 使用するタスクデータベースのプロパティ名を、使うデータベースに合わせて書き換えること。
const TASK_DB = {
dbName: 'Task DB',
taskTitle: 'Name',
deadline: 'Deadline',
description: 'description',
staff: 'Assign',
doneFlag: 'Done',
gcalUpdatedTime: '_GCal Last Updated Time',
gcalEventId: '_GCal Event Id',
gcalCalendarId: 'Calendar',
needUpdateFlag: '_needGCalUpdate', // checkbox
}
const GCAL_DB = {
dbName: 'Calendar DB',
calendarList: 'GCal ID'
}
// Notion API Properties
const NOTION_API_TOKEN_PROPERTY = 'NOTION_API_TOKEN';
const NOTION_API_VERSION = '2021-05-13';
const NOTION_FILTER_CONDITION = {
equals: 'equals',
does_not_equal: 'does_not_equal',
contains: 'contains',
does_not_contain: 'does_not_contain',
starts_with: 'starts_with',
ends_with: 'ends_with',
is_empty: 'is_empty',
is_not_empty: 'is_not_empty'
}
const NOTION_FILTER_TYPE = {
text: 'text',
number: 'number',
checkbox: 'checkbox',
select: 'select',
multi_select: 'multi_select',
date: 'date',
relation: 'relation',
rich_text: 'text' // richtextプロパティを検索する場合も、フィルターはtextになる
}