@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,96 +1,131 @@
1
- import { EventAvailability } from "../enums/event-availability";
2
- import type { EventGuest } from "./event-guest";
1
+ import type { EventAvailability } from '../enums/event-availability';
2
+ import type { EventGuest } from './event-guest';
3
+ import type { EventRecurrenceRule } from './event-recurrence-rule';
3
4
  /**
4
5
  * @since 7.1.0
5
6
  */
6
7
  export interface CreateEventOptions {
7
8
  /**
8
- * @platform Android, iOS
9
- * @since 0.4.0
10
- */
11
- title: string;
12
- /**
13
- * @platform Android, iOS
14
- * @since 0.1.0
9
+ * Alert times in minutes relative to the event start.
10
+ * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
11
+ *
12
+ * @example
13
+ * // -1440 -> 1 day before
14
+ * // -60 -> 1 hour before
15
+ * // 30 -> 30 minutes after
16
+ * [-1440, -60, 30]
17
+ *
18
+ * @platform Android, iOS, Web
19
+ * @since 7.1.0
15
20
  */
16
- calendarId?: string;
21
+ alerts?: number[];
17
22
  /**
18
- * @platform Android, iOS
19
- * @since 0.1.0
23
+ * The event guests.
24
+ *
25
+ * @platform Android, Web
26
+ * @since 7.1.0
20
27
  */
21
- location?: string;
28
+ attendees?: EventGuest[];
22
29
  /**
30
+ * Start a browser download of the ICS file.
23
31
  *
24
- * @platform Android, iOS
25
- * @since 0.1.0
32
+ * @default false
33
+ * @platform Web
34
+ * @since 7.3.0
26
35
  */
27
- startDate?: number;
36
+ autoDownloadIcsFile?: boolean;
28
37
  /**
29
- * @platform Android, iOS
30
- * @since 0.1.0
38
+ * @platform Android, iOS, Web
39
+ * @since 7.1.0
31
40
  */
32
- endDate?: number;
41
+ availability?: EventAvailability;
33
42
  /**
34
43
  * @platform Android, iOS
35
44
  * @since 0.1.0
36
45
  */
37
- isAllDay?: boolean;
46
+ calendarId?: string;
38
47
  /**
39
- * @platform Android, iOS
48
+ * @example #6750A4
49
+ * @platform Android
40
50
  * @since 7.1.0
41
51
  */
42
- alerts?: number[];
52
+ color?: string;
43
53
  /**
54
+ * Whether to save immediately (`true`) or batch changes for later (`false`).
55
+ *
56
+ * @default true
44
57
  * @platform iOS
45
- * @since 0.1.0
58
+ * @see {@link CalendarOperations#commit}
59
+ * @since 7.1.0
46
60
  */
47
- url?: string;
61
+ commit?: boolean;
48
62
  /**
49
- * @platform Android, iOS
63
+ * @platform Android, iOS, Web
50
64
  * @since 7.1.0
51
65
  */
52
66
  description?: string;
53
67
  /**
54
- * @platform Android, iOS
68
+ * Duration of the event in RFC2445 format.
69
+ * On Web, used when `endDate` is omitted; `endDate` wins if both are set.
70
+ *
71
+ * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
72
+ * @platform Android, Web
73
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
55
74
  * @since 7.1.0
56
75
  */
57
- availability?: EventAvailability;
76
+ duration?: string;
58
77
  /**
59
- * Email of the event organizer.
78
+ * @platform Android, iOS, Web
79
+ * @since 0.1.0
80
+ */
81
+ endDate?: number;
82
+ /**
83
+ * Download filename for the `.ics` file.
84
+ * When omitted, a name is derived from `title` (fallback `event.ics`).
85
+ * If the value has no `.ics` extension, `.ics` is appended.
60
86
  *
61
- * @platform Android
62
- * @since 7.1.0
87
+ * @example 'team-standup.ics'
88
+ * @platform Web
89
+ * @since 7.3.0
63
90
  */
64
- organizer?: string;
91
+ icsFileName?: string;
65
92
  /**
66
- * @example #6750A4
67
- * @platform Android
68
- * @since 7.1.0
93
+ * @platform Android, iOS, Web
94
+ * @since 0.1.0
69
95
  */
70
- color?: string;
96
+ isAllDay?: boolean;
71
97
  /**
72
- * Duration of the event in RFC2445 format.
73
- *
74
- * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
75
- * @platform Android
76
- * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
77
- * @since 7.1.0
98
+ * @platform Android, iOS, Web
99
+ * @since 0.1.0
78
100
  */
79
- duration?: string;
101
+ location?: string;
80
102
  /**
81
- * Whether to save immediately (`true`) or batch changes for later (`false`).
103
+ * Email of the event organizer.
82
104
  *
83
- * @default true
84
- * @platform iOS
85
- * @see {@link CalendarOperations#commit}
105
+ * @platform Android, Web
86
106
  * @since 7.1.0
87
107
  */
88
- commit?: boolean;
108
+ organizer?: string;
89
109
  /**
90
- * The event guests.
110
+ * Rules for creating a recurring event.
91
111
  *
92
- * @platform Android
93
- * @since 7.1.0
112
+ * @platform Android, iOS, Web
113
+ * @since 7.3.0
94
114
  */
95
- attendees?: EventGuest[];
115
+ recurrence?: EventRecurrenceRule;
116
+ /**
117
+ * @platform Android, iOS, Web
118
+ * @since 0.1.0
119
+ */
120
+ startDate?: number;
121
+ /**
122
+ * @platform Android, iOS, Web
123
+ * @since 0.4.0
124
+ */
125
+ title: string;
126
+ /**
127
+ * @platform iOS, Web
128
+ * @since 0.1.0
129
+ */
130
+ url?: string;
96
131
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import { EventAvailability } from \"../enums/event-availability\";\nimport type { EventGuest } from \"./event-guest\";\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * @platform Android, iOS\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n location?: string;\n /**\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.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 0.1.0\n */\n url?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * Email of the event organizer.\n *\n * @platform Android\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * The event guests.\n *\n * @platform Android\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n}\n"]}
1
+ {"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default false\n * @platform Web\n * @since 7.3.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n * On Web, used when `endDate` is omitted; `endDate` wins if both are set.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android, Web\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 7.3.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @since 7.3.0
3
+ */
4
+ export interface CreateEventResult {
5
+ /**
6
+ * An `.ics` file (`text/calendar`) with one `VEVENT`.
7
+ * Always `null` on Android and iOS.
8
+ *
9
+ * @platform Web
10
+ * @since 7.3.0
11
+ */
12
+ ics: File | null;
13
+ /**
14
+ * The identifier of the created event.
15
+ * Always `null` on Web.
16
+ * Present on Android and iOS after a successful create.
17
+ *
18
+ * @platform Android, iOS
19
+ * @since 0.4.0
20
+ */
21
+ id: string | null;
22
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-event-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n *\n * @platform Web\n * @since 7.3.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
@@ -1,70 +1,107 @@
1
- import { EventAvailability } from "../enums/event-availability";
1
+ import type { EventAvailability } from '../enums/event-availability';
2
+ import type { EventRecurrenceRule } from './event-recurrence-rule';
2
3
  /**
3
4
  * @since 7.1.0
4
5
  */
5
6
  export interface CreateEventWithPromptOptions {
6
7
  /**
7
- * @platform Android, iOS
8
- * @since 0.1.0
8
+ * Alert times in minutes relative to the event start.
9
+ * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.
10
+ * On iOS only 2 alerts are supported.
11
+ *
12
+ * @example
13
+ * // -1440 -> 1 day before
14
+ * // -60 -> 1 hour before
15
+ * // 30 -> 30 minutes after
16
+ * [-1440, -60, 30]
17
+ *
18
+ * @platform iOS, Web
19
+ * @since 7.1.0
9
20
  */
10
- title?: string;
21
+ alerts?: number[];
11
22
  /**
12
- * @platform iOS
13
- * @since 0.1.0
23
+ * Start a browser download of the ICS file.
24
+ *
25
+ * @default true
26
+ * @platform Web
27
+ * @since 7.3.0
14
28
  */
15
- calendarId?: string;
29
+ autoDownloadIcsFile?: boolean;
16
30
  /**
17
- * @platform Android, iOS
18
- * @since 0.1.0
31
+ * @platform Android, iOS, Web
32
+ * @since 7.1.0
19
33
  */
20
- location?: string;
34
+ availability?: EventAvailability;
21
35
  /**
22
- * @platform Android, iOS
36
+ * @platform iOS
23
37
  * @since 0.1.0
24
38
  */
25
- startDate?: number;
39
+ calendarId?: string;
26
40
  /**
27
- * @platform Android, iOS
28
- * @since 0.1.0
41
+ * @platform Android, iOS, Web
42
+ * @since 7.1.0
29
43
  */
30
- endDate?: number;
44
+ description?: string;
31
45
  /**
32
- * @platform Android, iOS
46
+ * @platform Android, iOS, Web
33
47
  * @since 0.1.0
34
48
  */
35
- isAllDay?: boolean;
49
+ endDate?: number;
36
50
  /**
37
- * Sets alerts before or after the start of the event in minutes.
38
- * On iOS only 2 alerts are supported.
51
+ * Download filename for the `.ics` file.
52
+ * When omitted, a name is derived from `title` (fallback `event.ics`).
53
+ * If the value has no `.ics` extension, `.ics` is appended.
39
54
  *
40
- * @example
41
- * // 10mins before and 30mins after the event
42
- * const alerts: [-10, 30]
55
+ * @example 'planning-session.ics'
56
+ * @platform Web
57
+ * @since 7.3.0
58
+ */
59
+ icsFileName?: string;
60
+ /**
61
+ * An array of emails to invite.
43
62
  *
44
- * @platform iOS
63
+ * @platform Android
45
64
  * @since 7.1.0
46
65
  */
47
- alerts?: number[];
66
+ invitees?: string[];
48
67
  /**
49
- * @platform iOS
68
+ * @platform Android, iOS, Web
50
69
  * @since 0.1.0
51
70
  */
52
- url?: string;
71
+ isAllDay?: boolean;
53
72
  /**
54
- * @platform Android, iOS
55
- * @since 7.1.0
73
+ * @platform Android, iOS, Web
74
+ * @since 0.1.0
56
75
  */
57
- description?: string;
76
+ location?: string;
58
77
  /**
59
- * @platform Android, iOS
60
- * @since 7.1.0
78
+ * Confirm dialog message.
79
+ * When omitted, the dialog uses the event title and time summary.
80
+ *
81
+ * @platform Web
82
+ * @since 7.3.0
61
83
  */
62
- availability?: EventAvailability;
84
+ promptMessage?: string;
63
85
  /**
64
- * An array of emails to invite.
86
+ * Rules for creating a recurring event.
65
87
  *
66
- * @platform Android
67
- * @since 7.1.0
88
+ * @platform Android, iOS, Web
89
+ * @since 7.3.0
68
90
  */
69
- invitees?: string[];
91
+ recurrence?: EventRecurrenceRule;
92
+ /**
93
+ * @platform Android, iOS, Web
94
+ * @since 0.1.0
95
+ */
96
+ startDate?: number;
97
+ /**
98
+ * @platform Android, iOS, Web
99
+ * @since 0.1.0
100
+ */
101
+ title?: string;
102
+ /**
103
+ * @platform iOS, Web
104
+ * @since 0.1.0
105
+ */
106
+ url?: string;
70
107
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import { EventAvailability } from \"../enums/event-availability\";\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n location?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * Sets alerts before or after the start of the event in minutes.\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // 10mins before and 30mins after the event\n * const alerts: [-10, 30]\n *\n * @platform iOS\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * @platform iOS\n * @since 0.1.0\n */\n url?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: string[];\n}\n"]}
1
+ {"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default true\n * @platform Web\n * @since 7.3.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'planning-session.ics'\n * @platform Web\n * @since 7.3.0\n */\n icsFileName?: string;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: string[];\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Confirm dialog message.\n * When omitted, the dialog uses the event title and time summary.\n *\n * @platform Web\n * @since 7.3.0\n */\n promptMessage?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 7.3.0
3
+ */
4
+ export interface CreateEventWithPromptResult {
5
+ /**
6
+ * An `.ics` file (`text/calendar`) with one `VEVENT`.
7
+ * Always `null` on Android and iOS.
8
+ * On Web, set when the user confirms; `null` when the user cancels.
9
+ *
10
+ * @platform Web
11
+ * @since 7.3.0
12
+ */
13
+ ics: File | null;
14
+ /**
15
+ * The identifier of the created event.
16
+ * Always `null` on Android and Web.
17
+ * Present on iOS when the user saves.
18
+ *
19
+ * @platform Android, iOS
20
+ * @since 0.1.0
21
+ */
22
+ id: string | null;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-event-with-prompt-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n * On Web, set when the user confirms; `null` when the user cancels.\n *\n * @platform Web\n * @since 7.3.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Android and Web.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
@@ -1,20 +1,44 @@
1
- import type { RecurrenceRule } from "./recurrence-rule";
1
+ import type { RecurrenceRule } from './recurrence-rule';
2
2
  /**
3
3
  * @since 7.1.0
4
4
  */
5
5
  export interface CreateReminderOptions {
6
6
  /**
7
+ * Alert times in minutes relative to the reminder start.
8
+ * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
9
+ *
10
+ * On iOS only 2 alerts are supported.
11
+ *
12
+ * @example
13
+ * // -1440 -> 1 day before
14
+ * // -60 -> 1 hour before
15
+ * // 30 -> 30 minutes after
16
+ * [-1440, -60, 30]
17
+ *
7
18
  * @since 7.1.0
8
19
  */
9
- title: string;
20
+ alerts?: number[];
21
+ /**
22
+ * Whether to save immediately (`true`) or batch changes for later (`false`).
23
+ * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
24
+ *
25
+ * @default true
26
+ * @platform iOS
27
+ * @see {@link CalendarOperations#commit}
28
+ * @since 7.3.0
29
+ */
30
+ commit?: boolean;
10
31
  /**
11
32
  * @since 7.1.0
12
33
  */
13
- listId?: string;
34
+ completionDate?: number;
14
35
  /**
36
+ * When the reminder should be completed, in milliseconds since the epoch.
37
+ * On iOS, if `startDate` is omitted, it is set to this value.
38
+ *
15
39
  * @since 7.1.0
16
40
  */
17
- priority?: number;
41
+ dueDate?: number;
18
42
  /**
19
43
  * @since 7.1.0
20
44
  */
@@ -22,33 +46,39 @@ export interface CreateReminderOptions {
22
46
  /**
23
47
  * @since 7.1.0
24
48
  */
25
- startDate?: number;
49
+ listId?: string;
26
50
  /**
27
51
  * @since 7.1.0
28
52
  */
29
- dueDate?: number;
53
+ location?: string;
30
54
  /**
31
55
  * @since 7.1.0
32
56
  */
33
- completionDate?: number;
57
+ notes?: string;
34
58
  /**
59
+ * Priority: `0` none, `1` highest through `9` lowest.
60
+ *
35
61
  * @since 7.1.0
36
62
  */
37
- notes?: string;
63
+ priority?: number;
38
64
  /**
65
+ * @platform iOS
39
66
  * @since 7.1.0
40
67
  */
41
- url?: string;
68
+ recurrence?: RecurrenceRule;
42
69
  /**
70
+ * When the reminder starts, in milliseconds since the epoch.
71
+ * Relative `alerts` use this date.
72
+ *
43
73
  * @since 7.1.0
44
74
  */
45
- location?: string;
75
+ startDate?: number;
46
76
  /**
47
77
  * @since 7.1.0
48
78
  */
49
- recurrence?: RecurrenceRule;
79
+ title: string;
50
80
  /**
51
81
  * @since 7.1.0
52
82
  */
53
- alerts?: number[];
83
+ url?: string;
54
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from \"./recurrence-rule\";\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * @since 7.1.0\n */\n alerts?: number[];\n}\n"]}
1
+ {"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\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 * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.3.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * When the reminder should be completed, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted, it is set to this value.\n *\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * Priority: `0` none, `1` highest through `9` lowest.\n *\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n *\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @since 0.5.0
3
+ */
4
+ export interface CreateReminderResult {
5
+ /**
6
+ * Identifier of the newly created reminder.
7
+ *
8
+ * @platform iOS
9
+ * @since 0.5.0
10
+ */
11
+ id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-reminder-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reminder-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 0.5.0\n */\nexport interface CreateReminderResult {\n /**\n * Identifier of the newly created reminder.\n *\n * @platform iOS\n * @since 0.5.0\n */\n id: string;\n}\n"]}
@@ -0,0 +1,46 @@
1
+ import type { SystemColorName } from '../types/system-color-name';
2
+ /**
3
+ * @since 7.3.0
4
+ */
5
+ export interface CreateRemindersListOptions {
6
+ /**
7
+ * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
8
+ * When omitted, the platform chooses the list color.
9
+ *
10
+ * @example 'indigo'
11
+ * @example #007AFF
12
+ * @platform iOS
13
+ * @since 7.3.0
14
+ */
15
+ color?: SystemColorName | `#${string}`;
16
+ /**
17
+ * Whether to save the list immediately.
18
+ * Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.
19
+ *
20
+ * @example false
21
+ * @default true
22
+ * @platform iOS
23
+ * @see {@link CalendarOperations#commit}
24
+ * @since 7.3.0
25
+ */
26
+ commit?: boolean;
27
+ /**
28
+ * The calendar source (account) where the list should be created.
29
+ *
30
+ * If provided, it should match a source from `fetchAllCalendarSources()`.
31
+ * If omitted or unmatched, iCloud is used when available, otherwise the local source.
32
+ *
33
+ * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
34
+ * @platform iOS
35
+ * @since 7.3.0
36
+ */
37
+ sourceId?: string;
38
+ /**
39
+ * The title of the list.
40
+ *
41
+ * @example 'Groceries'
42
+ * @platform iOS
43
+ * @since 7.3.0
44
+ */
45
+ title: string;
46
+ }
@@ -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":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 7.3.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, the platform chooses the list color.\n *\n * @example 'indigo'\n * @example #007AFF\n * @platform iOS\n * @since 7.3.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * Whether to save the list immediately.\n * Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.\n *\n * @example false\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.3.0\n */\n commit?: boolean;\n /**\n * The calendar source (account) where the list should be created.\n *\n * If provided, it should match a source from `fetchAllCalendarSources()`.\n * If omitted or unmatched, iCloud is used when available, otherwise the local source.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 7.3.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 7.3.0\n */\n title: string;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @since 7.3.0
3
+ */
4
+ export interface CreateRemindersListResult {
5
+ /**
6
+ * Identifier of the newly created reminders list.
7
+ *
8
+ * @platform iOS
9
+ * @since 7.3.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 7.3.0\n */\nexport interface CreateRemindersListResult {\n /**\n * Identifier of the newly created reminders list.\n *\n * @platform iOS\n * @since 7.3.0\n */\n id: string;\n}\n"]}
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface DeleteCalendarOptions {
5
5
  /**
6
+ * @platform Android, iOS
6
7
  * @since 7.1.0
7
8
  */
8
9
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"delete-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteCalendarOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n}\n"]}
1
+ {"version":3,"file":"delete-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n}\n"]}