@ebarooni/capacitor-calendar 8.2.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +219 -93
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +42 -7
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +33 -19
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +88 -21
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventDeleteInfo.kt +8 -0
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/EventSpan.kt +13 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +4 -1
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +4 -1
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +2 -0
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +340 -35
  20. package/dist/docs.json +616 -88
  21. package/dist/esm/index.d.ts +8 -1
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +8 -0
  24. package/dist/esm/schemas/enums/calendar-permission-scope.js +8 -0
  25. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
  26. package/dist/esm/schemas/enums/event-span.d.ts +4 -0
  27. package/dist/esm/schemas/enums/event-span.js +4 -0
  28. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  29. package/dist/esm/schemas/interfaces/calendar-source.d.ts +3 -0
  30. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  31. package/dist/esm/schemas/interfaces/calendar.d.ts +12 -2
  32. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  33. package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
  34. package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
  35. package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
  36. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +16 -5
  37. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
  38. package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
  39. package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
  40. package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
  41. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
  42. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
  43. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +28 -3
  44. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
  45. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +38 -13
  46. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
  47. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +15 -3
  48. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
  49. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
  50. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
  51. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
  52. package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
  53. package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
  54. package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
  55. package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
  56. package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
  57. package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
  58. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
  59. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
  60. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +8 -1
  61. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
  62. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
  63. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
  64. package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
  65. package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
  66. package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
  67. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
  68. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
  69. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
  70. package/dist/esm/sub-definitions/calendar-access.d.ts +22 -10
  71. package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
  72. package/dist/esm/sub-definitions/calendar-operations.d.ts +62 -15
  73. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
  74. package/dist/esm/sub-definitions/event-operations.d.ts +15 -1
  75. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  76. package/dist/esm/sub-definitions/reminders-access.d.ts +4 -0
  77. package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
  78. package/dist/esm/web.d.ts +15 -21
  79. package/dist/esm/web.js +1 -1
  80. package/dist/esm/web.js.map +1 -1
  81. package/dist/plugin.cjs.js +13 -1
  82. package/dist/plugin.cjs.js.map +1 -1
  83. package/dist/plugin.js +13 -1
  84. package/dist/plugin.js.map +1 -1
  85. package/ios/Plugin/CapacitorCalendarPlugin.swift +19 -16
  86. package/ios/Plugin/Implementation/CapacitorCalendar.swift +67 -37
  87. package/ios/Plugin/Models/Enums/EventSpan.swift +8 -0
  88. package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +4 -5
  89. package/ios/Plugin/Models/Inputs/DeleteCalendarInput.swift +1 -1
  90. package/ios/Plugin/Models/Inputs/DeleteEventInput.swift +9 -4
  91. package/ios/Plugin/Models/Inputs/DeleteEventWithPromptInput.swift +9 -4
  92. package/ios/Plugin/Models/Inputs/DeleteEventsByIdInput.swift +9 -4
  93. package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
  94. package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +4 -1
  95. package/ios/Plugin/PluginError.swift +68 -56
  96. package/ios/Plugin/Utils/ImplementationHelper.swift +22 -14
  97. package/package.json +1 -1
package/dist/docs.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "checkPermission",
10
- "signature": "(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>",
10
+ "signature": "(options: CheckPermissionOptions) => Promise<{ result: PermissionState; }>",
11
11
  "parameters": [
12
12
  {
13
13
  "name": "options",
14
14
  "docs": "",
15
- "type": "{ scope: CalendarPermissionScope; }"
15
+ "type": "CheckPermissionOptions"
16
16
  }
17
17
  ],
18
18
  "returns": "Promise<{ result: PermissionState; }>",
@@ -21,6 +21,18 @@
21
21
  "name": "example",
22
22
  "text": "CapacitorCalendar.checkPermission({ scope: CalendarPermissionScope.READ_CALENDAR });"
23
23
  },
24
+ {
25
+ "name": "throws",
26
+ "text": "{Error} `Scope must be provided.` — when `scope` is missing."
27
+ },
28
+ {
29
+ "name": "throws",
30
+ "text": "{Error} `Invalid scope.` — when `scope` is invalid."
31
+ },
32
+ {
33
+ "name": "throws",
34
+ "text": "{Error} `Unhandled permission state.` — when the native status cannot be mapped."
35
+ },
24
36
  {
25
37
  "name": "platform",
26
38
  "text": "Android, iOS"
@@ -30,10 +42,10 @@
30
42
  "text": "0.1.0"
31
43
  }
32
44
  ],
33
- "docs": "Retrieves the current permission state for a given scope.",
45
+ "docs": "Retrieves the current permission state for a given scope.\nOn Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`.",
34
46
  "complexTypes": [
35
47
  "PermissionState",
36
- "CalendarPermissionScope"
48
+ "CheckPermissionOptions"
37
49
  ],
38
50
  "slug": "checkpermission"
39
51
  },
@@ -43,6 +55,10 @@
43
55
  "parameters": [],
44
56
  "returns": "Promise<{ result: CheckAllPermissionsResult; }>",
45
57
  "tags": [
58
+ {
59
+ "name": "throws",
60
+ "text": "{Error} `Unhandled permission state.` — when a native status cannot be mapped."
61
+ },
46
62
  {
47
63
  "name": "platform",
48
64
  "text": "Android, iOS"
@@ -52,7 +68,7 @@
52
68
  "text": "0.1.0"
53
69
  }
54
70
  ],
55
- "docs": "Retrieves the current state of all permissions.",
71
+ "docs": "Retrieves the current state of all permissions.\nOn Android, reminder keys always resolve to `\"prompt\"`.",
56
72
  "complexTypes": [
57
73
  "CheckAllPermissionsResult"
58
74
  ],
@@ -60,23 +76,31 @@
60
76
  },
