@ebarooni/capacitor-calendar 6.7.2 → 7.1.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 (255) hide show
  1. package/EbarooniCapacitorCalendar.podspec +2 -2
  2. package/Package.swift +28 -0
  3. package/README.md +1197 -119
  4. package/android/build.gradle +8 -7
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +267 -317
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +47 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +348 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
  20. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
  21. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
  22. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
  23. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
  24. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
  25. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
  26. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
  27. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
  28. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
  29. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
  30. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
  31. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
  32. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
  33. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
  34. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
  35. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
  36. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
  37. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
  38. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
  39. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
  40. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
  41. package/dist/docs.json +3808 -1126
  42. package/dist/esm/definitions.d.ts +6 -759
  43. package/dist/esm/definitions.js.map +1 -1
  44. package/dist/esm/index.d.ts +40 -12
  45. package/dist/esm/index.js +11 -6
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
  48. package/dist/esm/schemas/enums/attendee-role.js +52 -0
  49. package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
  50. package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
  51. package/dist/esm/schemas/enums/attendee-status.js +57 -0
  52. package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
  53. package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
  54. package/dist/esm/schemas/enums/attendee-type.js +47 -0
  55. package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
  56. package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
  57. package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
  58. package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
  59. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
  60. package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
  61. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
  62. package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
  63. package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
  64. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
  65. package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
  66. package/dist/esm/schemas/enums/calendar-type.js +6 -9
  67. package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
  68. package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
  69. package/dist/esm/schemas/enums/event-availability.js +32 -0
  70. package/dist/esm/schemas/enums/event-availability.js.map +1 -0
  71. package/dist/esm/schemas/enums/event-span.d.ts +3 -6
  72. package/dist/esm/schemas/enums/event-span.js +3 -6
  73. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  74. package/dist/esm/schemas/enums/event-status.d.ts +26 -0
  75. package/dist/esm/schemas/enums/event-status.js +28 -0
  76. package/dist/esm/schemas/enums/event-status.js.map +1 -0
  77. package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
  78. package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
  79. package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
  80. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
  81. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
  82. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  83. package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
  84. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  85. package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
  86. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  87. package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
  88. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  89. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
  90. package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
  91. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
  92. package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
  93. package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
  94. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
  95. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
  96. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
  97. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
  98. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
  99. package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
  100. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
  101. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
  102. package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
  103. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
  104. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
  105. package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
  106. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
  107. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
  108. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
  109. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
  110. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
  111. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
  112. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
  113. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
  114. package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
  115. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
  116. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
  117. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
  118. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
  119. package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
  120. package/dist/esm/schemas/interfaces/event-guest.js +2 -0
  121. package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
  122. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
  123. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
  124. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
  125. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
  126. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
  127. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
  128. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
  129. package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
  130. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
  131. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
  132. package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
  133. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
  134. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
  135. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
  136. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
  137. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
  138. package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
  139. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
  140. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
  141. package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
  142. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
  143. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
  144. package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
  145. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
  146. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +7 -25
  147. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  148. package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
  149. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  150. package/dist/esm/schemas/interfaces/reminders-list.d.ts +5 -3
  151. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  152. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
  153. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
  154. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
  155. package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
  156. package/dist/esm/schemas/types/event-edit-action.js +2 -0
  157. package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
  158. package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
  159. package/dist/esm/sub-definitions/calendar-access.js +2 -0
  160. package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
  161. package/dist/esm/sub-definitions/calendar-operations.d.ts +77 -0
  162. package/dist/esm/sub-definitions/calendar-operations.js +2 -0
  163. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
  164. package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
  165. package/dist/esm/sub-definitions/event-operations.js +2 -0
  166. package/dist/esm/sub-definitions/event-operations.js.map +1 -0
  167. package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
  168. package/dist/esm/sub-definitions/reminders-access.js +2 -0
  169. package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
  170. package/dist/esm/sub-definitions/reminders-operations.d.ts +110 -0
  171. package/dist/esm/sub-definitions/reminders-operations.js +2 -0
  172. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
  173. package/dist/esm/web.d.ts +86 -151
  174. package/dist/esm/web.js +67 -49
  175. package/dist/esm/web.js.map +1 -1
  176. package/dist/plugin.cjs.js +392 -172
  177. package/dist/plugin.cjs.js.map +1 -1
  178. package/dist/plugin.js +392 -172
  179. package/dist/plugin.js.map +1 -1
  180. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +348 -0
  181. package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +554 -0
  182. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CAPPermissionState.swift +6 -0
  183. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
  184. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
  185. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
  186. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
  187. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
  188. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
  189. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
  190. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
  191. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
  192. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
  193. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
  194. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
  195. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
  196. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
  197. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
  198. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
  199. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
  200. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
  201. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
  202. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
  203. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
  204. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
  205. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
  206. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
  207. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
  208. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
  209. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
  210. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
  211. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
  212. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
  213. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
  214. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
  215. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
  216. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
  217. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
  218. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
  219. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
  220. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
  221. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
  222. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
  223. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
  224. package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
  225. package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +42 -0
  226. package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
  227. package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
  228. package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
  229. package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +15 -0
  230. package/package.json +68 -72
  231. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
  232. package/assets/images/text-logo.png +0 -0
  233. package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
  234. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
  235. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
  236. package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
  237. package/dist/esm/schemas/enums/plugin-permission.js +0 -60
  238. package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
  239. package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -4
  240. package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
  241. package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
  242. package/ios/Plugin/CapacitorCalendar.swift +0 -635
  243. package/ios/Plugin/CapacitorCalendarPlugin.h +0 -10
  244. package/ios/Plugin/CapacitorCalendarPlugin.m +0 -36
  245. package/ios/Plugin/CapacitorCalendarPlugin.swift +0 -648
  246. package/ios/Plugin/CapacitorCalendarPluginError.swift +0 -22
  247. package/ios/Plugin/CapacitorReminders.swift +0 -456
  248. package/ios/Plugin/EventCreationParameters.swift +0 -22
  249. package/ios/Plugin/EventDeleteResults.swift +0 -14
  250. package/ios/Plugin/Info.plist +0 -24
  251. package/ios/Plugin/PermissionState.swift +0 -16
  252. package/ios/Plugin/RecurrenceParameters.swift +0 -15
  253. package/ios/Plugin/ReminderCreationParameters.swift +0 -23
  254. package/ios/Plugin/UIColorExtensions.swift +0 -28
  255. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1,83 +1,151 @@
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
6
  /**
2
- * Represents an event in the calendar.
3
- *
4
- * @interface CalendarEvent
5
- * @property {string} id The unique identifier of the event.
6
- * @property {string} title The title or name of the event. (Optional)
7
- * @property {string} location The location of the event. (Optional)
8
- * @property {string} eventColor The color of the individual event. (Optional)
9
- * @property {string} organizer The organizer of the event. (Optional)
10
- * @property {string} description The description of the event. (Optional)
11
- * @property {number} startDate The start date of the event. (Optional)
12
- * @property {number} endDate The end date of the event. (Optional)
13
- * @property {string} eventTimezone The timezone of the start date. (optional)
14
- * @property {string} eventEndTimezone The timezone of the end date. (optional)
15
- * @property {string} duration The duration of the event. (Optional)
16
- * @property {boolean} isAllDay Indicates if the event is all day. (Optional)
17
- * @property {string} calendarId The calendar that the event belongs to. (Optional)
18
- * @property {string} url The URL of the event. (Optional)
7
+ * @since 7.1.0
19
8
  */
