(params)
| 9548 | |
| 9549 | const debug$3 = getLogger('tsdav:addressBook'); |
| 9550 | const 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 | }; |
| 9572 | const addressBookMultiGet = async (params) => { |
| 9573 | const { url, props, objectUrls, depth, headers } = params; |
| 9574 | return collectionQuery({ |
no test coverage detected