61
77
  {
62
78
  "name": "requestPermission",
63
- "signature": "(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>",
79
+ "signature": "(options: RequestPermissionOptions) => Promise<{ result: PermissionState; }>",
64
80
  "parameters": [
65
81
  {
66
82
  "name": "options",
67
83
  "docs": "",
68
- "type": "{ scope: CalendarPermissionScope; }"
84
+ "type": "RequestPermissionOptions"
69
85
  }
70
86
  ],
71
87
  "returns": "Promise<{ result: PermissionState; }>",
72
88
  "tags": [
73
89
  {
74
90
  "name": "example",
75
- "text": "this.requestPermission({ scope: CalendarPermissionScope.READ_CALENDAR });"
91
+ "text": "CapacitorCalendar.requestPermission({ scope: CalendarPermissionScope.READ_CALENDAR });"
92
+ },
93
+ {
94
+ "name": "throws",
95
+ "text": "{Error} `Scope must be provided.` — when `scope` is missing."
96
+ },
97
+ {
98
+ "name": "throws",
99
+ "text": "{Error} `Invalid scope.` — when `scope` is invalid, or a reminders scope on Android."
76
100
  },
77
101
  {
78
102
  "name": "deprecated",
79
- "text": "Use {@link requestWriteOnlyCalendarAccess}, {@link requestReadOnlyCalendarAccess},\n{@link requestFullCalendarAccess} or {@link requestFullRemindersAccess} instead."
103
+ "text": "Use {@link requestWriteOnlyCalendarAccess},\n{@link requestReadOnlyCalendarAccess} (Android),\n{@link requestFullCalendarAccess} (also for read on iOS),\nor {@link requestFullRemindersAccess} instead."
80
104
  },
81
105
  {
82
106
  "name": "platform",
@@ -87,10 +111,10 @@
87
111
  "text": "0.1.0"
88
112
  }
89
113
  ],
90
- "docs": "Requests permission for a given scope.",
114
+ "docs": "Requests permission for a given scope.\nOn Android, `readReminders` and `writeReminders` reject with `Invalid scope.`",
91
115
  "complexTypes": [
92
116
  "PermissionState",
93
- "CalendarPermissionScope"
117
+ "RequestPermissionOptions"
94
118
  ],
95
119
  "slug": "requestpermission"
96
120
  },
@@ -113,7 +137,7 @@
113
137
  "text": "0.1.0"
114
138
  }
115
139
  ],
116
- "docs": "Requests permission for all calendar and reminder permissions.",
140
+ "docs": "Requests permission for all calendar and reminder permissions.\nOn Android, only calendar permissions are requested; reminder keys stay `\"prompt\"`.",
117
141
  "complexTypes": [
118
142
  "RequestAllPermissionsResult"
119
143
  ],
@@ -204,6 +228,10 @@
204
228
  "name": "permissions",
205
229
  "text": "| Platform | Required |\n|-----------|---------------------|\n| iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n| iOS 10-16 | `NSRemindersUsageDescription` |"
206
230
  },
231
+ {
232
+ "name": "throws",
233
+ "text": "{Error} when EventKit fails or required Info.plist keys are missing."
234
+ },
207
235
  {
208
236
  "name": "platform",
209
237
  "text": "iOS"
@@ -221,7 +249,7 @@
221
249
  "text": "5.4.0"
222
250
  }
223
251
  ],
224
- "docs": "Requests read and write access to the reminders.",
252
+ "docs": "Requests read and write access to the reminders.\nResolves with `\"granted\"` or `\"denied\"` (never `\"prompt\"`).\nA grant covers both `readReminders` and `writeReminders`.",
225
253
  "complexTypes": [
226
254
  "PermissionState"
227
255
  ],
@@ -442,6 +470,10 @@
442
470
  ],
443
471
  "returns": "Promise<{ result: CalendarEvent[]; }>",
444
472
  "tags": [
473
+ {
474
+ "name": "example",
475
+ "text": "const startOfDay = new Date();\nstartOfDay.setHours(0, 0, 0, 0);\nconst startOfNextDay = new Date(startOfDay);\nstartOfNextDay.setDate(startOfNextDay.getDate() + 1);\n\nconst { result } = await CapacitorCalendar.listEventsInRange({\n from: startOfDay.getTime(),\n to: startOfNextDay.getTime(),\n});"
476
+ },
445
477
  {
446
478
  "name": "platform",
447
479
  "text": "Android, iOS"
@@ -451,7 +483,7 @@
451
483
  "text": "0.10.0"
452
484
  }
453
485
  ],
454
- "docs": "Retrieves the events within a date range.",
486
+ "docs": "Retrieves events that overlap a date range.\n\nAn event is included when its time interval intersects `[from, to]`, including\nmulti-day events that span the range without starting or ending inside it.",
455
487
  "complexTypes": [
456
488
  "CalendarEvent",
457
489
  "ListEventsInRangeOptions"
@@ -473,13 +505,13 @@
473
505
  "text": "7.1.0"
474
506
  }
475
507
  ],
476
- "docs": "Save the changes to the calendar.",
508
+ "docs": "Saves pending calendar changes.",
477
509
  "complexTypes": [],
478
510
  "slug": "commit"
479
511
  },
480
512
  {
481
513
  "name": "selectCalendarsWithPrompt",
482
- "signature": "(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<{ result: Calendar[]; }>",
514
+ "signature": "(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<SelectCalendarsWithPromptResult>",
483
515
  "parameters": [
484
516
  {
485
517
  "name": "options",
@@ -487,7 +519,7 @@
487
519
  "type": "SelectCalendarsWithPromptOptions | undefined"
488
520
  }
489
521
  ],
490
- "returns": "Promise<{ result: Calendar[]; }>",
522
+ "returns": "Promise<SelectCalendarsWithPromptResult>",
491
523
  "tags": [
492
524
  {
493
525
  "name": "platform",
@@ -498,18 +530,18 @@
498
530
  "text": "0.2.0"
499
531
  }
500
532
  ],
501
- "docs": "Opens a system interface to choose one or multiple calendars.",
533
+ "docs": "Opens a system interface to choose one or multiple calendars.\n\nCalendar access is expected. Call `requestFullCalendarAccess()` first.\nWithout authorization the chooser can look empty.\n\nOn confirm, `result` contains the calendars the user selected.\nOn cancel, `result` is an empty array.\n\nIf a chooser is already presented, a new call is rejected; the in-flight\ncall continues until the user confirms or cancels.",
502
534
  "complexTypes": [
503
- "Calendar",
535
+ "SelectCalendarsWithPromptResult",
504
536
  "SelectCalendarsWithPromptOptions"
505
537
  ],
506
538
  "slug": "selectcalendarswithprompt"
507
539
  },
