@ebarooni/capacitor-calendar 8.6.0 → 8.7.1
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 +164 -99
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +54 -5
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +80 -0
- package/dist/docs.json +287 -80
- package/dist/esm/index.d.ts +5 -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/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/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/reminders-operations.d.ts +7 -23
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +7 -11
- 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 +39 -21
- 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/Structs/RecurrenceInput.swift +10 -0
- package/ios/Plugin/PluginError.swift +3 -0
- package/ios/Plugin/Utils/ImplementationHelper.swift +27 -7
- package/package.json +2 -2
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,12 +31,15 @@ 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';
|
|
41
45
|
import type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';
|
|
@@ -57,9 +61,8 @@ import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
|
57
61
|
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
58
62
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
59
63
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
60
|
-
import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
|
|
61
64
|
import { downloadIcsFile } from './web/download-ics-file';
|
|
62
65
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
63
66
|
export * from './definitions';
|
|
64
|
-
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, ListEventsInRangeResult, 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, };
|
|
65
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"]}
|
|
@@ -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
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteReminderOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"delete-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteReminderOptions {\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 id: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-reminders-by-id-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminders-by-id-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteRemindersByIdResult {\n /**\n * @since 7.1.0\n */\n deleted: string[];\n /**\n * @since 7.1.0\n */\n failed: string[];\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Reminder } from './reminder';
|
|
2
|
+
/**
|
|
3
|
+
* @since 7.1.0
|
|
4
|
+
*/
|
|
5
|
+
export interface GetReminderByIdResult {
|
|
6
|
+
/**
|
|
7
|
+
* The reminder for the given id, or `null` when none exists.
|
|
8
|
+
*
|
|
9
|
+
* @platform iOS
|
|
10
|
+
* @since 7.1.0
|
|
11
|
+
*/
|
|
12
|
+
result: Reminder | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-reminder-by-id-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-reminder-by-id-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { Reminder } from './reminder';\n\n/**\n * @since 7.1.0\n */\nexport interface GetReminderByIdResult {\n /**\n * The reminder for the given id, or `null` when none exists.\n *\n * @platform iOS\n * @since 7.1.0\n */\n result: Reminder | null;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-reminders-from-lists-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-reminders-from-lists-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { Reminder } from './reminder';\n\n/**\n * @since 5.3.0\n */\nexport interface GetRemindersFromListsResult {\n /**\n * Reminders from the requested lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n result: Reminder[];\n}\n"]}
|
|
@@ -4,21 +4,58 @@ import type { RecurrenceRule } from './recurrence-rule';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ModifyReminderOptions {
|
|
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
|
+
* Omit or pass `undefined` to leave existing alerts unchanged.
|
|
10
|
+
* Pass `null` or an empty array `[]` to clear alerts.
|
|
11
|
+
* On iOS, when both `startDate` and `dueDate` are cleared in the same call, alerts are cleared even if `alerts` is set.
|
|
12
|
+
* When clearing dates across separate batched calls, pass `alerts: null` or `[]` explicitly.
|
|
13
|
+
*
|
|
14
|
+
* On iOS only 2 alerts are supported.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // -1440 -> 1 day before
|
|
18
|
+
* // -60 -> 1 hour before
|
|
19
|
+
* // 30 -> 30 minutes after
|
|
20
|
+
* [-1440, -60, 30]
|
|
21
|
+
*
|
|
7
22
|
* @since 7.1.0
|
|
8
23
|
*/
|
|
9
|
-
|
|
24
|
+
alerts?: number[] | null;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
27
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
28
|
+
*
|
|
29
|
+
* @default true
|
|
30
|
+
* @platform iOS
|
|
31
|
+
* @see {@link CalendarOperations#commit}
|
|
32
|
+
* @since 8.7.0
|
|
33
|
+
*/
|
|
34
|
+
commit?: boolean;
|
|
10
35
|
/**
|
|
36
|
+
* When the reminder was completed, in milliseconds since the epoch.
|
|
37
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
38
|
+
* Since 8.7.0, pass `null` to clear.
|
|
39
|
+
* Clearing this date does not mark the reminder incomplete; set `isCompleted` to `false` for that.
|
|
40
|
+
*
|
|
11
41
|
* @since 7.1.0
|
|
12
42
|
*/
|
|
13
|
-
|
|
43
|
+
completionDate?: number | null;
|
|
14
44
|
/**
|
|
45
|
+
* When the reminder is due, in milliseconds since the epoch.
|
|
46
|
+
* On iOS, if `startDate` is omitted and the reminder has no start, it is set to this value.
|
|
47
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
48
|
+
* Since 8.7.0, pass `null` to clear.
|
|
49
|
+
* Clearing only `dueDate` leaves an existing start unchanged (including a start previously copied from due).
|
|
50
|
+
* Pass `startDate: null` together with `dueDate: null` to remove scheduling.
|
|
51
|
+
*
|
|
15
52
|
* @since 7.1.0
|
|
16
53
|
*/
|
|
17
|
-
|
|
54
|
+
dueDate?: number | null;
|
|
18
55
|
/**
|
|
19
56
|
* @since 7.1.0
|
|
20
57
|
*/
|
|
21
|
-
|
|
58
|
+
id: string;
|
|
22
59
|
/**
|
|
23
60
|
* @since 7.1.0
|
|
24
61
|
*/
|
|
@@ -26,44 +63,57 @@ export interface ModifyReminderOptions {
|
|
|
26
63
|
/**
|
|
27
64
|
* @since 7.1.0
|
|
28
65
|
*/
|
|
29
|
-
|
|
66
|
+
listId?: string;
|
|
30
67
|
/**
|
|
68
|
+
* Location for the reminder.
|
|
69
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
70
|
+
* Since 8.7.0, pass `null` to clear.
|
|
71
|
+
*
|
|
31
72
|
* @since 7.1.0
|
|
32
73
|
*/
|
|
33
|
-
|
|
74
|
+
location?: string | null;
|
|
34
75
|
/**
|
|
76
|
+
* Notes for the reminder.
|
|
77
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
78
|
+
* Since 8.7.0, pass `null` to clear.
|
|
79
|
+
*
|
|
35
80
|
* @since 7.1.0
|
|
36
81
|
*/
|
|
37
|
-
|
|
82
|
+
notes?: string | null;
|
|
38
83
|
/**
|
|
39
84
|
* @since 7.1.0
|
|
40
85
|
*/
|
|
41
|
-
|
|
86
|
+
priority?: number;
|
|
42
87
|
/**
|
|
88
|
+
* Recurrence rule for the reminder.
|
|
89
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
90
|
+
* Since 8.7.0, pass `null` to clear.
|
|
91
|
+
*
|
|
92
|
+
* @platform iOS
|
|
43
93
|
* @since 7.1.0
|
|
44
94
|
*/
|
|
45
|
-
|
|
95
|
+
recurrence?: RecurrenceRule | null;
|
|
46
96
|
/**
|
|
97
|
+
* When the reminder starts, in milliseconds since the epoch.
|
|
98
|
+
* Relative `alerts` use this date.
|
|
99
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
100
|
+
* Since 8.7.0, pass `null` to clear.
|
|
101
|
+
* If a due date remains, clearing start sets start to the due date (it does not keep the previous start).
|
|
102
|
+
* Pass `dueDate: null` as well to remove scheduling.
|
|
103
|
+
*
|
|
47
104
|
* @since 7.1.0
|
|
48
105
|
*/
|
|
49
|
-
|
|
106
|
+
startDate?: number | null;
|
|
50
107
|
/**
|
|
51
108
|
* @since 7.1.0
|
|
52
109
|
*/
|
|
53
|
-
|
|
110
|
+
title?: string;
|
|
54
111
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* On iOS only 2 alerts are supported.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* // -1440 -> 1 day before
|
|
62
|
-
* // -60 -> 1 hour before
|
|
63
|
-
* // 30 -> 30 minutes after
|
|
64
|
-
* [-1440, -60, 30]
|
|
112
|
+
* URL associated with the reminder.
|
|
113
|
+
* Omit or pass `undefined` to leave the existing value unchanged.
|
|
114
|
+
* Since 8.7.0, pass `null` to clear.
|
|
65
115
|
*
|
|
66
116
|
* @since 7.1.0
|
|
67
117
|
*/
|
|
68
|
-
|
|
118
|
+
url?: string | null;
|
|
69
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modify-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/modify-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface ModifyReminderOptions {\n /**\n * @
|
|
1
|
+
{"version":3,"file":"modify-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/modify-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface ModifyReminderOptions {\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 * Omit or pass `undefined` to leave existing alerts unchanged.\n * Pass `null` or an empty array `[]` to clear alerts.\n * On iOS, when both `startDate` and `dueDate` are cleared in the same call, alerts are cleared even if `alerts` is set.\n * When clearing dates across separate batched calls, pass `alerts: null` or `[]` explicitly.\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[] | null;\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 * When the reminder was completed, in milliseconds since the epoch.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n * Clearing this date does not mark the reminder incomplete; set `isCompleted` to `false` for that.\n *\n * @since 7.1.0\n */\n completionDate?: number | null;\n /**\n * When the reminder is due, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted and the reminder has no start, it is set to this value.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n * Clearing only `dueDate` leaves an existing start unchanged (including a start previously copied from due).\n * Pass `startDate: null` together with `dueDate: null` to remove scheduling.\n *\n * @since 7.1.0\n */\n dueDate?: number | null;\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * Location for the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @since 7.1.0\n */\n location?: string | null;\n /**\n * Notes for the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @since 7.1.0\n */\n notes?: string | null;\n /**\n * @since 7.1.0\n */\n priority?: number;\n /**\n * Recurrence rule for the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule | null;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n * If a due date remains, clearing start sets start to the due date (it does not keep the previous start).\n * Pass `dueDate: null` as well to remove scheduling.\n *\n * @since 7.1.0\n */\n startDate?: number | null;\n /**\n * @since 7.1.0\n */\n title?: string;\n /**\n * URL associated with the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @since 7.1.0\n */\n url?: string | null;\n}\n"]}
|
|
@@ -4,18 +4,24 @@ import type { RecurrenceFrequency } from '../types/recurrence-frequency';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface RecurrenceRule {
|
|
6
6
|
/**
|
|
7
|
+
* How often the reminder repeats.
|
|
8
|
+
*
|
|
9
|
+
* @example 'weekly'
|
|
10
|
+
* @platform iOS
|
|
7
11
|
* @since 7.1.0
|
|
8
12
|
*/
|
|
9
13
|
frequency: RecurrenceFrequency;
|
|
10
14
|
/**
|
|
11
15
|
* How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence).
|
|
12
16
|
*
|
|
17
|
+
* @platform iOS
|
|
13
18
|
* @since 7.1.0
|
|
14
19
|
*/
|
|
15
20
|
interval: number;
|
|
16
21
|
/**
|
|
17
|
-
*
|
|
22
|
+
* End of the recurrence series as a Unix timestamp in milliseconds.
|
|
18
23
|
*
|
|
24
|
+
* @platform iOS
|
|
19
25
|
* @since 7.1.0
|
|
20
26
|
*/
|
|
21
27
|
end?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceFrequency } from '../types/recurrence-frequency';\n\n/**\n * @since 7.1.0\n */\nexport interface RecurrenceRule {\n /**\n * @since 7.1.0\n */\n frequency: RecurrenceFrequency;\n /**\n * How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence).\n *\n * @since 7.1.0\n */\n interval: number;\n /**\n *
|
|
1
|
+
{"version":3,"file":"recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceFrequency } from '../types/recurrence-frequency';\n\n/**\n * @since 7.1.0\n */\nexport interface RecurrenceRule {\n /**\n * How often the reminder repeats.\n *\n * @example 'weekly'\n * @platform iOS\n * @since 7.1.0\n */\n frequency: RecurrenceFrequency;\n /**\n * How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence).\n *\n * @platform iOS\n * @since 7.1.0\n */\n interval: number;\n /**\n * End of the recurrence series as a Unix timestamp in milliseconds.\n *\n * @platform iOS\n * @since 7.1.0\n */\n end?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reminder.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface Reminder {\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title: string | null;\n /**\n * @since 7.1.0\n */\n listId: string | null;\n /**\n * @since 7.1.0\n */\n isCompleted: boolean;\n /**\n * @since 7.1.0\n */\n priority: number | null;\n /**\n * @since 7.1.0\n */\n notes: string | null;\n /**\n * @since 7.1.0\n */\n location: string | null;\n /**\n * @since 7.1.0\n */\n url: string | null;\n /**\n * @since 7.1.0\n */\n startDate: number | null;\n /**\n * @since 7.1.0\n */\n dueDate: number | null;\n /**\n * @since 7.1.0\n */\n completionDate: number | null;\n /**\n * @since 7.1.0\n */\n recurrence: RecurrenceRule[];\n /**\n * @since 7.1.0\n */\n alerts: number[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"reminder.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface Reminder {\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title: string | null;\n /**\n * @since 7.1.0\n */\n listId: string | null;\n /**\n * @since 7.1.0\n */\n isCompleted: boolean;\n /**\n * @since 7.1.0\n */\n priority: number | null;\n /**\n * @since 7.1.0\n */\n notes: string | null;\n /**\n * @since 7.1.0\n */\n location: string | null;\n /**\n * @since 7.1.0\n */\n url: string | null;\n /**\n * @since 7.1.0\n */\n startDate: number | null;\n /**\n * @since 7.1.0\n */\n dueDate: number | null;\n /**\n * @since 7.1.0\n */\n completionDate: number | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence: RecurrenceRule[];\n /**\n * @since 7.1.0\n */\n alerts: number[];\n}\n"]}
|