@ebarooni/capacitor-calendar 8.3.0 → 8.5.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 (94) hide show
  1. package/README.md +225 -97
  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 +31 -21
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +59 -15
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +68 -31
  15. package/dist/docs.json +562 -70
  16. package/dist/esm/index.d.ts +12 -2
  17. package/dist/esm/index.js +2 -1
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +8 -0
  20. package/dist/esm/schemas/enums/calendar-permission-scope.js +8 -0
  21. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
  22. package/dist/esm/schemas/interfaces/calendar-source.d.ts +3 -0
  23. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  24. package/dist/esm/schemas/interfaces/calendar.d.ts +12 -2
  25. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  26. package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
  27. package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
  28. package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
  29. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +16 -5
  30. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
  31. package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
  32. package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
  33. package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
  34. package/dist/esm/schemas/interfaces/create-event-options.d.ts +22 -13
  35. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
  36. package/dist/esm/schemas/interfaces/create-event-result.d.ts +23 -0
  37. package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
  38. package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
  39. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +14 -0
  40. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
  41. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
  42. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
  43. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
  44. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
  45. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
  46. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
  47. package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
  48. package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
  49. package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
  50. package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
  51. package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
  52. package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
  53. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
  54. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
  55. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +8 -1
  56. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
  57. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
  58. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
  59. package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
  60. package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
  61. package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
  62. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
  63. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
  64. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
  65. package/dist/esm/sub-definitions/calendar-access.d.ts +22 -10
  66. package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
  67. package/dist/esm/sub-definitions/calendar-operations.d.ts +61 -14
  68. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
  69. package/dist/esm/sub-definitions/event-operations.d.ts +35 -9
  70. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  71. package/dist/esm/sub-definitions/reminders-access.d.ts +4 -0
  72. package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
  73. package/dist/esm/web/download-ics-file.d.ts +18 -0
  74. package/dist/esm/web/download-ics-file.js +33 -0
  75. package/dist/esm/web/download-ics-file.js.map +1 -0
  76. package/dist/esm/web/ics.d.ts +21 -0
  77. package/dist/esm/web/ics.js +252 -0
  78. package/dist/esm/web/ics.js.map +1 -0
  79. package/dist/esm/web.d.ts +19 -27
  80. package/dist/esm/web.js +14 -3
  81. package/dist/esm/web.js.map +1 -1
  82. package/dist/plugin.cjs.js +306 -3
  83. package/dist/plugin.cjs.js.map +1 -1
  84. package/dist/plugin.js +306 -3
  85. package/dist/plugin.js.map +1 -1
  86. package/ios/Plugin/CapacitorCalendarPlugin.swift +19 -16
  87. package/ios/Plugin/Implementation/CapacitorCalendar.swift +64 -34
  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/GetDefaultCalendarInput.swift +13 -0
  91. package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +4 -1
  92. package/ios/Plugin/PluginError.swift +68 -56
  93. package/ios/Plugin/Utils/ImplementationHelper.swift +15 -12
  94. 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
  ],
@@ -229,7 +257,7 @@
229
257
  },
230
258
  {
231
259
  "name": "createEventWithPrompt",
232
- "signature": "(options?: CreateEventWithPromptOptions | undefined) => Promise<{ id: string | null; }>",
260
+ "signature": "(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>",
233
261
  "parameters": [
234
262
  {
235
263
  "name": "options",
@@ -237,7 +265,7 @@
237
265
  "type": "CreateEventWithPromptOptions | undefined"
238
266
  }
239
267
  ],
240
- "returns": "Promise<{ id: string | null; }>",
268
+ "returns": "Promise<CreateEventWithPromptResult>",
241
269
  "tags": [
242
270
  {
243
271
  "name": "example",
@@ -252,8 +280,9 @@
252
280
  "text": "0.1.0"
253
281
  }
254
282
  ],
255
- "docs": "Opens the system calendar interface to create a new event.\nOn Android always returns `null`.\nFetch the events to find the ID of the newly created event.",
283
+ "docs": "Opens the system calendar interface to create a new event.\nOn Android always returns `null` for `id`.\nFetch the events to find the ID of the newly created event.",
256
284
  "complexTypes": [
285
+ "CreateEventWithPromptResult",
257
286
  "CreateEventWithPromptOptions"
258
287
  ],
259
288
  "slug": "createeventwithprompt"
@@ -292,7 +321,7 @@
292
321
  },