508
540
  {
509
541
  "name": "fetchAllCalendarSources",
510
- "signature": "() => Promise<{ result: CalendarSource[]; }>",
542
+ "signature": "() => Promise<FetchAllCalendarSourcesResult>",
511
543
  "parameters": [],
512
- "returns": "Promise<{ result: CalendarSource[]; }>",
544
+ "returns": "Promise<FetchAllCalendarSourcesResult>",
513
545
  "tags": [
514
546
  {
515
547
  "name": "platform",
@@ -520,17 +552,17 @@
520
552
  "text": "6.6.0"
521
553
  }
522
554
  ],
523
- "docs": "Retrieves a list of calendar sources.",
555
+ "docs": "Retrieves a list of calendar sources.\n\nRequires calendar access. Without authorization, `result` is typically\nan empty array. This method does not reject solely for missing permission.",
524
556
  "complexTypes": [
525
- "CalendarSource"
557
+ "FetchAllCalendarSourcesResult"
526
558
  ],
527
559
  "slug": "fetchallcalendarsources"
528
560
  },
529
561
  {
530
562
  "name": "listCalendars",
531
- "signature": "() => Promise<{ result: Calendar[]; }>",
563
+ "signature": "() => Promise<ListCalendarsResult>",
532
564
  "parameters": [],
533
- "returns": "Promise<{ result: Calendar[]; }>",
565
+ "returns": "Promise<ListCalendarsResult>",
534
566
  "tags": [
535
567
  {
536
568
  "name": "platform",
@@ -541,16 +573,22 @@
541
573
  "text": "7.1.0"
542
574
  }
543
575
  ],
544
- "docs": "Retrieves a list of all available calendars.",
576
+ "docs": "Retrieves a list of all available calendars.\n\nRequires calendar read access. On Android, missing permission typically\nrejects. On iOS, missing authorization typically returns an empty `result`.",
545
577
  "complexTypes": [
546
- "Calendar"
578
+ "ListCalendarsResult"
547
579
  ],
548
580
  "slug": "listcalendars"
549
581
  },
550
582
  {
551
583
  "name": "getDefaultCalendar",
552
- "signature": "() => Promise<{ result: Calendar | null; }>",
553
- "parameters": [],
584
+ "signature": "(options?: GetDefaultCalendarOptions | undefined) => Promise<{ result: Calendar | null; }>",
585
+ "parameters": [
586
+ {
587
+ "name": "options",
588
+ "docs": "",
589
+ "type": "GetDefaultCalendarOptions | undefined"
590
+ }
591
+ ],
554
592
  "returns": "Promise<{ result: Calendar | null; }>",
555
593
  "tags": [
556
594
  {
@@ -562,9 +600,10 @@
562
600
  "text": "0.3.0"
563
601
  }
564
602
  ],
565
- "docs": "Retrieves the default calendar.",
603
+ "docs": "Retrieves the default calendar.\n\nRequires calendar read access. On Android, missing permission typically\nrejects. On iOS, missing authorization typically yields `result: null`.\n\nThe system default is the primary calendar on Android and\n`defaultCalendarForNewEvents` on iOS. When neither exists and\n`useFallbackCalendar` is true, the first available calendar is returned.\nOtherwise the method returns `null` when there is no system default.",
566
604
  "complexTypes": [
567
- "Calendar"
605
+ "Calendar",
606
+ "GetDefaultCalendarOptions"
568
607
  ],
569
608
  "slug": "getdefaultcalendar"
570
609
  },
@@ -601,7 +640,7 @@
601
640
  },
602
641
  {
603
642
  "name": "createCalendar",
604
- "signature": "(options: CreateCalendarOptions) => Promise<{ id: string; }>",
643
+ "signature": "(options: CreateCalendarOptions) => Promise<CreateCalendarResult>",
605
644
  "parameters": [
606
645
  {
607
646
  "name": "options",
@@ -609,8 +648,36 @@
609
648
  "type": "CreateCalendarOptions"
610
649
  }
611
650
  ],
612
- "returns": "Promise<{ id: string; }>",
651
+ "returns": "Promise<CreateCalendarResult>",
613
652
  "tags": [
653
+ {
654
+ "name": "example",
655
+ "text": "CapacitorCalendar.createCalendar({\n title: 'Work',\n accountName: 'plugin@example.com',\n ownerAccount: 'plugin@example.com',\n});"
656
+ },
657
+ {
658
+ "name": "throws",
659
+ "text": "{Error} `Title must be provided.` — when `title` is missing."
660
+ },
661
+ {
662
+ "name": "throws",
663
+ "text": "{Error} `Invalid color format.` — when `color` is present but invalid."
664
+ },
665
+ {
666
+ "name": "throws",
667
+ "text": "{Error} `Account name must be provided.` — when `accountName` is missing on Android."
668
+ },
669
+ {
670
+ "name": "throws",
671
+ "text": "{Error} `Owner account must be provided.` — when `ownerAccount` is missing on Android."
672
+ },
673
+ {
674
+ "name": "throws",
675
+ "text": "{Error} `Calendar source not found.` — when `sourceId` is set and no EventKit source matches (iOS)."
676
+ },
677
+ {
678
+ "name": "throws",
679
+ "text": "{Error} `Failed to retrieve calendar ID.` — when the calendar is created but no id is returned."
680
+ },
614
681
  {
615
682
  "name": "platform",
616
683
  "text": "Android, iOS"
@@ -620,8 +687,9 @@
620
687
  "text": "5.2.0"
621
688
  }
622
689
  ],
623
- "docs": "Creates a calendar.",
690
+ "docs": "Creates a calendar.\n\n`title` is required. `color` is optional and defaults to `#007AFF`.\nOn Android, `accountName` and `ownerAccount` are required at runtime.",
624
691
  "complexTypes": [
692
+ "CreateCalendarResult",
625
693
  "CreateCalendarOptions"
626
694
  ],
627
695
  "slug": "createcalendar"
@@ -638,6 +706,18 @@
638
706
  ],