20
9
  export interface CalendarEvent {
21
10
  /**
22
- * @platform iOS, Android
11
+ * @platform Android, iOS
12
+ * @since 7.1.0
23
13
  */
24
14
  id: string;
25
15
  /**
26
- * @platform iOS, Android
16
+ * @platform Android, iOS
17
+ * @since 7.1.0
27
18
  */
28
- title?: string;
19
+ title: string;
29
20
  /**
30
- * @platform iOS, Android
21
+ * @platform Android, iOS
22
+ * @since 7.1.0
31
23
  */
32
- location?: string;
24
+ calendarId: string | null;
33
25
  /**
34
- * @platform iOS, Android
26
+ * @platform Android, iOS
27
+ * @since 7.1.0
35
28
  */
36
- eventColor?: string;
29
+ location: string | null;
37
30
  /**
38
- * @platform iOS, Android
31
+ * @platform Android, iOS
32
+ * @since 7.1.0
39
33
  */
40
- organizer?: string;
34
+ startDate: number;
41
35
  /**
42
- * @platform iOS, Android
36
+ * @platform Android, iOS
37
+ * @since 7.1.0
43
38
  */
44
- description?: string;
39
+ endDate: number;
45
40
  /**
46
- * @platform iOS, Android
41
+ * @platform Android, iOS
42
+ * @since 7.1.0
47
43
  */
48
- startDate?: number;
44
+ isAllDay: boolean;
49
45
  /**
50
- * @platform iOS, Android
46
+ * @platform Android, iOS
47
+ * @since 7.1.0
51
48
  */
52
- endDate?: number;
49
+ alerts: number[];
53
50
  /**
54
- * @platform iOS, Android
51
+ * @platform iOS
52
+ * @since 7.1.0
53
+ */
54
+ url: string | null;
55
+ /**
56
+ * @platform Android, iOS
57
+ * @since 7.1.0
58
+ */
59
+ description: string | null;
60
+ /**
61
+ * @platform Android, iOS
62
+ * @since 7.1.0
55
63
  */
56
- eventTimezone?: {
57
- region: string;
58
- abbreviation: string;
59
- };
64
+ availability: EventAvailability | null;
60
65
  /**
61
- * @platform iOS, Android
66
+ * @platform Android, iOS
67
+ * @since 7.1.0
62
68
  */
63
- eventEndTimezone?: {
64
- region: string;
65
- abbreviation: string;
66
- };
69
+ organizer: string | null;
70
+ /**
71
+ * @platform Android, iOS
72
+ * @since 7.1.0
73
+ */
74
+ color: string | null;
67
75
  /**
68
76
  * @platform Android
77
+ * @since 7.1.0
78
+ */
79
+ duration: string | null;
80
+ /**
81
+ * @platform iOS
82
+ * @since 7.1.0
69
83
  */
70
- duration?: string;
84
+ isDetached: boolean | null;
71
85
  /**
72
- * @platform iOS, Android
86
+ * @platform iOS
87
+ * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
88
+ * @since 7.1.0
73
89
  */
74
- isAllDay?: boolean;
90
+ birthdayContactIdentifier: string | null;
75
91
  /**
76
- * @platform iOS, Android
92
+ * @platform Android, iOS
93
+ * @since 7.1.0
94
+ */
95
+ status: EventStatus | null;
96
+ /**
97
+ * @platform iOS
98
+ * @since 7.1.0
77
99
  */
78
- calendarId: string;
100
+ creationDate: number | null;
79
101
  /**
80
102
  * @platform iOS
103
+ * @since 7.1.0
104
+ */
105
+ lastModifiedDate: number | null;
106
+ /**
107
+ * @platform Android, iOS
108
+ * @since 7.1.0
109
+ */
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
+ }[];
146
+ /**
147
+ * @platform Android, iOS
148
+ * @since 7.1.0
81
149
  */
