Skip to content

Commit

Permalink
feat(nextcloud): Support more WebDAV props
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Apr 1, 2024
1 parent 184095a commit 81e17e9
Show file tree
Hide file tree
Showing 8 changed files with 3,508 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .cspell/webdav.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
copymove
creationdate
dasl
davcreationdate
davdisplayname
davgetcontentlanguage
davgetcontentlength
davgetcontenttype
davgetetag
davgetlastmodified
davquotaavailablebytes
davquotausedbytes
davresourcetype
fileid
getcontentlanguage
getcontentlength
getcontenttype
getetag
getlastmodified
largefile
lockdiscovery
mkcol
multistatus
ncaclcanmanage
ncaclenabled
nccontainedfilecount
nccontainedfoldercount
nccreationtime
ncdatafingerprint
ncgroupfolderid
nchaspreview
nchidden
ncisencrypted
ncismountroot
nclock
nclockowner
nclockownerdisplayname
nclockownereditor
nclockownertype
nclocktime
nclocktimeout
nclocktoken
ncmetadataetag
ncmounttype
ncnote
ncreminderduedate
ncrichworkspace
ncrichworkspacefile
ncshareattributes
ncuploadtime
ncversionauthor
ncversionlabel
nodestcoll
noncoll
noparent
Expand All @@ -46,5 +74,6 @@ propstat
propstats
resourcetype
sharees
supportedlock
systemtag
webdav
32 changes: 32 additions & 0 deletions packages/nextcloud/generate_props.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,54 @@ import 'package:dynamite/src/helpers/dart_helpers.dart';
void main() {
final props = <String, Map<String, String>>{
'dav': {
// lockdiscovery and supportedlock are omitted because the server only has a dummy implementation anyway.
'creationdate': 'DateTime',
'displayname': 'String',
'getcontentlanguage': 'String',
'getcontentlength': 'int',
'getcontenttype': 'String',
'getetag': 'String',
'getlastmodified': 'String',
'quota-available-bytes': 'int',
'quota-used-bytes': 'int',
'resourcetype': 'WebDavResourcetype',
},
'nc': {
'acl-can-manage': 'int',
'acl-enabled': 'int',
'acl-list': 'WebDavNcAclList',
'contained-file-count': 'int',
'contained-folder-count': 'int',
'creation_time': 'int',
'data-fingerprint': 'String',
'group-folder-id': 'int',
'has-preview': 'bool',
'hidden': 'bool',
'inherited-acl-list': 'WebDavNcAclList',
'is-encrypted': 'int',
'is-mount-root': 'bool',
'lock': 'int',
'lock-owner': 'String',
'lock-owner-displayname': 'String',
'lock-owner-editor': 'String',
'lock-owner-type': 'int',
'lock-time': 'int',
'lock-timeout': 'int',
'lock-token': 'String',
'metadata_etag': 'String',
'mount-type': 'String',
'note': 'String',
'reminder-due-date': 'DateTime',
'rich-workspace': 'String',
'rich-workspace-file': 'int',
'share-attributes': 'String',
'sharees': 'WebDavNcShareeList',
'upload_time': 'int',
'version-author': 'String',
'version-label': 'String',
},
'oc': {
'checksums': 'WebDavOcChecksums',
'comments-count': 'int',
'comments-href': 'String',
'comments-unread': 'int',
Expand All @@ -33,7 +63,9 @@ void main() {
'owner-display-name': 'String',
'owner-id': 'String',
'permissions': 'String',
'share-types': 'WebDavOcShareTypes',
'size': 'int',
'tags': 'WebDavOcTags',
},
'ocm': {
'share-permissions': 'String',
Expand Down
Loading

0 comments on commit 81e17e9

Please sign in to comment.