• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import { AsyncCallback } from './@ohos.base';
17import type Context from './application/Context';
18
19/**
20 * This provides calendar data access abilities.
21 * @namespace calendarManager
22 * @syscap SystemCapability.Applications.CalendarData
23 * @since 10
24 */
25declare namespace calendarManager {
26  /**
27   * Returns an instance of CalendarManager
28   *
29   * @param { Context } context - Hap context information
30   * @returns { CalendarManager } Instance of CalendarManager
31   * @syscap SystemCapability.Applications.CalendarData
32   * @StageModelOnly
33   * @since 10
34   */
35  function getCalendarManager(context: Context) : CalendarManager;
36
37  /**
38   * Defines the CalendarManager class and provides functions to access the calendar data.
39   *
40   * @interface CalendarManager
41   * @syscap SystemCapability.Applications.CalendarData
42   * @since 10
43   */
44  export interface CalendarManager {
45    /**
46     * Create calendar instance.
47     * @permission ohos.permission.WRITE_CALENDAR or ohos.permission.WRITE_WHOLE_CALENDAR
48     * @param { CalendarAccount } calendarAccount - calendar account to create calendar
49     * @returns { Promise<Calendar> } the promise with calendar corresponding to account
50     * @throws { BusinessError } 201 - Permission denied.
51     * @throws { BusinessError } 401 - The parameter check failed.
52     * @throws { BusinessError } 801 - Capability not supported.
53     * @syscap SystemCapability.Applications.CalendarData
54     * @since 10
55     */
56    createCalendar(calendarAccount: CalendarAccount): Promise<Calendar>;
57
58    /**
59     * Create calendar instance.
60     *
61     * @permission ohos.permission.WRITE_CALENDAR or ohos.permission.WRITE_WHOLE_CALENDAR
62     * @param { CalendarAccount } calendarAccount - calendar account to create calendar
63     * @param { AsyncCallback<Calendar> } callback - the callback of createCalendar
64     * @throws { BusinessError } 201 - Permission denied.
65     * @throws { BusinessError } 401 - The parameter check failed.
66     * @throws { BusinessError } 801 - Capability not supported.
67     * @syscap SystemCapability.Applications.CalendarData
68     * @since 10
69     */
70    createCalendar(calendarAccount: CalendarAccount, callback: AsyncCallback<Calendar>): void;
71
72    /**
73     * Delete calendar instance.
74     *
75     * @permission ohos.permission.WRITE_CALENDAR or ohos.permission.WRITE_WHOLE_CALENDAR
76     * @param { Calendar } calendar - calendar to be deleted
77     * @returns { Promise<void> } the promise returned by the function.
78     * @throws { BusinessError } 201 - Permission denied.
79     * @throws { BusinessError } 401 - The parameter check failed.
80     * @throws { BusinessError } 801 - Capability not supported.
81     * @syscap SystemCapability.Applications.CalendarData
82     * @since 10
83     */
84    deleteCalendar(calendar: Calendar): Promise<void>;
85
86    /**
87     * Delete calendar instance.
88     *
89     * @permission ohos.permission.WRITE_CALENDAR or ohos.permission.WRITE_WHOLE_CALENDAR
90     * @param { Calendar } calendar - calendar to be deleted
91     * @param { AsyncCallback<void> } callback - the callback of deleteCalendar
92     * @throws { BusinessError } 201 - Permission denied.
93     * @throws { BusinessError } 401 - The parameter check failed.
94     * @throws { BusinessError } 801 - Capability not supported.
95     * @syscap SystemCapability.Applications.CalendarData
96     * @since 10
97     */
98    deleteCalendar(calendar: Calendar, callback: AsyncCallback<void>): void;
99
100    /**
101     * Get calendar instance from database.
102     *
103     * @permission ohos.permission.READ_CALENDAR or ohos.permission.READ_WHOLE_CALENDAR
104     * @param { CalendarAccount } calendarAccount - specify calendar account to retrieve
105     * @returns { Promise<Calendar> } the promise returned by the function.
106     * @throws { BusinessError } 201 - Permission denied.
107     * @throws { BusinessError } 401 - The parameter check failed.
108     * @throws { BusinessError } 801 - Capability not supported.
109     * @syscap SystemCapability.Applications.CalendarData
110     * @since 10
111     */
112    getCalendar(calendarAccount?: CalendarAccount): Promise<Calendar>;
113
114    /**
115     * Get calendar instance from database by specified account.
116     *
117     * @permission ohos.permission.READ_CALENDAR or ohos.permission.READ_WHOLE_CALENDAR
118     * @param { CalendarAccount } calendarAccount - specify calendar account to retrieve
119     * @param { AsyncCallback<Calendar> } callback - the callback of getCalendar
120     * @throws { BusinessError } 201 - Permission denied.
121     * @throws { BusinessError } 401 - The parameter check failed.
122     * @throws { BusinessError } 801 - Capability not supported.
123     * @syscap SystemCapability.Applications.CalendarData
124     * @since 10
125     */
126    getCalendar(calendarAccount: CalendarAccount, callback: AsyncCallback<Calendar>): void;
127
128    /**
129     * Get default calendar instance from database.
130     *
131     * @permission ohos.permission.READ_CALENDAR or ohos.permission.READ_WHOLE_CALENDAR
132     * @param { AsyncCallback<Calendar> } callback - the callback of getCalendar with default calendar instance
133     * @throws { BusinessError } 201 - Permission denied.
134     * @throws { BusinessError } 401 - The parameter check failed.
135     * @throws { BusinessError } 801 - Capability not supported.
136     * @syscap SystemCapability.Applications.CalendarData
137     * @since 10
138     */
139    getCalendar(callback: AsyncCallback<Calendar>): void;
140
141    /**
142     * Get all calendar instance.
143     *
144     * @permission ohos.permission.READ_CALENDAR or ohos.permission.WRITE_WHOLE_CALENDAR
145     * @returns { Promise<Calendar[]> } the promise returned by the function.
146     * @throws { BusinessError } 201 - Permission denied.
147     * @throws { BusinessError } 401 - The parameter check failed.
148     * @throws { BusinessError } 801 - Capability not supported.
149     * @syscap SystemCapability.Applications.CalendarData
150     * @since 10
151     */
152    getAllCalendars(): Promise<Calendar[]>;
153
154    /**
155     * Get all calendar instance.
156     *
157     * @permission ohos.permission.READ_CALENDAR or ohos.permission.READ_WHOLE_CALENDAR
158     * @param {AsyncCallback<Calendar[]>} callback - the callback of getAllCalendars
159     * @throws { BusinessError } 201 - Permission denied.
160     * @throws { BusinessError } 401 - The parameter check failed.
161     * @throws { BusinessError } 801 - Capability not supported.
162     * @syscap SystemCapability.Applications.CalendarData
163     * @since 10
164     */
165    getAllCalendars(callback: AsyncCallback<Calendar[]>): void;
166  }
167
168  /**
169   * Describes a calendar instance.
170   * @interface Calendar
171   * @syscap SystemCapability.Applications.CalendarData
172   * @since 10
173   */
174  export interface Calendar {
175    /**
176     * Id of the calendar
177     * @type { number }
178     * @readonly
179     * @syscap SystemCapability.Applications.CalendarData
180     * @since 10
181     */
182    readonly id: number
183
184    /**
185     * Add a single event.
186     * @param { Event } event - Indicates the information about a single event.
187     * @returns { Promise<number> } The event ID.
188     * @syscap SystemCapability.Applications.CalendarData
189     * @since 10
190     */
191    addEvent(event: Event): Promise<number>;
192
193    /**
194     * Add a single event.
195     * @param { Event } event - a single event to add.
196     * @param { AsyncCallback<number> } callback - callback of addEvent.
197     * @syscap SystemCapability.Applications.CalendarData
198     * @since 10
199     */
200    addEvent(event: Event, callback: AsyncCallback<number>): void;
201
202    /**
203     * Add multiple events.
204     * @param { Event[] } events - multiple events to add.
205     * @returns { Promise<void> } The promise returned by function.
206     * @syscap SystemCapability.Applications.CalendarData
207     * @since 10
208     */
209    addEvents(events: Event[]): Promise<void>;
210
211    /**
212     * Add multiple events.
213     * @param { Event[] } events - Indicates the information about multiple events.
214     * @param { AsyncCallback<void> } callback - The callback of addEvents
215     * @syscap SystemCapability.Applications.CalendarData
216     * @since 10
217     */
218    addEvents(events: Event[], callback: AsyncCallback<void>): void;
219
220    /**
221     * Delete a single event.
222     * @param { number } id - Indicates the ID of an event.
223     * @returns { Promise<void> } The promise returned by function.
224     * @syscap SystemCapability.Applications.CalendarData
225     * @since 10
226     */
227    deleteEvent(id: number): Promise<void>;
228
229    /**
230     * Delete a single event.
231     * @param { number } id - Indicates the ID of an event.
232     * @param {AsyncCallback<void>} callback - The callback of deleteEvent.
233     * @syscap SystemCapability.Applications.CalendarData
234     * @since 10
235     */
236    deleteEvent(id: number, callback: AsyncCallback<void>): void;
237
238    /**
239     * Delete multiple events.
240     * @param { number[] } ids - The id array of multiple events.
241     * @returns { Promise<void> } The promise returned by function.
242     * @syscap SystemCapability.Applications.CalendarData
243     * @since 10
244     */
245    deleteEvents(ids: number[]): Promise<void>;
246
247    /**
248     * Delete multiple events.
249     * @param { number[] } ids - Indicates the IDs of multiple events.
250     * @param {AsyncCallback<void>} callback - The callback of deleteEvents.
251     * @syscap SystemCapability.Applications.CalendarData
252     * @since 10
253     */
254    deleteEvents(ids: number[], callback: AsyncCallback<void>): void;
255
256    /**
257     * Update a single event.
258     * @param { Event } event - Indicates the information about a single event.
259     * @returns { Promise<void> } The promise returned by function.
260     * @syscap SystemCapability.Applications.CalendarData
261     * @since 10
262     */
263    updateEvent(event: Event): Promise<void>;
264
265    /**
266     * Update a single event.
267     * @param { Event } event - Indicates the information about a single event.
268     * @param { AsyncCallback<void> } callback - The callback of updateEvent.
269     * @syscap SystemCapability.Applications.CalendarData
270     * @since 10
271     */
272    updateEvent(event: Event, callback: AsyncCallback<void>): void;
273
274    /**
275     * Query events based on filter conditions.
276     * @param { EventFilter } eventFilter - Indicates the filtering conditions of events.
277     * @param { (keyof Event)[] } eventKey - Expected column to be returned.
278     * @returns { Promise<Event[]> } Information about events that match the filter conditions.
279     * @syscap SystemCapability.Applications.CalendarData
280     * @since 10
281     */
282    getEvents(eventFilter?: EventFilter, eventKey?: (keyof Event)[]): Promise<Event[]>;
283
284    /**
285     * Query events based on filter conditions.
286     * @param { EventFilter } eventFilter - Indicates the filtering conditions of events.
287     * @param { (keyof Event)[] } eventKey - Expected column to be returned.
288     * @param { AsyncCallback<Event[]> } callback - The callback of getEvents.
289     * @syscap SystemCapability.Applications.CalendarData
290     * @since 10
291     */
292    getEvents(eventFilter: EventFilter, eventKey: (keyof Event)[], callback: AsyncCallback<Event[]>):void;
293
294    /**
295     * Query all events with all column from current calendar instance.
296     * @param { AsyncCallback<Event[]> } callback - The callback of getEvents with all events.
297     * @syscap SystemCapability.Applications.CalendarData
298     * @since 10
299     */
300    getEvents(callback: AsyncCallback<Event[]>):void;
301
302    /**
303     * Get calendar configure.
304     * @returns { CalendarConfig } configure of current calendar.
305     * @syscap SystemCapability.Applications.CalendarData
306     * @since 10
307     */
308    getConfig(): CalendarConfig;
309
310    /**
311     * Set calendar configure.
312     * @param { CalendarConfig } config - calendar config to set
313     * @returns { Promise<void> } The promise returned by function.
314     * @syscap SystemCapability.Applications.CalendarData
315     * @since 10
316     */
317    setConfig(config: CalendarConfig): Promise<void>;
318
319    /**
320     * Set calendar configure.
321     * @param { CalendarConfig } config - calendar config to set
322     * @param { AsyncCallback<void> } callback - callback of setConfig
323     * @syscap SystemCapability.Applications.CalendarData
324     * @since 10
325     */
326    setConfig(config: CalendarConfig, callback: AsyncCallback<void>): void;
327
328    /**
329     * Get calendar account.
330     * @returns { CalendarAccount } calendar account of current calendar.
331     * @syscap SystemCapability.Applications.CalendarData
332     * @since 10
333     */
334    getAccount(): CalendarAccount;
335  }
336
337  /**
338   * Describes a calendar account.
339   * @interface CalendarAccount
340   * @syscap SystemCapability.Applications.CalendarData
341   * @since 10
342   */
343  interface CalendarAccount {
344    /**
345     * Name of the calendar
346     * @type { string }
347     * @readonly
348     * @syscap SystemCapability.Applications.CalendarData
349     * @since 10
350     */
351    readonly name: string;
352
353    /**
354     * Type of the calendar
355     * @type { CalendarType }
356     * @syscap SystemCapability.Applications.CalendarData
357     * @since 10
358     */
359    type: CalendarType;
360
361    /**
362     * DisplayName of the calendar
363     * @type { ?string }
364     * @syscap SystemCapability.Applications.CalendarData
365     * @since 10
366     */
367    displayName?: string
368  }
369
370  /**
371   * Describes a calendar configuration.
372   * @interface CalendarConfig
373   * @syscap SystemCapability.Applications.CalendarData
374   * @since 10
375   */
376  interface CalendarConfig {
377    /**
378     * Whether the calendar provides a reminder
379     * @type { ?boolean }
380     * @syscap SystemCapability.Applications.CalendarData
381     * @since 10
382     */
383    enableReminder?: boolean;
384
385    /**
386     * Color of the calendar
387     * @type { ?(number | string) }
388     * @syscap SystemCapability.Applications.CalendarData
389     * @since 10
390     */
391    color?: (number | string);
392  }
393
394  /**
395   * Describes an event information.
396   * @interface Event
397   * @syscap SystemCapability.Applications.CalendarData
398   * @since 10
399   */
400  interface Event {
401    /**
402     * Id of the event
403     * @type { ?number }
404     * @syscap SystemCapability.Applications.CalendarData
405     * @since 10
406     */
407    id?: number;
408
409    /**
410     * Type of the event
411     * @type { EventType }
412     * @syscap SystemCapability.Applications.CalendarData
413     * @since 10
414     */
415    type: EventType;
416
417    /**
418     * Title of the event
419     * @type { ?string }
420     * @syscap SystemCapability.Applications.CalendarData
421     * @since 10
422     */
423    title?: string;
424
425    /**
426     * Location of the event
427     * @type { ?Location }
428     * @syscap SystemCapability.Applications.CalendarData
429     * @since 10
430     */
431    location?: Location;
432
433    /**
434     * start time of the event
435     * @type { number }
436     * @syscap SystemCapability.Applications.CalendarData
437     * @since 10
438     */
439    startTime: number;
440
441    /**
442     * end time of the event
443     * @type { number }
444     * @syscap SystemCapability.Applications.CalendarData
445     * @since 10
446     */
447    endTime: number;
448
449    /**
450     * Whether the event is allDay
451     * @type { ?boolean }
452     * @syscap SystemCapability.Applications.CalendarData
453     * @since 10
454     */
455    isAllDay?: boolean;
456
457    /**
458     * Attendees of the event
459     * @type { ?Attendee[] }
460     * @syscap SystemCapability.Applications.CalendarData
461     * @since 10
462     */
463    attendee?: Attendee[];
464
465    /**
466     * TimeZone of the event
467     * @type { ?string }
468     * @syscap SystemCapability.Applications.CalendarData
469     * @since 10
470     */
471    timeZone?: string;
472
473    /**
474     * Reminder time of the event
475     * @type { ?number[] }
476     * @syscap SystemCapability.Applications.CalendarData
477     * @since 10
478     */
479    reminderTime?: number[];
480
481    /**
482     * RecurrenceRule of the event
483     * @type { ?RecurrenceRule }
484     * @syscap SystemCapability.Applications.CalendarData
485     * @since 10
486     */
487    recurrenceRule?: RecurrenceRule;
488
489    /**
490     * Description of the event
491     * @type { ?string }
492     * @syscap SystemCapability.Applications.CalendarData
493     * @since 10
494     */
495    description?: string;
496
497    /**
498     * Service of the event
499     * @type { ?EventService }
500     * @syscap SystemCapability.Applications.CalendarData
501     * @since 10
502     */
503    service?: EventService;
504  }
505
506  /**
507   * Enum for all calendar type.
508   * @enum { string }
509   * @syscap SystemCapability.Applications.CalendarData
510   * @since 10
511   */
512  enum CalendarType {
513    /**
514     * Local calendar
515     * @syscap SystemCapability.Applications.CalendarData
516     * @since 10
517     */
518    LOCAL = 'local',
519
520    /**
521     * Email calendar
522     * @syscap SystemCapability.Applications.CalendarData
523     * @since 10
524     */
525    EMAIL = 'email',
526
527    /**
528     * Birthday calendar
529     * @syscap SystemCapability.Applications.CalendarData
530     * @since 10
531     */
532    BIRTHDAY = 'birthday',
533
534    /**
535     * CalDAV calendar
536     * @syscap SystemCapability.Applications.CalendarData
537     * @since 10
538     */
539    CALDAV = 'caldav',
540
541    /**
542     * Subscribed calendar
543     * @syscap SystemCapability.Applications.CalendarData
544     * @since 10
545     */
546    SUBSCRIBED = 'subscribed'
547  }
548
549  /**
550   * Location of an event.
551   * @interface Location
552   * @syscap SystemCapability.Applications.CalendarData
553   * @since 10
554   */
555  interface Location {
556    /**
557     * Location of the event
558     * @type { ?string }
559     * @syscap SystemCapability.Applications.CalendarData
560     * @since 10
561     */
562    location?: string;
563
564    /**
565     * Longitude of the location
566     * @type { ?number }
567     * @syscap SystemCapability.Applications.CalendarData
568     * @since 10
569     */
570    longitude?: number;
571
572    /**
573     * Latitude of the location
574     * @type { ?number }
575     * @syscap SystemCapability.Applications.CalendarData
576     * @since 10
577     */
578    latitude?: number;
579  }
580
581  /**
582   * Provides the abilities to retrive event filter.
583   * @syscap SystemCapability.Applications.CalendarData
584   * @since 10
585   */
586  class EventFilter {
587    /**
588     * Filter events by event id.
589     * @param {number[]} ids id array to retrieve
590     * @returns { EventFilter } Returns the EventFilter with ids.
591     * @syscap SystemCapability.Applications.CalendarData
592     * @since 10
593     */
594    static filterById(ids: number[]): EventFilter;
595
596    /**
597     * Filter events by event start time and end time.
598     * @param { number } start - start time of query range
599     * @param { number } end - end time of query range
600     * @returns { EventFilter } Returns the EventFilter with time range.
601     * @syscap SystemCapability.Applications.CalendarData
602     * @since 10
603     */
604    static filterByTime(start: number, end: number): EventFilter;
605
606    /**
607     * Filter events by event title.
608     * @param { string } title - event title to query
609     * @returns {EventFilter } Returns the EventFilter with title.
610     * @syscap SystemCapability.Applications.CalendarData
611     * @since 10
612     */
613    static filterByTitle(title: string): EventFilter;
614  }
615
616  /**
617   * Enum for supported events type.
618   * @enum { number }
619   * @syscap SystemCapability.Applications.CalendarData
620   * @since 10
621   */
622  enum EventType {
623    /**
624     * normal event.
625     * @syscap SystemCapability.Applications.CalendarData
626     * @since 10
627     */
628    NORMAL = 0,
629
630    /**
631     * important event.
632     * @syscap SystemCapability.Applications.CalendarData
633     * @since 10
634     */
635    IMPORTANT = 1,
636  }
637
638  /**
639   * Defines the recurrence rule of event
640   * @interface RecurrenceRule
641   * @syscap SystemCapability.Applications.CalendarData
642   * @since 10
643   */
644  export interface RecurrenceRule {
645    /**
646     * RecurrenceFrequency of recurrence event.
647     * @type { RecurrenceFrequency }
648     * @syscap SystemCapability.Applications.CalendarData
649     * @since 10
650     */
651    recurrenceFrequency: RecurrenceFrequency;
652
653    /**
654     * Expiration time of recurrence event.
655     * @type { ?number }
656     * @syscap SystemCapability.Applications.CalendarData
657     * @since 10
658     */
659    expire?: number;
660  }
661
662  /**
663   * Enum for the recurrence type by different period
664   * @enum { number }
665   * @syscap SystemCapability.Applications.CalendarData
666   * @since 10
667   */
668  export enum RecurrenceFrequency {
669    /**
670     * The event repeats every year.
671     * @syscap SystemCapability.Applications.CalendarData
672     * @since 10
673     */
674    YEARLY = 0,
675
676    /**
677     * The event repeats every month.
678     * @syscap SystemCapability.Applications.CalendarData
679     * @since 10
680     */
681    MONTHLY = 1,
682
683    /**
684     * The event repeats every week.
685     * @syscap SystemCapability.Applications.CalendarData
686     * @since 10
687     */
688    WEEKLY = 2,
689
690    /**
691     * The event repeats every day.
692     * @syscap SystemCapability.Applications.CalendarData
693     * @since 10
694     */
695    DAILY = 3,
696  }
697
698  /**
699   * Defines the attendee information
700   * @interface Attendee
701   * @syscap SystemCapability.Applications.CalendarData
702   * @since 10
703   */
704  export interface Attendee {
705    /**
706     * Name of the Attendee.
707     * @type { string }
708     * @syscap SystemCapability.Applications.CalendarData
709     * @since 10
710     */
711    name: string;
712
713    /**
714     * Email of the Attendee.
715     * @type { string }
716     * @syscap SystemCapability.Applications.CalendarData
717     * @since 10
718     */
719    email: string;
720  }
721
722  /**
723   * Defines event service information
724   * @interface EventService
725   * @syscap SystemCapability.Applications.CalendarData
726   * @since 10
727   */
728  export interface EventService {
729    /**
730     * Type of the EventService.
731     * @type { ServiceType }
732     * @syscap SystemCapability.Applications.CalendarData
733     * @since 10
734     */
735    type: ServiceType;
736
737    /**
738     * Uri of the EventService.
739     * @type { string }
740     * @syscap SystemCapability.Applications.CalendarData
741     * @since 10
742     */
743    uri: string;
744
745    /**
746     * Description of the EventService.
747     * @type { ?string }
748     * @syscap SystemCapability.Applications.CalendarData
749     * @since 10
750     */
751    description?: string;
752  }
753
754  /**
755   * Defines event service type
756   * @enum { string }
757   * @syscap SystemCapability.Applications.CalendarData
758   * @since 10
759   */
760  export enum ServiceType {
761    /**
762     * Meeting event.
763     * @syscap SystemCapability.Applications.CalendarData
764     * @since 10
765     */
766    MEETING = 'Meeting',
767
768    /**
769     * Watch drama event.
770     * @syscap SystemCapability.Applications.CalendarData
771     * @since 10
772     */
773    WATCHING = 'Watching',
774
775    /**
776     * Repayment event.
777     * @syscap SystemCapability.Applications.CalendarData
778     * @since 10
779     */
780    REPAYMENT = 'Repayment',
781
782    /**
783     * Live event.
784     * @syscap SystemCapability.Applications.CalendarData
785     * @since 10
786     */
787    LIVE = 'Live',
788
789    /**
790     * Shopping event.
791     * @syscap SystemCapability.Applications.CalendarData
792     * @since 10
793     */
794    SHOPPING = 'Shopping',
795
796    /**
797     * trip event.
798     * @syscap SystemCapability.Applications.CalendarData
799     * @since 10
800     */
801    TRIP = 'Trip',
802
803    /**
804     * Class event.
805     * @syscap SystemCapability.Applications.CalendarData
806     * @since 10
807     */
808    CLASS = 'Class',
809
810    /**
811     * Sports game event.
812     * @syscap SystemCapability.Applications.CalendarData
813     * @since 10
814     */
815    SPORTS_EVENTS = 'SportsEvents',
816
817    /**
818     * Sports exercise event.
819     * @syscap SystemCapability.Applications.CalendarData
820     * @since 10
821     */
822    SPORTS_EXERCISE = 'SportsExercise',
823  }
824}
825
826export default calendarManager;