• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * @file Describe the file
3 * Copyright (c) 2023 Huawei Device Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17import { Constants } from '../Constants';
18
19/**
20 * the const of table Calendars
21 *
22 * @since 2022-09-08
23 */
24export const CalendarsColumns = {
25  TABLE_NAME: 'Calendars',
26  ID: '_id',
27  ACCOUNT_NAME: 'account_name',
28  ACCOUNT_TYPE: 'account_type',
29  SYNC_ID: '_sync_id',
30  DIRTY: 'dirty',
31  MUTATORS: 'mutators',
32  NAME: 'name',
33  CALENDAR_DISPLAY_NAME: 'calendar_displayName',
34  CALENDAR_COLOR: 'calendar_color',
35  CALENDAR_COLOR_INDEX: 'calendar_color_index',
36  CALENDAR_ACCESS_LEVEL: 'calendar_access_level',
37  VISIBLE: 'visible',
38  SYNC_EVENTS: 'sync_events',
39  CALENDAR_LOCATION: 'calendar_location',
40  CALENDAR_TIMEZONE: 'calendar_timezone',
41  OWNER_ACCOUNT: 'ownerAccount',
42  IS_PRIMARY: 'isPrimary',
43  CAN_ORGANIZER_RESPOND: 'canOrganizerRespond',
44  CAN_MODIFY_TIMEZONE: 'canModifyTimeZone',
45  CAN_PARTIALLY_UPDATE: 'canPartiallyUpdate',
46  MAX_REMINDERS: 'maxReminders',
47  ALLOWED_REMINDERS: 'allowedReminders',
48  ALLOWED_AVAILABILITY: 'allowedAvailability',
49  ALLOWED_ATTENDEE_TYPES: 'allowedAttendeeTypes',
50  DELETED: 'deleted',
51  CALENDAR_TIME_STAMP: 'calendar_time_stamp',
52  CAL_SYNC1: 'cal_sync1',
53  CAL_SYNC2: 'cal_sync2',
54  CAL_SYNC3: 'cal_sync3',
55  CAL_SYNC4: 'cal_sync4',
56  CAL_SYNC5: 'cal_sync5',
57  CAL_SYNC6: 'cal_sync6',
58  CAL_SYNC7: 'cal_sync7',
59  CAL_SYNC8: 'cal_sync8',
60  CAL_SYNC9: 'cal_sync9',
61  CAL_SYNC10: 'cal_sync10',
62  CAN_REMINDER: 'canReminder',
63  CREATOR: Constants.CREATOR,
64}
65
66export const APP_NAME = {
67  CALENDARDATA: 'calendardata',
68}
69
70export const DEFAULT_CALENDAR_VALUE = {
71  '_id': 1,
72  'account_name': 'phone',
73  'account_type': 'com.calendardata.phone',
74  'creator': APP_NAME.CALENDARDATA,
75}