293
322
  {
294
323
  "name": "createEvent",
295
- "signature": "(options: CreateEventOptions) => Promise<{ id: string; }>",
324
+ "signature": "(options: CreateEventOptions) => Promise<CreateEventResult>",
296
325
  "parameters": [
297
326
  {
298
327
  "name": "options",
@@ -300,19 +329,24 @@
300
329
  "type": "CreateEventOptions"
301
330
  }
302
331
  ],
303
- "returns": "Promise<{ id: string; }>",
332
+ "returns": "Promise<CreateEventResult>",
304
333
  "tags": [
334
+ {
335
+ "name": "example",
336
+ "text": "const { id, ics } = await CapacitorCalendar.createEvent({\n title: 'Team standup',\n startDate: Date.now(),\n icsFileName: 'team-standup.ics',\n});\nif (ics) {\n await downloadIcsFile(ics);\n}"
337
+ },
305
338
  {
306
339
  "name": "platform",
307
- "text": "iOS, Android"
340
+ "text": "Android, iOS, Web"
308
341
  },
309
342
  {
310
343
  "name": "since",
311
344
  "text": "0.4.0"
312
345
  }
313
346
  ],
314
- "docs": "Creates an event in the calendar.",
347
+ "docs": "Creates an event in the calendar.\nOn Android and iOS, inserts into the system calendar and returns its `id`.\nOn Web, there is no system calendar store: builds an `.ics` `File` as `ics`.\nThe app must download or open that file (for example with `downloadIcsFile(...)`);\nthis method does not trigger a download.",
315
348
  "complexTypes": [
349
+ "CreateEventResult",
316
350
  "CreateEventOptions"
317
351
  ],
318
352
  "slug": "createevent"
@@ -442,6 +476,10 @@
442
476
  ],
443
477
  "returns": "Promise<{ result: CalendarEvent[]; }>",
444
478
  "tags": [
479
+ {
480
+ "name": "example",
481
+ "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});"
482
+ },
445
483
  {
446
484
  "name": "platform",
447
485
  "text": "Android, iOS"
@@ -451,7 +489,7 @@
451
489
  "text": "0.10.0"
452
490
  }
453
491
  ],
454
- "docs": "Retrieves the events within a date range.",
492
+ "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
493
  "complexTypes": [
456
494
  "CalendarEvent",
457
495
  "ListEventsInRangeOptions"
@@ -479,7 +517,7 @@
479
517
  },
480
518
  {
481
519
  "name": "selectCalendarsWithPrompt",
482
- "signature": "(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<{ result: Calendar[]; }>",
520
+ "signature": "(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<SelectCalendarsWithPromptResult>",
483
521
  "parameters": [
484
522
  {
485
523
  "name": "options",
@@ -487,7 +525,7 @@
487
525
  "type": "SelectCalendarsWithPromptOptions | undefined"
488
526
  }
489
527
  ],
490
- "returns": "Promise<{ result: Calendar[]; }>",
528
+ "returns": "Promise<SelectCalendarsWithPromptResult>",
491
529
  "tags": [
492
530
  {
493
531
  "name": "platform",
@@ -498,18 +536,18 @@
498
536
  "text": "0.2.0"
499
537
  }
500
538
  ],
501
- "docs": "Opens a system interface to choose one or multiple calendars.",
539
+ "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
540
  "complexTypes": [
503
- "Calendar",
541
+ "SelectCalendarsWithPromptResult",
504
542
  "SelectCalendarsWithPromptOptions"
505
543
  ],
506
544
  "slug": "selectcalendarswithprompt"
507
545
  },
508
546
  {
509
547
  "name": "fetchAllCalendarSources",
510
- "signature": "() => Promise<{ result: CalendarSource[]; }>",
548
+ "signature": "() => Promise<FetchAllCalendarSourcesResult>",
511
549
  "parameters": [],
512
- "returns": "Promise<{ result: CalendarSource[]; }>",
550
+ "returns": "Promise<FetchAllCalendarSourcesResult>",
513
551
  "tags": [
514
552
  {
515
553
  "name": "platform",
@@ -520,17 +558,17 @@
520
558
  "text": "6.6.0"
521
559
  }
522
560
  ],
523
- "docs": "Retrieves a list of calendar sources.",
561
+ "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
562
  "complexTypes": [
525
- "CalendarSource"
563
+ "FetchAllCalendarSourcesResult"
526
564
  ],
527
565
  "slug": "fetchallcalendarsources"
528
566
  },
529
567
  {
530
568
  "name": "listCalendars",
531
- "signature": "() => Promise<{ result: Calendar[]; }>",
569
+ "signature": "() => Promise<ListCalendarsResult>",
532
570
  "parameters": [],
533
- "returns": "Promise<{ result: Calendar[]; }>",
571
+ "returns": "Promise<ListCalendarsResult>",
534
572
  "tags": [
535
573
  {
536
574
  "name": "platform",
@@ -541,16 +579,22 @@
541
579
  "text": "7.1.0"
542
580
  }
543
581
  ],
544
- "docs": "Retrieves a list of all available calendars.",
582
+ "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
583
  "complexTypes": [
546
- "Calendar"
584
+ "ListCalendarsResult"
547
585
  ],
548
586
  "slug": "listcalendars"
549
587
  },
