10fbfc30aSopenharmony_ci/**
20fbfc30aSopenharmony_ci * @file Describe the file
30fbfc30aSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
40fbfc30aSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
50fbfc30aSopenharmony_ci * you may not use this file except in compliance with the License.
60fbfc30aSopenharmony_ci * You may obtain a copy of the License at
70fbfc30aSopenharmony_ci *
80fbfc30aSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
90fbfc30aSopenharmony_ci *
100fbfc30aSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
110fbfc30aSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
120fbfc30aSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130fbfc30aSopenharmony_ci * See the License for the specific language governing permissions and
140fbfc30aSopenharmony_ci * limitations under the License.
150fbfc30aSopenharmony_ci */
160fbfc30aSopenharmony_ci
170fbfc30aSopenharmony_ciimport { Constants } from '../Constants';
180fbfc30aSopenharmony_ci
190fbfc30aSopenharmony_ciinterface serviceType {
200fbfc30aSopenharmony_ci  SERVICE_VERIFIED: string;
210fbfc30aSopenharmony_ci  SERVICE_TYPE: string;
220fbfc30aSopenharmony_ci  SERVICE_CP_BZ_URI: string;
230fbfc30aSopenharmony_ci  SERVICE_CP_MNG_URI: string;
240fbfc30aSopenharmony_ci  SERVICE_DESCRIPTION: string;
250fbfc30aSopenharmony_ci  SERVICE_MIN_VERSION: string;
260fbfc30aSopenharmony_ci}
270fbfc30aSopenharmony_ci
280fbfc30aSopenharmony_ci/**
290fbfc30aSopenharmony_ci * the const of table Events
300fbfc30aSopenharmony_ci *
310fbfc30aSopenharmony_ci * @since 2022-05-28
320fbfc30aSopenharmony_ci */
330fbfc30aSopenharmony_ciexport class EventColumns {
340fbfc30aSopenharmony_ci  public static TABLE_NAME = 'Events';
350fbfc30aSopenharmony_ci  public static ID = '_id';
360fbfc30aSopenharmony_ci  public static SYNC_ID = '_sync_id';
370fbfc30aSopenharmony_ci  public static DIRTY = 'dirty';
380fbfc30aSopenharmony_ci  public static MUTATORS = 'mutators';
390fbfc30aSopenharmony_ci  public static EVENT_CALENDAR_TYPE = 'event_calendar_type';
400fbfc30aSopenharmony_ci  public static UUID = 'uuid';
410fbfc30aSopenharmony_ci  public static EVENT_IMAGE_TYPE = 'event_image_type';
420fbfc30aSopenharmony_ci  public static LAST_SYNCED = 'lastSynced';
430fbfc30aSopenharmony_ci  public static CALENDAR_ID = 'calendar_id';
440fbfc30aSopenharmony_ci  public static TITLE = 'title';
450fbfc30aSopenharmony_ci  public static EVENT_LOCATION = 'eventLocation';
460fbfc30aSopenharmony_ci  public static LOCATION_LONGITUDE = 'location_longitude';
470fbfc30aSopenharmony_ci  public static LOCATION_LATITUDE = 'location_latitude';
480fbfc30aSopenharmony_ci  public static DESCRIPTION = 'description';
490fbfc30aSopenharmony_ci  public static EVENT_COLOR = 'eventColor';
500fbfc30aSopenharmony_ci  public static EVENT_COLOR_INDEX = 'eventColor_index';
510fbfc30aSopenharmony_ci  public static EVENT_STATUS = 'eventStatus';
520fbfc30aSopenharmony_ci  public static SELF_ATTENDEE_STATUS = 'selfAttendeeStatus';
530fbfc30aSopenharmony_ci  public static DTSTART = 'dtstart';
540fbfc30aSopenharmony_ci  public static DTEND = 'dtend';
550fbfc30aSopenharmony_ci  public static EVENT_TIMEZONE = 'eventTimezone';
560fbfc30aSopenharmony_ci  public static DURATION = 'duration';
570fbfc30aSopenharmony_ci  public static ALLDAY = 'allDay';
580fbfc30aSopenharmony_ci  public static ACCESS_LEVEL = 'accessLevel';
590fbfc30aSopenharmony_ci  public static AVAILABILITY = 'availability';
600fbfc30aSopenharmony_ci  public static HAS_ALARM = 'hasAlarm';
610fbfc30aSopenharmony_ci  public static HAS_EXTENDED_PROPERTIES = 'hasExtendedProperties';
620fbfc30aSopenharmony_ci  public static RRULE = 'rrule';
630fbfc30aSopenharmony_ci  public static RDATE = 'rdate';
640fbfc30aSopenharmony_ci  public static EXRULE = 'exrule';
650fbfc30aSopenharmony_ci  public static EXDATE = 'exdate';
660fbfc30aSopenharmony_ci  public static ORIGINAL_ID = 'original_id';
670fbfc30aSopenharmony_ci  public static ORIGINAL_SYNC_ID = 'original_sync_id';
680fbfc30aSopenharmony_ci  public static ORIGINAL_INSTANCE_TIME = 'originalInstanceTime';
690fbfc30aSopenharmony_ci  public static ORIGINAL_ALL_DAY = 'originalAllDay';
700fbfc30aSopenharmony_ci  public static LAST_DATE = 'lastDate';
710fbfc30aSopenharmony_ci  public static EVENT_TIME_STAMP = 'event_time_stamp';
720fbfc30aSopenharmony_ci  public static HAS_ATTENDEE_DATE = 'hasAttendeeData';
730fbfc30aSopenharmony_ci  public static GUESTS_CAN_MODIFY = 'guestsCanModify';
740fbfc30aSopenharmony_ci  public static GUESTS_CAN_INVITE_OTHERS = 'guestsCanInviteOthers';
750fbfc30aSopenharmony_ci  public static GUESTS_CAN_SEE_GUESTS = 'guestsCanSeeGuests';
760fbfc30aSopenharmony_ci  public static ORGANIZER = 'organizer';
770fbfc30aSopenharmony_ci  public static IS_ORGANIZER = 'isOrganizer';
780fbfc30aSopenharmony_ci  public static DELETED = 'deleted';
790fbfc30aSopenharmony_ci  public static EVENT_END_TIMEZONE = 'eventEndTimezone';
800fbfc30aSopenharmony_ci  public static CUSTOM_APP_PACKAGE = 'customAppPackage';
810fbfc30aSopenharmony_ci  public static CUSTOM_APP_URI = 'customAppUri';
820fbfc30aSopenharmony_ci  public static UID2445 = 'uid2445';
830fbfc30aSopenharmony_ci  public static VERSION = 'version';
840fbfc30aSopenharmony_ci  public static EVENT_UUID = 'event_uuid';
850fbfc30aSopenharmony_ci  public static HWEXT_ALERT_TYPE = 'hwext_alert_type';
860fbfc30aSopenharmony_ci  public static IMPORTANT_EVENT_TYPE = 'important_event_type';
870fbfc30aSopenharmony_ci  public static SYNC_DATA1 = 'sync_data1';
880fbfc30aSopenharmony_ci  public static SYNC_DATA2 = 'sync_data2';
890fbfc30aSopenharmony_ci  public static SYNC_DATA3 = 'sync_data3';
900fbfc30aSopenharmony_ci  public static SYNC_DATA4 = 'sync_data4';
910fbfc30aSopenharmony_ci  public static SYNC_DATA5 = 'sync_data5';
920fbfc30aSopenharmony_ci  public static SYNC_DATA6 = 'sync_data6';
930fbfc30aSopenharmony_ci  public static SYNC_DATA7 = 'sync_data7';
940fbfc30aSopenharmony_ci  public static SYNC_DATA8 = 'sync_data8';
950fbfc30aSopenharmony_ci  public static SYNC_DATA9 = 'sync_data9';
960fbfc30aSopenharmony_ci  public static SYNC_DATA10 = 'sync_data10';
970fbfc30aSopenharmony_ci  public static KV_SYNC = 'kv_synced';
980fbfc30aSopenharmony_ci  public static KV_SYNC_TIME = 'kv_sync_time';
990fbfc30aSopenharmony_ci  public static CREATOR = Constants.CREATOR;
1000fbfc30aSopenharmony_ci  public static IDENTIFIER = 'identifier';
1010fbfc30aSopenharmony_ci  public static SERVICE: serviceType = {
1020fbfc30aSopenharmony_ci    SERVICE_VERIFIED: 'service_verified', // whether service uri legal, INTEGER
1030fbfc30aSopenharmony_ci    SERVICE_TYPE:  'service_type', // service type of event, TEXT
1040fbfc30aSopenharmony_ci    SERVICE_CP_BZ_URI:  'service_cp_bz_uri', // One click service uri passed in by applications, TEXT
1050fbfc30aSopenharmony_ci    SERVICE_CP_MNG_URI:  'service_cp_mng_uri', // One click service uri for management passed in by applications, TEXT
1060fbfc30aSopenharmony_ci    SERVICE_DESCRIPTION:  'service_description', // service description of event, TEXT
1070fbfc30aSopenharmony_ci    SERVICE_MIN_VERSION:  'service_support_min_version' // Minimum version of one click service, INTEGER
1080fbfc30aSopenharmony_ci  }
1090fbfc30aSopenharmony_ci}
1100fbfc30aSopenharmony_ci
1110fbfc30aSopenharmony_ci/**
1120fbfc30aSopenharmony_ci * searchable Columns in Events table
1130fbfc30aSopenharmony_ci */
1140fbfc30aSopenharmony_ciexport const SEARCH_COLUMNS = [EventColumns.TITLE, EventColumns.DESCRIPTION, EventColumns.EVENT_LOCATION];
1150fbfc30aSopenharmony_ci
1160fbfc30aSopenharmony_ciexport const UPDATE_INSTANCES_COLUMNS = [EventColumns.DTSTART, EventColumns.DTEND, EventColumns.DURATION,
1170fbfc30aSopenharmony_ciEventColumns.EVENT_TIMEZONE, EventColumns.RRULE, EventColumns.RDATE, EventColumns.EXRULE, EventColumns.EXDATE];