diff options
Diffstat (limited to 'js/vendor/dav/lib/template/sync_collection.js')
-rw-r--r-- | js/vendor/dav/lib/template/sync_collection.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/vendor/dav/lib/template/sync_collection.js b/js/vendor/dav/lib/template/sync_collection.js new file mode 100644 index 00000000..f8b8dfad --- /dev/null +++ b/js/vendor/dav/lib/template/sync_collection.js @@ -0,0 +1,13 @@ +import prop from './prop'; + +export default function syncCollection(object) { + return `<d:sync-collection xmlns:c="urn:ietf:params:xml:ns:caldav" + xmlns:card="urn:ietf:params:xml:ns:carddav" + xmlns:d="DAV:"> + <d:sync-level>${object.syncLevel}</d:sync-level> + <d:sync-token>${object.syncToken}</d:sync-token> + <d:prop> + ${object.props.map(prop)} + </d:prop> + </d:sync-collection>` +} |