550
588
  {
551
589
  "name": "getDefaultCalendar",
552
- "signature": "() => Promise<{ result: Calendar | null; }>",
553
- "parameters": [],
590
+ "signature": "(options?: GetDefaultCalendarOptions | undefined) => Promise<{ result: Calendar | null; }>",
591
+ "parameters": [
592
+ {
593
+ "name": "options",
594
+ "docs": "",
595
+ "type": "GetDefaultCalendarOptions | undefined"
596
+ }
597
+ ],
554
598
  "returns": "Promise<{ result: Calendar | null; }>",
555
599
  "tags": [
556
600
  {
@@ -562,9 +606,10 @@
562
606
  "text": "0.3.0"
563
607
  }
564
608
  ],
565
- "docs": "Retrieves the default calendar.",
609
+ "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
610
  "complexTypes": [
567
- "Calendar"
611
+ "Calendar",
612
+ "GetDefaultCalendarOptions"
568
613
  ],
569
614
  "slug": "getdefaultcalendar"
570
615
  },
@@ -601,7 +646,7 @@
601
646
  },
602
647
  {
603
648
  "name": "createCalendar",
604
- "signature": "(options: CreateCalendarOptions) => Promise<{ id: string; }>",
649
+ "signature": "(options: CreateCalendarOptions) => Promise<CreateCalendarResult>",
605
650
  "parameters": [
606
651
  {
607
652
  "name": "options",
@@ -609,8 +654,36 @@
609
654
  "type": "CreateCalendarOptions"
610
655
  }
611
656
  ],
612
- "returns": "Promise<{ id: string; }>",
657
+ "returns": "Promise<CreateCalendarResult>",
613
658
  "tags": [
659
+ {
660
+ "name": "example",
661
+ "text": "CapacitorCalendar.createCalendar({\n title: 'Work',\n accountName: 'plugin@example.com',\n ownerAccount: 'plugin@example.com',\n});"
662
+ },
663
+ {
664
+ "name": "throws",
665
+ "text": "{Error} `Title must be provided.` — when `title` is missing."
666
+ },
667
+ {
668
+ "name": "throws",
669
+ "text": "{Error} `Invalid color format.` — when `color` is present but invalid."
670
+ },
671
+ {
672
+ "name": "throws",
673
+ "text": "{Error} `Account name must be provided.` — when `accountName` is missing on Android."
674
+ },
675
+ {
676
+ "name": "throws",
677
+ "text": "{Error} `Owner account must be provided.` — when `ownerAccount` is missing on Android."
678
+ },
679
+ {
680
+ "name": "throws",
681
+ "text": "{Error} `Calendar source not found.` — when `sourceId` is set and no EventKit source matches (iOS)."
682
+ },
683
+ {
684
+ "name": "throws",
685
+ "text": "{Error} `Failed to retrieve calendar ID.` — when the calendar is created but no id is returned."
686
+ },
614
687
  {
615
688
  "name": "platform",
616
689
  "text": "Android, iOS"
@@ -620,8 +693,9 @@
620
693
  "text": "5.2.0"
621
694
  }
622
695
  ],
623
- "docs": "Creates a calendar.",
696
+ "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
697
  "complexTypes": [
698
+ "CreateCalendarResult",
625
699
  "CreateCalendarOptions"
626
700
  ],
627
701
  "slug": "createcalendar"
@@ -638,6 +712,18 @@
638
712
  ],
639
713
  "returns": "Promise<void>",
