@ebarooni/capacitor-calendar 6.4.1 → 6.6.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 (40) hide show
  1. package/README.md +53 -5
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +200 -117
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +85 -3
  5. package/assets/images/text-logo.png +0 -0
  6. package/dist/docs.json +467 -70
  7. package/dist/esm/definitions.d.ts +205 -57
  8. package/dist/esm/definitions.js.map +1 -1
  9. package/dist/esm/index.d.ts +18 -14
  10. package/dist/esm/index.js +12 -9
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/schemas/enums/calendar-source-type.d.ts +38 -0
  13. package/dist/esm/schemas/enums/calendar-source-type.js +40 -0
  14. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -0
  15. package/dist/esm/schemas/enums/calendar-type.d.ts +28 -0
  16. package/dist/esm/schemas/enums/calendar-type.js +30 -0
  17. package/dist/esm/schemas/enums/calendar-type.js.map +1 -0
  18. package/dist/esm/schemas/enums/event-span.d.ts +16 -0
  19. package/dist/esm/schemas/enums/event-span.js +18 -0
  20. package/dist/esm/schemas/enums/event-span.js.map +1 -0
  21. package/dist/esm/schemas/interfaces/calendar-event.d.ts +14 -3
  22. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  23. package/dist/esm/schemas/interfaces/calendar-source.d.ts +15 -0
  24. package/dist/esm/schemas/interfaces/calendar-source.js +2 -0
  25. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -0
  26. package/dist/esm/schemas/interfaces/calendar.d.ts +43 -2
  27. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  28. package/dist/esm/web.d.ts +55 -11
  29. package/dist/esm/web.js +13 -2
  30. package/dist/esm/web.js.map +1 -1
  31. package/dist/plugin.cjs.js +101 -2
  32. package/dist/plugin.cjs.js.map +1 -1
  33. package/dist/plugin.js +101 -2
  34. package/dist/plugin.js.map +1 -1
  35. package/ios/Plugin/CapacitorCalendar.swift +238 -21
  36. package/ios/Plugin/CapacitorCalendarPlugin.m +4 -0
  37. package/ios/Plugin/CapacitorCalendarPlugin.swift +141 -15
  38. package/ios/Plugin/CapacitorReminders.swift +62 -8
  39. package/ios/Plugin/EventCreationParameters.swift +5 -2
  40. package/package.json +28 -18
package/dist/docs.json CHANGED
@@ -18,8 +18,7 @@
18
18
  "returns": "Promise<{ result: PermissionState; }>",
