@ebarooni/capacitor-calendar 7.2.0 → 7.3.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 (264) hide show
  1. package/EbarooniCapacitorCalendar.podspec +1 -1
  2. package/Package.swift +2 -2
  3. package/README.md +901 -466
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +57 -7
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +35 -19
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +312 -85
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventDeleteInfo.kt +8 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventRecurrenceRule.kt +135 -0
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/EventSpan.kt +13 -0
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +1 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +5 -0
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +4 -1
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +4 -1
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +2 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
  20. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
  21. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +3 -1
  22. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +3 -0
  23. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
  24. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
  25. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
  26. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
  27. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
  28. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
  29. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
  30. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
  31. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
  32. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +468 -39
  33. package/dist/docs.json +3046 -1048
  34. package/dist/esm/definitions.d.ts +5 -5
  35. package/dist/esm/definitions.js.map +1 -1
  36. package/dist/esm/index.d.ts +71 -48
  37. package/dist/esm/index.js +17 -17
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/schemas/enums/attendee-role.js.map +1 -1
  40. package/dist/esm/schemas/enums/attendee-status.js.map +1 -1
  41. package/dist/esm/schemas/enums/attendee-type.js.map +1 -1
  42. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +9 -1
  43. package/dist/esm/schemas/enums/calendar-permission-scope.js +9 -1
  44. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
  45. package/dist/esm/schemas/enums/event-span.d.ts +4 -0
  46. package/dist/esm/schemas/enums/event-span.js +4 -0
  47. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  48. package/dist/esm/schemas/enums/event-status.js.map +1 -1
  49. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -5
  50. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -5
  51. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  52. package/dist/esm/schemas/interfaces/calendar-event.d.ts +145 -70
  53. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  54. package/dist/esm/schemas/interfaces/calendar-source.d.ts +4 -1
  55. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  56. package/dist/esm/schemas/interfaces/calendar.d.ts +22 -4
  57. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  58. package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
  59. package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
  60. package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
  61. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +19 -6
  62. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
  63. package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
  64. package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
  65. package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
  66. package/dist/esm/schemas/interfaces/create-event-options.d.ts +86 -51
  67. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
  68. package/dist/esm/schemas/interfaces/create-event-result.d.ts +22 -0
  69. package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
  70. package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
  71. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +73 -36
  72. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
  73. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +23 -0
  74. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
  75. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
  76. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +42 -12
  77. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
  78. package/dist/esm/schemas/interfaces/create-reminder-result.d.ts +12 -0
  79. package/dist/esm/schemas/interfaces/create-reminder-result.js +2 -0
  80. package/dist/esm/schemas/interfaces/create-reminder-result.js.map +1 -0
  81. package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +46 -0
  82. package/dist/esm/schemas/interfaces/create-reminders-list-options.js +2 -0
  83. package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -0
  84. package/dist/esm/schemas/interfaces/create-reminders-list-result.d.ts +12 -0
  85. package/dist/esm/schemas/interfaces/create-reminders-list-result.js +2 -0
  86. package/dist/esm/schemas/interfaces/create-reminders-list-result.js.map +1 -0
  87. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
  88. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
  89. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +29 -4
  90. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
  91. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +39 -14
  92. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
  93. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +16 -4
  94. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
  95. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +10 -0
  96. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -1
  97. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
  98. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
  99. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
  100. package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.d.ts +13 -0
  101. package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js +2 -0
  102. package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js.map +1 -0
  103. package/dist/esm/schemas/interfaces/delete-reminders-list-options.d.ts +23 -0
  104. package/dist/esm/schemas/interfaces/delete-reminders-list-options.js +2 -0
  105. package/dist/esm/schemas/interfaces/delete-reminders-list-options.js.map +1 -0
  106. package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +96 -0
  107. package/dist/esm/schemas/interfaces/event-recurrence-rule.js +2 -0
  108. package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -0
  109. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
  110. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
  111. package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
  112. package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
  113. package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
  114. package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
  115. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
  116. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
  117. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
  118. package/dist/esm/schemas/interfaces/get-reminder-by-id-result.d.ts +13 -0
  119. package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js +2 -0
  120. package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js.map +1 -0
  121. package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.d.ts +13 -0
  122. package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js +2 -0
  123. package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js.map +1 -0
  124. package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
  125. package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
  126. package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
  127. package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
  128. package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
  129. package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
  130. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
  131. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
  132. package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
  133. package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
  134. package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
  135. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +13 -2
  136. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
  137. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +61 -44
  138. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -1
  139. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
  140. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
  141. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +77 -13
  142. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
  143. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
  144. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
  145. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +8 -2
  146. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
  147. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +1 -1
  148. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  149. package/dist/esm/schemas/interfaces/reminder.d.ts +4 -1
  150. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  151. package/dist/esm/schemas/interfaces/reminders-list.d.ts +8 -2
  152. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  153. package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
  154. package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
  155. package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
  156. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +1 -1
  157. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -1
  158. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
  159. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
  160. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
  161. package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +43 -0
  162. package/dist/esm/schemas/interfaces/update-reminders-list-options.js +2 -0
  163. package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -0
  164. package/dist/esm/schemas/interfaces/update-reminders-list-result.d.ts +12 -0
  165. package/dist/esm/schemas/interfaces/update-reminders-list-result.js +2 -0
  166. package/dist/esm/schemas/interfaces/update-reminders-list-result.js.map +1 -0
  167. package/dist/esm/schemas/types/event-edit-action.d.ts +1 -1
  168. package/dist/esm/schemas/types/event-edit-action.js.map +1 -1
  169. package/dist/esm/schemas/types/recurrence-frequency.d.ts +4 -0
  170. package/dist/esm/schemas/types/recurrence-frequency.js +2 -0
  171. package/dist/esm/schemas/types/recurrence-frequency.js.map +1 -0
  172. package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
  173. package/dist/esm/schemas/types/system-color-name.js +2 -0
  174. package/dist/esm/schemas/types/system-color-name.js.map +1 -0
  175. package/dist/esm/sub-definitions/calendar-access.d.ts +26 -14
  176. package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
  177. package/dist/esm/sub-definitions/calendar-operations.d.ts +68 -21
  178. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
  179. package/dist/esm/sub-definitions/event-operations.d.ts +46 -25
  180. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  181. package/dist/esm/sub-definitions/reminders-access.d.ts +6 -2
  182. package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
  183. package/dist/esm/sub-definitions/reminders-operations.d.ts +78 -43
  184. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
  185. package/dist/esm/web/download-ics-file.d.ts +18 -0
  186. package/dist/esm/web/download-ics-file.js +33 -0
  187. package/dist/esm/web/download-ics-file.js.map +1 -0
  188. package/dist/esm/web/ics.d.ts +27 -0
  189. package/dist/esm/web/ics.js +294 -0
  190. package/dist/esm/web/ics.js.map +1 -0
  191. package/dist/esm/web.d.ts +70 -82
  192. package/dist/esm/web.js +121 -6
  193. package/dist/esm/web.js.map +1 -1
  194. package/dist/plugin.cjs.js +464 -35
  195. package/dist/plugin.cjs.js.map +1 -1
  196. package/dist/plugin.js +464 -35
  197. package/dist/plugin.js.map +1 -1
  198. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/CapacitorCalendarPlugin.swift +148 -81
  199. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift +203 -110
  200. package/ios/Plugin/Info.plist +24 -0
  201. package/ios/Plugin/Models/Enums/EventSpan.swift +8 -0
  202. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateCalendarInput.swift +6 -4
  203. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateEventInput.swift +25 -21
  204. package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +171 -0
  205. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateReminderInput.swift +14 -4
  206. package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +43 -0
  207. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteCalendarInput.swift +1 -1
  208. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventInput.swift +9 -4
  209. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventWithPromptInput.swift +9 -4
  210. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventsByIdInput.swift +9 -4
  211. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderInput.swift +7 -1
  212. package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
  213. package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
  214. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyCalendarInput.swift +6 -3
  215. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventInput.swift +63 -41
  216. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyReminderInput.swift +66 -5
  217. package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +41 -0
  218. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventResult.swift +1 -0
  219. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventWithPromptResult.swift +1 -0
  220. package/ios/Plugin/Models/Results/CreateRemindersListResult.swift +15 -0
  221. package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +29 -0
  222. package/ios/Plugin/Models/Results/UpdateRemindersListResult.swift +15 -0
  223. package/ios/Plugin/Models/Structs/RecurrenceInput.swift +41 -0
  224. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginConfig.swift +30 -27
  225. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginError.swift +74 -56
  226. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/ImplementationHelper.swift +140 -24
  227. package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/UIColorFromHexExtension.swift +5 -0
  228. package/package.json +36 -43
  229. package/dist/esm/schemas/enums/recurrence-frequency.d.ts +0 -21
  230. package/dist/esm/schemas/enums/recurrence-frequency.js +0 -23
  231. package/dist/esm/schemas/enums/recurrence-frequency.js.map +0 -1
  232. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +0 -89
  233. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +0 -16
  234. package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +0 -15
  235. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CAPPermissionState.swift +0 -0
  236. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CalendarPermissionScope.swift +0 -0
  237. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/EventEditAction.swift +0 -0
  238. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CheckPermissionInput.swift +0 -0
  239. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderWithPromptInput.swift +0 -0
  240. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteRemindersByIdInput.swift +0 -0
  241. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetReminderByIdInput.swift +0 -0
  242. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetRemindersFromListsInput.swift +0 -0
  243. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ListEventsInRangeInput.swift +0 -0
  244. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventWithPromptInput.swift +0 -0
  245. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/OpenCalendarInput.swift +0 -0
  246. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/RequestPermissionInput.swift +0 -0
  247. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/SelectCalendarsWithPromptInput.swift +0 -0
  248. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckAllPermissionsResult.swift +0 -0
  249. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckPermissionResult.swift +0 -0
  250. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateCalendarResult.swift +0 -0
  251. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateReminderResult.swift +0 -0
  252. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventWithPromptResult.swift +0 -0
  253. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventsByIdResult.swift +0 -0
  254. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteRemindersByIdResult.swift +0 -0
  255. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/FetchAllCalendarSourcesResult.swift +0 -0
  256. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetDefaultCalendarResult.swift +0 -0
  257. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetReminderByIdResult.swift +0 -0
  258. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetRemindersFromListsResult.swift +0 -0
  259. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ListCalendarsResult.swift +0 -0
  260. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ModifyEventWithPromptResult.swift +0 -0
  261. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestAllPermissionsResult.swift +0 -0
  262. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestPermissionResult.swift +0 -0
  263. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/SelectCalendarsWithPromptResult.swift +0 -0
  264. /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Templates/JSResult.swift +0 -0
