blob: 7c9a333d9f56920cce2ec70397e20c481a6aaeff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import filter from './filter';
import prop from './prop';
export default function calendarQuery(object) {
return `<c:calendar-query xmlns:c="urn:ietf:params:xml:ns:caldav"
xmlns:cs="http://calendarserver.org/ns/"
xmlns:d="DAV:">
<d:prop>
${object.props.map(prop)}
</d:prop>
<c:filter>
${object.filters.map(filter)}
</c:filter>
${object.timezone ? '<c:timezone>' + object.timezone + '</c:timezone>' : ''}
</c:calendar-query>`;
}
|