82
- url: string;
150
+ timezone: string | null;
83
151
  }
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents an event in the calendar.\n *\n * @interface CalendarEvent\n * @property {string} id The unique identifier of the event.\n * @property {string} title The title or name of the event. (Optional)\n * @property {string} location The location of the event. (Optional)\n * @property {string} eventColor The color of the individual event. (Optional)\n * @property {string} organizer The organizer of the event. (Optional)\n * @property {string} description The description of the event. (Optional)\n * @property {number} startDate The start date of the event. (Optional)\n * @property {number} endDate The end date of the event. (Optional)\n * @property {string} eventTimezone The timezone of the start date. (optional)\n * @property {string} eventEndTimezone The timezone of the end date. (optional)\n * @property {string} duration The duration of the event. (Optional)\n * @property {boolean} isAllDay Indicates if the event is all day. (Optional)\n * @property {string} calendarId The calendar that the event belongs to. (Optional)\n * @property {string} url The URL of the event. (Optional)\n */\nexport interface CalendarEvent {\n /**\n * @platform iOS, Android\n */\n id: string;\n\n /**\n * @platform iOS, Android\n */\n title?: string;\n\n /**\n * @platform iOS, Android\n */\n location?: string;\n\n /**\n * @platform iOS, Android\n */\n eventColor?: string;\n\n /**\n * @platform iOS, Android\n */\n organizer?: string;\n\n /**\n * @platform iOS, Android\n */\n description?: string;\n\n /**\n * @platform iOS, Android\n */\n startDate?: number;\n\n /**\n * @platform iOS, Android\n */\n endDate?: number;\n\n /**\n * @platform iOS, Android\n */\n eventTimezone?: {\n region: string;\n abbreviation: string;\n };\n\n /**\n * @platform iOS, Android\n */\n eventEndTimezone?: {\n region: string;\n abbreviation: string;\n };\n\n /**\n * @platform Android\n */\n duration?: string;\n\n /**\n * @platform iOS, Android\n */\n isAllDay?: boolean;\n\n /**\n * @platform iOS, Android\n */\n calendarId: string;\n\n /**\n * @platform iOS\n */\n url: string;\n}\n"]}
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,15 +1,18 @@
1
1
  import { CalendarSourceType } from "../enums/calendar-source-type";
2
2
  /**
3
- * Represents the account a calendar belongs to
4
- *
5
- * @enum CalendarSource
6
- * @platform iOS
7
- * @property {CalendarSourceType} type The type of the source object.
8
- * @property {string} id A unique identifier for the source object.
9
- * @property {string} title The name of the source object.
3
+ * @since 7.1.0
10
4
  */
11
5
  export interface CalendarSource {
6
+ /**
7
+ * @since 7.1.0
8
+ */
12
9
  type: CalendarSourceType;
10
+ /**
11
+ * @since 7.1.0
12
+ */
13
13
  id: string;
14
+ /**
15
+ * @since 7.1.0
16
+ */
14
17
  title: string;
15
18
  }
@@ -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 * Represents the account a calendar belongs to\n *\n * @enum CalendarSource\n * @platform iOS\n * @property {CalendarSourceType} type The type of the source object.\n * @property {string} id A unique identifier for the source object.\n * @property {string} title The name of the source object.\n */\nexport interface CalendarSource {\n type: CalendarSourceType;\n id: string;\n title: string;\n}\n"]}
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,53 +1,87 @@
1
- import { CalendarSource } from "./calendar-source";
1
+ import type { CalendarSource } from "./calendar-source";
2
2
  import { CalendarType } from "../enums/calendar-type";
3
3
  /**
4
- * Represents a calendar object.
5
- *
6
- * @interface Calendar
7
- * @platform iOS, Android
8
- * @property {string} id The unique identifier of the calendar.
9
- * @property {string} title The title or name of the calendar.
10
- * @property {string} color The color of the calendar.
11
- * @property {boolean} isImmutable Indicating whether the calendar's properties
12
- * can be modified.
13
- * @property {boolean} allowsContentModifications Indicating whether the calendar's
14
- * items (events or reminders) can be modified.
15
- * @property {CalendarType} type The type of the calendar. On iOS the type is of type
16
- * CalendarSourceType.
17
- * @property {boolean} isSubscribed Indicating whether the calendar is a subscribed calendar.
18
- * @property {CalendarSource} source The source of the calendar.
4
+ * @since 7.1.0
19
5
  */