639
707
  "returns": "Promise<void>",
640
708
  "tags": [
709
+ {
710
+ "name": "throws",
711
+ "text": "{Error} `Calendar ID must be provided.` — when `id` is missing."
712
+ },
713
+ {
714
+ "name": "throws",
715
+ "text": "{Error} `Invalid calendar ID.` — when `id` is not a numeric Android calendar id."
716
+ },
717
+ {
718
+ "name": "throws",
719
+ "text": "{Error} `Calendar not found.` — when no calendar exists for `id`."
720
+ },
641
721
  {
642
722
  "name": "platform",
643
723
  "text": "Android, iOS"
@@ -665,6 +745,30 @@
665
745
  ],
666
746
  "returns": "Promise<void>",
667
747
  "tags": [
748
+ {
749
+ "name": "throws",
750
+ "text": "{Error} `Calendar ID must be provided.` — when `id` is missing."
751
+ },
752
+ {
753
+ "name": "throws",
754
+ "text": "{Error} `Invalid calendar ID.` — when `id` is not a numeric Android calendar id."
755
+ },
756
+ {
757
+ "name": "throws",
758
+ "text": "{Error} `At least one of title or color must be provided.` — when both are omitted."
759
+ },
760
+ {
761
+ "name": "throws",
762
+ "text": "{Error} `Invalid color format.` — when `color` is present but invalid."
763
+ },
764
+ {
765
+ "name": "throws",
766
+ "text": "{Error} `Calendar not found.` — when no calendar exists for `id`."
767
+ },
768
+ {
769
+ "name": "throws",
770
+ "text": "{Error} `Calendar is not modifiable.` — when the calendar cannot be modified (iOS)."
771
+ },
668
772
  {
669
773
  "name": "platform",
670
774
  "text": "Android, iOS"
@@ -1049,6 +1153,78 @@
1049
1153
  "properties": []
1050
1154
  },
1051
1155
  "interfaces": [
1156
+ {
1157
+ "name": "CheckPermissionOptions",
1158
+ "slug": "checkpermissionoptions",
1159
+ "docs": "Options for {@link CalendarAccess#checkPermission}.",
1160
+ "tags": [
1161
+ {
1162
+ "text": "8.3.1",
1163
+ "name": "since"
1164
+ }
1165
+ ],
1166
+ "methods": [],
1167
+ "properties": [
1168
+ {
1169
+ "name": "scope",
1170
+ "tags": [
1171
+ {
1172
+ "text": "CalendarPermissionScope.READ_CALENDAR",
1173
+ "name": "example"
1174
+ },
1175
+ {
1176
+ "text": "Android, iOS",
1177
+ "name": "platform"
1178
+ },
1179
+ {
1180
+ "text": "8.3.1",
1181
+ "name": "since"
1182
+ }
1183
+ ],
1184
+ "docs": "The permission scope to check.\n\nOn Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`\n(reminders are not supported on Android).",
1185
+ "complexTypes": [
1186
+ "CalendarPermissionScope"
1187
+ ],
1188
+ "type": "CalendarPermissionScope"
1189
+ }
1190
+ ]
1191
+ },
1192
+ {
1193
+ "name": "RequestPermissionOptions",
1194
+ "slug": "requestpermissionoptions",
1195
+ "docs": "Options for {@link CalendarAccess#requestPermission}.",
1196
+ "tags": [
1197
+ {
1198
+ "text": "8.3.1",
1199
+ "name": "since"
1200
+ }
1201
+ ],
1202
+ "methods": [],
1203
+ "properties": [
1204
+ {
1205
+ "name": "scope",
1206
+ "tags": [
1207
+ {
1208
+ "text": "CalendarPermissionScope.READ_CALENDAR",
1209
+ "name": "example"
1210
+ },
1211
+ {
1212
+ "text": "Android, iOS",
1213
+ "name": "platform"
1214
+ },
1215
+ {
1216
+ "text": "8.3.1",
1217
+ "name": "since"
1218
+ }
1219
+ ],
1220
+ "docs": "The permission scope to request.",
1221
+ "complexTypes": [
1222
+ "CalendarPermissionScope"
1223
+ ],
1224
+ "type": "CalendarPermissionScope"
1225
+ }
1226
+ ]
1227
+ },
1052
1228
  {
1053
1229
  "name": "CreateEventWithPromptOptions",
1054
1230
  "slug": "createeventwithpromptoptions",
@@ -2402,6 +2578,30 @@
2402
2578
  ],
2403
2579
  "methods": [],
2404
2580
  "properties": [
2581
+ {
2582
+ "name": "commit",
2583
+ "tags": [
2584
+ {
2585
+ "text": "false",
2586
+ "name": "example"
2587
+ },
2588
+ {
2589
+ "text": "true",
2590
+ "name": "default"
2591
+ },
2592
+ {
2593
+ "text": "iOS",
2594
+ "name": "platform"
2595
+ },
2596
+ {
2597
+ "text": "8.3.0",
2598
+ "name": "since"
2599
+ }
2600
+ ],
2601
+ "docs": "Whether to save the deletion to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
2602
+ "complexTypes": [],
2603
+ "type": "boolean | undefined"
2604
+ },
2405
2605
  {
2406
2606
  "name": "ids",
2407
2607
  "tags": [
@@ -2417,20 +2617,24 @@
2417
2617
  {
2418
2618
  "name": "span",
2419
2619
  "tags": [
2620
+ {
2621
+ "text": "EventSpan.THIS_EVENT",
2622
+ "name": "example"
2623
+ },
2420
2624
  {
2421
2625
  "text": "EventSpan.THIS_EVENT",
2422
2626
  "name": "default"
2423
2627
  },
2424
2628
  {
2425
- "text": "iOS",
2629
+ "text": "Android, iOS",
2426
2630
  "name": "platform"
2427
2631
  },
2428
2632
  {
2429
- "text": " 7.1.0",
2430
- "name": "see"
2633
+ "text": "7.1.0",
2634
+ "name": "since"
2431
2635
  }
2432
2636
  ],
2433
- "docs": "The span of deletion.",
2637
+ "docs": "How much of a recurring series to delete.\nOn Android, `THIS_EVENT` cannot target a single recurring occurrence here — use `deleteEvent` with `instanceDate`. Those ids are reported in `failed`.",
2434
2638
  "complexTypes": [
2435
2639
  "EventSpan"
2436
2640
  ],
@@ -2450,35 +2654,91 @@
2450
2654
  ],
2451
2655
  "methods": [],
2452
2656
  "properties": [
2657
+ {
2658
+ "name": "commit",
2659
+ "tags": [
2660
+ {
2661
+ "text": "false",
2662
+ "name": "example"
2663
+ },
2664
+ {
2665
+ "text": "true",
2666
+ "name": "default"
2667
+ },
2668
+ {
2669
+ "text": "iOS",
2670
+ "name": "platform"
2671
+ },
2672
+ {
2673
+ "text": "8.3.0",
2674
+ "name": "since"
2675
+ }
2676
+ ],
2677
+ "docs": "Whether to save the deletion to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
2678
+ "complexTypes": [],
2679
+ "type": "boolean | undefined"
2680
+ },
2453
2681
  {
2454
2682
  "name": "id",
2455
2683
  "tags": [
2684
+ {
2685
+ "text": "'1234'",
2686
+ "name": "example"
2687
+ },
2688
+ {
2689
+ "text": "Android, iOS",
2690
+ "name": "platform"
2691
+ },
2456
2692
  {
2457
2693
  "text": "7.1.0",
2458
2694
  "name": "since"
2459
2695
  }
2460
2696
  ],
2461
- "docs": "",
2697
+ "docs": "The ID of the event to delete.",
2462
2698
  "complexTypes": [],
2463
2699
  "type": "string"
2464
2700
  },
2701
+ {
2702
+ "name": "instanceDate",
2703
+ "tags": [
2704
+ {
2705
+ "text": "1716153600000",
2706
+ "name": "example"
2707
+ },
2708
+ {
2709
+ "text": "Android",
2710
+ "name": "platform"
2711
+ },
2712
+ {
2713
+ "text": "8.3.0",
2714
+ "name": "since"
2715
+ }
2716
+ ],
2717
+ "docs": "The start time of the occurrence to delete, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nOn Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.",
2718
+ "complexTypes": [],
2719
+ "type": "number | undefined"
2720
+ },
2465
2721
  {
2466
2722
  "name": "span",
2467
2723
  "tags": [
2724
+ {
2725
+ "text": "EventSpan.THIS_EVENT",
2726
+ "name": "example"
2727
+ },
2468
2728
  {
2469
2729
  "text": "EventSpan.THIS_EVENT",
2470
2730
  "name": "default"
2471
2731
  },
2472
2732
  {
2473
- "text": "iOS",
2733
+ "text": "Android, iOS",
2474
2734
  "name": "platform"
2475
2735
  },
2476
2736
  {
2477
- "text": " 7.1.0",
2478
- "name": "see"
2737
+ "text": "7.1.0",
2738
+ "name": "since"
2479
2739
  }
2480
2740
  ],
2481
- "docs": "The span of deletion.",
2741
+ "docs": "How much of a recurring series to delete.",
2482
2742
  "complexTypes": [
2483
2743
  "EventSpan"
2484
2744
  ],
@@ -2499,22 +2759,34 @@
2499
2759
  "methods": [],
2500
2760
  "properties": [
2501
2761
  {
2502
- "name": "id",
2762
+ "name": "cancelButtonText",
2503
2763
  "tags": [
2764
+ {
2765
+ "text": "'Cancel'",
2766
+ "name": "default"
2767
+ },
2768
+ {
2769
+ "text": "Android, iOS",
2770
+ "name": "platform"
2771
+ },
2504
2772
  {
2505
2773
  "text": "7.1.0",
2506
2774
  "name": "since"
2507
2775
  }
2508
2776
  ],
2509
- "docs": "",
2777
+ "docs": "Text to show on the cancel button.",
2510
2778
  "complexTypes": [],
2511
- "type": "string"
2779
+ "type": "string | undefined"
2512
2780
  },
2513
2781
  {
2514
- "name": "span",
2782
+ "name": "commit",
2515
2783
  "tags": [
2516
2784
  {
2517
- "text": "EventSpan.THIS_EVENT",
2785
+ "text": "false",
2786
+ "name": "example"
2787
+ },
2788
+ {
2789
+ "text": "true",
2518
2790
  "name": "default"
2519
2791
  },
2520
2792
  {
@@ -2522,19 +2794,41 @@
2522
2794
  "name": "platform"
2523
2795
  },
2524
2796
  {
2525
- "text": " 7.1.0",
2526
- "name": "see"
2797
+ "text": "8.3.0",
2798
+ "name": "since"
2527
2799
  }
2528
2800
  ],
2529
- "docs": "The span of deletion.",
2530
- "complexTypes": [
2531
- "EventSpan"
2801
+ "docs": "Whether to save the deletion to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
2802
+ "complexTypes": [],
2803
+ "type": "boolean | undefined"
2804
+ },
2805
+ {
2806
+ "name": "confirmButtonText",
2807
+ "tags": [
2808
+ {
2809
+ "text": "'Delete'",
2810
+ "name": "default"
2811
+ },
2812
+ {
2813
+ "text": "Android, iOS",
2814
+ "name": "platform"
2815
+ },
2816
+ {
2817
+ "text": "7.1.0",
2818
+ "name": "since"
2819
+ }
2532
2820
  ],
2533
- "type": "EventSpan"
2821
+ "docs": "Text to show on the confirm button.",
2822
+ "complexTypes": [],
2823
+ "type": "string | undefined"
2534
2824
  },
2535
2825
  {
2536
- "name": "title",
2826
+ "name": "id",
2537
2827
  "tags": [
2828
+ {
2829
+ "text": "'1234'",
2830
+ "name": "example"
2831
+ },
2538
2832
  {
2539
2833
  "text": "Android, iOS",
2540
2834
  "name": "platform"
@@ -2544,10 +2838,30 @@
2544
2838
  "name": "since"
2545
2839
  }
2546
2840
  ],
2547
- "docs": "Title of the dialog.",
2841
+ "docs": "The ID of the event to delete.",
2548
2842
  "complexTypes": [],
2549
2843
  "type": "string"
2550
2844
  },
2845
+ {
2846
+ "name": "instanceDate",
2847
+ "tags": [
2848
+ {
2849
+ "text": "1716153600000",
2850
+ "name": "example"
2851
+ },
2852
+ {
2853
+ "text": "Android",
2854
+ "name": "platform"
2855
+ },
2856
+ {
2857
+ "text": "8.3.0",
2858
+ "name": "since"
2859
+ }
2860
+ ],
2861
+ "docs": "The start time of the occurrence to delete, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nOn Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.",
2862
+ "complexTypes": [],
2863
+ "type": "number | undefined"
2864
+ },
2551
2865
  {
2552
2866
  "name": "message",
2553
2867
  "tags": [
@@ -2565,10 +2879,14 @@
2565
2879
  "type": "string"
2566
2880
  },
2567
2881
  {
2568
- "name": "confirmButtonText",
2882
+ "name": "span",
2569
2883
  "tags": [
2570
2884
  {
2571
- "text": "'Delete'",
2885
+ "text": "EventSpan.THIS_EVENT",
2886
+ "name": "example"
2887
+ },
2888
+ {
2889
+ "text": "EventSpan.THIS_EVENT",
2572
2890
  "name": "default"
2573
2891
  },
2574
2892
  {
@@ -2580,17 +2898,15 @@
2580
2898
  "name": "since"
2581
2899
  }
2582
2900
  ],
2583
- "docs": "Text to show on the confirm button.",
2584
- "complexTypes": [],
2585
- "type": "string | undefined"
2901
+ "docs": "How much of a recurring series to delete.",
2902
+ "complexTypes": [
2903
+ "EventSpan"
2904
+ ],
2905
+ "type": "EventSpan"
2586
2906
  },
2587
2907
  {
2588
- "name": "cancelButtonText",
2908
+ "name": "title",
2589
2909
  "tags": [
2590
- {
2591
- "text": "'Cancel'",
2592
- "name": "default"
2593
- },
2594
2910
  {
2595
2911
  "text": "Android, iOS",
2596
2912
  "name": "platform"
@@ -2600,9 +2916,9 @@
2600
2916
  "name": "since"
2601
2917
  }
2602
2918
  ],
2603
- "docs": "Text to show on the cancel button.",
2919
+ "docs": "Title of the dialog.",
2604
2920
  "complexTypes": [],
2605
- "type": "string | undefined"
2921
+ "type": "string"
2606
2922
  }
2607
2923
  ]
2608
2924
  },
@@ -2987,29 +3303,69 @@
2987
3303
  {
2988
3304
  "name": "from",
2989
3305
  "tags": [
3306
+ {
3307
+ "text": "1719792000000",
3308
+ "name": "example"
3309
+ },
2990
3310
  {
2991
3311
  "text": "7.1.0",
2992
3312
  "name": "since"
2993
3313
  }
2994
3314
  ],
2995
- "docs": "The timestamp in milliseconds.",
3315
+ "docs": "The start of the range, in milliseconds since the epoch.\nEvents still in progress at this time are included.",
2996
3316
  "complexTypes": [],
2997
3317
  "type": "number"
2998
3318
  },
2999
3319
  {
3000
3320
  "name": "to",
3001
3321
  "tags": [
3322
+ {
3323
+ "text": "1719878400000",
3324
+ "name": "example"
3325
+ },
3002
3326
  {
3003
3327
  "text": "7.1.0",
3004
3328
  "name": "since"
3005
3329
  }
3006
3330
  ],
3007
- "docs": "The timestamp in milliseconds.",
3331
+ "docs": "The end of the range, in milliseconds since the epoch.\nEvents that begin at or after this time are typically excluded; prefer the\nnext day's start when querying a single calendar day.",
3008
3332
  "complexTypes": [],
3009
3333
  "type": "number"
3010
3334
  }
3011
3335
  ]
3012
3336
  },
3337
+ {
3338
+ "name": "SelectCalendarsWithPromptResult",
3339
+ "slug": "selectcalendarswithpromptresult",
3340
+ "docs": "",
3341
+ "tags": [
3342
+ {
3343
+ "text": "8.4.0",
3344
+ "name": "since"
3345
+ }
3346
+ ],
3347
+ "methods": [],
3348
+ "properties": [
3349
+ {
3350
+ "name": "result",
3351
+ "tags": [
3352
+ {
3353
+ "text": "iOS",
3354
+ "name": "platform"
3355
+ },
3356
+ {
3357
+ "text": "8.4.0",
3358
+ "name": "since"
3359
+ }
3360
+ ],
3361
+ "docs": "Calendars the user confirmed in the chooser.\nEmpty when the user cancels.",
3362
+ "complexTypes": [
3363
+ "Calendar"
3364
+ ],
3365
+ "type": "Calendar[]"
3366
+ }
3367
+ ]
3368
+ },
3013
3369
  {
3014
3370
  "name": "Calendar",
3015
3371
  "slug": "calendar",
@@ -3050,9 +3406,9 @@
3050
3406
  "name": "since"
3051
3407
  }
3052
3408
  ],
3053
- "docs": "",
3409
+ "docs": "Display title of the calendar.\nMay be `null` when the platform does not provide a title.",
3054
3410
  "complexTypes": [],
3055
- "type": "string"
3411
+ "type": "string | null"
3056
3412
  },
3057
3413
  {
3058
3414
  "name": "internalTitle",
@@ -3077,14 +3433,22 @@
3077
3433
  "text": "Android, iOS",
3078
3434
  "name": "platform"
3079
3435
  },
3436
+ {
3437
+ "text": "#0000FF",
3438
+ "name": "example"
3439
+ },
3440
+ {
3441
+ "text": "#0000FF80",
3442
+ "name": "example"
3443
+ },
3080
3444
  {
3081
3445
  "text": "7.1.0",
3082
3446
  "name": "since"
3083
3447
  }
3084
3448
  ],
3085
- "docs": "",
3449
+ "docs": "Calendar color as a hex string.\n\nFormat: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\nMay be `null` when the platform does not provide a color.",
3086
3450
  "complexTypes": [],
3087
- "type": "string"
3451
+ "type": "string | null"
3088
3452
  },
3089
3453
  {
3090
3454
  "name": "isImmutable",
@@ -3267,6 +3631,10 @@
3267
3631
  {
3268
3632
  "name": "type",
3269
3633
  "tags": [
3634
+ {
3635
+ "text": "iOS",
3636
+ "name": "platform"
3637
+ },
3270
3638
  {
3271
3639
  "text": "7.1.0",
3272
3640
  "name": "since"
@@ -3281,6 +3649,10 @@
3281
3649
  {
3282
3650
  "name": "id",
3283
3651
  "tags": [
3652
+ {
3653
+ "text": "iOS",
3654
+ "name": "platform"
3655
+ },
3284
3656
  {
3285
3657
  "text": "7.1.0",
3286
3658
  "name": "since"
@@ -3293,6 +3665,10 @@
3293
3665
  {
3294
3666
  "name": "title",
3295
3667
  "tags": [
3668
+ {
3669
+ "text": "iOS",
3670
+ "name": "platform"
3671
+ },
3296
3672
  {
3297
3673
  "text": "7.1.0",
3298
3674
  "name": "since"
@@ -3352,6 +3728,104 @@
3352
3728
  }
3353
3729
  ]
3354
3730
  },
3731
+ {
3732
+ "name": "FetchAllCalendarSourcesResult",
3733
+ "slug": "fetchallcalendarsourcesresult",
3734
+ "docs": "",
3735
+ "tags": [
3736
+ {
3737
+ "text": "8.4.0",
3738
+ "name": "since"
3739
+ }
3740
+ ],
3741
+ "methods": [],
3742
+ "properties": [
3743
+ {
3744
+ "name": "result",
3745
+ "tags": [
3746
+ {
3747
+ "text": "iOS",
3748
+ "name": "platform"
3749
+ },
3750
+ {
3751
+ "text": "8.4.0",
3752
+ "name": "since"
3753
+ }
3754
+ ],
3755
+ "docs": "All calendar sources (accounts) known to EventKit.",
3756
+ "complexTypes": [
3757
+ "CalendarSource"
3758
+ ],
3759
+ "type": "CalendarSource[]"
3760
+ }
3761
+ ]
3762
+ },
3763
+ {
3764
+ "name": "ListCalendarsResult",
3765
+ "slug": "listcalendarsresult",
3766
+ "docs": "",
3767
+ "tags": [
3768
+ {
3769
+ "text": "8.4.0",
3770
+ "name": "since"
3771
+ }
3772
+ ],
3773
+ "methods": [],
3774
+ "properties": [
3775
+ {
3776
+ "name": "result",
3777
+ "tags": [
3778
+ {
3779
+ "text": "Android, iOS",
3780
+ "name": "platform"
3781
+ },
3782
+ {
3783
+ "text": "8.4.0",
3784
+ "name": "since"
3785
+ }
3786
+ ],
3787
+ "docs": "All available calendars.",
3788
+ "complexTypes": [
3789
+ "Calendar"
3790
+ ],
3791
+ "type": "Calendar[]"
3792
+ }
3793
+ ]
3794
+ },
3795
+ {
3796
+ "name": "GetDefaultCalendarOptions",
3797
+ "slug": "getdefaultcalendaroptions",
3798
+ "docs": "",
3799
+ "tags": [
3800
+ {
3801
+ "text": "8.4.0",
3802
+ "name": "since"
3803
+ }
3804
+ ],
3805
+ "methods": [],
3806
+ "properties": [
3807
+ {
3808
+ "name": "useFallbackCalendar",
3809
+ "tags": [
3810
+ {
3811
+ "text": "false",
3812
+ "name": "default"
3813
+ },
3814
+ {
3815
+ "text": "Android, iOS",
3816
+ "name": "platform"
3817
+ },
3818
+ {
3819
+ "text": "8.4.0",
3820
+ "name": "since"
3821
+ }
3822
+ ],
3823
+ "docs": "When there is no system default calendar, use the first available calendar.",
3824
+ "complexTypes": [],
3825
+ "type": "boolean | undefined"
3826
+ }
3827
+ ]
3828
+ },
3355
3829
  {
3356
3830
  "name": "OpenCalendarOptions",
3357
3831
  "slug": "opencalendaroptions",
@@ -3367,18 +3841,56 @@
3367
3841
  {
3368
3842
  "name": "date",
3369
3843
  "tags": [
3844
+ {
3845
+ "text": "Date.now()",
3846
+ "name": "example"
3847
+ },
3370
3848
  {
3371
3849
  "text": "Date.now()",
3372
3850
  "name": "default"
3373
3851
  },
3852
+ {
3853
+ "text": "Android, iOS",
3854
+ "name": "platform"
3855
+ },
3374
3856
  {
3375
3857
  "text": "7.1.0",
3376
3858
  "name": "since"
3377
3859
  }
3378
3860
  ],
3379
- "docs": "",
3861
+ "docs": "The date to open the calendar at, in milliseconds since the epoch.",
3380
3862
  "complexTypes": [],
3381
- "type": "number"
3863
+ "type": "number | undefined"
3864
+ }
3865
+ ]
3866
+ },
3867
+ {
3868
+ "name": "CreateCalendarResult",
3869
+ "slug": "createcalendarresult",
3870
+ "docs": "",
3871
+ "tags": [
3872
+ {
3873
+ "text": "8.4.0",
3874
+ "name": "since"
3875
+ }
3876
+ ],
3877
+ "methods": [],
3878
+ "properties": [
3879
+ {
3880
+ "name": "id",
3881
+ "tags": [
3882
+ {
3883
+ "text": "Android, iOS",
3884
+ "name": "platform"
3885
+ },
3886
+ {
3887
+ "text": "8.4.0",
3888
+ "name": "since"
3889
+ }
3890
+ ],
3891
+ "docs": "Identifier of the newly created calendar.",
3892
+ "complexTypes": [],
3893
+ "type": "string"
3382
3894
  }
3383
3895
  ]
3384
3896
  },
@@ -3418,15 +3930,19 @@
3418
3930
  "name": "platform"
3419
3931
  },
3420
3932
  {
3421
- "text": "#0000FF",
3933
+ "text": "#007AFF",
3422
3934
  "name": "example"
3423
3935
  },
3936
+ {
3937
+ "text": "#007AFF",
3938
+ "name": "default"
3939
+ },
3424
3940
  {
3425
3941
  "text": "5.2.0",
3426
3942
  "name": "since"
3427
3943
  }
3428
3944
  ],
3429
- "docs": "The color of the calendar.\nShould be provided on Android.",
3945
+ "docs": "The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.\n\nWhen omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).",
3430
3946
  "complexTypes": [],
3431
3947
  "type": "string | undefined"
3432
3948
  },
@@ -3442,13 +3958,17 @@
3442
3958
  "name": "since"
3443
3959
  }
3444
3960
  ],
3445
- "docs": "",
3961
+ "docs": "The EventKit source (account) where the calendar should be created.\n\nIf provided, it must match an existing source from `fetchAllCalendarSources()`.\nIf omitted, iCloud is used when available, otherwise the local source.",
3446
3962
  "complexTypes": [],
3447
3963
  "type": "string | undefined"
3448
3964
  },
3449
3965
  {
3450
3966
  "name": "accountName",
3451
3967
  "tags": [
3968
+ {
3969
+ "text": "plugin@example.com",
3970
+ "name": "example"
3971
+ },
3452
3972
  {
3453
3973
  "text": "Android",
3454
3974
  "name": "platform"
@@ -3458,13 +3978,17 @@
3458
3978
  "name": "since"
3459
3979
  }
3460
3980
  ],
3461
- "docs": "Only needed on Android. Typically set to an email address.",
3981
+ "docs": "The account under which the calendar is registered.\nRequired on Android. Typically an email address.",
3462
3982
  "complexTypes": [],
3463
3983
  "type": "string | undefined"
3464
3984
  },
3465
3985
  {
3466
3986
  "name": "ownerAccount",
3467
3987
  "tags": [
3988
+ {
3989
+ "text": "plugin@example.com",
3990
+ "name": "example"
3991
+ },
3468
3992
  {
3469
3993
  "text": "Android",
3470
3994
  "name": "platform"
@@ -3474,7 +3998,7 @@
3474
3998
  "name": "since"
3475
3999
  }
3476
4000
  ],
3477
- "docs": "Only needed on Android. Typically set to an email address.",
4001
+ "docs": "The owner of the calendar.\nRequired on Android. Typically an email address.",
3478
4002
  "complexTypes": [],
3479
4003
  "type": "string | undefined"
3480
4004
  }
@@ -3495,6 +4019,10 @@
3495
4019
  {
3496
4020
  "name": "id",
3497
4021
  "tags": [
4022
+ {
4023
+ "text": "Android, iOS",
4024
+ "name": "platform"
4025
+ },
3498
4026
  {
3499
4027
  "text": "7.1.0",
3500
4028
  "name": "since"
@@ -3546,7 +4074,7 @@
3546
4074
  "name": "since"
3547
4075
  }
3548
4076
  ],
3549
- "docs": "",
4077
+ "docs": "Display title of the calendar.\n\nOn Android this updates both `CALENDAR_DISPLAY_NAME` (`title`) and\n`Calendars.NAME` (`internalTitle`).",
3550
4078
  "complexTypes": [],
3551
4079
  "type": "string | undefined"
3552
4080
  },
@@ -3558,7 +4086,7 @@
3558
4086
  "name": "platform"
3559
4087
  },
3560
4088
  {
3561
- "text": "#0000FF",
4089
+ "text": "#007AFF",
3562
4090
  "name": "example"
3563
4091
  },
3564
4092
  {
@@ -3566,7 +4094,7 @@
3566
4094
  "name": "since"
3567
4095
  }
3568
4096
  ],
3569
- "docs": "",
4097
+ "docs": "The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.",
3570
4098
  "complexTypes": [],
3571
4099
  "type": "string | undefined"
3572
4100
  }
