lambdabaa / dav

WebDAV, CalDAV, and CardDAV client for nodejs and the browser.
Mozilla Public License 2.0
304 stars 71 forks source link

Task/VTODO compatibility? #150

Open jamesmarkus opened 4 years ago

jamesmarkus commented 4 years ago

I'm able to successfully load calendar event object with the loadObjects flag, but nothing turns up when querying a "task calendar".

Is there anyway to fetch VTODO objects?

sebmennetrier commented 4 years ago

The default filter used when calendars are loaded is

[{
    type: 'comp-filter',
    attrs: { name: 'VCALENDAR' },
    children: [{
      type: 'comp-filter',
      attrs: { name: 'VEVENT' }
    }]
  }]

I successfully loaded only VTODO objects using this filter in parameter of createAccount:

[{
    type: 'comp-filter',
    attrs: { name: 'VTODO' },
}]