@coozzy/cal-dav
Advanced tools
Comparing version 2.4.4 to 2.4.5
@@ -6,3 +6,3 @@ import * as ICAL from 'ical.js'; | ||
import { EventWithExceptions } from 'ical.js'; | ||
import { EventFrequencyCalendarService } from "../types/calendar"; | ||
import { EventFrequencyCalendarService } from '../types/calendar'; | ||
export interface CalDavClient { | ||
@@ -42,2 +42,3 @@ getEventByUrl(eventUrl: string): Promise<ICAL.Event | undefined>; | ||
private validateRecurrence; | ||
private EventFrequencyCalendarServiceToFrequencyValues; | ||
private addFrequency; | ||
@@ -44,0 +45,0 @@ private eventIncludedInDates; |
@@ -121,3 +121,3 @@ "use strict"; | ||
const calendar = new ICAL.Component('vcalendar'); | ||
let event = new ICAL.Event(calendar); | ||
const event = new ICAL.Event(calendar); | ||
event.component.addPropertyWithValue('PRODID', prodid); | ||
@@ -435,20 +435,2 @@ event.component.addPropertyWithValue('BEGIN', 'VEVENT'); | ||
} | ||
// private extendEventWithRecurrenceDetails(iCalEvent: EventWithExceptions, frequency: EventFrequencyCalendarService, until?: TimeJsonData, count?: number): ICAL.EventWithExceptions { | ||
// const frequencyValue = this.EventFrequencyCalendarServiceToFrequencyValues(frequency); | ||
// console.log('ok1 ' + frequencyValue); | ||
// if (!frequencyValue) { | ||
// return iCalEvent; | ||
// } | ||
// iCalEvent.frequency = frequencyValue; | ||
// if (count) { | ||
// iCalEvent.countRecurrence = count; | ||
// } | ||
// if (until) { | ||
// iCalEvent.endDateRecurrence = new ICAL.Time(until); | ||
// } | ||
// console.log('ok2 ' + JSON.stringify(iCalEvent)); | ||
// return iCalEvent; | ||
// } | ||
setOrganizer(email, event) { | ||
@@ -477,2 +459,5 @@ const organizerValue = `RSVP=TRUE;PARTSTAT=ACCEPTED;CN=${email}:mailto:${email}`; | ||
} | ||
if (attendee.contactId) { | ||
attendeeValue += `;X-CONTACTID=${attendee.contactId}`; | ||
} | ||
attendeeValue += `:mailto:${attendee.email}`; | ||
@@ -479,0 +464,0 @@ event.component.addPropertyWithValue('ATTENDEE', attendeeValue); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -6,2 +6,3 @@ export type AtendeeStatus = 'ATTENDEE_STATUS_NEEDS_ACTION' | 'ATTENDEE_STATUS_ACCEPTED' | 'ATTENDEE_STATUS_DECLINED' | 'ATTENDEE_STATUS_TENTATIVE'; | ||
status?: AtendeeStatus; | ||
contactId?: string; | ||
} | ||
@@ -8,0 +9,0 @@ export interface Alarm { |
{ | ||
"name": "@coozzy/cal-dav", | ||
"version": "2.4.4", | ||
"version": "2.4.5", | ||
"description": "Simple cal dav client.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101019
2104