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

Function addressBookQuery

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

Source from the content-addressed store, hash-verified

9548
9549const debug$3 = getLogger('tsdav:addressBook');
9550const addressBookQuery = async (params) => {
9551 const { url, props, filters, depth, headers, headersToExclude } = params;
9552 return collectionQuery({
9553 url,
9554 body: {
9555 'addressbook-query': {
9556 _attributes: getDAVAttribute([DAVNamespace.CARDDAV, DAVNamespace.DAV]),
9557 [`${DAVNamespaceShort.DAV}:prop`]: props,
9558 filter: filters !== null && filters !== void 0 ? filters : {
9559 'prop-filter': {
9560 _attributes: {
9561 name: 'FN',
9562 },
9563 },
9564 },
9565 },
9566 },
9567 defaultNamespace: DAVNamespaceShort.CARDDAV,
9568 depth,
9569 headers: excludeHeaders(headers, headersToExclude),
9570 });
9571};
9572const addressBookMultiGet = async (params) => {
9573 const { url, props, objectUrls, depth, headers } = params;
9574 return collectionQuery({

Callers 1

fetchVCardsFunction · 0.85

Calls 3

collectionQueryFunction · 0.85
getDAVAttributeFunction · 0.85
excludeHeadersFunction · 0.85

Tested by

no test coverage detected