@ebarooni/capacitor-calendar 6.5.0 → 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.
- package/README.md +53 -5
- package/android/build.gradle +2 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +178 -119
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +73 -0
- package/assets/images/text-logo.png +0 -0
- package/dist/docs.json +453 -60
- package/dist/esm/definitions.d.ts +164 -34
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +18 -14
- package/dist/esm/index.js +12 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-source-type.d.ts +38 -0
- package/dist/esm/schemas/enums/calendar-source-type.js +40 -0
- package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-type.d.ts +28 -0
- package/dist/esm/schemas/enums/calendar-type.js +30 -0
- package/dist/esm/schemas/enums/calendar-type.js.map +1 -0
- package/dist/esm/schemas/enums/event-span.d.ts +16 -0
- package/dist/esm/schemas/enums/event-span.js +18 -0
- package/dist/esm/schemas/enums/event-span.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +14 -3
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +15 -0
- package/dist/esm/schemas/interfaces/calendar-source.js +2 -0
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar.d.ts +43 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/web.d.ts +49 -9
- package/dist/esm/web.js +13 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +101 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +101 -2
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendar.swift +210 -17
- package/ios/Plugin/CapacitorCalendarPlugin.m +4 -0
- package/ios/Plugin/CapacitorCalendarPlugin.swift +111 -1
- package/ios/Plugin/CapacitorReminders.swift +62 -8
- package/ios/Plugin/EventCreationParameters.swift +1 -1
- 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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
137
|
-
"text": "requestAllPermissions"
|
|
133
|
+
"name": "async"
|
|
138
134
|
},
|
|
139
135
|
{
|
|
140
136
|
"name": "since",
|
|
@@ -172,8 +168,7 @@
|
|
|
172
168
|
"returns": "Promise<{ result: string[]; }>",
|
|
173
169
|
"tags": [
|
|
174
170
|
{
|
|
175
|
-
"name": "
|
|
176
|
-
"text": "createEventWithPrompt"
|
|
171
|
+
"name": "async"
|
|
177
172
|
},
|
|
178
173
|
{
|
|
179
174
|
"name": "since",
|
|
@@ -217,8 +212,7 @@
|
|
|
217
212
|
"returns": "Promise<{ result: Calendar[]; }>",
|
|
218
213
|
"tags": [
|
|
219
214
|
{
|
|
220
|
-
"name": "
|
|
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": "
|
|
296
|
-
"text": "getDefaultCalendar"
|
|
285
|
+
"name": "async"
|
|
297
286
|
},
|
|
298
287
|
{
|
|
299
288
|
"name": "since",
|
|
@@ -335,8 +324,7 @@
|
|
|
335
324
|
"returns": "Promise<{ result: string; }>",
|
|
336
325
|
"tags": [
|
|
337
326
|
{
|
|
338
|
-
"name": "
|
|
339
|
-
"text": "createEvent"
|
|
327
|
+
"name": "async"
|
|
340
328
|
},
|
|
341
329
|
{
|
|
342
330
|
"name": "since",
|
|
@@ -374,8 +362,7 @@
|
|
|
374
362
|
"returns": "Promise<{ result: RemindersList; }>",
|
|
375
363
|
"tags": [
|
|
376
364
|
{
|
|
377
|
-
"name": "
|
|
378
|
-
"text": "getDefaultRemindersList"
|
|
365
|
+
"name": "async"
|
|
379
366
|
},
|
|
380
367
|
{
|
|
381
368
|
"name": "platform",
|
|
@@ -405,10 +392,6 @@
|
|
|
405
392
|
{
|
|
406
393
|
"name": "async"
|
|
407
394
|
},
|
|
408
|
-
{
|
|
409
|
-
"name": "method",
|
|
410
|
-
"text": "getRemindersLists"
|
|
411
|
-
},
|
|
412
395
|
{
|
|
413
396
|
"name": "platform",
|
|
414
397
|
"text": "iOS"
|
|
@@ -441,8 +424,7 @@
|
|
|
441
424
|
"returns": "Promise<{ result: string; }>",
|
|
442
425
|
"tags": [
|
|
443
426
|
{
|
|
444
|
-
"name": "
|
|
445
|
-
"text": "createReminder"
|
|
427
|
+
"name": "async"
|
|
446
428
|
},
|
|
447
429
|
{
|
|
448
430
|
"name": "since",
|
|
@@ -488,8 +470,7 @@
|
|
|
488
470
|
"returns": "Promise<void>",
|
|
489
471
|
"tags": [
|
|
490
472
|
{
|
|
491
|
-
"name": "
|
|
492
|
-
"text": "openCalendar"
|
|
473
|
+
"name": "async"
|
|
493
474
|
},
|
|
494
475
|
{
|
|
495
476
|
"name": "platform",
|
|
@@ -518,8 +499,7 @@
|
|
|
518
499
|
"returns": "Promise<void>",
|
|
519
500
|
"tags": [
|
|
520
501
|
{
|
|
521
|
-
"name": "
|
|
522
|
-
"text": "openReminders"
|
|
502
|
+
"name": "async"
|
|
523
503
|
},
|
|
524
504
|
{
|
|
525
505
|
"name": "platform",
|
|
@@ -550,8 +530,7 @@
|
|
|
550
530
|
"returns": "Promise<{ result: CalendarEvent[]; }>",
|
|
551
531
|
"tags": [
|
|
552
532
|
{
|
|
553
|
-
"name": "
|
|
554
|
-
"text": "listEventsInRange"
|
|
533
|
+
"name": "async"
|
|
555
534
|
},
|
|
556
535
|
{
|
|
557
536
|
"name": "since",
|
|
@@ -597,8 +576,7 @@
|
|
|
597
576
|
"returns": "Promise<{ result: { deleted: string[]; failed: string[]; }; }>",
|
|
598
577
|
"tags": [
|
|
599
578
|
{
|
|
600
|
-
"name": "
|
|
601
|
-
"text": "deleteEventsById"
|
|
579
|
+
"name": "async"
|
|
602
580
|
},
|
|
603
581
|
{
|
|
604
582
|
"name": "since",
|
|
@@ -631,19 +609,18 @@
|
|
|
631
609
|
},
|
|
632
610
|
{
|
|
633
611
|
"name": "createCalendar",
|
|
634
|
-
"signature": "(options: { title: string; color?: string; }) => Promise<{ result: string; }>",
|
|
612
|
+
"signature": "(options: { title: string; color?: string; sourceId?: string; }) => Promise<{ result: string; }>",
|
|
635
613
|
"parameters": [
|
|
636
614
|
{
|
|
637
615
|
"name": "options",
|
|
638
616
|
"docs": "Options for creating a calendar.",
|
|
639
|
-
"type": "{ title: string; color?: string | undefined; }"
|
|
617
|
+
"type": "{ title: string; color?: string | undefined; sourceId?: string | undefined; }"
|
|
640
618
|
}
|
|
641
619
|
],
|
|
642
620
|
"returns": "Promise<{ result: string; }>",
|
|
643
621
|
"tags": [
|
|
644
622
|
{
|
|
645
|
-
"name": "
|
|
646
|
-
"text": "createCalendar"
|
|
623
|
+
"name": "async"
|
|
647
624
|
},
|
|
648
625
|
{
|
|
649
626
|
"name": "since",
|
|
@@ -667,7 +644,7 @@
|
|
|
667
644
|
},
|
|
668
645
|
{
|
|
669
646
|
"name": "example",
|
|
670
|
-
"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'"
|
|
671
648
|
}
|
|
672
649
|
],
|
|
673
650
|
"docs": "Creates a calendar",
|
|
@@ -687,8 +664,7 @@
|
|
|
687
664
|
"returns": "Promise<void>",
|
|
688
665
|
"tags": [
|
|
689
666
|
{
|
|
690
|
-
"name": "
|
|
691
|
-
"text": "deleteCalendar"
|
|
667
|
+
"name": "async"
|
|
692
668
|
},
|
|
693
669
|
{
|
|
694
670
|
"name": "since",
|
|
@@ -728,8 +704,7 @@
|
|
|
728
704
|
"returns": "Promise<{ result: Reminder[]; }>",
|
|
729
705
|
"tags": [
|
|
730
706
|
{
|
|
731
|
-
"name": "
|
|
732
|
-
"text": "getRemindersFromLists"
|
|
707
|
+
"name": "async"
|
|
733
708
|
},
|
|
734
709
|
{
|
|
735
710
|
"name": "since",
|
|
@@ -775,8 +750,7 @@
|
|
|
775
750
|
"returns": "Promise<{ result: { deleted: string[]; failed: string[]; }; }>",
|
|
776
751
|
"tags": [
|
|
777
752
|
{
|
|
778
|
-
"name": "
|
|
779
|
-
"text": "deleteRemindersById"
|
|
753
|
+
"name": "async"
|
|
780
754
|
},
|
|
781
755
|
{
|
|
782
756
|
"name": "since",
|
|
@@ -814,8 +788,7 @@
|
|
|
814
788
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
815
789
|
"tags": [
|
|
816
790
|
{
|
|
817
|
-
"name": "
|
|
818
|
-
"text": "requestWriteOnlyCalendarAccess"
|
|
791
|
+
"name": "async"
|
|
819
792
|
},
|
|
820
793
|
{
|
|
821
794
|
"name": "since",
|
|
@@ -847,8 +820,7 @@
|
|
|
847
820
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
848
821
|
"tags": [
|
|
849
822
|
{
|
|
850
|
-
"name": "
|
|
851
|
-
"text": "requestReadOnlyCalendarAccess"
|
|
823
|
+
"name": "async"
|
|
852
824
|
},
|
|
853
825
|
{
|
|
854
826
|
"name": "since",
|
|
@@ -880,8 +852,7 @@
|
|
|
880
852
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
881
853
|
"tags": [
|
|
882
854
|
{
|
|
883
|
-
"name": "
|
|
884
|
-
"text": "requestFullCalendarAccess"
|
|
855
|
+
"name": "async"
|
|
885
856
|
},
|
|
886
857
|
{
|
|
887
858
|
"name": "since",
|
|
@@ -913,8 +884,7 @@
|
|
|
913
884
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
914
885
|
"tags": [
|
|
915
886
|
{
|
|
916
|
-
"name": "
|
|
917
|
-
"text": "requestFullRemindersAccess"
|
|
887
|
+
"name": "async"
|
|
918
888
|
},
|
|
919
889
|
{
|
|
920
890
|
"name": "since",
|
|
@@ -938,6 +908,168 @@
|
|
|
938
908
|
"PermissionState"
|
|
939
909
|
],
|
|
940
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"
|
|
941
1073
|
}
|
|
942
1074
|
],
|
|
943
1075
|
"properties": []
|
|
@@ -965,16 +1097,178 @@
|
|
|
965
1097
|
"name": "platform"
|
|
966
1098
|
},
|
|
967
1099
|
{
|
|
968
|
-
"text": "{string} id
|
|
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.",
|
|
1117
|
+
"name": "property"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
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.",
|
|
1129
|
+
"name": "property"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"methods": [],
|
|
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.",
|
|
969
1254
|
"name": "property"
|
|
970
1255
|
},
|
|
971
1256
|
{
|
|
972
|
-
"text": "{string} title
|
|
1257
|
+
"text": "{string} title The name of the source object.",
|
|
973
1258
|
"name": "property"
|
|
974
1259
|
}
|
|
975
1260
|
],
|
|
976
1261
|
"methods": [],
|
|
977
1262
|
"properties": [
|
|
1263
|
+
{
|
|
1264
|
+
"name": "type",
|
|
1265
|
+
"tags": [],
|
|
1266
|
+
"docs": "",
|
|
1267
|
+
"complexTypes": [
|
|
1268
|
+
"CalendarSourceType"
|
|
1269
|
+
],
|
|
1270
|
+
"type": "CalendarSourceType"
|
|
1271
|
+
},
|
|
978
1272
|
{
|
|
979
1273
|
"name": "id",
|
|
980
1274
|
"tags": [],
|
|
@@ -1106,6 +1400,10 @@
|
|
|
1106
1400
|
{
|
|
1107
1401
|
"text": "{string} calendarId The calendar that the event belongs to. (Optional)",
|
|
1108
1402
|
"name": "property"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"text": "{string} url The URL of the event. (Optional)",
|
|
1406
|
+
"name": "property"
|
|
1109
1407
|
}
|
|
1110
1408
|
],
|
|
1111
1409
|
"methods": [],
|
|
@@ -1150,7 +1448,7 @@
|
|
|
1150
1448
|
"name": "eventColor",
|
|
1151
1449
|
"tags": [
|
|
1152
1450
|
{
|
|
1153
|
-
"text": "Android",
|
|
1451
|
+
"text": "iOS, Android",
|
|
1154
1452
|
"name": "platform"
|
|
1155
1453
|
}
|
|
1156
1454
|
],
|
|
@@ -1216,7 +1514,7 @@
|
|
|
1216
1514
|
],
|
|
1217
1515
|
"docs": "",
|
|
1218
1516
|
"complexTypes": [],
|
|
1219
|
-
"type": "string | undefined"
|
|
1517
|
+
"type": "{ region: string; abbreviation: string; } | undefined"
|
|
1220
1518
|
},
|
|
1221
1519
|
{
|
|
1222
1520
|
"name": "eventEndTimezone",
|
|
@@ -1228,7 +1526,7 @@
|
|
|
1228
1526
|
],
|
|
1229
1527
|
"docs": "",
|
|
1230
1528
|
"complexTypes": [],
|
|
1231
|
-
"type": "string | undefined"
|
|
1529
|
+
"type": "{ region: string; abbreviation: string; } | undefined"
|
|
1232
1530
|
},
|
|
1233
1531
|
{
|
|
1234
1532
|
"name": "duration",
|
|
@@ -1265,6 +1563,18 @@
|
|
|
1265
1563
|
"docs": "",
|
|
1266
1564
|
"complexTypes": [],
|
|
1267
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"
|
|
1268
1578
|
}
|
|
1269
1579
|
]
|
|
1270
1580
|
},
|
|
@@ -1540,6 +1850,73 @@
|
|
|
1540
1850
|
}
|
|
1541
1851
|
]
|
|
1542
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
|
+
},
|
|
1543
1920
|
{
|
|
1544
1921
|
"name": "CalendarChooserDisplayStyle",
|
|
1545
1922
|
"slug": "calendarchooserdisplaystyle",
|
|
@@ -1597,6 +1974,22 @@
|
|
|
1597
1974
|
"docs": "The reminder repeats on a yearly basis"
|
|
1598
1975
|
}
|
|
1599
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
|
+
]
|
|
1600
1993
|
}
|
|
1601
1994
|
],
|
|
1602
1995
|
"typeAliases": [
|