20
6
  export interface Calendar {
21
7
  /**
22
- * @platform iOS, Android
8
+ * @platform Android, iOS
9
+ * @since 7.1.0
23
10
  */
24
11
  id: string;
25
12
  /**
26
- * @platform iOS, Android
13
+ * @platform Android, iOS
14
+ * @since 7.1.0
27
15
  */
28
16
  title: string;
29
17
  /**
30
- * @platform iOS, Android
18
+ * Internal name of the calendar (`CalendarContract.Calendars.NAME`).
19
+ *
20
+ * @platform Android
21
+ * @since 7.1.0
22
+ */
23
+ internalTitle: string | null;
24
+ /**
25
+ * @platform Android, iOS
26
+ * @since 7.1.0
31
27
  */
32
28
  color: string;
33
29
  /**
34
30
  * @platform iOS
31
+ * @since 7.1.0
35
32
  */
36
- isImmutable?: boolean;
33
+ isImmutable: boolean | null;
37
34
  /**
38
35
  * @platform iOS
36
+ * @since 7.1.0
39
37
  */
40
- allowsContentModifications?: boolean;
38
+ allowsContentModifications: boolean | null;
41
39
  /**
42
- * @platform iOS, Android
40
+ * @platform iOS
41
+ * @since 7.1.0
43
42
  */
44
- type?: CalendarType;
43
+ type: CalendarType | null;
45
44
  /**
46
45
  * @platform iOS
46
+ * @since 7.1.0
47
47
  */
48
- isSubscribed?: boolean;
48
+ isSubscribed: boolean | null;
49
49
  /**
50
50
  * @platform iOS
51
+ * @since 7.1.0
52
+ */
53
+ source: CalendarSource | null;
54
+ /**
55
+ * Indicates if the events from this calendar should be shown.
56
+ *
57
+ * @platform Android
58
+ * @since 7.1.0
59
+ */
60
+ visible: boolean | null;
61
+ /**
62
+ * The account under which the calendar is registered.
63
+ *
64
+ * @platform Android
65
+ * @since 7.1.0
66
+ */
67
+ accountName: string | null;
68
+ /**
69
+ * The owner of the calendar.
70
+ *
71
+ * @platform Android
72
+ * @since 7.1.0
73
+ */
74
+ ownerAccount: string | null;
75
+ /**
76
+ * Maximum number of reminders allowed per event.
77
+ *
78
+ * @platform Android
79
+ * @since 7.1.0
80
+ */
81
+ maxReminders: number | null;
82
+ /**
83
+ * @platform Android
84
+ * @since 7.1.0
51
85
  */
52
- source?: CalendarSource;
86
+ location: string | null;
53
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import { CalendarSource } from \"./calendar-source\";\nimport { CalendarType } from \"../enums/calendar-type\";\n\n/**\n * Represents a calendar object.\n *\n * @interface Calendar\n * @platform iOS, Android\n * @property {string} id The unique identifier of the calendar.\n * @property {string} title The title or name of the calendar.\n * @property {string} color The color of the calendar.\n * @property {boolean} isImmutable Indicating whether the calendar's properties\n * can be modified.\n * @property {boolean} allowsContentModifications Indicating whether the calendar's\n * items (events or reminders) can be modified.\n * @property {CalendarType} type The type of the calendar. On iOS the type is of type\n * CalendarSourceType.\n * @property {boolean} isSubscribed Indicating whether the calendar is a subscribed calendar.\n * @property {CalendarSource} source The source of the calendar.\n */\nexport interface Calendar {\n /**\n * @platform iOS, Android\n */\n id: string;\n\n /**\n * @platform iOS, Android\n */\n title: string;\n\n /**\n * @platform iOS, Android\n */\n color: string;\n\n /**\n * @platform iOS\n */\n isImmutable?: boolean;\n\n /**\n * @platform iOS\n */\n allowsContentModifications?: boolean;\n\n /**\n * @platform iOS, Android\n */\n type?: CalendarType;\n\n /**\n * @platform iOS\n */\n isSubscribed?: boolean;\n\n /**\n * @platform iOS\n */\n source?: CalendarSource;\n}\n"]}
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"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @since 5.2.0
3
+ */
4
+ export interface CreateCalendarOptions {
5
+ /**
6
+ * @platform Android, iOS
7
+ * @since 5.2.0
8
+ */
9
+ title: string;
10
+ /**
11
+ * The color of the calendar.
12
+ * Should be provided on Android.
13
+ *
14
+ * @platform Android, iOS
15
+ * @example #0000FF
16
+ * @since 5.2.0
17
+ */
18
+ color?: string;
19
+ /**
20
+ * @platform iOS
21
+ * @since 5.2.0
22
+ */
23
+ sourceId?: string;
24
+ /**
25
+ * Only needed on Android. Typically set to an email address.
26
+ *
27
+ * @platform Android
28
+ * @since 7.1.0
29
+ */
30
+ accountName?: string;
31
+ /**
32
+ * Only needed on Android. Typically set to an email address.
33
+ *
34
+ * @platform Android
35
+ * @since 7.1.0
36
+ */
37
+ ownerAccount?: string;
38
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-calendar-options.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,96 @@
1
+ import { EventAvailability } from "../enums/event-availability";
2
+ import type { EventGuest } from "./event-guest";
3
+ /**
4
+ * @since 7.1.0
5
+ */
6
+ export interface CreateEventOptions {
7
+ /**
8
+ * @platform Android, iOS
9
+ * @since 0.4.0
10
+ */
11
+ title: string;
12
+ /**
13
+ * @platform Android, iOS
14
+ * @since 0.1.0
15
+ */
16
+ calendarId?: string;
17
+ /**
18
+ * @platform Android, iOS
19
+ * @since 0.1.0
20
+ */
21
+ location?: string;
22
+ /**
23
+ *
24
+ * @platform Android, iOS
25
+ * @since 0.1.0
26
+ */
27
+ startDate?: number;
28
+ /**
29
+ * @platform Android, iOS
30
+ * @since 0.1.0
31
+ */
32
+ endDate?: number;
33
+ /**
34
+ * @platform Android, iOS
35
+ * @since 0.1.0
36
+ */
37
+ isAllDay?: boolean;
38
+ /**
39
+ * @platform Android, iOS
40
+ * @since 7.1.0
41
+ */
42
+ alerts?: number[];
43
+ /**
44
+ * @platform iOS
45
+ * @since 0.1.0
46
+ */
47
+ url?: string;
48
+ /**
49
+ * @platform Android, iOS
50
+ * @since 7.1.0
51
+ */
52
+ description?: string;
53
+ /**
54
+ * @platform Android, iOS
55
+ * @since 7.1.0
56
+ */
57
+ availability?: EventAvailability;
58
+ /**
59
+ * Email of the event organizer.
60
+ *
61
+ * @platform Android
62
+ * @since 7.1.0
63
+ */
64
+ organizer?: string;
65
+ /**
66
+ * @example #6750A4
67
+ * @platform Android
68
+ * @since 7.1.0
69
+ */
70
+ color?: string;
71
+ /**
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
78
+ */
79
+ duration?: string;
80
+ /**
81
+ * Whether to save immediately (`true`) or batch changes for later (`false`).
82
+ *
83
+ * @default true
84
+ * @platform iOS
85
+ * @see {@link CalendarOperations#commit}
86
+ * @since 7.1.0
87
+ */
88
+ commit?: boolean;
89
+ /**
90
+ * The event guests.
91
+ *
92
+ * @platform Android
93
+ * @since 7.1.0
94
+ */
95
+ attendees?: EventGuest[];
96
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-event-options.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,70 @@
1
+ import { EventAvailability } from "../enums/event-availability";
2
+ /**
3
+ * @since 7.1.0
4
+ */
5
+ export interface CreateEventWithPromptOptions {
6
+ /**
7
+ * @platform Android, iOS
8
+ * @since 0.1.0
9
+ */
10
+ title?: string;
11
+ /**
12
+ * @platform iOS
13
+ * @since 0.1.0
14
+ */
15
+ calendarId?: string;
16
+ /**
17
+ * @platform Android, iOS
18
+ * @since 0.1.0
19
+ */
20
+ location?: string;
21
+ /**
22
+ * @platform Android, iOS
23
+ * @since 0.1.0
24
+ */
25
+ startDate?: number;
26
+ /**
27
+ * @platform Android, iOS
28
+ * @since 0.1.0
29
+ */
30
+ endDate?: number;
31
+ /**
32
+ * @platform Android, iOS
33
+ * @since 0.1.0
34
+ */
35
+ isAllDay?: boolean;
36
+ /**
37
+ * Sets alerts before or after the start of the event in minutes.
38
+ * On iOS only 2 alerts are supported.
39
+ *
40
+ * @example
41
+ * // 10mins before and 30mins after the event
42
+ * const alerts: [-10, 30]
43
+ *
44
+ * @platform iOS
45
+ * @since 7.1.0
46
+ */
47
+ alerts?: number[];
48
+ /**
49
+ * @platform iOS
50
+ * @since 0.1.0
51
+ */
52
+ url?: string;
53
+ /**
54
+ * @platform Android, iOS
55
+ * @since 7.1.0
56
+ */
57
+ description?: string;
58
+ /**
59
+ * @platform Android, iOS
60
+ * @since 7.1.0
61
+ */
62
+ availability?: EventAvailability;
63
+ /**
64
+ * An array of emails to invite.
65
+ *
66
+ * @platform Android
67
+ * @since 7.1.0
68
+ */
69
+ invitees?: string[];
70
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-event-with-prompt-options.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,54 @@
1
+ import type { RecurrenceRule } from "./recurrence-rule";
2
+ /**
3
+ * @since 7.1.0
4
+ */
5
+ export interface CreateReminderOptions {
6
+ /**
7
+ * @since 7.1.0
8
+ */
9
+ title: string;
10
+ /**
11
+ * @since 7.1.0
12
+ */
13
+ listId?: string;
14
+ /**
15
+ * @since 7.1.0
16
+ */
17
+ priority?: number;
18
+ /**
19
+ * @since 7.1.0
20
+ */
21
+ isCompleted?: boolean;
22
+ /**
23
+ * @since 7.1.0
24
+ */
25
+ startDate?: number;
26
+ /**
27
+ * @since 7.1.0
28
+ */
29
+ dueDate?: number;
30
+ /**
31
+ * @since 7.1.0
32
+ */
33
+ completionDate?: number;
34
+ /**
35
+ * @since 7.1.0
36
+ */
37
+ notes?: string;
38
+ /**
39
+ * @since 7.1.0
40
+ */
41
+ url?: string;
42
+ /**
43
+ * @since 7.1.0
44
+ */
45
+ location?: string;
46
+ /**
47
+ * @since 7.1.0
48
+ */
49
+ recurrence?: RecurrenceRule;
50
+ /**
51
+ * @since 7.1.0
52
+ */
53
+ alerts?: number[];
54
+ }