@ebarooni/capacitor-calendar 8.0.2 → 8.2.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 (39) hide show
  1. package/README.md +272 -14
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +15 -0
  3. package/dist/docs.json +397 -0
  4. package/dist/esm/index.d.ts +6 -1
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +41 -0
  7. package/dist/esm/schemas/interfaces/create-reminders-list-options.js +2 -0
  8. package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -0
  9. package/dist/esm/schemas/interfaces/create-reminders-list-result.d.ts +12 -0
  10. package/dist/esm/schemas/interfaces/create-reminders-list-result.js +2 -0
  11. package/dist/esm/schemas/interfaces/create-reminders-list-result.js.map +1 -0
  12. package/dist/esm/schemas/interfaces/delete-reminders-list-options.d.ts +23 -0
  13. package/dist/esm/schemas/interfaces/delete-reminders-list-options.js +2 -0
  14. package/dist/esm/schemas/interfaces/delete-reminders-list-options.js.map +1 -0
  15. package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +40 -0
  16. package/dist/esm/schemas/interfaces/update-reminders-list-options.js +2 -0
  17. package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -0
  18. package/dist/esm/schemas/interfaces/update-reminders-list-result.d.ts +12 -0
  19. package/dist/esm/schemas/interfaces/update-reminders-list-result.js +2 -0
  20. package/dist/esm/schemas/interfaces/update-reminders-list-result.js.map +1 -0
  21. package/dist/esm/sub-definitions/reminders-operations.d.ts +26 -0
  22. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
  23. package/dist/esm/web.d.ts +8 -0
  24. package/dist/esm/web.js +9 -0
  25. package/dist/esm/web.js.map +1 -1
  26. package/dist/plugin.cjs.js +9 -0
  27. package/dist/plugin.cjs.js.map +1 -1
  28. package/dist/plugin.js +9 -0
  29. package/dist/plugin.js.map +1 -1
  30. package/ios/Plugin/CapacitorCalendarPlugin.swift +45 -0
  31. package/ios/Plugin/Implementation/CapacitorCalendar.swift +63 -0
  32. package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +57 -0
  33. package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
  34. package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +55 -0
  35. package/ios/Plugin/Models/Results/CreateRemindersListResult.swift +15 -0
  36. package/ios/Plugin/Models/Results/UpdateRemindersListResult.swift +15 -0
  37. package/ios/Plugin/PluginConfig.swift +30 -27
  38. package/ios/Plugin/PluginError.swift +3 -0
  39. package/package.json +3 -2
package/dist/docs.json CHANGED
@@ -680,6 +680,61 @@
680
680
  ],
681
681
  "slug": "modifycalendar"
682
682
  },
683
+ {
684
+ "name": "createRemindersList",
685
+ "signature": "(options: CreateRemindersListOptions) => Promise<CreateRemindersListResult>",
686
+ "parameters": [
687
+ {
688
+ "name": "options",
689
+ "docs": "",
690
+ "type": "CreateRemindersListOptions"
691
+ }
692
+ ],
693
+ "returns": "Promise<CreateRemindersListResult>",
694
+ "tags": [
695
+ {
696
+ "name": "platform",
697
+ "text": "iOS"
698
+ },
699
+ {
700
+ "name": "since",
701
+ "text": "8.1.0"
702
+ }
703
+ ],
704
+ "docs": "Creates a new reminders list.",
705
+ "complexTypes": [
706
+ "CreateRemindersListResult",
707
+ "CreateRemindersListOptions"
708
+ ],
709
+ "slug": "createreminderslist"
710
+ },
711
+ {
712
+ "name": "deleteRemindersList",
713
+ "signature": "(options: DeleteRemindersListOptions) => Promise<void>",
714
+ "parameters": [
715
+ {
716
+ "name": "options",
717
+ "docs": "",
718
+ "type": "DeleteRemindersListOptions"
719
+ }
720
+ ],
721
+ "returns": "Promise<void>",
722
+ "tags": [
723
+ {
724
+ "name": "platform",
725
+ "text": "iOS"
726
+ },
727
+ {
728
+ "name": "since",
729
+ "text": "8.2.0"
730
+ }
731
+ ],
732
+ "docs": "Deletes a reminders list.",
733
+ "complexTypes": [
734
+ "DeleteRemindersListOptions"
735
+ ],
736
+ "slug": "deletereminderslist"
737
+ },
683
738
  {
684
739
  "name": "fetchAllRemindersSources",
685
740
  "signature": "() => Promise<{ result: CalendarSource[]; }>",
@@ -961,6 +1016,34 @@
961
1016
  "DeleteReminderWithPromptOptions"
962
1017
  ],