@@ -1,151 +1,226 @@
1
- import { AttendeeRole } from "../enums/attendee-role";
2
- import { AttendeeStatus } from "../enums/attendee-status";
3
- import { AttendeeType } from "../enums/attendee-type";
4
- import { EventAvailability } from "../enums/event-availability";
5
- import { EventStatus } from "../enums/event-status";
1
+ import type { AttendeeRole } from '../enums/attendee-role';
2
+ import type { AttendeeStatus } from '../enums/attendee-status';
3
+ import type { AttendeeType } from '../enums/attendee-type';
4
+ import type { EventAvailability } from '../enums/event-availability';
5
+ import type { EventStatus } from '../enums/event-status';
6
6
  /**
7
7
  * @since 7.1.0
8
8
  */
9
9
  export interface CalendarEvent {
10
10
  /**
11
+ * Alert times in minutes relative to the event start.
12
+ *
11
13
  * @platform Android, iOS
12
14
  * @since 7.1.0
13
15
  */
14
- id: string;
15
- /**
16
- * @platform Android, iOS
17
- * @since 7.1.0
18
- */
19
- title: string;
16
+ alerts: number[];
20
17
  /**
21
18
  * @platform Android, iOS
22
19
  * @since 7.1.0
23
20
  */
24
- calendarId: string | null;
21
+ attendees: {
22
+ /**
23
+ * @platform Android
24
+ * @since 7.1.0
25
+ */
26
+ email: string | null;
27
+ /**
28
+ * @platform Android, iOS
29
+ * @since 7.1.0
30
+ */
31
+ name: string | null;
32
+ /**
33
+ * Equivalent to ATTENDEE_RELATIONSHIP on Android.
34
+ * Equivalent to EKParticipantRole on iOS.
35
+ *
36
+ * @platform Android, iOS
37
+ * @since 7.1.0
38
+ */
39
+ role: AttendeeRole | null;
40
+ /**
41
+ * Equivalent to ATTENDEE_STATUS on Android.
42
+ * Equivalent to EKParticipantStatus on iOS.
43
+ *
44
+ * @platform Android, iOS
45
+ * @since 7.1.0
46
+ */
47
+ status: AttendeeStatus | null;
48
+ /**
49
+ * Equivalent to ATTENDEE_TYPE on Android.
50
+ * Equivalent to EKParticipantType on iOS.
51
+ *
52
+ * @platform Android, iOS
53
+ * @since 7.1.0
54
+ */
55
+ type: AttendeeType | null;
56
+ }[];
25
57
  /**
26
58
  * @platform Android, iOS
27
59
  * @since 7.1.0
28
60
  */
29
- location: string | null;
61
+ availability: EventAvailability | null;
30
62
  /**
31
- * @platform Android, iOS
63
+ * @platform iOS
64
+ * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
32
65
  * @since 7.1.0
33
66
  */
34
- startDate: number;
67
+ birthdayContactIdentifier: string | null;
35
68
  /**
36
69
  * @platform Android, iOS
37
70
  * @since 7.1.0
38
71
  */
39
- endDate: number;
72
+ calendarId: string | null;
40
73
  /**
41
- * @platform Android, iOS
42
- * @since 7.1.0
74
+ * A stable external id for this calendar item.
75
+ *
76
+ * On iOS this is set when the system provides it. On Android and web it is
77
+ * always `null`. Use `masterId` on Android for the series master id.
78
+ *
79
+ * Do not treat this field as the same as `masterId`.
80
+ * They identify different things on different platforms.
81
+ *
82
+ * For non-detached occurrences of a series, this value is shared across
83
+ * those occurrences. On one device, `id` is often already shared for them.
84
+ * This field is mainly useful as a stable id across devices.
85
+ *
86
+ * Detached exceptions usually get a new identifier.
87
+ * You cannot find the original series from this value.
88
+ * Use `isDetached` and `isPartOfSeries` instead.
89
+ * Do not pass this value where the plugin expects an event `id`.
90
+ *
91
+ * @example "1A2B3C4D-...."
92
+ * @platform iOS
93
+ * @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}
94
+ * @since 7.3.0
43
95
  */
44
- isAllDay: boolean;
96
+ calendarItemExternalIdentifier: string | null;
45
97
  /**
46
98
  * @platform Android, iOS
47
99
  * @since 7.1.0
48
100
  */
49
- alerts: number[];
101
+ color: string | null;
50
102
  /**
51
103
  * @platform iOS
52
104
  * @since 7.1.0
53
105
  */
54
- url: string | null;
106
+ creationDate: number | null;
55
107
  /**
56
108
  * @platform Android, iOS
57
109
  * @since 7.1.0
58
110
  */
59
111
  description: string | null;
60
112
  /**
61
- * @platform Android, iOS
113
+ * @platform Android
62
114
  * @since 7.1.0
63
115
  */
64
- availability: EventAvailability | null;
116
+ duration: string | null;
65
117
  /**
66
118
  * @platform Android, iOS
67
119
  * @since 7.1.0
68
120
  */
69
- organizer: string | null;
121
+ endDate: number;
70
122
  /**
71
123
  * @platform Android, iOS
72
124
  * @since 7.1.0
73
125
  */
74
- color: string | null;
126
+ id: string;
75
127
  /**
76
- * @platform Android
128
+ * @platform Android, iOS
77
129
  * @since 7.1.0
78
130
  */
79
- duration: string | null;
131
+ isAllDay: boolean;
80
132
  /**
81
133
  * @platform iOS
82
134
  * @since 7.1.0
83
135
  */
84
136
  isDetached: boolean | null;
137
+ /**
138
+ * Whether this event belongs to a recurring series.
139
+ *
140
+ * `true` for series occurrences and detached exceptions.
141
+ * `false` for one-off events.
142
+ *
143
+ * Detached exceptions also set `isDetached` (iOS only).
144
+ *
145
+ * @example true
146
+ * @platform Android, iOS
147
+ * @since 7.3.0
148
+ */
149
+ isPartOfSeries: boolean;
85
150
  /**
86
151
  * @platform iOS
87
- * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
88
152
  * @since 7.1.0
89
153
  */
90
- birthdayContactIdentifier: string | null;
154
+ lastModifiedDate: number | null;
91
155
  /**
92
156
  * @platform Android, iOS
93
157
  * @since 7.1.0
94
158
  */
95
- status: EventStatus | null;
159
+ location: string | null;
96
160
  /**
97
- * @platform iOS
161
+ * The id of the series master for this listed occurrence.
162
+ *
163
+ * On Android this is always a string. On iOS and web it is always `null`.
164
+ * iOS has no public master event id. Use `calendarItemExternalIdentifier`
165
+ * on iOS instead.
166
+ *
167
+ * Do not treat this field as the same as `calendarItemExternalIdentifier`.
168
+ * They identify different things on different platforms.
169
+ *
170
+ * If this row is the master or a one-shot event, `masterId` equals `id`.
171
+ * If this row is an exception, `id` is the exception and `masterId` is the
172
+ * series master.
173
+ *
174
+ * To modify or delete the whole series, pass `masterId` as the `id` option.
175
+ * You still need `span` and `instanceDate` when those APIs require them.
176
+ *
177
+ * In rare sync cases, an exception may temporarily report `masterId` equal
178
+ * to `id` until the platform links it to the series master.
179
+ *
180
+ * @example "42"
181
+ * @platform Android
182
+ * @since 7.3.0
183
+ */
184
+ masterId: string | null;
185
+ /**
186
+ * @platform Android, iOS
98
187
  * @since 7.1.0
99
188
  */
100
- creationDate: number | null;
189
+ organizer: string | null;
101
190
  /**
102
- * @platform iOS
191
+ * Start time of the recurring series, in milliseconds since the epoch.
192
+ *
193
+ * Equals `startDate` for one-off events. On iOS, equals `startDate` when
194
+ * the series start is not available for a detached exception.
195
+ *
196
+ * @example 1719792000000
197
+ * @platform Android, iOS
198
+ * @since 7.3.0
199
+ */
200
+ seriesStartDate: number;
201
+ /**
202
+ * @platform Android, iOS
103
203
  * @since 7.1.0
104
204
  */
105
- lastModifiedDate: number | null;
205
+ startDate: number;
106
206
  /**
107
207
  * @platform Android, iOS
108
208
  * @since 7.1.0
109
209
  */
110
- attendees: {
111
- /**
112
- * @platform Android
113
- * @since 7.1.0
114
- */
115
- email: string | null;
116
- /**
117
- * @platform Android, iOS
118
- * @since 7.1.0
119
- */
120
- name: string | null;
121
- /**
122
- * Equivalent to ATTENDEE_RELATIONSHIP on Android.
123
- * Equivalent to EKParticipantRole on iOS.
124
- *
125
- * @platform Android, iOS
126
- * @since 7.1.0
127
- */
128
- role: AttendeeRole | null;
129
- /**
130
- * Equivalent to ATTENDEE_STATUS on Android.
131
- * Equivalent to EKParticipantStatus on iOS.
132
- *
133
- * @platform Android, iOS
134
- * @since 7.1.0
135
- */
136
- status: AttendeeStatus | null;
137
- /**
138
- * Equivalent to ATTENDEE_TYPE on Android.
139
- * Equivalent to EKParticipantType on iOS.
140
- *
141
- * @platform Android, iOS
142
- * @since 7.1.0
143
- */
144
- type: AttendeeType | null;
145
- }[];
210
+ status: EventStatus | null;
146
211
  /**
147
212
  * @platform Android, iOS
148
213
  * @since 7.1.0
149
214
  */
150
215
  timezone: string | null;
216
+ /**
217
+ * @platform Android, iOS
218
+ * @since 7.1.0
219
+ */
220
+ title: string;
221
+ /**
222
+ * @platform iOS
223
+ * @since 7.1.0
224
+ */
225
+ url: string | null;
151
226
  }
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import { AttendeeRole } from \"../enums/attendee-role\";\nimport { AttendeeStatus } from \"../enums/attendee-status\";\nimport { AttendeeType } from \"../enums/attendee-type\";\nimport { EventAvailability } from \"../enums/event-availability\";\nimport { EventStatus } from \"../enums/event-status\";\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n calendarId: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n location: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n startDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n endDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n isAllDay: boolean;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts: number[];\n /**\n * @platform iOS\n * @since 7.1.0\n */\n url: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability: EventAvailability | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n organizer: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n duration: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isDetached: boolean | null;\n /**\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}\n * @since 7.1.0\n */\n birthdayContactIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: EventStatus | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n creationDate: number | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n lastModifiedDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n attendees: {\n /**\n * @platform Android\n * @since 7.1.0\n */\n email: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n name: string | null;\n /**\n * Equivalent to ATTENDEE_RELATIONSHIP on Android.\n * Equivalent to EKParticipantRole on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n role: AttendeeRole | null;\n /**\n * Equivalent to ATTENDEE_STATUS on Android.\n * Equivalent to EKParticipantStatus on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: AttendeeStatus | null;\n /**\n * Equivalent to ATTENDEE_TYPE on Android.\n * Equivalent to EKParticipantType on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n type: AttendeeType | null;\n }[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n timezone: string | null;\n}\n"]}
1
+ {"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { AttendeeRole } from '../enums/attendee-role';\nimport type { AttendeeStatus } from '../enums/attendee-status';\nimport type { AttendeeType } from '../enums/attendee-type';\nimport type { EventAvailability } from '../enums/event-availability';\nimport type { EventStatus } from '../enums/event-status';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\n /**\n * Alert times in minutes relative to the event start.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts: number[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n attendees: {\n /**\n * @platform Android\n * @since 7.1.0\n */\n email: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n name: string | null;\n /**\n * Equivalent to ATTENDEE_RELATIONSHIP on Android.\n * Equivalent to EKParticipantRole on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n role: AttendeeRole | null;\n /**\n * Equivalent to ATTENDEE_STATUS on Android.\n * Equivalent to EKParticipantStatus on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: AttendeeStatus | null;\n /**\n * Equivalent to ATTENDEE_TYPE on Android.\n * Equivalent to EKParticipantType on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n type: AttendeeType | null;\n }[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability: EventAvailability | null;\n /**\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}\n * @since 7.1.0\n */\n birthdayContactIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n calendarId: string | null;\n /**\n * A stable external id for this calendar item.\n *\n * On iOS this is set when the system provides it. On Android and web it is\n * always `null`. Use `masterId` on Android for the series master id.\n *\n * Do not treat this field as the same as `masterId`.\n * They identify different things on different platforms.\n *\n * For non-detached occurrences of a series, this value is shared across\n * those occurrences. On one device, `id` is often already shared for them.\n * This field is mainly useful as a stable id across devices.\n *\n * Detached exceptions usually get a new identifier.\n * You cannot find the original series from this value.\n * Use `isDetached` and `isPartOfSeries` instead.\n * Do not pass this value where the plugin expects an event `id`.\n *\n * @example \"1A2B3C4D-....\"\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}\n * @since 7.3.0\n */\n calendarItemExternalIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n creationDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description: string | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n duration: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n endDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n isAllDay: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isDetached: boolean | null;\n /**\n * Whether this event belongs to a recurring series.\n *\n * `true` for series occurrences and detached exceptions.\n * `false` for one-off events.\n *\n * Detached exceptions also set `isDetached` (iOS only).\n *\n * @example true\n * @platform Android, iOS\n * @since 7.3.0\n */\n isPartOfSeries: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n lastModifiedDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n location: string | null;\n /**\n * The id of the series master for this listed occurrence.\n *\n * On Android this is always a string. On iOS and web it is always `null`.\n * iOS has no public master event id. Use `calendarItemExternalIdentifier`\n * on iOS instead.\n *\n * Do not treat this field as the same as `calendarItemExternalIdentifier`.\n * They identify different things on different platforms.\n *\n * If this row is the master or a one-shot event, `masterId` equals `id`.\n * If this row is an exception, `id` is the exception and `masterId` is the\n * series master.\n *\n * To modify or delete the whole series, pass `masterId` as the `id` option.\n * You still need `span` and `instanceDate` when those APIs require them.\n *\n * In rare sync cases, an exception may temporarily report `masterId` equal\n * to `id` until the platform links it to the series master.\n *\n * @example \"42\"\n * @platform Android\n * @since 7.3.0\n */\n masterId: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n organizer: string | null;\n /**\n * Start time of the recurring series, in milliseconds since the epoch.\n *\n * Equals `startDate` for one-off events. On iOS, equals `startDate` when\n * the series start is not available for a detached exception.\n *\n * @example 1719792000000\n * @platform Android, iOS\n * @since 7.3.0\n */\n seriesStartDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n startDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: EventStatus | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n timezone: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n url: string | null;\n}\n"]}
@@ -1,17 +1,20 @@
1
- import { CalendarSourceType } from "../enums/calendar-source-type";
1
+ import type { CalendarSourceType } from '../enums/calendar-source-type';
2
2
  /**
3
3
  * @since 7.1.0
4
4
  */