@@ -4711,7 +5239,7 @@
4711
5239
  "name": "since"
4712
5240
  }
4713
5241
  ],
4714
- "docs": "Permission required for reading reminders."
5242
+ "docs": "Permission required for reading reminders.\n\nOn Android, reminders are not supported. `checkPermission` and\n`checkAllPermissions` return `\"prompt\"` for this scope.\n`requestPermission` rejects with `Invalid scope.`."
4715
5243
  },
4716
5244
  {
4717
5245
  "name": "WRITE_CALENDAR",
@@ -4749,7 +5277,7 @@
4749
5277
  "name": "since"
4750
5278
  }
4751
5279
  ],
4752
- "docs": "Permission required for adding or modifying reminders."
5280
+ "docs": "Permission required for adding or modifying reminders.\n\nOn Android, reminders are not supported. `checkPermission` and\n`checkAllPermissions` return `\"prompt\"` for this scope.\n`requestPermission` rejects with `Invalid scope.`."
4753
5281
  }
4754
5282
  ]
4755
5283
  },
@@ -4842,7 +5370,7 @@
4842
5370
  "name": "since"
4843
5371
  }
4844
5372
  ],
4845
- "docs": ""
5373
+ "docs": "Only the identified event or occurrence."
4846
5374
  },
4847
5375
  {
4848
5376
  "name": "THIS_AND_FUTURE_EVENTS",
@@ -4852,7 +5380,7 @@
4852
5380
  "name": "since"
4853
5381
  }
4854
5382
  ],
4855
- "docs": ""
5383
+ "docs": "The identified occurrence and future occurrences in the series."
4856
5384
  }
4857
5385
  ]
4858
5386
  },