@ebarooni/capacitor-calendar 8.5.0 → 8.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +224 -280
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +82 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
- package/dist/docs.json +547 -220
- package/dist/esm/index.d.ts +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +140 -67
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +3 -2
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +39 -20
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +72 -22
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +7 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +1 -0
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +2 -4
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +7 -23
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +9 -15
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +5 -5
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +5 -5
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +40 -22
- package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +3 -3
- package/ios/Plugin/Models/Inputs/CreateReminderInput.swift +14 -4
- package/ios/Plugin/Models/Inputs/DeleteReminderInput.swift +7 -1
- package/ios/Plugin/Models/Inputs/ModifyReminderInput.swift +66 -5
- package/ios/Plugin/Models/Results/CreateEventResult.swift +1 -0
- package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +15 -2
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +10 -0
- package/ios/Plugin/PluginError.swift +3 -0
- package/ios/Plugin/Utils/ImplementationHelper.swift +74 -10
- package/package.json +3 -3
package/dist/esm/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type { CreateEventResult } from './schemas/interfaces/create-event-result
|
|
|
21
21
|
import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
|
|
22
22
|
import type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';
|
|
23
23
|
import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
|
|
24
|
+
import type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';
|
|
24
25
|
import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
|
|
25
26
|
import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
|
|
26
27
|
import type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';
|
|
@@ -30,14 +31,18 @@ import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events
|
|
|
30
31
|
import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
|
|
31
32
|
import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
|
|
32
33
|
import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
|
|
34
|
+
import type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';
|
|
33
35
|
import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
|
|
34
36
|
import type { EventGuest } from './schemas/interfaces/event-guest';
|
|
35
37
|
import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
|
|
36
38
|
import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
|
|
37
39
|
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
40
|
+
import type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';
|
|
38
41
|
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
42
|
+
import type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';
|
|
39
43
|
import type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';
|
|
40
44
|
import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
|
|
45
|
+
import type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';
|
|
41
46
|
import type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';
|
|
42
47
|
import type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';
|
|
43
48
|
import type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';
|
|
@@ -56,9 +61,8 @@ import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
|
56
61
|
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
57
62
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
58
63
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
59
|
-
import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
|
|
60
64
|
import { downloadIcsFile } from './web/download-ics-file';
|
|
61
65
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
62
66
|
export * from './definitions';
|
|
63
|
-
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetRemindersFromListsOptions, ListCalendarsResult, ListEventsInRangeOptions, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
67
|
+
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
64
68
|
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAoD5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAsD9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ListEventsInRangeResult,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n downloadIcsFile,\n};\n"]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated Use `RecurrenceFrequency
|
|
2
|
+
* @deprecated Use `'daily'`, `'weekly'`, `'monthly'`, or `'yearly'` (`RecurrenceFrequency`).
|
|
3
3
|
*/
|
|
4
4
|
export declare enum ReminderRecurrenceFrequency {
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated Use `
|
|
6
|
+
* @deprecated Use `'daily'`.
|
|
7
7
|
*/
|
|
8
8
|
DAILY = 0,
|
|
9
9
|
/**
|
|
10
|
-
* @deprecated Use `
|
|
10
|
+
* @deprecated Use `'weekly'`.
|
|
11
11
|
*/
|
|
12
12
|
WEEKLY = 1,
|
|
13
13
|
/**
|
|
14
|
-
* @deprecated Use `
|
|
14
|
+
* @deprecated Use `'monthly'`.
|
|
15
15
|
*/
|
|
16
16
|
MONTHLY = 2,
|
|
17
17
|
/**
|
|
18
|
-
* @deprecated Use `
|
|
18
|
+
* @deprecated Use `'yearly'`.
|
|
19
19
|
*/
|
|
20
20
|
YEARLY = 3
|
|
21
21
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @deprecated Use `RecurrenceFrequency
|
|
2
|
+
* @deprecated Use `'daily'`, `'weekly'`, `'monthly'`, or `'yearly'` (`RecurrenceFrequency`).
|
|
3
3
|
*/
|
|
4
4
|
export var ReminderRecurrenceFrequency;
|
|
5
5
|
(function (ReminderRecurrenceFrequency) {
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated Use `
|
|
7
|
+
* @deprecated Use `'daily'`.
|
|
8
8
|
*/
|
|
9
9
|
ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["DAILY"] = 0] = "DAILY";
|
|
10
10
|
/**
|
|
11
|
-
* @deprecated Use `
|
|
11
|
+
* @deprecated Use `'weekly'`.
|
|
12
12
|
*/
|
|
13
13
|
ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["WEEKLY"] = 1] = "WEEKLY";
|
|
14
14
|
/**
|
|
15
|
-
* @deprecated Use `
|
|
15
|
+
* @deprecated Use `'monthly'`.
|
|
16
16
|
*/
|
|
17
17
|
ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["MONTHLY"] = 2] = "MONTHLY";
|
|
18
18
|
/**
|
|
19
|
-
* @deprecated Use `
|
|
19
|
+
* @deprecated Use `'yearly'`.
|
|
20
20
|
*/
|
|
21
21
|
ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["YEARLY"] = 3] = "YEARLY";
|
|
22
22
|
})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reminder-recurrence-frequency.js","sourceRoot":"","sources":["../../../../src/schemas/enums/reminder-recurrence-frequency.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,2BAiBX;AAjBD,WAAY,2BAA2B;IACrC;;OAEG;IACH,+EAAK,CAAA;IACL;;OAEG;IACH,iFAAM,CAAA;IACN;;OAEG;IACH,mFAAO,CAAA;IACP;;OAEG;IACH,iFAAM,CAAA;AACR,CAAC,EAjBW,2BAA2B,KAA3B,2BAA2B,QAiBtC","sourcesContent":["/**\n * @deprecated Use `RecurrenceFrequency
|
|
1
|
+
{"version":3,"file":"reminder-recurrence-frequency.js","sourceRoot":"","sources":["../../../../src/schemas/enums/reminder-recurrence-frequency.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,2BAiBX;AAjBD,WAAY,2BAA2B;IACrC;;OAEG;IACH,+EAAK,CAAA;IACL;;OAEG;IACH,iFAAM,CAAA;IACN;;OAEG;IACH,mFAAO,CAAA;IACP;;OAEG;IACH,iFAAM,CAAA;AACR,CAAC,EAjBW,2BAA2B,KAA3B,2BAA2B,QAiBtC","sourcesContent":["/**\n * @deprecated Use `'daily'`, `'weekly'`, `'monthly'`, or `'yearly'` (`RecurrenceFrequency`).\n */\nexport enum ReminderRecurrenceFrequency {\n /**\n * @deprecated Use `'daily'`.\n */\n DAILY,\n /**\n * @deprecated Use `'weekly'`.\n */\n WEEKLY,\n /**\n * @deprecated Use `'monthly'`.\n */\n MONTHLY,\n /**\n * @deprecated Use `'yearly'`.\n */\n YEARLY,\n}\n"]}
|
|
@@ -8,146 +8,219 @@ import type { EventStatus } from '../enums/event-status';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface CalendarEvent {
|
|
10
10
|
/**
|
|
11
|
+
* Alert times in minutes relative to the event start.
|
|
12
|
+
*
|
|
11
13
|
* @platform Android, iOS
|
|
12
14
|
* @since 7.1.0
|
|
13
15
|
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @platform Android, iOS
|
|
17
|
-
* @since 7.1.0
|
|
18
|
-
*/
|
|
19
|
-
title: string;
|
|
16
|
+
alerts: number[];
|
|
20
17
|
/**
|
|
21
18
|
* @platform Android, iOS
|
|
22
19
|
* @since 7.1.0
|
|
23
20
|
*/
|
|
24
|
-
|
|
21
|
+
attendees: {
|
|
22
|
+
/**
|
|
23
|
+
* @platform Android
|
|
24
|
+
* @since 7.1.0
|
|
25
|
+
*/
|
|
26
|
+
email: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* @platform Android, iOS
|
|
29
|
+
* @since 7.1.0
|
|
30
|
+
*/
|
|
31
|
+
name: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Equivalent to ATTENDEE_RELATIONSHIP on Android.
|
|
34
|
+
* Equivalent to EKParticipantRole on iOS.
|
|
35
|
+
*
|
|
36
|
+
* @platform Android, iOS
|
|
37
|
+
* @since 7.1.0
|
|
38
|
+
*/
|
|
39
|
+
role: AttendeeRole | null;
|
|
40
|
+
/**
|
|
41
|
+
* Equivalent to ATTENDEE_STATUS on Android.
|
|
42
|
+
* Equivalent to EKParticipantStatus on iOS.
|
|
43
|
+
*
|
|
44
|
+
* @platform Android, iOS
|
|
45
|
+
* @since 7.1.0
|
|
46
|
+
*/
|
|
47
|
+
status: AttendeeStatus | null;
|
|
48
|
+
/**
|
|
49
|
+
* Equivalent to ATTENDEE_TYPE on Android.
|
|
50
|
+
* Equivalent to EKParticipantType on iOS.
|
|
51
|
+
*
|
|
52
|
+
* @platform Android, iOS
|
|
53
|
+
* @since 7.1.0
|
|
54
|
+
*/
|
|
55
|
+
type: AttendeeType | null;
|
|
56
|
+
}[];
|
|
25
57
|
/**
|
|
26
58
|
* @platform Android, iOS
|
|
27
59
|
* @since 7.1.0
|
|
28
60
|
*/
|
|
29
|
-
|
|
61
|
+
availability: EventAvailability | null;
|
|
30
62
|
/**
|
|
31
|
-
* @platform
|
|
63
|
+
* @platform iOS
|
|
64
|
+
* @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
|
|
32
65
|
* @since 7.1.0
|
|
33
66
|
*/
|
|
34
|
-
|
|
67
|
+
birthdayContactIdentifier: string | null;
|
|
35
68
|
/**
|
|
36
69
|
* @platform Android, iOS
|
|
37
70
|
* @since 7.1.0
|
|
38
71
|
*/
|
|
39
|
-
|
|
72
|
+
calendarId: string | null;
|
|
40
73
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
74
|
+
* A stable external id for this calendar item.
|
|
75
|
+
*
|
|
76
|
+
* On iOS this is set when the system provides it. On Android and web it is
|
|
77
|
+
* always `null`. Use `masterId` on Android for the series master id.
|
|
78
|
+
*
|
|
79
|
+
* Do not treat this field as the same as `masterId`.
|
|
80
|
+
* They identify different things on different platforms.
|
|
81
|
+
*
|
|
82
|
+
* For non-detached occurrences of a series, this value is shared across
|
|
83
|
+
* those occurrences. On one device, `id` is often already shared for them.
|
|
84
|
+
* This field is mainly useful as a stable id across devices.
|
|
85
|
+
*
|
|
86
|
+
* Detached exceptions usually get a new identifier.
|
|
87
|
+
* You cannot find the original series from this value.
|
|
88
|
+
* Use `isDetached` and `isPartOfSeries` instead.
|
|
89
|
+
* Do not pass this value where the plugin expects an event `id`.
|
|
90
|
+
*
|
|
91
|
+
* @example "1A2B3C4D-...."
|
|
92
|
+
* @platform iOS
|
|
93
|
+
* @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}
|
|
94
|
+
* @since 8.6.0
|
|
43
95
|
*/
|
|
44
|
-
|
|
96
|
+
calendarItemExternalIdentifier: string | null;
|
|
45
97
|
/**
|
|
46
|
-
* Alert times in minutes relative to the event start.
|
|
47
|
-
*
|
|
48
98
|
* @platform Android, iOS
|
|
49
99
|
* @since 7.1.0
|
|
50
100
|
*/
|
|
51
|
-
|
|
101
|
+
color: string | null;
|
|
52
102
|
/**
|
|
53
103
|
* @platform iOS
|
|
54
104
|
* @since 7.1.0
|
|
55
105
|
*/
|
|
56
|
-
|
|
106
|
+
creationDate: number | null;
|
|
57
107
|
/**
|
|
58
108
|
* @platform Android, iOS
|
|
59
109
|
* @since 7.1.0
|
|
60
110
|
*/
|
|
61
111
|
description: string | null;
|
|
62
112
|
/**
|
|
63
|
-
* @platform Android
|
|
113
|
+
* @platform Android
|
|
64
114
|
* @since 7.1.0
|
|
65
115
|
*/
|
|
66
|
-
|
|
116
|
+
duration: string | null;
|
|
67
117
|
/**
|
|
68
118
|
* @platform Android, iOS
|
|
69
119
|
* @since 7.1.0
|
|
70
120
|
*/
|
|
71
|
-
|
|
121
|
+
endDate: number;
|
|
72
122
|
/**
|
|
73
123
|
* @platform Android, iOS
|
|
74
124
|
* @since 7.1.0
|
|
75
125
|
*/
|
|
76
|
-
|
|
126
|
+
id: string;
|
|
77
127
|
/**
|
|
78
|
-
* @platform Android
|
|
128
|
+
* @platform Android, iOS
|
|
79
129
|
* @since 7.1.0
|
|
80
130
|
*/
|
|
81
|
-
|
|
131
|
+
isAllDay: boolean;
|
|
82
132
|
/**
|
|
83
133
|
* @platform iOS
|
|
84
134
|
* @since 7.1.0
|
|
85
135
|
*/
|
|
86
136
|
isDetached: boolean | null;
|
|
137
|
+
/**
|
|
138
|
+
* Whether this event belongs to a recurring series.
|
|
139
|
+
*
|
|
140
|
+
* `true` for series occurrences and detached exceptions.
|
|
141
|
+
* `false` for one-off events.
|
|
142
|
+
*
|
|
143
|
+
* Detached exceptions also set `isDetached` (iOS only).
|
|
144
|
+
*
|
|
145
|
+
* @example true
|
|
146
|
+
* @platform Android, iOS
|
|
147
|
+
* @since 8.6.0
|
|
148
|
+
*/
|
|
149
|
+
isPartOfSeries: boolean;
|
|
87
150
|
/**
|
|
88
151
|
* @platform iOS
|
|
89
|
-
* @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
|
|
90
152
|
* @since 7.1.0
|
|
91
153
|
*/
|
|
92
|
-
|
|
154
|
+
lastModifiedDate: number | null;
|
|
93
155
|
/**
|
|
94
156
|
* @platform Android, iOS
|
|
95
157
|
* @since 7.1.0
|
|
96
158
|
*/
|
|
97
|
-
|
|
159
|
+
location: string | null;
|
|
98
160
|
/**
|
|
99
|
-
*
|
|
161
|
+
* The id of the series master for this listed occurrence.
|
|
162
|
+
*
|
|
163
|
+
* On Android this is always a string. On iOS and web it is always `null`.
|
|
164
|
+
* iOS has no public master event id. Use `calendarItemExternalIdentifier`
|
|
165
|
+
* on iOS instead.
|
|
166
|
+
*
|
|
167
|
+
* Do not treat this field as the same as `calendarItemExternalIdentifier`.
|
|
168
|
+
* They identify different things on different platforms.
|
|
169
|
+
*
|
|
170
|
+
* If this row is the master or a one-shot event, `masterId` equals `id`.
|
|
171
|
+
* If this row is an exception, `id` is the exception and `masterId` is the
|
|
172
|
+
* series master.
|
|
173
|
+
*
|
|
174
|
+
* To modify or delete the whole series, pass `masterId` as the `id` option.
|
|
175
|
+
* You still need `span` and `instanceDate` when those APIs require them.
|
|
176
|
+
*
|
|
177
|
+
* In rare sync cases, an exception may temporarily report `masterId` equal
|
|
178
|
+
* to `id` until the platform links it to the series master.
|
|
179
|
+
*
|
|
180
|
+
* @example "42"
|
|
181
|
+
* @platform Android
|
|
182
|
+
* @since 8.6.0
|
|
183
|
+
*/
|
|
184
|
+
masterId: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* @platform Android, iOS
|
|
100
187
|
* @since 7.1.0
|
|
101
188
|
*/
|
|
102
|
-
|
|
189
|
+
organizer: string | null;
|
|
103
190
|
/**
|
|
104
|
-
*
|
|
191
|
+
* Start time of the recurring series, in milliseconds since the epoch.
|
|
192
|
+
*
|
|
193
|
+
* Equals `startDate` for one-off events. On iOS, equals `startDate` when
|
|
194
|
+
* the series start is not available for a detached exception.
|
|
195
|
+
*
|
|
196
|
+
* @example 1719792000000
|
|
197
|
+
* @platform Android, iOS
|
|
198
|
+
* @since 8.6.0
|
|
199
|
+
*/
|
|
200
|
+
seriesStartDate: number;
|
|
201
|
+
/**
|
|
202
|
+
* @platform Android, iOS
|
|
105
203
|
* @since 7.1.0
|
|
106
204
|
*/
|
|
107
|
-
|
|
205
|
+
startDate: number;
|
|
108
206
|
/**
|
|
109
207
|
* @platform Android, iOS
|
|
110
208
|
* @since 7.1.0
|
|
111
209
|
*/
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @platform Android
|
|
115
|
-
* @since 7.1.0
|
|
116
|
-
*/
|
|
117
|
-
email: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* @platform Android, iOS
|
|
120
|
-
* @since 7.1.0
|
|
121
|
-
*/
|
|
122
|
-
name: string | null;
|
|
123
|
-
/**
|
|
124
|
-
* Equivalent to ATTENDEE_RELATIONSHIP on Android.
|
|
125
|
-
* Equivalent to EKParticipantRole on iOS.
|
|
126
|
-
*
|
|
127
|
-
* @platform Android, iOS
|
|
128
|
-
* @since 7.1.0
|
|
129
|
-
*/
|
|
130
|
-
role: AttendeeRole | null;
|
|
131
|
-
/**
|
|
132
|
-
* Equivalent to ATTENDEE_STATUS on Android.
|
|
133
|
-
* Equivalent to EKParticipantStatus on iOS.
|
|
134
|
-
*
|
|
135
|
-
* @platform Android, iOS
|
|
136
|
-
* @since 7.1.0
|
|
137
|
-
*/
|
|
138
|
-
status: AttendeeStatus | null;
|
|
139
|
-
/**
|
|
140
|
-
* Equivalent to ATTENDEE_TYPE on Android.
|
|
141
|
-
* Equivalent to EKParticipantType on iOS.
|
|
142
|
-
*
|
|
143
|
-
* @platform Android, iOS
|
|
144
|
-
* @since 7.1.0
|
|
145
|
-
*/
|
|
146
|
-
type: AttendeeType | null;
|
|
147
|
-
}[];
|
|
210
|
+
status: EventStatus | null;
|
|
148
211
|
/**
|
|
149
212
|
* @platform Android, iOS
|
|
150
213
|
* @since 7.1.0
|
|
151
214
|
*/
|
|
152
215
|
timezone: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* @platform Android, iOS
|
|
218
|
+
* @since 7.1.0
|
|
219
|
+
*/
|
|
220
|
+
title: string;
|
|
221
|
+
/**
|
|
222
|
+
* @platform iOS
|
|
223
|
+
* @since 7.1.0
|
|
224
|
+
*/
|
|
225
|
+
url: string | null;
|
|
153
226
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { AttendeeRole } from '../enums/attendee-role';\nimport type { AttendeeStatus } from '../enums/attendee-status';\nimport type { AttendeeType } from '../enums/attendee-type';\nimport type { EventAvailability } from '../enums/event-availability';\nimport type { EventStatus } from '../enums/event-status';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n
|
|
1
|
+
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { AttendeeRole } from '../enums/attendee-role';\nimport type { AttendeeStatus } from '../enums/attendee-status';\nimport type { AttendeeType } from '../enums/attendee-type';\nimport type { EventAvailability } from '../enums/event-availability';\nimport type { EventStatus } from '../enums/event-status';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\n /**\n * Alert times in minutes relative to the event start.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts: number[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n attendees: {\n /**\n * @platform Android\n * @since 7.1.0\n */\n email: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n name: string | null;\n /**\n * Equivalent to ATTENDEE_RELATIONSHIP on Android.\n * Equivalent to EKParticipantRole on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n role: AttendeeRole | null;\n /**\n * Equivalent to ATTENDEE_STATUS on Android.\n * Equivalent to EKParticipantStatus on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: AttendeeStatus | null;\n /**\n * Equivalent to ATTENDEE_TYPE on Android.\n * Equivalent to EKParticipantType on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n type: AttendeeType | null;\n }[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability: EventAvailability | null;\n /**\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}\n * @since 7.1.0\n */\n birthdayContactIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n calendarId: string | null;\n /**\n * A stable external id for this calendar item.\n *\n * On iOS this is set when the system provides it. On Android and web it is\n * always `null`. Use `masterId` on Android for the series master id.\n *\n * Do not treat this field as the same as `masterId`.\n * They identify different things on different platforms.\n *\n * For non-detached occurrences of a series, this value is shared across\n * those occurrences. On one device, `id` is often already shared for them.\n * This field is mainly useful as a stable id across devices.\n *\n * Detached exceptions usually get a new identifier.\n * You cannot find the original series from this value.\n * Use `isDetached` and `isPartOfSeries` instead.\n * Do not pass this value where the plugin expects an event `id`.\n *\n * @example \"1A2B3C4D-....\"\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}\n * @since 8.6.0\n */\n calendarItemExternalIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n creationDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description: string | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n duration: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n endDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n isAllDay: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isDetached: boolean | null;\n /**\n * Whether this event belongs to a recurring series.\n *\n * `true` for series occurrences and detached exceptions.\n * `false` for one-off events.\n *\n * Detached exceptions also set `isDetached` (iOS only).\n *\n * @example true\n * @platform Android, iOS\n * @since 8.6.0\n */\n isPartOfSeries: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n lastModifiedDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n location: string | null;\n /**\n * The id of the series master for this listed occurrence.\n *\n * On Android this is always a string. On iOS and web it is always `null`.\n * iOS has no public master event id. Use `calendarItemExternalIdentifier`\n * on iOS instead.\n *\n * Do not treat this field as the same as `calendarItemExternalIdentifier`.\n * They identify different things on different platforms.\n *\n * If this row is the master or a one-shot event, `masterId` equals `id`.\n * If this row is an exception, `id` is the exception and `masterId` is the\n * series master.\n *\n * To modify or delete the whole series, pass `masterId` as the `id` option.\n * You still need `span` and `instanceDate` when those APIs require them.\n *\n * In rare sync cases, an exception may temporarily report `masterId` equal\n * to `id` until the platform links it to the series master.\n *\n * @example \"42\"\n * @platform Android\n * @since 8.6.0\n */\n masterId: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n organizer: string | null;\n /**\n * Start time of the recurring series, in milliseconds since the epoch.\n *\n * Equals `startDate` for one-off events. On iOS, equals `startDate` when\n * the series start is not available for a detached exception.\n *\n * @example 1719792000000\n * @platform Android, iOS\n * @since 8.6.0\n */\n seriesStartDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n startDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: EventStatus | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n timezone: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n url: string | null;\n}\n"]}
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
export interface CreateEventResult {
|
|
5
5
|
/**
|
|
6
6
|
* An `.ics` file (`text/calendar`) with one `VEVENT`.
|
|
7
|
-
*
|
|
7
|
+
* Always `null` on Android and iOS.
|
|
8
|
+
* On Web, the plugin does not write to a calendar store or start a download;
|
|
8
9
|
* use `downloadIcsFile(...)` or pass the `File` to another API.
|
|
9
10
|
*
|
|
10
11
|
* @platform Web
|
|
11
12
|
* @since 8.5.0
|
|
12
13
|
*/
|
|
13
|
-
ics
|
|
14
|
+
ics: File | null;
|
|
14
15
|
/**
|
|
15
16
|
* The identifier of the created event.
|
|
16
17
|
* Always `null` on Web.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n *
|
|
1
|
+
{"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n * On Web, the plugin does not write to a calendar store or start a download;\n * use `downloadIcsFile(...)` or pass the `File` to another API.\n *\n * @platform Web\n * @since 8.5.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"]}
|
|
@@ -4,17 +4,41 @@ import type { RecurrenceRule } from './recurrence-rule';
|
|
|
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
|
-
|
|
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 8.7.0
|
|
29
|
+
*/
|
|
30
|
+
commit?: boolean;
|
|
10
31
|
/**
|
|
11
32
|
* @since 7.1.0
|
|
12
33
|
*/
|
|
13
|
-
|
|
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
|
-
|
|
41
|
+
dueDate?: number;
|
|
18
42
|
/**
|
|
19
43
|
* @since 7.1.0
|
|
20
44
|
*/
|
|
@@ -22,42 +46,37 @@ export interface CreateReminderOptions {
|
|
|
22
46
|
/**
|
|
23
47
|
* @since 7.1.0
|
|
24
48
|
*/
|
|
25
|
-
|
|
49
|
+
listId?: string;
|
|
26
50
|
/**
|
|
27
51
|
* @since 7.1.0
|
|
28
52
|
*/
|
|
29
|
-
|
|
53
|
+
location?: string;
|
|
30
54
|
/**
|
|
31
55
|
* @since 7.1.0
|
|
32
56
|
*/
|
|
33
|
-
|
|
57
|
+
notes?: string;
|
|
34
58
|
/**
|
|
35
59
|
* @since 7.1.0
|
|
36
60
|
*/
|
|
37
|
-
|
|
61
|
+
priority?: number;
|
|
38
62
|
/**
|
|
63
|
+
* @platform iOS
|
|
39
64
|
* @since 7.1.0
|
|
40
65
|
*/
|
|
41
|
-
|
|
66
|
+
recurrence?: RecurrenceRule;
|
|
42
67
|
/**
|
|
68
|
+
* When the reminder starts, in milliseconds since the epoch.
|
|
69
|
+
* Relative `alerts` use this date.
|
|
70
|
+
*
|
|
43
71
|
* @since 7.1.0
|
|
44
72
|
*/
|
|
45
|
-
|
|
73
|
+
startDate?: number;
|
|
46
74
|
/**
|
|
47
75
|
* @since 7.1.0
|
|
48
76
|
*/
|
|
49
|
-
|
|
77
|
+
title: string;
|
|
50
78
|
/**
|
|
51
|
-
* Alert times in minutes relative to the reminder start.
|
|
52
|
-
* Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* // -1440 -> 1 day before
|
|
56
|
-
* // -60 -> 1 hour before
|
|
57
|
-
* // 30 -> 30 minutes after
|
|
58
|
-
* [-1440, -60, 30]
|
|
59
|
-
*
|
|
60
79
|
* @since 7.1.0
|
|
61
80
|
*/
|
|
62
|
-
|
|
81
|
+
url?: string;
|
|
63
82
|
}
|
|
@@ -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 * @
|
|
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 8.7.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 * @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 @@
|
|
|
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"]}
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
* @since 7.1.0
|
|
3
3
|
*/
|
|
4
4
|
export interface DeleteReminderOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
7
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
8
|
+
*
|
|
9
|
+
* @default true
|
|
10
|
+
* @platform iOS
|
|
11
|
+
* @see {@link CalendarOperations#commit}
|
|
12
|
+
* @since 8.7.0
|
|
13
|
+
*/
|
|
14
|
+
commit?: boolean;
|
|
5
15
|
/**
|
|
6
16
|
* @since 7.1.0
|
|
7
17
|
*/
|