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 CalendarsColumnsType {
200fbfc30aSopenharmony_ci  TABLE_NAME: string;
210fbfc30aSopenharmony_ci  ID: string;
220fbfc30aSopenharmony_ci  ACCOUNT_NAME: string;
230fbfc30aSopenharmony_ci  ACCOUNT_TYPE: string;
240fbfc30aSopenharmony_ci  SYNC_ID: string;
250fbfc30aSopenharmony_ci  DIRTY: string;
260fbfc30aSopenharmony_ci  MUTATORS: string;
270fbfc30aSopenharmony_ci  NAME: string;
280fbfc30aSopenharmony_ci  CALENDAR_DISPLAY_NAME: string;
290fbfc30aSopenharmony_ci  CALENDAR_COLOR: string;
300fbfc30aSopenharmony_ci  CALENDAR_COLOR_INDEX: string;
310fbfc30aSopenharmony_ci  CALENDAR_ACCESS_LEVEL: string;
320fbfc30aSopenharmony_ci  VISIBLE: string;
330fbfc30aSopenharmony_ci  SYNC_EVENTS: string;
340fbfc30aSopenharmony_ci  CALENDAR_LOCATION: string;
350fbfc30aSopenharmony_ci  CALENDAR_TIMEZONE: string;
360fbfc30aSopenharmony_ci  OWNER_ACCOUNT: string;
370fbfc30aSopenharmony_ci  IS_PRIMARY: string;
380fbfc30aSopenharmony_ci  CAN_ORGANIZER_RESPOND: string;
390fbfc30aSopenharmony_ci  CAN_MODIFY_TIMEZONE: string;
400fbfc30aSopenharmony_ci  CAN_PARTIALLY_UPDATE: string;
410fbfc30aSopenharmony_ci  MAX_REMINDERS: string;
420fbfc30aSopenharmony_ci  ALLOWED_REMINDERS: string;
430fbfc30aSopenharmony_ci  ALLOWED_AVAILABILITY: string;
440fbfc30aSopenharmony_ci  ALLOWED_ATTENDEE_TYPES: string;
450fbfc30aSopenharmony_ci  DELETED: string;
460fbfc30aSopenharmony_ci  CALENDAR_TIME_STAMP: string;
470fbfc30aSopenharmony_ci  CAL_SYNC1: string;
480fbfc30aSopenharmony_ci  CAL_SYNC2: string;
490fbfc30aSopenharmony_ci  CAL_SYNC3: string;
500fbfc30aSopenharmony_ci  CAL_SYNC4: string;
510fbfc30aSopenharmony_ci  CAL_SYNC5: string;
520fbfc30aSopenharmony_ci  CAL_SYNC6: string;
530fbfc30aSopenharmony_ci  CAL_SYNC7: string;
540fbfc30aSopenharmony_ci  CAL_SYNC8: string;
550fbfc30aSopenharmony_ci  CAL_SYNC9: string;
560fbfc30aSopenharmony_ci  CAL_SYNC10: string;
570fbfc30aSopenharmony_ci  CAN_REMINDER: string;
580fbfc30aSopenharmony_ci  CREATOR: string;
590fbfc30aSopenharmony_ci}
600fbfc30aSopenharmony_ci
610fbfc30aSopenharmony_ci/**
620fbfc30aSopenharmony_ci * the const of table Calendars
630fbfc30aSopenharmony_ci *
640fbfc30aSopenharmony_ci * @since 2022-09-08
650fbfc30aSopenharmony_ci */
660fbfc30aSopenharmony_ciexport enum CalendarsColumns {
670fbfc30aSopenharmony_ci  TABLE_NAME = 'Calendars',
680fbfc30aSopenharmony_ci
690fbfc30aSopenharmony_ci  ID = '_id',
700fbfc30aSopenharmony_ci
710fbfc30aSopenharmony_ci  ACCOUNT_NAME = 'account_name',
720fbfc30aSopenharmony_ci
730fbfc30aSopenharmony_ci  ACCOUNT_TYPE = 'account_type',
740fbfc30aSopenharmony_ci
750fbfc30aSopenharmony_ci  D_SIDE_ACCOUNT_TYPE = 'd_side_account_type',
760fbfc30aSopenharmony_ci
770fbfc30aSopenharmony_ci  SYNC_ID = '_sync_id',
780fbfc30aSopenharmony_ci
790fbfc30aSopenharmony_ci  DIRTY = 'dirty',
800fbfc30aSopenharmony_ci
810fbfc30aSopenharmony_ci  MUTATORS = 'mutators',
820fbfc30aSopenharmony_ci
830fbfc30aSopenharmony_ci  NAME = 'name',
840fbfc30aSopenharmony_ci
850fbfc30aSopenharmony_ci  CALENDAR_DISPLAY_NAME = 'calendar_displayName',
860fbfc30aSopenharmony_ci
870fbfc30aSopenharmony_ci  CALENDAR_COLOR = 'calendar_color',
880fbfc30aSopenharmony_ci
890fbfc30aSopenharmony_ci  CALENDAR_COLOR_INDEX = 'calendar_color_index',
900fbfc30aSopenharmony_ci
910fbfc30aSopenharmony_ci  CALENDAR_ACCESS_LEVEL = 'calendar_access_level',
920fbfc30aSopenharmony_ci
930fbfc30aSopenharmony_ci  VISIBLE = 'visible',
940fbfc30aSopenharmony_ci
950fbfc30aSopenharmony_ci  SYNC_EVENTS = 'sync_events',
960fbfc30aSopenharmony_ci
970fbfc30aSopenharmony_ci  CALENDAR_LOCATION = 'calendar_location',
980fbfc30aSopenharmony_ci
990fbfc30aSopenharmony_ci  CALENDAR_TIMEZONE = 'calendar_timezone',
1000fbfc30aSopenharmony_ci
1010fbfc30aSopenharmony_ci  OWNER_ACCOUNT = 'ownerAccount',
1020fbfc30aSopenharmony_ci
1030fbfc30aSopenharmony_ci  IS_PRIMARY = 'isPrimary',
1040fbfc30aSopenharmony_ci
1050fbfc30aSopenharmony_ci  CAN_ORGANIZER_RESPOND = 'canOrganizerRespond',
1060fbfc30aSopenharmony_ci
1070fbfc30aSopenharmony_ci  CAN_MODIFY_TIMEZONE = 'canModifyTimeZone',
1080fbfc30aSopenharmony_ci
1090fbfc30aSopenharmony_ci  CAN_PARTIALLY_UPDATE = 'canPartiallyUpdate',
1100fbfc30aSopenharmony_ci
1110fbfc30aSopenharmony_ci  MAX_REMINDERS = 'maxReminders',
1120fbfc30aSopenharmony_ci
1130fbfc30aSopenharmony_ci  ALLOWED_REMINDERS = 'allowedReminders',
1140fbfc30aSopenharmony_ci
1150fbfc30aSopenharmony_ci  ALLOWED_AVAILABILITY = 'allowedAvailability',
1160fbfc30aSopenharmony_ci
1170fbfc30aSopenharmony_ci  ALLOWED_ATTENDEE_TYPES = 'allowedAttendeeTypes',
1180fbfc30aSopenharmony_ci
1190fbfc30aSopenharmony_ci  DELETED = 'deleted',
1200fbfc30aSopenharmony_ci
1210fbfc30aSopenharmony_ci  CALENDAR_TIME_STAMP = 'calendar_time_stamp',
1220fbfc30aSopenharmony_ci
1230fbfc30aSopenharmony_ci  CAL_SYNC1 = 'cal_sync1',
1240fbfc30aSopenharmony_ci
1250fbfc30aSopenharmony_ci  CAL_SYNC2 = 'cal_sync2',
1260fbfc30aSopenharmony_ci
1270fbfc30aSopenharmony_ci  CAL_SYNC3 = 'cal_sync3',
1280fbfc30aSopenharmony_ci
1290fbfc30aSopenharmony_ci  CAL_SYNC4 = 'cal_sync4',
1300fbfc30aSopenharmony_ci
1310fbfc30aSopenharmony_ci  CAL_SYNC5 = 'cal_sync5',
1320fbfc30aSopenharmony_ci
1330fbfc30aSopenharmony_ci  CAL_SYNC6 = 'cal_sync6',
1340fbfc30aSopenharmony_ci
1350fbfc30aSopenharmony_ci  CAL_SYNC7 = 'cal_sync7',
1360fbfc30aSopenharmony_ci
1370fbfc30aSopenharmony_ci  CAL_SYNC8 = 'cal_sync8',
1380fbfc30aSopenharmony_ci
1390fbfc30aSopenharmony_ci  CAL_SYNC9 = 'cal_sync9',
1400fbfc30aSopenharmony_ci
1410fbfc30aSopenharmony_ci  CAL_SYNC10 = 'cal_sync10',
1420fbfc30aSopenharmony_ci
1430fbfc30aSopenharmony_ci  CAN_REMINDER = 'canReminder',
1440fbfc30aSopenharmony_ci
1450fbfc30aSopenharmony_ci  CREATOR = 'creator',
1460fbfc30aSopenharmony_ci}
1470fbfc30aSopenharmony_ci
1480fbfc30aSopenharmony_ciexport enum AppName {
1490fbfc30aSopenharmony_ci  CALENDARDATA = 'com.huawei.hmos.calendardata',
1500fbfc30aSopenharmony_ci}
1510fbfc30aSopenharmony_ci
1520fbfc30aSopenharmony_ciexport const DEFAULT_CALENDAR_VALUE: Record<string, number | string> = {
1530fbfc30aSopenharmony_ci  '_id': 1,
1540fbfc30aSopenharmony_ci  'account_name': 'phone',
1550fbfc30aSopenharmony_ci  'account_type': 'local',
1560fbfc30aSopenharmony_ci  'creator': AppName.CALENDARDATA,
1570fbfc30aSopenharmony_ci}