You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@ebarooni/capacitor-calendar

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebarooni/capacitor-calendar - npm Package Compare versions

Comparing version

to
7.2.0

android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt

4

dist/esm/index.d.ts

@@ -23,2 +23,3 @@ import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from "./sub-definitions/calendar-access";

import type { DeleteReminderOptions } from "./schemas/interfaces/delete-reminder-options";
import type { DeleteReminderWithPromptOptions } from "./schemas/interfaces/delete-reminder-with-prompt-options";
import type { DeleteRemindersByIdOptions } from "./schemas/interfaces/delete-reminders-by-id-options";

@@ -34,2 +35,3 @@ import type { DeleteRemindersByIdResult } from "./sub-definitions/reminders-operations";

import type { ListEventsInRangeOptions } from "./schemas/interfaces/list-events-in-range-options";
import type { ModifyCalendarOptions } from "./schemas/interfaces/modify-calendar-options";
import type { ModifyEventOptions } from "./schemas/interfaces/modify-event-options";

@@ -48,3 +50,3 @@ import type { ModifyEventWithPromptOptions } from "./schemas/interfaces/modify-event-with-prompt-options";

export * from "./definitions";
export type { CheckAllPermissionsResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, };
export type { CheckAllPermissionsResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, };
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };

@@ -5,2 +5,3 @@ import type { Calendar } from "../schemas/interfaces/calendar";

import type { DeleteCalendarOptions } from "../schemas/interfaces/delete-calendar-options";
import type { ModifyCalendarOptions } from "../schemas/interfaces/modify-calendar-options";
import type { OpenCalendarOptions } from "../schemas/interfaces/open-calendar-options";

@@ -78,2 +79,9 @@ import type { SelectCalendarsWithPromptOptions } from "../schemas/interfaces/select-calendars-with-prompt-options";

deleteCalendar(options: DeleteCalendarOptions): Promise<void>;
/**
* Modifies a calendar with options.
*
* @platform Android, iOS
* @since 7.2.0
*/
modifyCalendar(options: ModifyCalendarOptions): Promise<void>;
}
import type { CalendarSource } from "../schemas/interfaces/calendar-source";
import type { CreateReminderOptions } from "../schemas/interfaces/create-reminder-options";
import type { DeleteReminderOptions } from "../schemas/interfaces/delete-reminder-options";
import type { DeleteReminderWithPromptOptions } from "../schemas/interfaces/delete-reminder-with-prompt-options";
import type { DeleteRemindersByIdOptions } from "../schemas/interfaces/delete-reminders-by-id-options";

@@ -97,2 +98,11 @@ import type { GetReminderByIdOptions } from "../schemas/interfaces/get-reminder-by-id-options";

}>;
/**
* Opens a dialog to delete a reminder.
*
* @platform iOS
* @since 7.2.0
*/
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions): Promise<{
deleted: boolean;
}>;
}