19
19
  "tags": [
20
20
  {
21
- "name": "method",
22
- "text": "checkPermission"
21
+ "name": "async"
23
22
  },
24
23
  {
25
24
  "name": "since",
@@ -56,8 +55,7 @@
56
55
  "returns": "Promise<PluginPermissionsMap>",
57
56
  "tags": [
58
57
  {
59
- "name": "method",
60
- "text": "checkAllPermissions"
58
+ "name": "async"
61
59
  },
62
60
  {
63
61
  "name": "since",
@@ -95,8 +93,7 @@
95
93
  "returns": "Promise<{ result: PermissionState; }>",
96
94
  "tags": [
97
95
  {
98
- "name": "method",
99
- "text": "requestPermission"
96
+ "name": "async"
100
97
  },
101
98
  {
102
99
  "name": "since",
@@ -133,8 +130,7 @@
133
130
  "returns": "Promise<PluginPermissionsMap>",
134
131
  "tags": [
135
132
  {
136
- "name": "method",
137
- "text": "requestAllPermissions"
133
+ "name": "async"
138
134
  },
139
135
  {
140
136
  "name": "since",
@@ -161,19 +157,18 @@
161
157
  },
162
158
  {
163
159
  "name": "createEventWithPrompt",
164
- "signature": "(options: { title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number; }) => Promise<{ result: string[]; }>",
160
+ "signature": "(options: { title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }) => Promise<{ result: string[]; }>",
165
161
  "parameters": [
166
162
  {
167
163
  "name": "options",
168
- "docs": "- Options for creating the event.",
169
- "type": "{ title: string; calendarId?: string | undefined; location?: string | undefined; startDate?: number | undefined; endDate?: number | undefined; isAllDay?: boolean | undefined; alertOffsetInMinutes?: number | undefined; }"
164
+ "docs": "Options for creating the event.",
165
+ "type": "{ title: string; calendarId?: string | undefined; location?: string | undefined; startDate?: number | undefined; endDate?: number | undefined; isAllDay?: boolean | undefined; alertOffsetInMinutes?: number | number[] | undefined; url?: string | undefined; notes?: string | undefined; }"
170
166
  }
171
167
  ],
172
168
  "returns": "Promise<{ result: string[]; }>",
173
169
  "tags": [
174
170
  {
175
- "name": "method",
176
- "text": "createEventWithPrompt"
171
+ "name": "async"
177
172
  },
178
173
  {
179
174
  "name": "since",
@@ -189,7 +184,7 @@
189
184
  },
190
185
  {
191
186
  "name": "param",
192
- "text": "options - Options for creating the event."
187
+ "text": "options Options for creating the event."
193
188
  },
194
189
  {
195
190
  "name": "returns",
@@ -197,7 +192,7 @@
197
192
  },
198
193
  {
199
194
  "name": "example",
200
- "text": "if (capacitor.getPlatform() === 'android') {\n await this.requestPermission({ alias: 'readCalendar' });\n { result } = result = await this.createEventWithPrompt({\n title: 'Title',\n alertOffsetInMinutes: 5,\n });\n} else {\n { result } = result = await this.createEventWithPrompt({\n title: 'Title',\n alertOffsetInMinutes: 5,\n });\n}"
195
+ "text": "if (capacitor.getPlatform() === 'android') {\n await this.requestPermission({ alias: 'readCalendar' });\n { result } = result = await this.createEventWithPrompt({\n title: 'Title',\n alertOffsetInMinutes: [5, 30],\n url: 'https://capacitor-calendar.pages.dev',\n notes: 'A CapacitorJS plugin',\n });\n} else {\n { result } = result = await this.createEventWithPrompt({\n title: 'Title',\n alertOffsetInMinutes: [0, 1440],\n url: 'https://capacitor-calendar.pages.dev',\n notes: 'A CapacitorJS plugin'\n });\n}"
201
196
  }
202
197
  ],
203
198
  "docs": "Creates an event in the calendar by using the native calendar.\nOn iOS opens a native sheet and on Android opens an intent.",
@@ -217,8 +212,7 @@
217
212
  "returns": "Promise<{ result: Calendar[]; }>",
218
213
  "tags": [
219
214
  {
220
- "name": "method",
221
- "text": "selectCalendarsWithPrompt"
215
+ "name": "async"
222
216
  },
223
217
  {
224
218
  "name": "since",
@@ -262,10 +256,6 @@
262
256
  {
263
257
  "name": "async"
264
258
  },
265
- {
266
- "name": "method",
267
- "text": "listCalendars"
268
- },
269
259
  {
270
260
  "name": "platform",
271
261
  "text": "iOS, Android"
@@ -292,8 +282,7 @@
292
282
  "returns": "Promise<{ result: Calendar | null; }>",
293
283
  "tags": [
294
284
  {
295
- "name": "method",
296
- "text": "getDefaultCalendar"
285
+ "name": "async"
297
286
  },
298
287
  {
299
288
  "name": "since",
@@ -324,19 +313,22 @@
324
313
  },
325
314
  {
326
315
  "name": "createEvent",
327
- "signature": "(options: { title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number; }) => Promise<{ result: string; }>",
316
+ "signature": "(options: { title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }) => Promise<{ result: string; }>",
328
317
  "parameters": [
329
318
  {
330
319
  "name": "options",
331
- "docs": "- Options for creating the event.",
332
- "type": "{ title: string; calendarId?: string | undefined; location?: string | undefined; startDate?: number | undefined; endDate?: number | undefined; isAllDay?: boolean | undefined; alertOffsetInMinutes?: number | undefined; }"
320
+ "docs": "Options for creating the event.",
321
+ "type": "{ title: string; calendarId?: string | undefined; location?: string | undefined; startDate?: number | undefined; endDate?: number | undefined; isAllDay?: boolean | undefined; alertOffsetInMinutes?: number | number[] | undefined; url?: string | undefined; notes?: string | undefined; }"
333
322
  }
334
323
  ],
335
324
  "returns": "Promise<{ result: string; }>",
336
325
  "tags": [
337
326
  {
338
- "name": "method",
339
- "text": "createEvent"
327
+ "name": "async"
328
+ },
329
+ {
330
+ "name": "since",
331
+ "text": "0.4.0"
340
332
  },
341
333
  {
342
334
  "name": "platform",
@@ -348,7 +340,7 @@
348
340
  },
349
341
  {
350
342
  "name": "param",
351
- "text": "options - Options for creating the event."
343
+ "text": "options Options for creating the event."
352
344
  },
353
345
  {
354
346
  "name": "returns",
@@ -356,7 +348,7 @@
356
348
  },
357
349
  {
358
350
  "name": "example",
359
- "text": "const now = Date.now();\nconst eventOptions = {\n title: 'Team Meeting',\n location: 'Conference Room A',\n startDate: now,\n endDate: now + 2 * 60 * 60 * 1000,\n isAllDay: false,\n alertOffsetInMinutes: 5,\n};\nconst { result } = await createEvent(eventOptions);"
351
+ "text": "const now = Date.now();\nconst eventOptions = {\n title: 'Team Meeting',\n location: 'Conference Room A',\n startDate: now,\n endDate: now + 2 * 60 * 60 * 1000,\n isAllDay: false,\n alertOffsetInMinutes: 5,\n url: 'https://capacitor-calendar.pages.dev',\n notes: 'A CapacitorJS plugin'\n};\nconst { result } = await createEvent(eventOptions);"
360
352
  }
361
353
  ],
362
354
  "docs": "Creates an event with the provided options.",
@@ -370,8 +362,7 @@
370
362
  "returns": "Promise<{ result: RemindersList; }>",
371
363
  "tags": [
372
364
  {
373
- "name": "method",
374
- "text": "getDefaultRemindersList"
365
+ "name": "async"
375
366
  },
376
367
  {
377
368
  "name": "platform",
@@ -401,10 +392,6 @@
401
392
  {
402
393
  "name": "async"
403
394
  },
404
- {
405
- "name": "method",
406
- "text": "getRemindersLists"
407
- },
408
395
  {
409
396
  "name": "platform",
410
397
  "text": "iOS"
@@ -437,8 +424,7 @@
437
424
  "returns": "Promise<{ result: string; }>",
438
425
  "tags": [
439
426
  {
440
- "name": "method",
441
- "text": "createReminder"
427
+ "name": "async"
442
428
  },
443
429
  {
444
430
  "name": "since",
@@ -484,8 +470,7 @@
484
470
  "returns": "Promise<void>",
485
471
  "tags": [
486
472
  {
487
- "name": "method",
488
- "text": "openCalendar"
473
+ "name": "async"
489
474
  },
490
475
  {
491
476
  "name": "platform",
@@ -514,8 +499,7 @@
514
499
  "returns": "Promise<void>",
515
500
  "tags": [
516
501
  {
517
- "name": "method",
518
- "text": "openReminders"
502
+ "name": "async"
519
503
  },
520
504
  {
521
505
  "name": "platform",
@@ -546,8 +530,7 @@
546
530
  "returns": "Promise<{ result: CalendarEvent[]; }>",
547
531
  "tags": [
548
532
  {
549
- "name": "method",
550
- "text": "listEventsInRange"
533
+ "name": "async"
551
534
  },
552
535
  {
553
536
  "name": "since",
@@ -593,8 +576,7 @@
593
576
  "returns": "Promise<{ result: { deleted: string[]; failed: string[]; }; }>",
594
577
  "tags": [
595
578
  {
596
- "name": "method",
597
- "text": "deleteEventsById"
579
+ "name": "async"
598
580
  },
599
581
  {
600
582
  "name": "since",
@@ -627,19 +609,18 @@
627
609
  },
628
610
  {
629
611
  "name": "createCalendar",
630
- "signature": "(options: { title: string; color?: string; }) => Promise<{ result: string; }>",
612
+ "signature": "(options: { title: string; color?: string; sourceId?: string; }) => Promise<{ result: string; }>",
631
613
  "parameters": [
632
614
  {
633
615
  "name": "options",
634
616
  "docs": "Options for creating a calendar.",
635
- "type": "{ title: string; color?: string | undefined; }"
617
+ "type": "{ title: string; color?: string | undefined; sourceId?: string | undefined; }"
636
618
  }
637
619
  ],
638
620
  "returns": "Promise<{ result: string; }>",
639
621
  "tags": [
640
622
  {
641
- "name": "method",
642
- "text": "createCalendar"
623
+ "name": "async"
643
624
  },
644
625
  {
645
626
  "name": "since",
@@ -663,7 +644,7 @@
663
644
  },
664
645
  {
665
646
  "name": "example",
666
- "text": "{ result } = await CapacitorCalendar.createCalendar({\n title: 'New Calendar',\n color: '#1d00fc',\n });\n console.log(result); // 'CALENDAR_ID'"
647
+ "text": "{ result } = await CapacitorCalendar.createCalendar({\n title: 'New Calendar',\n color: '#1d00fc',\n sourceId: 'local-source-id',\n });\n console.log(result); // 'CALENDAR_ID'"
667
648
  }
668
649
  ],
669
650
  "docs": "Creates a calendar",
@@ -683,8 +664,7 @@
683
664
  "returns": "Promise<void>",
684
665
  "tags": [
685
666
  {
686
- "name": "method",
687
- "text": "deleteCalendar"
667
+ "name": "async"
688
668
  },
689
669
  {
690
670
  "name": "since",
@@ -724,8 +704,7 @@
724
704
  "returns": "Promise<{ result: Reminder[]; }>",
725
705
  "tags": [
726
706
  {
727
- "name": "method",
728
- "text": "getRemindersFromLists"
707
+ "name": "async"
729
708
  },
730
709
  {
731
710
  "name": "since",
@@ -771,8 +750,7 @@
771
750
  "returns": "Promise<{ result: { deleted: string[]; failed: string[]; }; }>",
772
751
  "tags": [
773
752
  {
774
- "name": "method",
775
- "text": "deleteRemindersById"
753
+ "name": "async"
776
754
  },
777
755
  {
778
756
  "name": "since",
@@ -810,8 +788,7 @@
810
788
  "returns": "Promise<{ result: PermissionState; }>",
811
789
  "tags": [
812
790
  {
813
- "name": "method",
814
- "text": "requestWriteOnlyCalendarAccess"
791
+ "name": "async"
815
792
  },
816
793
  {
817
794
  "name": "since",
@@ -843,8 +820,7 @@
843
820
  "returns": "Promise<{ result: PermissionState; }>",
844
821
  "tags": [
845
822
  {
846
- "name": "method",
847
- "text": "requestReadOnlyCalendarAccess"
823
+ "name": "async"
848
824
  },
849
825
  {
850
826
  "name": "since",
@@ -876,8 +852,7 @@
876
852
  "returns": "Promise<{ result: PermissionState; }>",
877
853
  "tags": [
878
854
  {
879
- "name": "method",
880
- "text": "requestFullCalendarAccess"
855
+ "name": "async"
881
856
  },
882
857
  {
883
858
  "name": "since",
@@ -909,8 +884,7 @@
909
884
  "returns": "Promise<{ result: PermissionState; }>",
910
885
  "tags": [
911
886
  {
912
- "name": "method",
913
- "text": "requestFullRemindersAccess"
887
+ "name": "async"
914
888
  },
915
889
  {
916
890
  "name": "since",
@@ -934,6 +908,168 @@
934
908
  "PermissionState"
935
909
  ],
936
910
  "slug": "requestfullremindersaccess"
911
+ },
912
+ {
913
+ "name": "modifyEventWithPrompt",
914
+ "signature": "(options: { id: string; update?: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }; }) => Promise<{ result: string[]; }>",
915
+ "parameters": [
916
+ {
917
+ "name": "options",
918
+ "docs": "The options for modifying an event.",
919
+ "type": "{ id: string; update?: { title?: string | undefined; calendarId?: string | undefined; location?: string | undefined; startDate?: number | undefined; endDate?: number | undefined; isAllDay?: boolean | undefined; alertOffsetInMinutes?: number | number[] | undefined; url?: string | undefined; notes?: string | undefined; } | undefined; }"
920
+ }
921
+ ],
922
+ "returns": "Promise<{ result: string[]; }>",
923
+ "tags": [
924
+ {
925
+ "name": "async"
926
+ },
927
+ {
928
+ "name": "since",
929
+ "text": "5.6.0"
930
+ },
931
+ {
932
+ "name": "platform",
933
+ "text": "iOS, Android"
934
+ },
935
+ {
936
+ "name": "permissions",
937
+ "text": "<h3>Runtime Permissions:</h3>\n<ul>\n <li><strong>iOS:</strong> writeCalendar, readCalendar</li>\n <li><strong>Android:</strong> writeCalendar, readCalendar</li>\n</ul>"
938
+ },
939
+ {
940
+ "name": "param",
941
+ "text": "options The options for modifying an event."
942
+ },
943
+ {
944
+ "name": "returns",
945
+ "text": "On iOS, the promise resolves with an array containing\nthe initial event id if the modifications were saved and empty if it was cancelled. However, on\nAndroid the array will be empty either way."
946
+ },
947
+ {
948
+ "name": "throws",
949
+ "text": "{Error} throws an error if an event for the given id is not found."
950
+ },
951
+ {
952
+ "name": "example",
953
+ "text": "const { result } = await CapacitorCalendar.modifyEventWithPrompt({\n id: 'EVENT_ID_ONE',\n update: {\n title: 'newTitle',\n startDate: Date.now(),\n },\n});\n\nconsole.log(result); // ['EVENT_ID_ONE'] or [] if on Android"
954
+ }
955
+ ],
956
+ "docs": "Opens a native prompt to modify an event given its id.",
957
+ "complexTypes": [],
958
+ "slug": "modifyeventwithprompt"
959
+ },
960
+ {
961
+ "name": "modifyEvent",
962
+ "signature": "(options: { id: string; span?: EventSpan; update: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }; }) => Promise<void>",
963
+ "parameters": [
964
+ {
965
+ "name": "options",
966
+ "docs": "The options for updating an event.",
967
+ "type": "{ id: string; span?: EventSpan | undefined; update: { title?: string | undefined; calendarId?: string | undefined; location?: string | undefined; startDate?: number | undefined; endDate?: number | undefined; isAllDay?: boolean | undefined; alertOffsetInMinutes?: number | number[] | undefined; url?: string | undefined; notes?: string | undefined; }; }"
968
+ }
969
+ ],
970
+ "returns": "Promise<void>",
971
+ "tags": [
972
+ {
973
+ "name": "async"
974
+ },
975
+ {
976
+ "name": "since",
977
+ "text": "5.6.0"
978
+ },
979
+ {
980
+ "name": "platform",
981
+ "text": "iOS, Android"
982
+ },
983
+ {
984
+ "name": "permissions",
985
+ "text": "<h3>Runtime Permissions:</h3>\n<ul>\n <li><strong>iOS:</strong> writeCalendar, readCalendar</li>\n <li><strong>Android:</strong> writeCalendar, readCalendar</li>\n</ul>"
986
+ },
987
+ {
988
+ "name": "param",
989
+ "text": "options The options for updating an event."
990
+ },
991
+ {
992
+ "name": "returns",
993
+ "text": "A promise that resolves when the update operation is complete."
994
+ },
995
+ {
996
+ "name": "throws",
997
+ "text": "{Error} throws an error if an event for the given id is not found."
998
+ },
999
+ {
1000
+ "name": "example",
1001
+ "text": "const { result } = await CapacitorCalendar.modifyEvent({\n id: 'EVENT_ID_ONE',\n span: EventSpan.THIS_SPAN,\n update: {\n title: 'newTitle',\n startDate: Date.now(),\n },\n});"
1002
+ }
1003
+ ],
1004
+ "docs": "Modifies an event given its id and update details.",
1005
+ "complexTypes": [
1006
+ "EventSpan"
1007
+ ],
1008
+ "slug": "modifyevent"
1009
+ },
1010
+ {
1011
+ "name": "fetchAllCalendarSources",
1012
+ "signature": "() => Promise<{ result: CalendarSource[]; }>",
1013
+ "parameters": [],
1014
+ "returns": "Promise<{ result: CalendarSource[]; }>",
1015
+ "tags": [
1016
+ {
1017
+ "name": "async"
1018
+ },
1019
+ {
1020
+ "name": "since",
1021
+ "text": "6.6.0"
1022
+ },
1023
+ {
1024
+ "name": "platform",
1025
+ "text": "iOS"
1026
+ },
1027
+ {
1028
+ "name": "returns",
1029
+ "text": "A promise that resolves with an array of\ncalendar sources."
1030
+ },
1031
+ {
1032
+ "name": "example",
1033
+ "text": "const { result } = await fetchAllCalendarSources();\nconsole.log(result); // [{ id: '1', type: '0', title: 'calDav' }, { id: '2', type: '2', title: '3' }]"
1034
+ }
1035
+ ],
1036
+ "docs": "Retrieves a list of calendar sources.",
1037
+ "complexTypes": [
1038
+ "CalendarSource"
1039
+ ],
1040
+ "slug": "fetchallcalendarsources"
1041
+ },
1042
+ {
1043
+ "name": "fetchAllRemindersSources",
1044
+ "signature": "() => Promise<{ result: CalendarSource[]; }>",
1045
+ "parameters": [],
1046
+ "returns": "Promise<{ result: CalendarSource[]; }>",
1047
+ "tags": [
1048
+ {
1049
+ "name": "async"
1050
+ },
1051
+ {
1052
+ "name": "since",
1053
+ "text": "6.6.0"
1054
+ },
1055
+ {
1056
+ "name": "platform",
1057
+ "text": "iOS"
1058
+ },
1059
+ {
1060
+ "name": "returns",
1061
+ "text": "A promise that resolves with an array of\nreminders sources."
1062
+ },
1063
+ {
1064
+ "name": "example",
1065
+ "text": "const { result } = await fetchAllRemindersSources();\nconsole.log(result); // [{ id: '1', type: '0', title: 'calDav' }, { id: '2', type: '2', title: '3' }]"
1066
+ }
1067
+ ],
1068
+ "docs": "Retrieves a list of reminders sources.",
1069
+ "complexTypes": [
1070
+ "CalendarSource"
1071
+ ],
1072
+ "slug": "fetchallreminderssources"
937
1073
  }
938
1074
  ],
939
1075
  "properties": []
@@ -961,16 +1097,178 @@
961
1097
  "name": "platform"
962
1098
  },
963
1099
  {
964
- "text": "{string} id - The unique identifier of the calendar.",
1100
+ "text": "{string} id The unique identifier of the calendar.",
1101
+ "name": "property"
1102
+ },
1103
+ {
1104
+ "text": "{string} title The title or name of the calendar.",
1105
+ "name": "property"
1106
+ },
1107
+ {
1108
+ "text": "{string} color The color of the calendar.",
1109
+ "name": "property"
1110
+ },
1111
+ {
1112
+ "text": "{boolean} isImmutable Indicating whether the calendar's properties\ncan be modified.",
1113
+ "name": "property"
1114
+ },
1115
+ {
1116
+ "text": "{boolean} allowsContentModifications Indicating whether the calendar's\nitems (events or reminders) can be modified.",
965
1117
  "name": "property"
966
1118
  },
967
1119
  {
968
- "text": "{string} title - The title or name of the calendar.",
1120
+ "text": "{CalendarType} type The type of the calendar. On iOS the type is of type\nCalendarSourceType.",
1121
+ "name": "property"
1122
+ },
1123
+ {
1124
+ "text": "{boolean} isSubscribed Indicating whether the calendar is a subscribed calendar.",
1125
+ "name": "property"
1126
+ },
1127
+ {
1128
+ "text": "{CalendarSource} source The source of the calendar.",
969
1129
  "name": "property"
970
1130
  }
971
1131
  ],
972
1132
  "methods": [],
973
1133
  "properties": [
1134
+ {
1135
+ "name": "id",
1136
+ "tags": [
1137
+ {
1138
+ "text": "iOS, Android",
1139
+ "name": "platform"
1140
+ }
1141
+ ],
1142
+ "docs": "",
1143
+ "complexTypes": [],
1144
+ "type": "string"
1145
+ },
1146
+ {
1147
+ "name": "title",
1148
+ "tags": [
1149
+ {
1150
+ "text": "iOS, Android",
1151
+ "name": "platform"
1152
+ }
1153
+ ],
1154
+ "docs": "",
1155
+ "complexTypes": [],
1156
+ "type": "string"
1157
+ },
1158
+ {
1159
+ "name": "color",
1160
+ "tags": [
1161
+ {
1162
+ "text": "iOS, Android",
1163
+ "name": "platform"
1164
+ }
1165
+ ],
1166
+ "docs": "",
1167
+ "complexTypes": [],
1168
+ "type": "string"
1169
+ },
1170
+ {
1171
+ "name": "isImmutable",
1172
+ "tags": [
1173
+ {
1174
+ "text": "iOS",
1175
+ "name": "platform"
1176
+ }
1177
+ ],
1178
+ "docs": "",
1179
+ "complexTypes": [],
1180
+ "type": "boolean | undefined"
1181
+ },
1182
+ {
1183
+ "name": "allowsContentModifications",
1184
+ "tags": [
1185
+ {
1186
+ "text": "iOS",
1187
+ "name": "platform"
1188
+ }
1189
+ ],
1190
+ "docs": "",
1191
+ "complexTypes": [],
1192
+ "type": "boolean | undefined"
1193
+ },
1194
+ {
1195
+ "name": "type",
1196
+ "tags": [
1197
+ {
1198
+ "text": "iOS, Android",
1199
+ "name": "platform"
1200
+ }
1201
+ ],
1202
+ "docs": "",
1203
+ "complexTypes": [
1204
+ "CalendarType"
1205
+ ],
1206
+ "type": "CalendarType"
1207
+ },
1208
+ {
1209
+ "name": "isSubscribed",
1210
+ "tags": [
1211
+ {
1212
+ "text": "iOS",
1213
+ "name": "platform"
1214
+ }
1215
+ ],
1216
+ "docs": "",
1217
+ "complexTypes": [],
1218
+ "type": "boolean | undefined"
1219
+ },
1220
+ {
1221
+ "name": "source",
1222
+ "tags": [
1223
+ {
1224
+ "text": "iOS",
1225
+ "name": "platform"
1226
+ }
1227
+ ],
1228
+ "docs": "",
1229
+ "complexTypes": [
1230
+ "CalendarSource"
1231
+ ],
1232
+ "type": "CalendarSource"
1233
+ }
1234
+ ]
1235
+ },
1236
+ {
1237
+ "name": "CalendarSource",
1238
+ "slug": "calendarsource",
1239
+ "docs": "Represents the account a calendar belongs to",
1240
+ "tags": [
1241
+ {
1242
+ "name": "enum"
1243
+ },
1244
+ {
1245
+ "text": "iOS",
1246
+ "name": "platform"
1247
+ },
1248
+ {
1249
+ "text": "{CalendarSourceType} type The type of the source object.",
1250
+ "name": "property"
1251
+ },
1252
+ {
1253
+ "text": "{string} id A unique identifier for the source object.",
1254
+ "name": "property"
1255
+ },
1256
+ {
1257
+ "text": "{string} title The name of the source object.",
1258
+ "name": "property"
1259
+ }
1260
+ ],
1261
+ "methods": [],
1262
+ "properties": [
1263
+ {
1264
+ "name": "type",
1265
+ "tags": [],
1266
+ "docs": "",
1267
+ "complexTypes": [
1268
+ "CalendarSourceType"
1269
+ ],
1270
+ "type": "CalendarSourceType"
1271
+ },
974
1272
  {
975
1273
  "name": "id",
976
1274
  "tags": [],
@@ -1102,6 +1400,10 @@
1102
1400
  {
1103
1401
  "text": "{string} calendarId The calendar that the event belongs to. (Optional)",
1104
1402
  "name": "property"
1403
+ },
1404
+ {
1405
+ "text": "{string} url The URL of the event. (Optional)",
1406
+ "name": "property"
1105
1407
  }
1106
1408
  ],
1107
1409
  "methods": [],
@@ -1146,7 +1448,7 @@
1146
1448
  "name": "eventColor",
1147
1449
  "tags": [
1148
1450
  {
1149
- "text": "Android",
1451
+ "text": "iOS, Android",
1150
1452
  "name": "platform"
1151
1453
  }
1152
1454
  ],
@@ -1212,7 +1514,7 @@
1212
1514
  ],
1213
1515
  "docs": "",
1214
1516
  "complexTypes": [],
1215
- "type": "string | undefined"
1517
+ "type": "{ region: string; abbreviation: string; } | undefined"
1216
1518
  },
1217
1519
  {
1218
1520
  "name": "eventEndTimezone",
@@ -1224,7 +1526,7 @@
1224
1526
  ],
1225
1527
  "docs": "",
1226
1528
  "complexTypes": [],
1227
- "type": "string | undefined"
1529
+ "type": "{ region: string; abbreviation: string; } | undefined"
1228
1530
  },
1229
1531
  {
1230
1532
  "name": "duration",
@@ -1261,6 +1563,18 @@
1261
1563
  "docs": "",
1262
1564
  "complexTypes": [],
1263
1565
  "type": "string"
1566
+ },
1567
+ {
1568
+ "name": "url",
1569
+ "tags": [
1570
+ {
1571
+ "text": "iOS",
1572
+ "name": "platform"
1573
+ }
1574
+ ],
1575
+ "docs": "",
1576
+ "complexTypes": [],
1577
+ "type": "string"
1264
1578
  }
1265
1579
  ]
1266
1580
  },
@@ -1536,6 +1850,73 @@
1536
1850
  }
1537
1851
  ]
1538
1852
  },
1853
+ {
1854
+ "name": "CalendarType",
1855
+ "slug": "calendartype",
1856
+ "members": [
1857
+ {
1858
+ "name": "LOCAL",
1859
+ "tags": [],
1860
+ "docs": "This calendar is sync'd from either Mobile Me or tethered."
1861
+ },
1862
+ {
1863
+ "name": "CAL_DAV",
1864
+ "tags": [],
1865
+ "docs": "This calendar is from a CalDAV server."
1866
+ },
1867
+ {
1868
+ "name": "EXCHANGE",
1869
+ "tags": [],
1870
+ "docs": "This calendar comes from an Exchange server."
1871
+ },
1872
+ {
1873
+ "name": "SUBSCRIPTION",
1874
+ "tags": [],
1875
+ "docs": "This is a locally subscribed calendar."
1876
+ },
1877
+ {
1878
+ "name": "BIRTHDAY",
1879
+ "tags": [],
1880
+ "docs": "This is the built-in birthday calendar."
1881
+ }
1882
+ ]
1883
+ },
1884
+ {
1885
+ "name": "CalendarSourceType",
1886
+ "slug": "calendarsourcetype",
1887
+ "members": [
1888
+ {
1889
+ "name": "LOCAL",
1890
+ "tags": [],
1891
+ "docs": "Calendars that are stored locally on the device. These calendars are not\nsynced with any external service."
1892
+ },
1893
+ {
1894
+ "name": "EXCHANGE",
1895
+ "tags": [],
1896
+ "docs": "Calendars that are associated with an Exchange server. Exchange is a\npopular calendar and email service used by many enterprises."
1897
+ },
1898
+ {
1899
+ "name": "CAL_DAV",
1900
+ "tags": [],
1901
+ "docs": "Calendars that use the CalDAV protocol for synchronization.\nThis includes calendars from services like Google Calendar and Yahoo Calendar."
1902
+ },
1903
+ {
1904
+ "name": "MOBILE_ME",
1905
+ "tags": [],
1906
+ "docs": "Calendars that were previously associated with MobileMe, Apple's cloud\nservice before iCloud. This source type is largely obsolete now."
1907
+ },
1908
+ {
1909
+ "name": "SUBSCRIBED",
1910
+ "tags": [],
1911
+ "docs": "Calendars that the user has subscribed to. These are read-only calendars\nthat can be added by subscribing to a calendar URL."
1912
+ },
1913
+ {
1914
+ "name": "BIRTHDAYS",
1915
+ "tags": [],
1916
+ "docs": "The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.\nThis calendar is typically read-only and is managed by the system."
1917
+ }
1918
+ ]
1919
+ },
1539
1920
  {
1540
1921
  "name": "CalendarChooserDisplayStyle",
1541
1922
  "slug": "calendarchooserdisplaystyle",
@@ -1593,6 +1974,22 @@
1593
1974
  "docs": "The reminder repeats on a yearly basis"
1594
1975
  }
1595
1976
  ]
1977
+ },
1978
+ {
1979
+ "name": "EventSpan",
1980
+ "slug": "eventspan",
1981
+ "members": [
1982
+ {
1983
+ "name": "THIS_EVENT",
1984
+ "tags": [],
1985
+ "docs": "The modifications should only be applied to this event."
1986
+ },
1987
+ {
1988
+ "name": "THIS_AND_FUTURE_EVENTS",
1989
+ "tags": [],
1990
+ "docs": "The modifications to this event should also be applied to the future instances of this event."
1991
+ }
1992
+ ]
1596
1993
  }
1597
1994
  ],
1598
1995
  "typeAliases": [