MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / calendarQuery

Function calendarQuery

lib/models/dav.js:9729–9750  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

9727
9728const debug$2 = getLogger('tsdav:calendar');
9729const calendarQuery = async (params) => {
9730 const { url, props, filters, timezone, depth, headers, headersToExclude } = params;
9731 return collectionQuery({
9732 url,
9733 body: {
9734 'calendar-query': cleanupFalsy({
9735 _attributes: getDAVAttribute([
9736 DAVNamespace.CALDAV,
9737 DAVNamespace.CALENDAR_SERVER,
9738 DAVNamespace.CALDAV_APPLE,
9739 DAVNamespace.DAV,
9740 ]),
9741 [`${DAVNamespaceShort.DAV}:prop`]: props,
9742 filter: filters,
9743 timezone,
9744 }),
9745 },
9746 defaultNamespace: DAVNamespaceShort.CALDAV,
9747 depth,
9748 headers: excludeHeaders(headers, headersToExclude),
9749 });
9750};
9751const calendarMultiGet = async (params) => {
9752 const { url, props, objectUrls, filters, timezone, depth, headers, headersToExclude } = params;
9753 return collectionQuery({

Callers 1

fetchCalendarObjectsFunction · 0.85

Calls 4

collectionQueryFunction · 0.85
cleanupFalsyFunction · 0.85
getDAVAttributeFunction · 0.85
excludeHeadersFunction · 0.85

Tested by

no test coverage detected