963
1018
  "slug": "deletereminderwithprompt"
1019
+ },
1020
+ {
1021
+ "name": "updateRemindersList",
1022
+ "signature": "(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>",
1023
+ "parameters": [
1024
+ {
1025
+ "name": "options",
1026
+ "docs": "",
1027
+ "type": "UpdateRemindersListOptions"
1028
+ }
1029
+ ],
1030
+ "returns": "Promise<UpdateRemindersListResult>",
1031
+ "tags": [
1032
+ {
1033
+ "name": "platform",
1034
+ "text": "iOS"
1035
+ },
1036
+ {
1037
+ "name": "since",
1038
+ "text": "8.2.0"
1039
+ }
1040
+ ],
1041
+ "docs": "Update a reminders list with options.",
1042
+ "complexTypes": [
1043
+ "UpdateRemindersListResult",
1044
+ "UpdateRemindersListOptions"
1045
+ ],
1046
+ "slug": "updatereminderslist"
964
1047
  }
965
1048
  ],
966
1049
  "properties": []
@@ -3489,6 +3572,196 @@
3489
3572
  }
3490
3573
  ]
3491
3574
  },
3575
+ {
3576
+ "name": "CreateRemindersListResult",
3577
+ "slug": "createreminderslistresult",
3578
+ "docs": "",
3579
+ "tags": [
3580
+ {
3581
+ "text": "8.1.0",
3582
+ "name": "since"
3583
+ }
3584
+ ],
3585
+ "methods": [],
3586
+ "properties": [
3587
+ {
3588
+ "name": "id",
3589
+ "tags": [
3590
+ {
3591
+ "text": "iOS",
3592
+ "name": "platform"
3593
+ },
3594
+ {
3595
+ "text": "8.1.0",
3596
+ "name": "since"
3597
+ }
3598
+ ],
3599
+ "docs": "Identifier of the newly created reminders list.",
3600
+ "complexTypes": [],
3601
+ "type": "string"
3602
+ }
3603
+ ]
3604
+ },
3605
+ {
3606
+ "name": "CreateRemindersListOptions",
3607
+ "slug": "createreminderslistoptions",
3608
+ "docs": "",
3609
+ "tags": [
3610
+ {
3611
+ "text": "8.1.0",
3612
+ "name": "since"
3613
+ }
3614
+ ],
3615
+ "methods": [],
3616
+ "properties": [
3617
+ {
3618
+ "name": "color",
3619
+ "tags": [
3620
+ {
3621
+ "text": "'indigo'",
3622
+ "name": "example"
3623
+ },
3624
+ {
3625
+ "text": "'blue'",
3626
+ "name": "default"
3627
+ },
3628
+ {
3629
+ "text": "iOS",
3630
+ "name": "platform"
3631
+ },
3632
+ {
3633
+ "text": "8.1.0",
3634
+ "name": "since"
3635
+ }
3636
+ ],
3637
+ "docs": "The color of the list.",
3638
+ "complexTypes": [],
3639
+ "type": "'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow' | undefined"
3640
+ },
3641
+ {
3642
+ "name": "commit",
3643
+ "tags": [
3644
+ {
3645
+ "text": "false",
3646
+ "name": "example"
3647
+ },
3648
+ {
3649
+ "text": "true",
3650
+ "name": "default"
3651
+ },
3652
+ {
3653
+ "text": "iOS",
3654
+ "name": "platform"
3655
+ },
3656
+ {
3657
+ "text": "8.1.0",
3658
+ "name": "since"
3659
+ }
3660
+ ],
3661
+ "docs": "Whether to save the list to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
3662
+ "complexTypes": [],
3663
+ "type": "boolean | undefined"
3664
+ },
3665
+ {
3666
+ "name": "sourceId",
3667
+ "tags": [
3668
+ {
3669
+ "text": "'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'",
3670
+ "name": "example"
3671
+ },
3672
+ {
3673
+ "text": "iOS",
3674
+ "name": "platform"
3675
+ },
3676
+ {
3677
+ "text": "8.1.0",
3678
+ "name": "since"
3679
+ }
3680
+ ],
3681
+ "docs": "The EKSource identifier (account) where the list should be created.\nIf left undefined, iCloud will be used if available, otherwise falls back to local.",
3682
+ "complexTypes": [],
3683
+ "type": "string | undefined"
3684
+ },
3685
+ {
3686
+ "name": "title",
3687
+ "tags": [
3688
+ {
3689
+ "text": "'Groceries'",
3690
+ "name": "example"
3691
+ },
3692
+ {
3693
+ "text": "iOS",
3694
+ "name": "platform"
3695
+ },
3696
+ {
3697
+ "text": "8.1.0",
3698
+ "name": "since"
3699
+ }
3700
+ ],
3701
+ "docs": "The title of the list.",
3702
+ "complexTypes": [],
3703
+ "type": "string"
3704
+ }
3705
+ ]
3706
+ },
3707
+ {
3708
+ "name": "DeleteRemindersListOptions",
3709
+ "slug": "deletereminderslistoptions",
3710
+ "docs": "",
3711
+ "tags": [
3712
+ {
3713
+ "text": "8.2.0",
3714
+ "name": "since"
3715
+ }
3716
+ ],
3717
+ "methods": [],
3718
+ "properties": [
3719
+ {
3720
+ "name": "commit",
3721
+ "tags": [
3722
+ {
3723
+ "text": "false",
3724
+ "name": "example"
3725
+ },
3726
+ {
3727
+ "text": "true",
3728
+ "name": "default"
3729
+ },
3730
+ {
3731
+ "text": "iOS",
3732
+ "name": "platform"
3733
+ },
3734
+ {
3735
+ "text": "8.2.0",
3736
+ "name": "since"
3737
+ }
3738
+ ],
3739
+ "docs": "Whether to save the deletion to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
3740
+ "complexTypes": [],
3741
+ "type": "boolean | undefined"
3742
+ },
3743
+ {
3744
+ "name": "id",
3745
+ "tags": [
3746
+ {
3747
+ "text": "'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'",
3748
+ "name": "example"
3749
+ },
3750
+ {
3751
+ "text": "iOS",
3752
+ "name": "platform"
3753
+ },
3754
+ {
3755
+ "text": "8.2.0",
3756
+ "name": "since"
3757
+ }
3758
+ ],
3759
+ "docs": "Identifier of the reminders list to delete.",
3760
+ "complexTypes": [],
3761
+ "type": "string"
3762
+ }
3763
+ ]
3764
+ },
3492
3765
  {
3493
3766
  "name": "CreateReminderOptions",
3494
3767
  "slug": "createreminderoptions",
@@ -4271,6 +4544,130 @@
4271
4544
  "type": "string | undefined"
4272
4545
  }