@@ -99,0 +109,0 @@ /**

@@ -18,2 +18,3 @@ import { CheckAllPermissionsResult, RequestAllPermissionsResult } from "./sub-definitions/calendar-access";

import type { DeleteReminderOptions } from "./schemas/interfaces/delete-reminder-options";
import type { DeleteReminderWithPromptOptions } from "./schemas/interfaces/delete-reminder-with-prompt-options";
import type { DeleteRemindersByIdOptions } from "./schemas/interfaces/delete-reminders-by-id-options";

@@ -25,2 +26,3 @@ import type { DeleteRemindersByIdResult } from "./sub-definitions/reminders-operations";

import type { ListEventsInRangeOptions } from "./schemas/interfaces/list-events-in-range-options";
import type { ModifyCalendarOptions } from "./schemas/interfaces/modify-calendar-options";
import type { ModifyEventOptions } from "./schemas/interfaces/modify-event-options";

@@ -124,3 +126,7 @@ import type { ModifyEventWithPromptOptions } from "./schemas/interfaces/modify-event-with-prompt-options";

}>;
modifyCalendar(_options: ModifyCalendarOptions): Promise<void>;
deleteReminderWithPrompt(_options: DeleteReminderWithPromptOptions): Promise<{
deleted: boolean;
}>;
private throwUnimplemented;
}

@@ -105,2 +105,8 @@ import { WebPlugin } from "@capacitor/core";

}
modifyCalendar(_options) {
return this.throwUnimplemented(this.modifyCalendar.name);
}
deleteReminderWithPrompt(_options) {
return this.throwUnimplemented(this.deleteReminderWithPrompt.name);
}
throwUnimplemented(methodName) {

@@ -107,0 +113,0 @@ return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));

@@ -524,2 +524,8 @@ 'use strict';

}
modifyCalendar(_options) {
return this.throwUnimplemented(this.modifyCalendar.name);
}
deleteReminderWithPrompt(_options) {
return this.throwUnimplemented(this.deleteReminderWithPrompt.name);
}
throwUnimplemented(methodName) {

@@ -526,0 +532,0 @@ return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));

@@ -523,2 +523,8 @@ var capacitorCapacitorCalendar = (function (exports, core) {

}
modifyCalendar(_options) {
return this.throwUnimplemented(this.modifyCalendar.name);
}
deleteReminderWithPrompt(_options) {
return this.throwUnimplemented(this.deleteReminderWithPrompt.name);
}
throwUnimplemented(methodName) {

@@ -525,0 +531,0 @@ return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));

{
"name": "@ebarooni/capacitor-calendar",
"version": "7.1.0",
"version": "7.2.0",
"description": "A capacitor plugin for managing calendar events on iOS and Android, with reminders support on iOS.",

@@ -5,0 +5,0 @@ "author": "Ehsan Barooni",

@@ -94,2 +94,3 @@ <p align="center">

* [`deleteCalendar(...)`](#deletecalendar)
* [`modifyCalendar(...)`](#modifycalendar)
* [`fetchAllRemindersSources()`](#fetchallreminderssources)

@@ -105,2 +106,3 @@ * [`openReminders()`](#openreminders)

* [`getRemindersFromLists(...)`](#getremindersfromlists)
* [`deleteReminderWithPrompt(...)`](#deletereminderwithprompt)
* [Interfaces](#interfaces)

@@ -572,2 +574,21 @@ * [Type Aliases](#type-aliases)

### modifyCalendar(...)
```typescript
modifyCalendar(options: ModifyCalendarOptions) => Promise<void>
```
Modifies a calendar with options.
| Param | Type |
| ------------- | ----------------------------------------------------------------------- |
| **`options`** | <code><a href="#modifycalendaroptions">ModifyCalendarOptions</a></code> |
**Since:** 7.2.0
**Platform:** Android, iOS
--------------------
### fetchAllRemindersSources()

@@ -761,2 +782,23 @@

### deleteReminderWithPrompt(...)
```typescript
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<{ deleted: boolean; }>
```
Opens a dialog to delete a reminder.
| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------- |
| **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
**Returns:** <code>Promise&lt;{ deleted: boolean; }&gt;</code>
**Since:** 7.2.0
**Platform:** iOS
--------------------
### Interfaces

@@ -984,2 +1026,11 @@

#### ModifyCalendarOptions
| Prop | Type | Since | Platform |
| ----------- | ------------------- | ----- | ------------ |
| **`id`** | <code>string</code> | 7.2.0 | Android, iOS |
| **`title`** | <code>string</code> | 7.2.0 | Android, iOS |
| **`color`** | <code>string</code> | 7.2.0 | Android, iOS |
#### CreateReminderOptions

@@ -1086,2 +1137,13 @@

#### DeleteReminderWithPromptOptions
| Prop | Type | Description | Default | Since |
| ----------------------- | ------------------- | ----------------------------------- | --------------------- | ----- |
| **`id`** | <code>string</code> | | | 7.2.0 |
| **`title`** | <code>string</code> | Title of the dialog. | | 7.2.0 |
| **`message`** | <code>string</code> | Message of the dialog. | | 7.2.0 |
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.2.0 |
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
### Type Aliases

@@ -1088,0 +1150,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet