supportedReportSet
supportedReportSet
identifies the reports that are supported by the resource
const reports = await supportedReportSet({
collection,
headers: {
authorization: 'Basic x0C9ueWd9Vz8OwS0DEAtkAlj',
},
});
Arguments
collection
required, DAVCollection to query onheaders
request headersheadersToExclude
array of keys of the headers you want to excludefetchOptions
options to pass to underlying fetch function
Return Value
array of supported REPORT name in camelCase
Behavior
send supported-report-set PROPFIND request and parse response xml to extract names and convert them to camel case.