4273
4546
  ]
4547
+ },
4548
+ {
4549
+ "name": "UpdateRemindersListResult",
4550
+ "slug": "updatereminderslistresult",
4551
+ "docs": "",
4552
+ "tags": [
4553
+ {
4554
+ "text": "8.2.0",
4555
+ "name": "since"
4556
+ }
4557
+ ],
4558
+ "methods": [],
4559
+ "properties": [
4560
+ {
4561
+ "name": "id",
4562
+ "tags": [
4563
+ {
4564
+ "text": "iOS",
4565
+ "name": "platform"
4566
+ },
4567
+ {
4568
+ "text": "8.2.0",
4569
+ "name": "since"
4570
+ }
4571
+ ],
4572
+ "docs": "Identifier of the updated reminders list.",
4573
+ "complexTypes": [],
4574
+ "type": "string"
4575
+ }
4576
+ ]
4577
+ },
4578
+ {
4579
+ "name": "UpdateRemindersListOptions",
4580
+ "slug": "updatereminderslistoptions",
4581
+ "docs": "",
4582
+ "tags": [
4583
+ {
4584
+ "text": "8.2.0",
4585
+ "name": "since"
4586
+ }
4587
+ ],
4588
+ "methods": [],
4589
+ "properties": [
4590
+ {
4591
+ "name": "color",
4592
+ "tags": [
4593
+ {
4594
+ "text": "'indigo'",
4595
+ "name": "example"
4596
+ },
4597
+ {
4598
+ "text": "iOS",
4599
+ "name": "platform"
4600
+ },
4601
+ {
4602
+ "text": "8.1.0",
4603
+ "name": "since"
4604
+ }
4605
+ ],
4606
+ "docs": "The new color of the list.\nIf omitted, the color is left unchanged.",
4607
+ "complexTypes": [],
4608
+ "type": "'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow' | undefined"
4609
+ },
4610
+ {
4611
+ "name": "commit",
4612
+ "tags": [
4613
+ {
4614
+ "text": "true",
4615
+ "name": "default"
4616
+ },
4617
+ {
4618
+ "text": "iOS",
4619
+ "name": "platform"
4620
+ },
4621
+ {
4622
+ "text": "8.2.0",
4623
+ "name": "since"
4624
+ }
4625
+ ],
4626
+ "docs": "Whether to save the update to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.",
4627
+ "complexTypes": [],
4628
+ "type": "boolean | undefined"
4629
+ },
4630
+ {
4631
+ "name": "id",
4632
+ "tags": [
4633
+ {
4634
+ "text": "'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'",
4635
+ "name": "example"
4636
+ },
4637
+ {
4638
+ "text": "iOS",
4639
+ "name": "platform"
4640
+ },
4641
+ {
4642
+ "text": "8.2.0",
4643
+ "name": "since"
4644
+ }
4645
+ ],
4646
+ "docs": "The identifier of the list to update.",
4647
+ "complexTypes": [],
4648
+ "type": "string"
4649
+ },
4650
+ {
4651
+ "name": "title",
4652
+ "tags": [
4653
+ {
4654
+ "text": "'Groceries'",
4655
+ "name": "example"
4656
+ },
4657
+ {
4658
+ "text": "iOS",
4659
+ "name": "platform"
4660
+ },
4661
+ {
4662
+ "text": "8.2.0",
4663
+ "name": "since"
4664
+ }
4665
+ ],
4666
+ "docs": "The new title of the list.\nIf omitted, the title is left unchanged.",
4667
+ "complexTypes": [],
4668
+ "type": "string | undefined"
4669
+ }
4670
+ ]
4274
4671
  }
4275
4672
  ],
4276
4673
  "enums": [
@@ -17,6 +17,8 @@ import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar
17
17
  import type { CreateEventOptions } from './schemas/interfaces/create-event-options';
18
18
  import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
19
19
  import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
20
+ import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
21
+ import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
20
22
  import type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';
21
23
  import type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';
22
24
  import type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';
@@ -24,6 +26,7 @@ import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events
24
26
  import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
25
27
  import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
26
28
  import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
29
+ import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
27
30
  import type { EventGuest } from './schemas/interfaces/event-guest';
28
31
  import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
29
32
  import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
@@ -38,6 +41,8 @@ import type { Reminder } from './schemas/interfaces/reminder';
38
41
  import type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';
39
42
  import type { RemindersList } from './schemas/interfaces/reminders-list';
40
43
  import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
44
+ import type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';
45
+ import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
41
46
  import type { EventEditAction } from './schemas/types/event-edit-action';
42
47
  import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
43
48
  import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
@@ -45,5 +50,5 @@ import type { DeleteEventsByIdResult } from './sub-definitions/event-operations'
45
50
  import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
46
51
  declare const CapacitorCalendar: CapacitorCalendarPlugin;
47
52
  export * from './definitions';
48
- export type { CheckAllPermissionsResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, };
53
+ export type { CheckAllPermissionsResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteRemindersListOptions, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, UpdateRemindersListOptions, UpdateRemindersListResult, };
49
54
  export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAmC5F,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAoC9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n RequestAllPermissionsResult,\n CreateEventWithPromptOptions,\n ModifyEventWithPromptOptions,\n EventEditAction,\n CreateEventOptions,\n EventGuest,\n ModifyEventOptions,\n SelectCalendarsWithPromptOptions,\n Calendar,\n RemindersList,\n CalendarSource,\n OpenCalendarOptions,\n CreateCalendarOptions,\n DeleteCalendarOptions,\n ReminderRecurrenceRule,\n RecurrenceRule,\n CreateReminderOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteReminderOptions,\n ModifyReminderOptions,\n GetReminderByIdOptions,\n Reminder,\n GetRemindersFromListsOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n ListEventsInRangeOptions,\n CalendarEvent,\n ModifyCalendarOptions,\n DeleteReminderWithPromptOptions,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAwC5F,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAyC9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteRemindersListOptions,\n RequestAllPermissionsResult,\n CreateEventWithPromptOptions,\n ModifyEventWithPromptOptions,\n EventEditAction,\n CreateEventOptions,\n EventGuest,\n ModifyEventOptions,\n SelectCalendarsWithPromptOptions,\n Calendar,\n RemindersList,\n CalendarSource,\n OpenCalendarOptions,\n CreateCalendarOptions,\n DeleteCalendarOptions,\n ReminderRecurrenceRule,\n RecurrenceRule,\n CreateReminderOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteReminderOptions,\n ModifyReminderOptions,\n GetReminderByIdOptions,\n Reminder,\n GetRemindersFromListsOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n ListEventsInRangeOptions,\n CalendarEvent,\n ModifyCalendarOptions,\n DeleteReminderWithPromptOptions,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @since 8.1.0
3
+ */
4
+ export interface CreateRemindersListOptions {
5
+ /**
6
+ * The color of the list.
7
+ *
8
+ * @example 'indigo'
9
+ * @default 'blue'
10
+ * @platform iOS
11
+ * @since 8.1.0
12
+ */
13
+ color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';
14
+ /**
15
+ * Whether to save the list to the event store immediately.
16
+ * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
17
+ *
18
+ * @example false
19
+ * @default true
20
+ * @platform iOS
21
+ * @since 8.1.0
22
+ */
23
+ commit?: boolean;
24
+ /**
25
+ * The EKSource identifier (account) where the list should be created.
26
+ * If left undefined, iCloud will be used if available, otherwise falls back to local.
27
+ *
28
+ * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
29
+ * @platform iOS
30
+ * @since 8.1.0
31
+ */
32
+ sourceId?: string;
33
+ /**
34
+ * The title of the list.
35
+ *
36
+ * @example 'Groceries'
37
+ * @platform iOS
38
+ * @since 8.1.0
39
+ */
40
+ title: string;
41
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-reminders-list-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * The color of the list.\n *\n * @example 'indigo'\n * @default 'blue'\n * @platform iOS\n * @since 8.1.0\n */\n color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';\n /**\n * Whether to save the list to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.1.0\n */\n commit?: boolean;\n /**\n * The EKSource identifier (account) where the list should be created.\n * If left undefined, iCloud will be used if available, otherwise falls back to local.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.1.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.1.0\n */\n title: string;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @since 8.1.0
3
+ */
4
+ export interface CreateRemindersListResult {
5
+ /**
6
+ * Identifier of the newly created reminders list.
7
+ *
8
+ * @platform iOS
9
+ * @since 8.1.0
10
+ */
11
+ id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-reminders-list-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListResult {\n /**\n * Identifier of the newly created reminders list.\n *\n * @platform iOS\n * @since 8.1.0\n */\n id: string;\n}\n"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 8.2.0
3
+ */
4
+ export interface DeleteRemindersListOptions {
5
+ /**
6
+ * Whether to save the deletion to the event store immediately.
7
+ * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
8
+ *
9
+ * @example false
10
+ * @default true
11
+ * @platform iOS
12
+ * @since 8.2.0
13
+ */
14
+ commit?: boolean;
15
+ /**
16
+ * Identifier of the reminders list to delete.
17
+ *
18
+ * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
19
+ * @platform iOS
20
+ * @since 8.2.0
21
+ */
22
+ id: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=delete-reminders-list-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface DeleteRemindersListOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.2.0\n */\n commit?: boolean;\n /**\n * Identifier of the reminders list to delete.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n}\n"]}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @since 8.2.0
3
+ */
4
+ export interface UpdateRemindersListOptions {
5
+ /**
6
+ * The new color of the list.
7
+ * If omitted, the color is left unchanged.
8
+ *
9
+ * @example 'indigo'
10
+ * @platform iOS
11
+ * @since 8.1.0
12
+ */
13
+ color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';
14
+ /**
15
+ * Whether to save the update to the event store immediately.
16
+ * Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.
17
+ *
18
+ * @default true
19
+ * @platform iOS
20
+ * @since 8.2.0
21
+ */
22
+ commit?: boolean;
23
+ /**
24
+ * The identifier of the list to update.
25
+ *
26
+ * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
27
+ * @platform iOS
28
+ * @since 8.2.0
29
+ */
30
+ id: string;
31
+ /**
32
+ * The new title of the list.
33
+ * If omitted, the title is left unchanged.
34
+ *
35
+ * @example 'Groceries'
36
+ * @platform iOS
37
+ * @since 8.2.0
38
+ */
39
+ title?: string;
40
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=update-reminders-list-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/update-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface UpdateRemindersListOptions {\n /**\n * The new color of the list.\n * If omitted, the color is left unchanged.\n *\n * @example 'indigo'\n * @platform iOS\n * @since 8.1.0\n */\n color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';\n /**\n * Whether to save the update to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @since 8.2.0\n */\n commit?: boolean;\n /**\n * The identifier of the list to update.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n /**\n * The new title of the list.\n * If omitted, the title is left unchanged.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.2.0\n */\n title?: string;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @since 8.2.0
3
+ */
4
+ export interface UpdateRemindersListResult {
5
+ /**
6
+ * Identifier of the updated reminders list.
7
+ *
8
+ * @platform iOS
9
+ * @since 8.2.0
10
+ */
11
+ id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=update-reminders-list-result.js.map