640
714
  "tags": [
715
+ {
716
+ "name": "throws",
717
+ "text": "{Error} `Calendar ID must be provided.` — when `id` is missing."
718
+ },
719
+ {
720
+ "name": "throws",
721
+ "text": "{Error} `Invalid calendar ID.` — when `id` is not a numeric Android calendar id."
722
+ },
723
+ {
724
+ "name": "throws",
725
+ "text": "{Error} `Calendar not found.` — when no calendar exists for `id`."
726
+ },
641
727
  {
642
728
  "name": "platform",
643
729
  "text": "Android, iOS"
@@ -665,6 +751,30 @@
665
751
  ],
666
752
  "returns": "Promise<void>",
667
753
  "tags": [
754
+ {
755
+ "name": "throws",
756
+ "text": "{Error} `Calendar ID must be provided.` — when `id` is missing."
757
+ },
758
+ {
759
+ "name": "throws",
760
+ "text": "{Error} `Invalid calendar ID.` — when `id` is not a numeric Android calendar id."
761
+ },
762
+ {
763
+ "name": "throws",
764
+ "text": "{Error} `At least one of title or color must be provided.` — when both are omitted."
765
+ },
766
+ {
767
+ "name": "throws",
768
+ "text": "{Error} `Invalid color format.` — when `color` is present but invalid."
769
+ },
770
+ {
771
+ "name": "throws",
772
+ "text": "{Error} `Calendar not found.` — when no calendar exists for `id`."
773
+ },
774
+ {
775
+ "name": "throws",
776
+ "text": "{Error} `Calendar is not modifiable.` — when the calendar cannot be modified (iOS)."
777
+ },
668
778
  {
669
779
  "name": "platform",
670
780
  "text": "Android, iOS"
@@ -1049,6 +1159,108 @@
1049
1159
  "properties": []
1050
1160
  },
1051
1161
  "interfaces": [
1162
+ {
1163
+ "name": "CheckPermissionOptions",
1164
+ "slug": "checkpermissionoptions",
1165
+ "docs": "Options for {@link CalendarAccess#checkPermission}.",
1166
+ "tags": [
1167
+ {
1168
+ "text": "8.3.1",
1169
+ "name": "since"
1170
+ }
1171
+ ],
1172
+ "methods": [],
1173
+ "properties": [
1174
+ {
1175
+ "name": "scope",
1176
+ "tags": [
1177
+ {
1178
+ "text": "CalendarPermissionScope.READ_CALENDAR",
1179
+ "name": "example"
1180
+ },
1181
+ {
1182
+ "text": "Android, iOS",
1183
+ "name": "platform"
1184
+ },
1185
+ {
1186
+ "text": "8.3.1",
1187
+ "name": "since"
1188
+ }
1189
+ ],
1190
+ "docs": "The permission scope to check.\n\nOn Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`\n(reminders are not supported on Android).",
1191
+ "complexTypes": [
1192
+ "CalendarPermissionScope"
1193
+ ],
1194
+ "type": "CalendarPermissionScope"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ "name": "RequestPermissionOptions",
1200
+ "slug": "requestpermissionoptions",
1201
+ "docs": "Options for {@link CalendarAccess#requestPermission}.",
1202
+ "tags": [
1203
+ {
1204
+ "text": "8.3.1",
1205
+ "name": "since"
1206
+ }
1207
+ ],
1208
+ "methods": [],
1209
+ "properties": [
1210
+ {
1211
+ "name": "scope",
1212
+ "tags": [
1213
+ {
1214
+ "text": "CalendarPermissionScope.READ_CALENDAR",
1215
+ "name": "example"
1216
+ },
1217
+ {
1218
+ "text": "Android, iOS",
1219
+ "name": "platform"
1220
+ },
1221
+ {
1222
+ "text": "8.3.1",
1223
+ "name": "since"
1224
+ }
1225
+ ],
1226
+ "docs": "The permission scope to request.",
1227
+ "complexTypes": [
1228
+ "CalendarPermissionScope"
1229
+ ],
1230
+ "type": "CalendarPermissionScope"
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ "name": "CreateEventWithPromptResult",
1236
+ "slug": "createeventwithpromptresult",
1237
+ "docs": "",
1238
+ "tags": [
1239
+ {
1240
+ "text": "8.5.0",
1241
+ "name": "since"
1242
+ }
1243
+ ],
1244
+ "methods": [],
1245
+ "properties": [
1246
+ {
1247
+ "name": "id",
1248
+ "tags": [
1249
+ {
1250
+ "text": "Android, iOS",
1251
+ "name": "platform"
1252
+ },
1253
+ {
1254
+ "text": "0.1.0",
1255
+ "name": "since"
1256
+ }
1257
+ ],
1258
+ "docs": "The identifier of the created event.\nAlways `null` on Android.\nPresent on iOS when the user saves.",
1259
+ "complexTypes": [],
1260
+ "type": "string | null"
1261
+ }
1262
+ ]
1263
+ },
1052
1264
  {
1053
1265
  "name": "CreateEventWithPromptOptions",
1054
1266
  "slug": "createeventwithpromptoptions",
@@ -1688,6 +1900,54 @@
1688
1900
  }
1689
1901
  ]
1690
1902
  },
1903
+ {
1904
+ "name": "CreateEventResult",
1905
+ "slug": "createeventresult",
1906
+ "docs": "",
1907
+ "tags": [
1908
+ {
1909
+ "text": "8.5.0",
1910
+ "name": "since"
1911
+ }
1912
+ ],
1913
+ "methods": [],
1914
+ "properties": [
1915
+ {
1916
+ "name": "ics",
1917
+ "tags": [
1918
+ {
1919
+ "text": "Web",
1920
+ "name": "platform"
1921
+ },
1922
+ {
1923
+ "text": "8.5.0",
1924
+ "name": "since"
1925
+ }
1926
+ ],
1927
+ "docs": "An `.ics` file (`text/calendar`) with one `VEVENT`.\nPresent only on Web. The plugin does not write to a calendar store or start a download;\nuse `downloadIcsFile(...)` or pass the `File` to another API.",
1928
+ "complexTypes": [
1929
+ "File"
1930
+ ],
1931
+ "type": "File"
1932
+ },
1933
+ {
1934
+ "name": "id",
1935
+ "tags": [
1936
+ {
1937
+ "text": "Android, iOS",
1938
+ "name": "platform"
1939
+ },
1940
+ {
1941
+ "text": "0.4.0",
1942
+ "name": "since"
1943
+ }
1944
+ ],
1945
+ "docs": "The identifier of the created event.\nAlways `null` on Web.\nPresent on Android and iOS after a successful create.",
1946
+ "complexTypes": [],
1947
+ "type": "string | null"
1948
+ }
1949
+ ]
1950
+ },
1691
1951
  {
1692
1952
  "name": "CreateEventOptions",
1693
1953
  "slug": "createeventoptions",
@@ -1708,7 +1968,7 @@
1708
1968
  "name": "example"
1709
1969
  },
1710
1970
  {
1711
- "text": "Android, iOS",
1971
+ "text": "Android, iOS, Web",
1712
1972
  "name": "platform"
1713
1973
  },
1714
1974
  {
@@ -1724,7 +1984,7 @@
1724
1984
  "name": "attendees",
1725
1985
  "tags": [
1726
1986
  {
1727
- "text": "Android",
1987
+ "text": "Android, Web",
1728
1988
  "name": "platform"
1729
1989
  },
1730
1990
  {
@@ -1742,7 +2002,7 @@
1742
2002
  "name": "availability",
1743
2003
  "tags": [
1744
2004
  {
1745
- "text": "Android, iOS",
2005
+ "text": "Android, iOS, Web",
1746
2006
  "name": "platform"
1747
2007
  },
1748
2008
  {
@@ -1824,7 +2084,7 @@
1824
2084
  "name": "description",
1825
2085
  "tags": [
1826
2086
  {
1827
- "text": "Android, iOS",
2087
+ "text": "Android, iOS, Web",
1828
2088
  "name": "platform"
1829
2089
  },
1830
2090
  {
@@ -1868,7 +2128,7 @@
1868
2128
  "name": "endDate",
1869
2129
  "tags": [
1870
2130
  {
1871
- "text": "Android, iOS",
2131
+ "text": "Android, iOS, Web",
1872
2132
  "name": "platform"
1873
2133
  },
1874
2134
  {
@@ -1880,11 +2140,31 @@
1880
2140
  "complexTypes": [],
1881
2141
  "type": "number | undefined"
1882
2142
  },
2143
+ {
2144
+ "name": "icsFileName",
2145
+ "tags": [
2146
+ {
2147
+ "text": "'team-standup.ics'",
2148
+ "name": "example"
2149
+ },
2150
+ {
2151
+ "text": "Web",
2152
+ "name": "platform"
2153
+ },
2154
+ {
2155
+ "text": "8.5.0",
2156
+ "name": "since"
2157
+ }
2158
+ ],
2159
+ "docs": "Download filename for the `.ics` file.\nWhen omitted, a name is derived from `title` (fallback `event.ics`).\nIf the value has no `.ics` extension, `.ics` is appended.",
2160
+ "complexTypes": [],
2161
+ "type": "string | undefined"
2162
+ },
1883
2163
  {
1884
2164
  "name": "isAllDay",
1885
2165
  "tags": [
1886
2166
  {
1887
- "text": "Android, iOS",
2167
+ "text": "Android, iOS, Web",
1888
2168
  "name": "platform"
1889
2169
  },
1890
2170
  {
@@ -1900,7 +2180,7 @@
1900
2180
  "name": "location",
1901
2181
  "tags": [
1902
2182
  {
1903
- "text": "Android, iOS",
2183
+ "text": "Android, iOS, Web",
1904
2184
  "name": "platform"
1905
2185
  },
1906
2186
  {
@@ -1916,7 +2196,7 @@
1916
2196
  "name": "organizer",
1917
2197
  "tags": [
1918
2198
  {
1919
- "text": "Android",
2199
+ "text": "Android, Web",
1920
2200
  "name": "platform"
1921
2201
  },
1922
2202
  {
@@ -1932,7 +2212,7 @@
1932
2212
  "name": "recurrence",
1933
2213
  "tags": [
1934
2214
  {
1935
- "text": "Android, iOS",
2215
+ "text": "Android, iOS, Web",
1936
2216
  "name": "platform"
1937
2217
  },
1938
2218
  {
@@ -1950,7 +2230,7 @@
1950
2230
  "name": "startDate",
1951
2231
  "tags": [
1952
2232
  {
1953
- "text": "Android, iOS",
2233
+ "text": "Android, iOS, Web",
1954
2234
  "name": "platform"
1955
2235
  },
1956
2236
  {
@@ -1966,7 +2246,7 @@
1966
2246
  "name": "title",
1967
2247
  "tags": [
1968
2248
  {
1969
- "text": "Android, iOS",
2249
+ "text": "Android, iOS, Web",
1970
2250
  "name": "platform"
1971
2251
  },
1972
2252
  {
@@ -1982,7 +2262,7 @@
1982
2262
  "name": "url",
1983
2263
  "tags": [
1984
2264
  {
1985
- "text": "iOS",
2265
+ "text": "iOS, Web",
1986
2266
  "name": "platform"
1987
2267
  },
1988
2268
  {
@@ -3127,29 +3407,69 @@
3127
3407
  {
3128
3408
  "name": "from",
3129
3409
  "tags": [
3410
+ {
3411
+ "text": "1719792000000",
3412
+ "name": "example"
3413
+ },
3130
3414
  {
3131
3415
  "text": "7.1.0",
3132
3416
  "name": "since"
3133
3417
  }
3134
3418
  ],
3135
- "docs": "The timestamp in milliseconds.",
3419
+ "docs": "The start of the range, in milliseconds since the epoch.\nEvents still in progress at this time are included.",
3136
3420
  "complexTypes": [],
3137
3421
  "type": "number"
3138
3422
  },
3139
3423
  {
3140
3424
  "name": "to",
3141
3425
  "tags": [
3426
+ {
3427
+ "text": "1719878400000",
3428
+ "name": "example"
3429
+ },
3142
3430
  {
3143
3431
  "text": "7.1.0",
3144
3432
  "name": "since"
3145
3433
  }
3146
3434
  ],
3147
- "docs": "The timestamp in milliseconds.",
3435
+ "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.",
3148
3436
  "complexTypes": [],
3149
3437
  "type": "number"
3150
3438
  }
3151
3439
  ]
3152
3440
  },
3441
+ {
3442
+ "name": "SelectCalendarsWithPromptResult",
3443
+ "slug": "selectcalendarswithpromptresult",
3444
+ "docs": "",
3445
+ "tags": [
3446
+ {
3447
+ "text": "8.4.0",
3448
+ "name": "since"
3449
+ }
3450
+ ],
3451
+ "methods": [],
3452
+ "properties": [
3453
+ {
3454
+ "name": "result",
3455
+ "tags": [
3456
+ {
3457
+ "text": "iOS",
3458
+ "name": "platform"
3459
+ },
3460
+ {
3461
+ "text": "8.4.0",
3462
+ "name": "since"
3463
+ }
3464
+ ],
3465
+ "docs": "Calendars the user confirmed in the chooser.\nEmpty when the user cancels.",
3466
+ "complexTypes": [
3467
+ "Calendar"
3468
+ ],
3469
+ "type": "Calendar[]"
3470
+ }
3471
+ ]
3472
+ },
3153
3473
  {
3154
3474
  "name": "Calendar",
3155
3475
  "slug": "calendar",
@@ -3190,9 +3510,9 @@
3190
3510
  "name": "since"
3191
3511
  }
3192
3512
  ],
3193
- "docs": "",
3513
+ "docs": "Display title of the calendar.\nMay be `null` when the platform does not provide a title.",
3194
3514
  "complexTypes": [],
3195
- "type": "string"
3515
+ "type": "string | null"
3196
3516
  },
3197
3517
  {
3198
3518
  "name": "internalTitle",
@@ -3217,14 +3537,22 @@
3217
3537
  "text": "Android, iOS",
3218
3538
  "name": "platform"
3219
3539
  },
3540
+ {
3541
+ "text": "#0000FF",
3542
+ "name": "example"
3543
+ },
3544
+ {
3545
+ "text": "#0000FF80",
3546
+ "name": "example"
3547
+ },
3220
3548
  {
3221
3549
  "text": "7.1.0",
3222
3550
  "name": "since"
3223
3551
  }
3224
3552
  ],
3225
- "docs": "",
3553
+ "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.",
3226
3554
  "complexTypes": [],
3227
- "type": "string"
3555
+ "type": "string | null"
3228
3556
  },
3229
3557
  {
3230
3558
  "name": "isImmutable",
@@ -3407,6 +3735,10 @@
3407
3735
  {
3408
3736
  "name": "type",
3409
3737
  "tags": [
3738
+ {
3739
+ "text": "iOS",
3740
+ "name": "platform"
3741
+ },
3410
3742
  {
3411
3743
  "text": "7.1.0",
3412
3744
  "name": "since"
@@ -3421,6 +3753,10 @@
3421
3753
  {
3422
3754
  "name": "id",
3423
3755
  "tags": [
3756
+ {
3757
+ "text": "iOS",
3758
+ "name": "platform"
3759
+ },
3424
3760
  {
3425
3761
  "text": "7.1.0",
3426
3762
  "name": "since"
@@ -3433,6 +3769,10 @@
3433
3769
  {
3434
3770
  "name": "title",
3435
3771
  "tags": [
3772
+ {
3773
+ "text": "iOS",
3774
+ "name": "platform"
3775
+ },
3436
3776
  {
3437
3777
  "text": "7.1.0",
3438
3778
  "name": "since"
@@ -3492,6 +3832,104 @@
3492
3832
  }
3493
3833
  ]
3494
3834
  },
3835
+ {
3836
+ "name": "FetchAllCalendarSourcesResult",
3837
+ "slug": "fetchallcalendarsourcesresult",
3838
+ "docs": "",
3839
+ "tags": [
3840
+ {
3841
+ "text": "8.4.0",
3842
+ "name": "since"
3843
+ }
3844
+ ],
3845
+ "methods": [],
3846
+ "properties": [
3847
+ {
3848
+ "name": "result",
3849
+ "tags": [
3850
+ {
3851
+ "text": "iOS",
3852
+ "name": "platform"
3853
+ },
3854
+ {
3855
+ "text": "8.4.0",
3856
+ "name": "since"
3857
+ }
3858
+ ],
3859
+ "docs": "All calendar sources (accounts) known to EventKit.",
3860
+ "complexTypes": [
3861
+ "CalendarSource"
3862
+ ],
3863
+ "type": "CalendarSource[]"
3864
+ }
3865
+ ]
3866
+ },
3867
+ {
3868
+ "name": "ListCalendarsResult",
3869
+ "slug": "listcalendarsresult",
3870
+ "docs": "",
3871
+ "tags": [
3872
+ {
3873
+ "text": "8.4.0",
3874
+ "name": "since"
3875
+ }
3876
+ ],
3877
+ "methods": [],
3878
+ "properties": [
3879
+ {
3880
+ "name": "result",
3881
+ "tags": [
3882
+ {
3883
+ "text": "Android, iOS",
3884
+ "name": "platform"
3885
+ },
3886
+ {
3887
+ "text": "8.4.0",
3888
+ "name": "since"
3889
+ }
3890
+ ],
3891
+ "docs": "All available calendars.",
3892
+ "complexTypes": [
3893
+ "Calendar"
3894
+ ],
3895
+ "type": "Calendar[]"
3896
+ }
3897
+ ]
3898
+ },
3899
+ {
3900
+ "name": "GetDefaultCalendarOptions",
3901
+ "slug": "getdefaultcalendaroptions",
3902
+ "docs": "",
3903
+ "tags": [
3904
+ {
3905
+ "text": "8.4.0",
3906
+ "name": "since"
3907
+ }
3908
+ ],
3909
+ "methods": [],
3910
+ "properties": [
3911
+ {
3912
+ "name": "useFallbackCalendar",
3913
+ "tags": [
3914
+ {
3915
+ "text": "false",
3916
+ "name": "default"
3917
+ },
3918
+ {
3919
+ "text": "Android, iOS",
3920
+ "name": "platform"
3921
+ },
3922
+ {
3923
+ "text": "8.4.0",
3924
+ "name": "since"
3925
+ }
3926
+ ],
3927
+ "docs": "When there is no system default calendar, use the first available calendar.",
3928
+ "complexTypes": [],
3929
+ "type": "boolean | undefined"
3930
+ }
3931
+ ]
3932
+ },
3495
3933
  {
3496
3934
  "name": "OpenCalendarOptions",
3497
3935
  "slug": "opencalendaroptions",
@@ -3507,18 +3945,56 @@
3507
3945
  {
3508
3946
  "name": "date",
3509
3947
  "tags": [
3948
+ {
3949
+ "text": "Date.now()",
3950
+ "name": "example"
3951
+ },
3510
3952
  {
3511
3953
  "text": "Date.now()",
3512
3954
  "name": "default"
3513
3955
  },
3956
+ {
3957
+ "text": "Android, iOS",
3958
+ "name": "platform"
3959
+ },
3514
3960
  {
3515
3961
  "text": "7.1.0",
3516
3962
  "name": "since"
3517
3963
  }
3518
3964
  ],
3519
- "docs": "",
3965
+ "docs": "The date to open the calendar at, in milliseconds since the epoch.",
3520
3966
  "complexTypes": [],
3521
- "type": "number"
3967
+ "type": "number | undefined"
3968
+ }
3969
+ ]
3970
+ },
3971
+ {
3972
+ "name": "CreateCalendarResult",
3973
+ "slug": "createcalendarresult",
3974
+ "docs": "",
3975
+ "tags": [
3976
+ {
3977
+ "text": "8.4.0",
3978
+ "name": "since"
3979
+ }
3980
+ ],
3981
+ "methods": [],
3982
+ "properties": [
3983
+ {
3984
+ "name": "id",
3985
+ "tags": [
3986
+ {
3987
+ "text": "Android, iOS",
3988
+ "name": "platform"
3989
+ },
3990
+ {
3991
+ "text": "8.4.0",
3992
+ "name": "since"
3993
+ }
3994
+ ],
3995
+ "docs": "Identifier of the newly created calendar.",
3996
+ "complexTypes": [],
3997
+ "type": "string"
3522
3998
  }
3523
3999
  ]
3524
4000
  },
@@ -3558,15 +4034,19 @@
3558
4034
  "name": "platform"
3559
4035
  },
3560
4036
  {
3561
- "text": "#0000FF",
4037
+ "text": "#007AFF",
3562
4038
  "name": "example"
3563
4039
  },
4040
+ {
4041
+ "text": "#007AFF",
4042
+ "name": "default"
4043
+ },
3564
4044
  {
3565
4045
  "text": "5.2.0",
3566
4046
  "name": "since"
3567
4047
  }
3568
4048
  ],
3569
- "docs": "The color of the calendar.\nShould be provided on Android.",
4049
+ "docs": "The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.\n\nWhen omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).",
3570
4050
  "complexTypes": [],
3571
4051
  "type": "string | undefined"
3572
4052
  },
@@ -3582,13 +4062,17 @@
3582
4062
  "name": "since"
3583
4063
  }
3584
4064
  ],
3585
- "docs": "",
4065
+ "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.",
3586
4066
  "complexTypes": [],
3587
4067
  "type": "string | undefined"
3588
4068
  },
3589
4069
  {
3590
4070
  "name": "accountName",
3591
4071
  "tags": [
4072
+ {
4073
+ "text": "plugin@example.com",
4074
+ "name": "example"
4075
+ },
3592
4076
  {
3593
4077
  "text": "Android",
3594
4078
  "name": "platform"
@@ -3598,13 +4082,17 @@
3598
4082
  "name": "since"
3599
4083
  }
3600
4084
  ],
3601
- "docs": "Only needed on Android. Typically set to an email address.",
4085
+ "docs": "The account under which the calendar is registered.\nRequired on Android. Typically an email address.",
3602
4086
  "complexTypes": [],
3603
4087
  "type": "string | undefined"
3604
4088
  },
3605
4089
  {
3606
4090
  "name": "ownerAccount",
3607
4091
  "tags": [
4092
+ {
4093
+ "text": "plugin@example.com",
4094
+ "name": "example"
4095
+ },
3608
4096
  {
3609
4097
  "text": "Android",
3610
4098
  "name": "platform"
@@ -3614,7 +4102,7 @@
3614
4102
  "name": "since"
3615
4103
  }
3616
4104
  ],
3617
- "docs": "Only needed on Android. Typically set to an email address.",
4105
+ "docs": "The owner of the calendar.\nRequired on Android. Typically an email address.",
3618
4106
  "complexTypes": [],
3619
4107
  "type": "string | undefined"
3620
4108
  }
@@ -3635,6 +4123,10 @@
3635
4123
  {
3636
4124
  "name": "id",
3637
4125
  "tags": [
4126
+ {
4127
+ "text": "Android, iOS",
4128
+ "name": "platform"
4129
+ },
3638
4130
  {
3639
4131
  "text": "7.1.0",
3640
4132
  "name": "since"
@@ -3686,7 +4178,7 @@
3686
4178
  "name": "since"
3687
4179
  }
3688
4180
  ],
3689
- "docs": "",
4181
+ "docs": "Display title of the calendar.\n\nOn Android this updates both `CALENDAR_DISPLAY_NAME` (`title`) and\n`Calendars.NAME` (`internalTitle`).",
3690
4182
  "complexTypes": [],
3691
4183
  "type": "string | undefined"
3692
4184
  },
@@ -3698,7 +4190,7 @@
3698
4190
  "name": "platform"
3699
4191
  },
3700
4192
  {
3701
- "text": "#0000FF",
4193
+ "text": "#007AFF",
3702
4194
  "name": "example"
3703
4195
  },
3704
4196
  {
@@ -3706,7 +4198,7 @@
3706
4198
  "name": "since"
3707
4199
  }
3708
4200
  ],
3709
- "docs": "",
4201
+ "docs": "The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.",
3710
4202
  "complexTypes": [],
3711
4203
  "type": "string | undefined"
3712
4204
  }
@@ -4851,7 +5343,7 @@
4851
5343
  "name": "since"
4852
5344
  }
4853
5345
  ],
4854
- "docs": "Permission required for reading reminders."
5346
+ "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.`."
4855
5347
  },
4856
5348
  {
4857
5349
  "name": "WRITE_CALENDAR",
@@ -4889,7 +5381,7 @@
4889
5381
  "name": "since"
4890
5382
  }
4891
5383
  ],
4892
- "docs": "Permission required for adding or modifying reminders."
5384
+ "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.`."
4893
5385
  }
4894
5386
  ]
4895
5387
  },