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 Events 21 * 22 * @since 2022-05-28 23 */ 24export const EventColumns = { 25 TABLE_NAME: 'Events', 26 ID: '_id', 27 SYNC_ID: '_sync_id', 28 DIRTY: 'dirty', 29 MUTATORS: 'mutators', 30 EVENT_CALENDAR_TYPE: 'event_calendar_type', 31 EVENT_IMAGE_TYPE: 'event_image_type', 32 LAST_SYNCED: 'lastSynced', 33 CALENDAR_ID: 'calendar_id', 34 TITLE: 'title', 35 EVENT_LOCATION: 'eventLocation', 36 LOCATION_LONGITUDE: 'location_longitude', 37 LOCATION_LATITUDE: 'location_latitude', 38 DESCRIPTION: 'description', 39 EVENT_COLOR: 'eventColor', 40 EVENT_COLOR_INDEX: 'eventColor_index', 41 EVENT_STATUS: 'eventStatus', 42 SELF_ATTENDEE_STATUS: 'selfAttendeeStatus', 43 DTSTART: 'dtstart', 44 DTEND: 'dtend', 45 EVENT_TIMEZONE: 'eventTimezone', 46 DURATION: 'duration', 47 ALLDAY: 'allDay', 48 ACCESS_LEVEL: 'accessLevel', 49 AVAILABILITY: 'availability', 50 HAS_ALARM: 'hasAlarm', 51 HAS_EXTENDED_PROPERTIES: 'hasExtendedProperties', 52 RRULE: 'rrule', 53 RDATE: 'rdate', 54 EXRULE: 'exrule', 55 EXDATE: 'exdate', 56 ORIGINAL_ID: 'original_id', 57 ORIGINAL_SYNC_ID: 'original_sync_id', 58 ORIGINAL_INSTANCE_TIME: 'originalInstanceTime', 59 ORIGINAL_ALL_DAY: 'originalAllDay', 60 LAST_DATE: 'lastDate', 61 EVENT_TIME_STAMP: 'event_time_stamp', 62 HAS_ATTENDEE_DATE: 'hasAttendeeData', 63 GUESTS_CAN_MODIFY: 'guestsCanModify', 64 GUESTS_CAN_INVITE_OTHERS: 'guestsCanInviteOthers', 65 GUESTS_CAN_SEE_GUESTS: 'guestsCanSeeGuests', 66 ORGANIZER: 'organizer', 67 IS_ORGANIZER: 'isOrganizer', 68 DELETED: 'deleted', 69 EVENT_END_TIMEZONE: 'eventEndTimezone', 70 CUSTOM_APP_PACKAGE: 'customAppPackage', 71 CUSTOM_APP_URI: 'customAppUri', 72 UID2445: 'uid2445', 73 VERSION: 'version', 74 EVENT_UUID: 'event_uuid', 75 HWEXT_ALERT_TYPE: 'hwext_alert_type', 76 IMPORTANT_EVENT_TYPE: 'important_event_type', 77 SYNC_DATA1: 'sync_data1', 78 SYNC_DATA2: 'sync_data2', 79 SYNC_DATA3: 'sync_data3', 80 SYNC_DATA4: 'sync_data4', 81 SYNC_DATA5: 'sync_data5', 82 SYNC_DATA6: 'sync_data6', 83 SYNC_DATA7: 'sync_data7', 84 SYNC_DATA8: 'sync_data8', 85 SYNC_DATA9: 'sync_data9', 86 SYNC_DATA10: 'sync_data10', 87 KV_SYNC: 'kv_synced', 88 KV_SYNC_TIME: 'kv_sync_time', 89 CREATOR: Constants.CREATOR, 90} 91 92/** 93 * searchable Columns in Events table 94 */ 95export const SEARCH_COLUMNS = [EventColumns.TITLE, EventColumns.DESCRIPTION, EventColumns.EVENT_LOCATION]; 96 97export const UPDATE_INSTANCES_COLUMNS = [EventColumns.DTSTART, EventColumns.DTEND, EventColumns.DURATION, 98EventColumns.EVENT_TIMEZONE, EventColumns.RRULE, EventColumns.RDATE, EventColumns.EXRULE, EventColumns.EXDATE];