5
5
  export interface CalendarSource {
6
6
  /**
7
+ * @platform iOS
7
8
  * @since 7.1.0
8
9
  */
9
10
  type: CalendarSourceType;
10
11
  /**
12
+ * @platform iOS
11
13
  * @since 7.1.0
12
14
  */
13
15
  id: string;
14
16
  /**
17
+ * @platform iOS
15
18
  * @since 7.1.0
16
19
  */
17
20
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import { CalendarSourceType } from \"../enums/calendar-source-type\";\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarSource {\n /**\n * @since 7.1.0\n */\n type: CalendarSourceType;\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title: string;\n}\n"]}
1
+ {"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSourceType } from '../enums/calendar-source-type';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarSource {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarSourceType;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
@@ -1,5 +1,6 @@
1
- import type { CalendarSource } from "./calendar-source";
2
- import { CalendarType } from "../enums/calendar-type";
1
+ import type { CalendarType } from '../enums/calendar-type';
2
+ import type { SystemColorName } from '../types/system-color-name';
3
+ import type { CalendarSource } from './calendar-source';
3
4
  /**
4
5
  * @since 7.1.0
5
6
  */
@@ -10,10 +11,13 @@ export interface Calendar {
10
11
  */
11
12
  id: string;
12
13
  /**
14
+ * Display title of the calendar.
15
+ * May be `null` when the platform does not provide a title.
16
+ *
13
17
  * @platform Android, iOS
14
18
  * @since 7.1.0
15
19
  */
16
- title: string;
20
+ title: string | null;
17
21
  /**
18
22
  * Internal name of the calendar (`CalendarContract.Calendars.NAME`).
19
23
  *
@@ -22,10 +26,24 @@ export interface Calendar {
22
26
  */
23
27
  internalTitle: string | null;
24
28
  /**
29
+ * Hex color string, or null when none is available.
30
+ *
31
+ * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.
32
+ *
25
33
  * @platform Android, iOS
34
+ * @example #0000FF
35
+ * @example #0000FF80
26
36
  * @since 7.1.0
27
37
  */
28
- color: string;
38
+ color: string | null;
39
+ /**
40
+ * Named color if the stored color matches one of the system colors;
41
+ * otherwise null. May be null in dark mode or for custom hex. Always null on Android.
42
+ *
43
+ * @platform Android, iOS
44
+ * @since 7.3.0
45
+ */
46
+ colorName?: SystemColorName | null;
29
47
  /**
30
48
  * @platform iOS
31
49
  * @since 7.1.0
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from \"./calendar-source\";\nimport { CalendarType } from \"../enums/calendar-type\";\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
1
+ {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarType } from '../enums/calendar-type';\nimport type { SystemColorName } from '../types/system-color-name';\n\nimport type { CalendarSource } from './calendar-source';\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * Hex color string, or null when none is available.\n *\n * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @example #0000FF80\n * @since 7.1.0\n */\n color: string | null;\n /**\n * Named color if the stored color matches one of the system colors;\n * otherwise null. May be null in dark mode or for custom hex. Always null on Android.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n colorName?: SystemColorName | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import type { CalendarPermissionScope } from '../enums/calendar-permission-scope';
2
+ /**
3
+ * Options for {@link CalendarAccess#checkPermission}.
4
+ *
5
+ * @since 7.3.0
6
+ */
7
+ export interface CheckPermissionOptions {
8
+ /**
9
+ * The permission scope to check.
10
+ *
11
+ * On Android, `readReminders` and `writeReminders` resolve to `"prompt"`
12
+ * (reminders are not supported on Android).
13
+ *
14
+ * @example CalendarPermissionScope.READ_CALENDAR
15
+ * @platform Android, iOS
16
+ * @since 7.3.0
17
+ */
18
+ scope: CalendarPermissionScope;
19
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=check-permission-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-permission-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/check-permission-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarPermissionScope } from '../enums/calendar-permission-scope';\n\n/**\n * Options for {@link CalendarAccess#checkPermission}.\n *\n * @since 7.3.0\n */\nexport interface CheckPermissionOptions {\n /**\n * The permission scope to check.\n *\n * On Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`\n * (reminders are not supported on Android).\n *\n * @example CalendarPermissionScope.READ_CALENDAR\n * @platform Android, iOS\n * @since 7.3.0\n */\n scope: CalendarPermissionScope;\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import type { SystemColorName } from '../types/system-color-name';
1
2
  /**
2
3
  * @since 5.2.0
3
4
  */
@@ -8,29 +9,41 @@ export interface CreateCalendarOptions {
8
9
  */
9
10
  title: string;
10
11
  /**
11
- * The color of the calendar.
12
- * Should be provided on Android.
12
+ * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
13
+ * When omitted, Android and iOS use `#007AFF`.
14
+ * On Android, only hex is accepted; named colors reject with `Invalid color format.`
13
15
  *
14
16
  * @platform Android, iOS
15
- * @example #0000FF
17
+ * @example 'indigo'
18
+ * @example #007AFF
19
+ * @default #007AFF
16
20
  * @since 5.2.0
17
21
  */
18
- color?: string;
22
+ color?: SystemColorName | `#${string}`;
19
23
  /**
24
+ * The EventKit source (account) where the calendar should be created.
25
+ *
26
+ * If provided, it must match an existing source from `fetchAllCalendarSources()`.
27
+ * If omitted, iCloud is used when available, otherwise the local source.
28
+ *
20
29
  * @platform iOS
21
30
  * @since 5.2.0
22
31
  */
23
32
  sourceId?: string;
24
33
  /**
25
- * Only needed on Android. Typically set to an email address.
34
+ * The account under which the calendar is registered.
35
+ * Required on Android. Typically an email address.
26
36
  *
37
+ * @example plugin@example.com
27
38
  * @platform Android
28
39
  * @since 7.1.0
29
40
  */
30
41
  accountName?: string;
31
42
  /**
32
- * Only needed on Android. Typically set to an email address.
43
+ * The owner of the calendar.
44
+ * Required on Android. Typically an email address.
33
45
  *
46
+ * @example plugin@example.com
34
47
  * @platform Android
35
48
  * @since 7.1.0
36
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * The color of the calendar.\n * Should be provided on Android.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @since 5.2.0\n */\n color?: string;\n /**\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * Only needed on Android. Typically set to an email address.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * Only needed on Android. Typically set to an email address.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
1
+ {"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, Android and iOS use `#007AFF`.\n * On Android, only hex is accepted; named colors reject with `Invalid color format.`\n *\n * @platform Android, iOS\n * @example 'indigo'\n * @example #007AFF\n * @default #007AFF\n * @since 5.2.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * The EventKit source (account) where the calendar should be created.\n *\n * If provided, it must match an existing source from `fetchAllCalendarSources()`.\n * If omitted, iCloud is used when available, otherwise the local source.\n *\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * The account under which the calendar is registered.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * The owner of the calendar.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @since 7.3.0
3
+ */
4
+ export interface CreateCalendarResult {
5
+ /**
6
+ * Identifier of the newly created calendar.
7
+ *
8
+ * @platform Android, iOS
9
+ * @since 7.3.0
10
+ */
11
+ id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-calendar-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-calendar-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateCalendarResult {\n /**\n * Identifier of the newly created calendar.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n id: string;\n}\n"]}