From 4f7c506c0134442706a8638cb7b10c62f2337b2a Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 21 Jul 2022 13:03:51 +0200 Subject: [PATCH 1/2] nextcloud, specs: Fix null values in responses in tests --- .../ProvisioningApiUserDetails.md | 1 + .../src/clients/common/model/ocs_meta.dart | 10 +++ .../clients/generated/core/api_client.dart | 2 + .../core/model/core_login_flow_init.dart | 4 + .../core/model/core_login_flow_init_poll.dart | 4 + .../core/model/core_login_flow_query.dart | 2 + .../core/model/core_login_flow_result.dart | 6 ++ .../core/model/core_navigation_apps.dart | 2 + .../core/model/core_navigation_apps_ocs.dart | 2 + .../core_navigation_apps_ocs_data_inner.dart | 18 ++++ .../core/model/core_server_capabilities.dart | 2 + .../model/core_server_capabilities_ocs.dart | 4 + .../core_server_capabilities_ocs_data.dart | 4 + ...er_capabilities_ocs_data_capabilities.dart | 32 +++++++ ...ties_ocs_data_capabilities_bruteforce.dart | 2 + ...ilities_ocs_data_capabilities_circles.dart | 10 +++ ..._ocs_data_capabilities_circles_circle.dart | 4 + ...capabilities_circles_circle_constants.dart | 4 + ...ities_circles_circle_constants_source.dart | 4 + ..._ocs_data_capabilities_circles_member.dart | 4 + ...capabilities_circles_member_constants.dart | 2 + ...cs_data_capabilities_circles_settings.dart | 8 ++ ..._ocs_data_capabilities_circles_status.dart | 2 + ...pabilities_ocs_data_capabilities_core.dart | 4 + ...apabilities_ocs_data_capabilities_dav.dart | 2 + ...abilities_ocs_data_capabilities_files.dart | 10 +++ ...ata_capabilities_files_direct_editing.dart | 4 + ...s_ocs_data_capabilities_files_sharing.dart | 20 +++++ ...capabilities_files_sharing_federation.dart | 8 ++ ...data_capabilities_files_sharing_group.dart | 4 + ...ata_capabilities_files_sharing_public.dart | 18 ++++ ...ties_files_sharing_public_expire_date.dart | 2 + ...ilities_files_sharing_public_password.dart | 4 + ...apabilities_files_sharing_sharebymail.dart | 10 +++ ...es_files_sharing_sharebymail_password.dart | 4 + ...ata_capabilities_files_sharing_sharee.dart | 4 + ..._data_capabilities_files_sharing_user.dart | 4 + ...abilities_ocs_data_capabilities_notes.dart | 2 + ...apabilities_ocs_data_capabilities_ocm.dart | 6 ++ ...capabilities_ocm_resource_types_inner.dart | 4 + ...es_ocm_resource_types_inner_protocols.dart | 2 + ...ocs_data_capabilities_password_policy.dart | 12 +++ ...data_capabilities_password_policy_api.dart | 4 + ...cs_data_capabilities_provisioning_api.dart | 8 ++ ...ilities_ocs_data_capabilities_theming.dart | 28 +++++++ ...ies_ocs_data_capabilities_user_status.dart | 4 + ..._server_capabilities_ocs_data_version.dart | 12 +++ .../core/model/core_server_status.dart | 16 ++++ .../clients/generated/news/api_client.dart | 2 + .../generated/news/model/news_add_feed.dart | 4 + .../generated/news/model/news_article.dart | 40 +++++++++ .../news/model/news_create_folder.dart | 2 + .../generated/news/model/news_feed.dart | 24 ++++++ .../generated/news/model/news_folder.dart | 6 ++ .../generated/news/model/news_list_feeds.dart | 4 + .../news/model/news_mark_as_read.dart | 2 + .../generated/news/model/news_move_feed.dart | 2 + .../news/model/news_rename_feed.dart | 2 + .../news/model/news_rename_folder.dart | 2 + .../clients/generated/notes/api_client.dart | 2 + .../generated/notes/model/notes_note.dart | 20 +++++ .../generated/notes/model/notes_settings.dart | 6 ++ .../generated/notifications/api_client.dart | 2 + .../model/admin_notification.dart | 4 + .../notifications/model/empty_response.dart | 2 + .../model/empty_response_ocs.dart | 2 + .../model/get_notification_response.dart | 2 + .../model/get_notification_response_ocs.dart | 4 + .../model/list_notifications_response.dart | 2 + .../list_notifications_response_ocs.dart | 2 + .../notifications/model/notification.dart | 24 ++++++ .../push_notification_decrypted_subject.dart | 10 +++ .../model/push_server_device.dart | 6 ++ .../push_server_registration_response.dart | 2 + ...push_server_registration_response_ocs.dart | 4 + .../model/push_server_subscription.dart | 6 ++ .../provisioning_api/api_client.dart | 2 + .../model/provisioning_api_user.dart | 2 + .../model/provisioning_api_user_details.dart | 83 ++++++++++++++++++- ...api_user_details_backend_capabilities.dart | 4 + .../provisioning_api_user_details_quota.dart | 10 +++ .../model/provisioning_api_user_ocs.dart | 4 + .../generated/user_status/api_client.dart | 2 + .../user_status/model/user_status.dart | 16 ++++ .../model/user_status_clear_at.dart | 4 + .../model/user_status_find_all_statuses.dart | 2 + .../user_status_find_all_statuses_ocs.dart | 2 + .../model/user_status_find_status.dart | 2 + .../model/user_status_find_status_ocs.dart | 4 + .../model/user_status_get_user_status.dart | 2 + .../user_status_get_user_status_ocs.dart | 4 + .../model/user_status_heartbeat.dart | 2 + .../model/user_status_predefined_status.dart | 8 ++ .../user_status_predefined_statuses.dart | 2 + .../user_status_predefined_statuses_ocs.dart | 2 + .../model/user_status_public_user_status.dart | 10 +++ .../model/user_status_set_custom_message.dart | 6 ++ .../user_status_set_predefined_message.dart | 4 + .../model/user_status_set_user_status.dart | 2 + packages/nextcloud/test/news_test.dart | 22 +---- packages/nextcloud/test/user_status_test.dart | 13 --- specs/provisioning_api.json | 3 + 102 files changed, 701 insertions(+), 35 deletions(-) diff --git a/packages/nextcloud/doc/provisioning_api/ProvisioningApiUserDetails.md b/packages/nextcloud/doc/provisioning_api/ProvisioningApiUserDetails.md index 7d47a753..c00b5135 100644 --- a/packages/nextcloud/doc/provisioning_api/ProvisioningApiUserDetails.md +++ b/packages/nextcloud/doc/provisioning_api/ProvisioningApiUserDetails.md @@ -42,6 +42,7 @@ Name | Type | Description | Notes **groups** | **List** | | [optional] [default to const []] **language** | **String** | | [optional] **locale** | **String** | | [optional] +**notifyEmail** | **String** | | [optional] **backendCapabilities** | [**ProvisioningApiUserDetailsBackendCapabilities**](ProvisioningApiUserDetailsBackendCapabilities.md) | | [optional] **displayName** | **String** | | [optional] diff --git a/packages/nextcloud/lib/src/clients/common/model/ocs_meta.dart b/packages/nextcloud/lib/src/clients/common/model/ocs_meta.dart index 768bbb43..ad39abe5 100644 --- a/packages/nextcloud/lib/src/clients/common/model/ocs_meta.dart +++ b/packages/nextcloud/lib/src/clients/common/model/ocs_meta.dart @@ -87,18 +87,28 @@ class OCSMeta { final _json = {}; if (status != null) { _json[r'status'] = status; + } else { + _json[r'status'] = null; } if (statuscode != null) { _json[r'statuscode'] = statuscode; + } else { + _json[r'statuscode'] = null; } if (message != null) { _json[r'message'] = message; + } else { + _json[r'message'] = null; } if (totalitems != null) { _json[r'totalitems'] = totalitems; + } else { + _json[r'totalitems'] = null; } if (itemsperpage != null) { _json[r'itemsperpage'] = itemsperpage; + } else { + _json[r'itemsperpage'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/api_client.dart b/packages/nextcloud/lib/src/clients/generated/core/api_client.dart index 4e72bdaf..7f63eacd 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/api_client.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/api_client.dart @@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient { } final valueString = '$value'.toLowerCase(); return valueString == 'true' || valueString == '1'; + case 'DateTime': + return value is DateTime ? value : DateTime.tryParse(value); case 'CoreLoginFlowInit': return CoreLoginFlowInit.fromJson(value); case 'CoreLoginFlowInitPoll': diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init.dart index a8d20ad8..8b5704d9 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init.dart @@ -49,9 +49,13 @@ class CoreLoginFlowInit { final _json = {}; if (poll != null) { _json[r'poll'] = poll; + } else { + _json[r'poll'] = null; } if (login != null) { _json[r'login'] = login; + } else { + _json[r'login'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init_poll.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init_poll.dart index 3d5a2e0d..64b6722c 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init_poll.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_init_poll.dart @@ -49,9 +49,13 @@ class CoreLoginFlowInitPoll { final _json = {}; if (token != null) { _json[r'token'] = token; + } else { + _json[r'token'] = null; } if (endpoint != null) { _json[r'endpoint'] = endpoint; + } else { + _json[r'endpoint'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_query.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_query.dart index 136e8541..abae5d09 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_query.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_query.dart @@ -39,6 +39,8 @@ class CoreLoginFlowQuery { final _json = {}; if (token != null) { _json[r'token'] = token; + } else { + _json[r'token'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_result.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_result.dart index 0cc345fc..56561a67 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_result.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_login_flow_result.dart @@ -64,12 +64,18 @@ class CoreLoginFlowResult { final _json = {}; if (server != null) { _json[r'server'] = server; + } else { + _json[r'server'] = null; } if (loginName != null) { _json[r'loginName'] = loginName; + } else { + _json[r'loginName'] = null; } if (appPassword != null) { _json[r'appPassword'] = appPassword; + } else { + _json[r'appPassword'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps.dart index 7e9bd2b7..0386d765 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps.dart @@ -39,6 +39,8 @@ class CoreNavigationApps { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs.dart index 766d7e7e..14135797 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs.dart @@ -38,6 +38,8 @@ class CoreNavigationAppsOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } _json[r'data'] = data; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs_data_inner.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs_data_inner.dart index f6a5d053..0b9e1f97 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs_data_inner.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_navigation_apps_ocs_data_inner.dart @@ -132,30 +132,48 @@ class CoreNavigationAppsOcsDataInner { final _json = {}; if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (order != null) { _json[r'order'] = order; + } else { + _json[r'order'] = null; } if (href != null) { _json[r'href'] = href; + } else { + _json[r'href'] = null; } if (icon != null) { _json[r'icon'] = icon; + } else { + _json[r'icon'] = null; } if (type != null) { _json[r'type'] = type; + } else { + _json[r'type'] = null; } if (name != null) { _json[r'name'] = name; + } else { + _json[r'name'] = null; } if (active != null) { _json[r'active'] = active; + } else { + _json[r'active'] = null; } if (classes != null) { _json[r'classes'] = classes; + } else { + _json[r'classes'] = null; } if (unread != null) { _json[r'unread'] = unread; + } else { + _json[r'unread'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities.dart index fafb8363..898c236c 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities.dart @@ -39,6 +39,8 @@ class CoreServerCapabilities { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs.dart index 6deb2d38..b336c918 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs.dart @@ -44,9 +44,13 @@ class CoreServerCapabilitiesOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } if (data != null) { _json[r'data'] = data; + } else { + _json[r'data'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data.dart index 592b551d..04f4fc0d 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data.dart @@ -50,9 +50,13 @@ class CoreServerCapabilitiesOcsData { final _json = {}; if (version != null) { _json[r'version'] = version; + } else { + _json[r'version'] = null; } if (capabilities != null) { _json[r'capabilities'] = capabilities; + } else { + _json[r'capabilities'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities.dart index f2e3eedd..941d30ee 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities.dart @@ -208,51 +208,83 @@ class CoreServerCapabilitiesOcsDataCapabilities { final _json = {}; if (core != null) { _json[r'core'] = core; + } else { + _json[r'core'] = null; } if (bruteforce != null) { _json[r'bruteforce'] = bruteforce; + } else { + _json[r'bruteforce'] = null; } if (metadataAvailable != null) { _json[r'metadataAvailable'] = metadataAvailable; + } else { + _json[r'metadataAvailable'] = null; } if (files != null) { _json[r'files'] = files; + } else { + _json[r'files'] = null; } if (activity != null) { _json[r'activity'] = activity; + } else { + _json[r'activity'] = null; } if (circles != null) { _json[r'circles'] = circles; + } else { + _json[r'circles'] = null; } if (ocm != null) { _json[r'ocm'] = ocm; + } else { + _json[r'ocm'] = null; } if (dav != null) { _json[r'dav'] = dav; + } else { + _json[r'dav'] = null; } if (filesSharing != null) { _json[r'files_sharing'] = filesSharing; + } else { + _json[r'files_sharing'] = null; } if (notes != null) { _json[r'notes'] = notes; + } else { + _json[r'notes'] = null; } if (notifications != null) { _json[r'notifications'] = notifications; + } else { + _json[r'notifications'] = null; } if (passwordPolicy != null) { _json[r'password_policy'] = passwordPolicy; + } else { + _json[r'password_policy'] = null; } if (provisioningApi != null) { _json[r'provisioning_api'] = provisioningApi; + } else { + _json[r'provisioning_api'] = null; } if (theming != null) { _json[r'theming'] = theming; + } else { + _json[r'theming'] = null; } if (userStatus != null) { _json[r'user_status'] = userStatus; + } else { + _json[r'user_status'] = null; } if (weatherStatus != null) { _json[r'weather_status'] = weatherStatus; + } else { + _json[r'weather_status'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_bruteforce.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_bruteforce.dart index 958c81ac..e457286f 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_bruteforce.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_bruteforce.dart @@ -40,6 +40,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesBruteforce { final _json = {}; if (delay != null) { _json[r'delay'] = delay; + } else { + _json[r'delay'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles.dart index f880b7ce..c4d42ac8 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles.dart @@ -87,18 +87,28 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCircles { final _json = {}; if (version != null) { _json[r'version'] = version; + } else { + _json[r'version'] = null; } if (status != null) { _json[r'status'] = status; + } else { + _json[r'status'] = null; } if (settings != null) { _json[r'settings'] = settings; + } else { + _json[r'settings'] = null; } if (circle != null) { _json[r'circle'] = circle; + } else { + _json[r'circle'] = null; } if (member != null) { _json[r'member'] = member; + } else { + _json[r'member'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle.dart index abc56b3d..6e8f1dbb 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle.dart @@ -52,9 +52,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircle { final _json = {}; if (constants != null) { _json[r'constants'] = constants; + } else { + _json[r'constants'] = null; } if (config != null) { _json[r'config'] = config; + } else { + _json[r'config'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants.dart index ffe137db..e13839b3 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstants { final _json = {}; if (flags != null) { _json[r'flags'] = flags; + } else { + _json[r'flags'] = null; } if (source_ != null) { _json[r'source'] = source_; + } else { + _json[r'source'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants_source.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants_source.dart index d5e547dd..6ea82a5b 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants_source.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_circle_constants_source.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesCircleConstantsSource { final _json = {}; if (core != null) { _json[r'core'] = core; + } else { + _json[r'core'] = null; } if (extra != null) { _json[r'extra'] = extra; + } else { + _json[r'extra'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member.dart index 552262ad..30266540 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member.dart @@ -52,9 +52,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesMember { final _json = {}; if (constants != null) { _json[r'constants'] = constants; + } else { + _json[r'constants'] = null; } if (type != null) { _json[r'type'] = type; + } else { + _json[r'type'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member_constants.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member_constants.dart index b3f05cfd..08cf2555 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member_constants.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_member_constants.dart @@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesMemberConstants { final _json = {}; if (level != null) { _json[r'level'] = level; + } else { + _json[r'level'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_settings.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_settings.dart index f06da30b..c15efef3 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_settings.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_settings.dart @@ -76,15 +76,23 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesSettings { final _json = {}; if (frontendEnabled != null) { _json[r'frontendEnabled'] = frontendEnabled; + } else { + _json[r'frontendEnabled'] = null; } if (allowedCircles != null) { _json[r'allowedCircles'] = allowedCircles; + } else { + _json[r'allowedCircles'] = null; } if (allowedUserTypes != null) { _json[r'allowedUserTypes'] = allowedUserTypes; + } else { + _json[r'allowedUserTypes'] = null; } if (membersLimit != null) { _json[r'membersLimit'] = membersLimit; + } else { + _json[r'membersLimit'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_status.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_status.dart index 217ca5ee..9e7f4334 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_circles_status.dart @@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCirclesStatus { final _json = {}; if (globalScale != null) { _json[r'globalScale'] = globalScale; + } else { + _json[r'globalScale'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_core.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_core.dart index 48e50ce9..8ae1401f 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_core.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_core.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesCore { final _json = {}; if (pollinterval != null) { _json[r'pollinterval'] = pollinterval; + } else { + _json[r'pollinterval'] = null; } if (webdavRoot != null) { _json[r'webdav-root'] = webdavRoot; + } else { + _json[r'webdav-root'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_dav.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_dav.dart index 2d352976..882d03ee 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_dav.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_dav.dart @@ -40,6 +40,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesDav { final _json = {}; if (chunking != null) { _json[r'chunking'] = chunking; + } else { + _json[r'chunking'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files.dart index 35a136ed..62e7a5e2 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files.dart @@ -92,19 +92,29 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFiles { final _json = {}; if (bigfilechunking != null) { _json[r'bigfilechunking'] = bigfilechunking; + } else { + _json[r'bigfilechunking'] = null; } _json[r'blacklisted_files'] = blacklistedFiles; if (directEditing != null) { _json[r'directEditing'] = directEditing; + } else { + _json[r'directEditing'] = null; } if (comments != null) { _json[r'comments'] = comments; + } else { + _json[r'comments'] = null; } if (undelete != null) { _json[r'undelete'] = undelete; + } else { + _json[r'undelete'] = null; } if (versioning != null) { _json[r'versioning'] = versioning; + } else { + _json[r'versioning'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_direct_editing.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_direct_editing.dart index 5648d069..ef97fe2f 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_direct_editing.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_direct_editing.dart @@ -50,9 +50,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesDirectEditing { final _json = {}; if (url != null) { _json[r'url'] = url; + } else { + _json[r'url'] = null; } if (etag != null) { _json[r'etag'] = etag; + } else { + _json[r'etag'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing.dart index 9623a3df..cd042745 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing.dart @@ -142,33 +142,53 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharing { final _json = {}; if (apiEnabled != null) { _json[r'api_enabled'] = apiEnabled; + } else { + _json[r'api_enabled'] = null; } if (public != null) { _json[r'public'] = public; + } else { + _json[r'public'] = null; } if (resharing != null) { _json[r'resharing'] = resharing; + } else { + _json[r'resharing'] = null; } if (user != null) { _json[r'user'] = user; + } else { + _json[r'user'] = null; } if (groupSharing != null) { _json[r'group_sharing'] = groupSharing; + } else { + _json[r'group_sharing'] = null; } if (group != null) { _json[r'group'] = group; + } else { + _json[r'group'] = null; } if (defaultPermissions != null) { _json[r'default_permissions'] = defaultPermissions; + } else { + _json[r'default_permissions'] = null; } if (federation != null) { _json[r'federation'] = federation; + } else { + _json[r'federation'] = null; } if (sharee != null) { _json[r'sharee'] = sharee; + } else { + _json[r'sharee'] = null; } if (sharebymail != null) { _json[r'sharebymail'] = sharebymail; + } else { + _json[r'sharebymail'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_federation.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_federation.dart index 7ed07431..9502c060 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_federation.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_federation.dart @@ -76,15 +76,23 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingFederation { final _json = {}; if (outgoing != null) { _json[r'outgoing'] = outgoing; + } else { + _json[r'outgoing'] = null; } if (incoming != null) { _json[r'incoming'] = incoming; + } else { + _json[r'incoming'] = null; } if (expireDate != null) { _json[r'expire_date'] = expireDate; + } else { + _json[r'expire_date'] = null; } if (expireDateSupported != null) { _json[r'expire_date_supported'] = expireDateSupported; + } else { + _json[r'expire_date_supported'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_group.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_group.dart index 9bcc41ea..95406b6d 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_group.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_group.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingGroup { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } if (expireDate != null) { _json[r'expire_date'] = expireDate; + } else { + _json[r'expire_date'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public.dart index 55937892..65917565 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public.dart @@ -131,30 +131,48 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublic { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } if (password != null) { _json[r'password'] = password; + } else { + _json[r'password'] = null; } if (expireDate != null) { _json[r'expire_date'] = expireDate; + } else { + _json[r'expire_date'] = null; } if (multipleLinks != null) { _json[r'multiple_links'] = multipleLinks; + } else { + _json[r'multiple_links'] = null; } if (expireDateInternal != null) { _json[r'expire_date_internal'] = expireDateInternal; + } else { + _json[r'expire_date_internal'] = null; } if (expireDateRemote != null) { _json[r'expire_date_remote'] = expireDateRemote; + } else { + _json[r'expire_date_remote'] = null; } if (sendMail != null) { _json[r'send_mail'] = sendMail; + } else { + _json[r'send_mail'] = null; } if (upload != null) { _json[r'upload'] = upload; + } else { + _json[r'upload'] = null; } if (uploadFilesDrop != null) { _json[r'upload_files_drop'] = uploadFilesDrop; + } else { + _json[r'upload_files_drop'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_expire_date.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_expire_date.dart index 427e3ccb..eba7b5b6 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_expire_date.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_expire_date.dart @@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicExpireDate { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_password.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_password.dart index b32d7045..7718f75e 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_password.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_public_password.dart @@ -54,9 +54,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingPublicPassword { final _json = {}; if (enforced != null) { _json[r'enforced'] = enforced; + } else { + _json[r'enforced'] = null; } if (askForOptionalPassword != null) { _json[r'askForOptionalPassword'] = askForOptionalPassword; + } else { + _json[r'askForOptionalPassword'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail.dart index 90641a30..2c4105af 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail.dart @@ -87,18 +87,28 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymail { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } if (sendPasswordByMail != null) { _json[r'send_password_by_mail'] = sendPasswordByMail; + } else { + _json[r'send_password_by_mail'] = null; } if (uploadFilesDrop != null) { _json[r'upload_files_drop'] = uploadFilesDrop; + } else { + _json[r'upload_files_drop'] = null; } if (password != null) { _json[r'password'] = password; + } else { + _json[r'password'] = null; } if (expireDate != null) { _json[r'expire_date'] = expireDate; + } else { + _json[r'expire_date'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail_password.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail_password.dart index 56889e2b..9c93eaa4 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail_password.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharebymail_password.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharebymailPassword { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } if (enforced != null) { _json[r'enforced'] = enforced; + } else { + _json[r'enforced'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharee.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharee.dart index bccef9c3..4bd876f5 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharee.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_sharee.dart @@ -54,9 +54,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingSharee { final _json = {}; if (queryLookupDefault != null) { _json[r'query_lookup_default'] = queryLookupDefault; + } else { + _json[r'query_lookup_default'] = null; } if (alwaysShowUnique != null) { _json[r'always_show_unique'] = alwaysShowUnique; + } else { + _json[r'always_show_unique'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_user.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_user.dart index 3e7976a8..c429890d 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_user.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_files_sharing_user.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesFilesSharingUser { final _json = {}; if (sendMail != null) { _json[r'send_mail'] = sendMail; + } else { + _json[r'send_mail'] = null; } if (expireDate != null) { _json[r'expire_date'] = expireDate; + } else { + _json[r'expire_date'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_notes.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_notes.dart index ad3801a7..7d94dee8 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_notes.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_notes.dart @@ -47,6 +47,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesNotes { _json[r'api_version'] = apiVersion; if (version != null) { _json[r'version'] = version; + } else { + _json[r'version'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm.dart index 16ce719e..33d37d46 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm.dart @@ -70,12 +70,18 @@ class CoreServerCapabilitiesOcsDataCapabilitiesOcm { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } if (apiVersion != null) { _json[r'apiVersion'] = apiVersion; + } else { + _json[r'apiVersion'] = null; } if (endPoint != null) { _json[r'endPoint'] = endPoint; + } else { + _json[r'endPoint'] = null; } _json[r'resourceTypes'] = resourceTypes; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner.dart index 0d6e449d..af0af0bb 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner.dart @@ -57,10 +57,14 @@ class CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesInner { final _json = {}; if (name != null) { _json[r'name'] = name; + } else { + _json[r'name'] = null; } _json[r'shareTypes'] = shareTypes; if (protocols != null) { _json[r'protocols'] = protocols; + } else { + _json[r'protocols'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner_protocols.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner_protocols.dart index f36bc245..cb25ba50 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner_protocols.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_ocm_resource_types_inner_protocols.dart @@ -41,6 +41,8 @@ class CoreServerCapabilitiesOcsDataCapabilitiesOcmResourceTypesInnerProtocols { final _json = {}; if (webdav != null) { _json[r'webdav'] = webdav; + } else { + _json[r'webdav'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy.dart index 28fecd1b..33e7b3fd 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy.dart @@ -98,21 +98,33 @@ class CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicy { final _json = {}; if (minLength != null) { _json[r'minLength'] = minLength; + } else { + _json[r'minLength'] = null; } if (enforceNonCommonPassword != null) { _json[r'enforceNonCommonPassword'] = enforceNonCommonPassword; + } else { + _json[r'enforceNonCommonPassword'] = null; } if (enforceNumericCharacters != null) { _json[r'enforceNumericCharacters'] = enforceNumericCharacters; + } else { + _json[r'enforceNumericCharacters'] = null; } if (enforceSpecialCharacters != null) { _json[r'enforceSpecialCharacters'] = enforceSpecialCharacters; + } else { + _json[r'enforceSpecialCharacters'] = null; } if (enforceUpperLowerCase != null) { _json[r'enforceUpperLowerCase'] = enforceUpperLowerCase; + } else { + _json[r'enforceUpperLowerCase'] = null; } if (api != null) { _json[r'api'] = api; + } else { + _json[r'api'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy_api.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy_api.dart index 494f371c..e159f105 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy_api.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_password_policy_api.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesPasswordPolicyApi { final _json = {}; if (generate != null) { _json[r'generate'] = generate; + } else { + _json[r'generate'] = null; } if (validate != null) { _json[r'validate'] = validate; + } else { + _json[r'validate'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_provisioning_api.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_provisioning_api.dart index c7a790af..d74b2585 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_provisioning_api.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_provisioning_api.dart @@ -76,15 +76,23 @@ class CoreServerCapabilitiesOcsDataCapabilitiesProvisioningApi { final _json = {}; if (version != null) { _json[r'version'] = version; + } else { + _json[r'version'] = null; } if (accountPropertyScopesVersion != null) { _json[r'AccountPropertyScopesVersion'] = accountPropertyScopesVersion; + } else { + _json[r'AccountPropertyScopesVersion'] = null; } if (accountPropertyScopesFederatedEnabled != null) { _json[r'AccountPropertyScopesFederatedEnabled'] = accountPropertyScopesFederatedEnabled; + } else { + _json[r'AccountPropertyScopesFederatedEnabled'] = null; } if (accountPropertyScopesPublishedEnabled != null) { _json[r'AccountPropertyScopesPublishedEnabled'] = accountPropertyScopesPublishedEnabled; + } else { + _json[r'AccountPropertyScopesPublishedEnabled'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_theming.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_theming.dart index 73035206..cd479ba7 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_theming.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_theming.dart @@ -186,45 +186,73 @@ class CoreServerCapabilitiesOcsDataCapabilitiesTheming { final _json = {}; if (name != null) { _json[r'name'] = name; + } else { + _json[r'name'] = null; } if (url != null) { _json[r'url'] = url; + } else { + _json[r'url'] = null; } if (slogan != null) { _json[r'slogan'] = slogan; + } else { + _json[r'slogan'] = null; } if (color != null) { _json[r'color'] = color; + } else { + _json[r'color'] = null; } if (colorText != null) { _json[r'color-text'] = colorText; + } else { + _json[r'color-text'] = null; } if (colorElement != null) { _json[r'color-element'] = colorElement; + } else { + _json[r'color-element'] = null; } if (colorElementBright != null) { _json[r'color-element-bright'] = colorElementBright; + } else { + _json[r'color-element-bright'] = null; } if (colorElementDark != null) { _json[r'color-element-dark'] = colorElementDark; + } else { + _json[r'color-element-dark'] = null; } if (logo != null) { _json[r'logo'] = logo; + } else { + _json[r'logo'] = null; } if (background != null) { _json[r'background'] = background; + } else { + _json[r'background'] = null; } if (backgroundPlain != null) { _json[r'background-plain'] = backgroundPlain; + } else { + _json[r'background-plain'] = null; } if (backgroundDefault != null) { _json[r'background-default'] = backgroundDefault; + } else { + _json[r'background-default'] = null; } if (logoheader != null) { _json[r'logoheader'] = logoheader; + } else { + _json[r'logoheader'] = null; } if (favicon != null) { _json[r'favicon'] = favicon; + } else { + _json[r'favicon'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_user_status.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_user_status.dart index 443f8277..51a1bd6c 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_user_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_capabilities_user_status.dart @@ -53,9 +53,13 @@ class CoreServerCapabilitiesOcsDataCapabilitiesUserStatus { final _json = {}; if (enabled != null) { _json[r'enabled'] = enabled; + } else { + _json[r'enabled'] = null; } if (supportsEmoji != null) { _json[r'supports_emoji'] = supportsEmoji; + } else { + _json[r'supports_emoji'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_version.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_version.dart index b5bd9449..45f6b88b 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_version.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_capabilities_ocs_data_version.dart @@ -98,21 +98,33 @@ class CoreServerCapabilitiesOcsDataVersion { final _json = {}; if (major != null) { _json[r'major'] = major; + } else { + _json[r'major'] = null; } if (minor != null) { _json[r'minor'] = minor; + } else { + _json[r'minor'] = null; } if (micro != null) { _json[r'micro'] = micro; + } else { + _json[r'micro'] = null; } if (string != null) { _json[r'string'] = string; + } else { + _json[r'string'] = null; } if (edition != null) { _json[r'edition'] = edition; + } else { + _json[r'edition'] = null; } if (extendedSupport != null) { _json[r'extendedSupport'] = extendedSupport; + } else { + _json[r'extendedSupport'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_status.dart b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_status.dart index 69f1d81f..ced537b5 100644 --- a/packages/nextcloud/lib/src/clients/generated/core/model/core_server_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/core/model/core_server_status.dart @@ -120,27 +120,43 @@ class CoreServerStatus { final _json = {}; if (installed != null) { _json[r'installed'] = installed; + } else { + _json[r'installed'] = null; } if (maintenance != null) { _json[r'maintenance'] = maintenance; + } else { + _json[r'maintenance'] = null; } if (needsDbUpgrade != null) { _json[r'needsDbUpgrade'] = needsDbUpgrade; + } else { + _json[r'needsDbUpgrade'] = null; } if (version != null) { _json[r'version'] = version; + } else { + _json[r'version'] = null; } if (versionstring != null) { _json[r'versionstring'] = versionstring; + } else { + _json[r'versionstring'] = null; } if (edition != null) { _json[r'edition'] = edition; + } else { + _json[r'edition'] = null; } if (productname != null) { _json[r'productname'] = productname; + } else { + _json[r'productname'] = null; } if (extendedSupport != null) { _json[r'extendedSupport'] = extendedSupport; + } else { + _json[r'extendedSupport'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/api_client.dart b/packages/nextcloud/lib/src/clients/generated/news/api_client.dart index 8fcae411..631a0e6b 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/api_client.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/api_client.dart @@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient { } final valueString = '$value'.toLowerCase(); return valueString == 'true' || valueString == '1'; + case 'DateTime': + return value is DateTime ? value : DateTime.tryParse(value); case 'NewsAddFeed': return NewsAddFeed.fromJson(value); case 'NewsArticle': diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_add_feed.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_add_feed.dart index 586ed885..118763b6 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_add_feed.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_add_feed.dart @@ -49,9 +49,13 @@ class NewsAddFeed { final _json = {}; if (url != null) { _json[r'url'] = url; + } else { + _json[r'url'] = null; } if (folderId != null) { _json[r'folderId'] = folderId; + } else { + _json[r'folderId'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_article.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_article.dart index 27005b3b..35765e8f 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_article.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_article.dart @@ -252,63 +252,103 @@ class NewsArticle { final _json = {}; if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (guid != null) { _json[r'guid'] = guid; + } else { + _json[r'guid'] = null; } if (guidHash != null) { _json[r'guidHash'] = guidHash; + } else { + _json[r'guidHash'] = null; } if (url != null) { _json[r'url'] = url; + } else { + _json[r'url'] = null; } if (title != null) { _json[r'title'] = title; + } else { + _json[r'title'] = null; } if (author != null) { _json[r'author'] = author; + } else { + _json[r'author'] = null; } if (pubDate != null) { _json[r'pubDate'] = pubDate; + } else { + _json[r'pubDate'] = null; } if (updatedDate != null) { _json[r'updatedDate'] = updatedDate; + } else { + _json[r'updatedDate'] = null; } if (body != null) { _json[r'body'] = body; + } else { + _json[r'body'] = null; } if (enclosureMime != null) { _json[r'enclosureMime'] = enclosureMime; + } else { + _json[r'enclosureMime'] = null; } if (enclosureLink != null) { _json[r'enclosureLink'] = enclosureLink; + } else { + _json[r'enclosureLink'] = null; } if (mediaThumbnail != null) { _json[r'mediaThumbnail'] = mediaThumbnail; + } else { + _json[r'mediaThumbnail'] = null; } if (mediaDescription != null) { _json[r'mediaDescription'] = mediaDescription; + } else { + _json[r'mediaDescription'] = null; } if (feedId != null) { _json[r'feedId'] = feedId; + } else { + _json[r'feedId'] = null; } if (unread != null) { _json[r'unread'] = unread; + } else { + _json[r'unread'] = null; } if (starred != null) { _json[r'starred'] = starred; + } else { + _json[r'starred'] = null; } if (lastModified != null) { _json[r'lastModified'] = lastModified; + } else { + _json[r'lastModified'] = null; } if (rtl != null) { _json[r'rtl'] = rtl; + } else { + _json[r'rtl'] = null; } if (fingerprint != null) { _json[r'fingerprint'] = fingerprint; + } else { + _json[r'fingerprint'] = null; } if (contentHash != null) { _json[r'contentHash'] = contentHash; + } else { + _json[r'contentHash'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_create_folder.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_create_folder.dart index 57eaefce..4b8254bd 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_create_folder.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_create_folder.dart @@ -39,6 +39,8 @@ class NewsCreateFolder { final _json = {}; if (name != null) { _json[r'name'] = name; + } else { + _json[r'name'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_feed.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_feed.dart index 01e68eca..1a347371 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_feed.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_feed.dart @@ -169,39 +169,63 @@ class NewsFeed { final _json = {}; if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (url != null) { _json[r'url'] = url; + } else { + _json[r'url'] = null; } if (title != null) { _json[r'title'] = title; + } else { + _json[r'title'] = null; } if (faviconLink != null) { _json[r'faviconLink'] = faviconLink; + } else { + _json[r'faviconLink'] = null; } if (added != null) { _json[r'added'] = added; + } else { + _json[r'added'] = null; } if (folderId != null) { _json[r'folderId'] = folderId; + } else { + _json[r'folderId'] = null; } if (unreadCount != null) { _json[r'unreadCount'] = unreadCount; + } else { + _json[r'unreadCount'] = null; } if (ordering != null) { _json[r'ordering'] = ordering; + } else { + _json[r'ordering'] = null; } if (link != null) { _json[r'link'] = link; + } else { + _json[r'link'] = null; } if (pinned != null) { _json[r'pinned'] = pinned; + } else { + _json[r'pinned'] = null; } if (updateErrorCount != null) { _json[r'updateErrorCount'] = updateErrorCount; + } else { + _json[r'updateErrorCount'] = null; } if (lastUpdateError != null) { _json[r'lastUpdateError'] = lastUpdateError; + } else { + _json[r'lastUpdateError'] = null; } _json[r'items'] = items; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_folder.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_folder.dart index 7476725e..3aa376e2 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_folder.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_folder.dart @@ -66,12 +66,18 @@ class NewsFolder { final _json = {}; if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (name != null) { _json[r'name'] = name; + } else { + _json[r'name'] = null; } if (opened != null) { _json[r'opened'] = opened; + } else { + _json[r'opened'] = null; } _json[r'feeds'] = feeds; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_list_feeds.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_list_feeds.dart index ddd6af1a..dae26607 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_list_feeds.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_list_feeds.dart @@ -58,9 +58,13 @@ class NewsListFeeds { final _json = {}; if (starredCount != null) { _json[r'starredCount'] = starredCount; + } else { + _json[r'starredCount'] = null; } if (newestItemId != null) { _json[r'newestItemId'] = newestItemId; + } else { + _json[r'newestItemId'] = null; } _json[r'feeds'] = feeds; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_mark_as_read.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_mark_as_read.dart index 9274bbe4..127a8782 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_mark_as_read.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_mark_as_read.dart @@ -40,6 +40,8 @@ class NewsMarkAsRead { final _json = {}; if (newestItemId != null) { _json[r'newestItemId'] = newestItemId; + } else { + _json[r'newestItemId'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_move_feed.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_move_feed.dart index 320dfb23..923fd29b 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_move_feed.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_move_feed.dart @@ -39,6 +39,8 @@ class NewsMoveFeed { final _json = {}; if (folderId != null) { _json[r'folderId'] = folderId; + } else { + _json[r'folderId'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_feed.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_feed.dart index a3de7bac..ceca89ec 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_feed.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_feed.dart @@ -39,6 +39,8 @@ class NewsRenameFeed { final _json = {}; if (feedTitle != null) { _json[r'feedTitle'] = feedTitle; + } else { + _json[r'feedTitle'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_folder.dart b/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_folder.dart index e9604578..b084d708 100644 --- a/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_folder.dart +++ b/packages/nextcloud/lib/src/clients/generated/news/model/news_rename_folder.dart @@ -39,6 +39,8 @@ class NewsRenameFolder { final _json = {}; if (name != null) { _json[r'name'] = name; + } else { + _json[r'name'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notes/api_client.dart b/packages/nextcloud/lib/src/clients/generated/notes/api_client.dart index dd61dbe1..d040ab5b 100644 --- a/packages/nextcloud/lib/src/clients/generated/notes/api_client.dart +++ b/packages/nextcloud/lib/src/clients/generated/notes/api_client.dart @@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient { } final valueString = '$value'.toLowerCase(); return valueString == 'true' || valueString == '1'; + case 'DateTime': + return value is DateTime ? value : DateTime.tryParse(value); case 'NotesNote': return NotesNote.fromJson(value); case 'NotesSettings': diff --git a/packages/nextcloud/lib/src/clients/generated/notes/model/notes_note.dart b/packages/nextcloud/lib/src/clients/generated/notes/model/notes_note.dart index b097b6bf..5d9fb689 100644 --- a/packages/nextcloud/lib/src/clients/generated/notes/model/notes_note.dart +++ b/packages/nextcloud/lib/src/clients/generated/notes/model/notes_note.dart @@ -142,33 +142,53 @@ class NotesNote { final _json = {}; if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (etag != null) { _json[r'etag'] = etag; + } else { + _json[r'etag'] = null; } if (readonly != null) { _json[r'readonly'] = readonly; + } else { + _json[r'readonly'] = null; } if (content != null) { _json[r'content'] = content; + } else { + _json[r'content'] = null; } if (title != null) { _json[r'title'] = title; + } else { + _json[r'title'] = null; } if (category != null) { _json[r'category'] = category; + } else { + _json[r'category'] = null; } if (favorite != null) { _json[r'favorite'] = favorite; + } else { + _json[r'favorite'] = null; } if (modified != null) { _json[r'modified'] = modified; + } else { + _json[r'modified'] = null; } if (error != null) { _json[r'error'] = error; + } else { + _json[r'error'] = null; } if (errorType != null) { _json[r'errorType'] = errorType; + } else { + _json[r'errorType'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notes/model/notes_settings.dart b/packages/nextcloud/lib/src/clients/generated/notes/model/notes_settings.dart index 7dc60d9b..e3234e4f 100644 --- a/packages/nextcloud/lib/src/clients/generated/notes/model/notes_settings.dart +++ b/packages/nextcloud/lib/src/clients/generated/notes/model/notes_settings.dart @@ -58,12 +58,18 @@ class NotesSettings { final _json = {}; if (notesPath != null) { _json[r'notesPath'] = notesPath; + } else { + _json[r'notesPath'] = null; } if (fileSuffix != null) { _json[r'fileSuffix'] = fileSuffix; + } else { + _json[r'fileSuffix'] = null; } if (noteMode != null) { _json[r'noteMode'] = noteMode; + } else { + _json[r'noteMode'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/api_client.dart b/packages/nextcloud/lib/src/clients/generated/notifications/api_client.dart index 69aca6f0..9e11faac 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/api_client.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/api_client.dart @@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient { } final valueString = '$value'.toLowerCase(); return valueString == 'true' || valueString == '1'; + case 'DateTime': + return value is DateTime ? value : DateTime.tryParse(value); case 'AdminNotification': return AdminNotification.fromJson(value); case 'EmptyResponse': diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/admin_notification.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/admin_notification.dart index 6b7ccd22..f6a604ae 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/admin_notification.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/admin_notification.dart @@ -50,9 +50,13 @@ class AdminNotification { final _json = {}; if (shortMessage != null) { _json[r'shortMessage'] = shortMessage; + } else { + _json[r'shortMessage'] = null; } if (longMessage != null) { _json[r'longMessage'] = longMessage; + } else { + _json[r'longMessage'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response.dart index f8190763..6e9dbaa6 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response.dart @@ -39,6 +39,8 @@ class EmptyResponse { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response_ocs.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response_ocs.dart index e5f3157b..3e8a7638 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/empty_response_ocs.dart @@ -38,6 +38,8 @@ class EmptyResponseOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } _json[r'data'] = data; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response.dart index dbf5b865..7157c7b5 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response.dart @@ -39,6 +39,8 @@ class GetNotificationResponse { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response_ocs.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response_ocs.dart index 6b7883ce..88d81b70 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/get_notification_response_ocs.dart @@ -44,9 +44,13 @@ class GetNotificationResponseOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } if (data != null) { _json[r'data'] = data; + } else { + _json[r'data'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response.dart index b180f52e..9c47416e 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response.dart @@ -39,6 +39,8 @@ class ListNotificationsResponse { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response_ocs.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response_ocs.dart index 6643159d..91d694ef 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/list_notifications_response_ocs.dart @@ -38,6 +38,8 @@ class ListNotificationsResponseOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } _json[r'data'] = data; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/notification.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/notification.dart index 90ec5a56..8a74410c 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/notification.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/notification.dart @@ -179,41 +179,65 @@ class Notification { final _json = {}; if (notificationId != null) { _json[r'notification_id'] = notificationId; + } else { + _json[r'notification_id'] = null; } if (app != null) { _json[r'app'] = app; + } else { + _json[r'app'] = null; } if (user != null) { _json[r'user'] = user; + } else { + _json[r'user'] = null; } if (datetime != null) { _json[r'datetime'] = datetime; + } else { + _json[r'datetime'] = null; } if (objectType != null) { _json[r'object_type'] = objectType; + } else { + _json[r'object_type'] = null; } if (objectId != null) { _json[r'object_id'] = objectId; + } else { + _json[r'object_id'] = null; } if (subject != null) { _json[r'subject'] = subject; + } else { + _json[r'subject'] = null; } if (message != null) { _json[r'message'] = message; + } else { + _json[r'message'] = null; } if (link != null) { _json[r'link'] = link; + } else { + _json[r'link'] = null; } if (subjectRich != null) { _json[r'subjectRich'] = subjectRich; + } else { + _json[r'subjectRich'] = null; } _json[r'subjectRichParameters'] = subjectRichParameters; if (messageRich != null) { _json[r'messageRich'] = messageRich; + } else { + _json[r'messageRich'] = null; } _json[r'messageRichParameters'] = messageRichParameters; if (icon != null) { _json[r'icon'] = icon; + } else { + _json[r'icon'] = null; } _json[r'actions'] = actions; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_notification_decrypted_subject.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_notification_decrypted_subject.dart index 4d1cf34b..fb946b4e 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_notification_decrypted_subject.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_notification_decrypted_subject.dart @@ -86,18 +86,28 @@ class PushNotificationDecryptedSubject { final _json = {}; if (nid != null) { _json[r'nid'] = nid; + } else { + _json[r'nid'] = null; } if (app != null) { _json[r'app'] = app; + } else { + _json[r'app'] = null; } if (subject != null) { _json[r'subject'] = subject; + } else { + _json[r'subject'] = null; } if (type != null) { _json[r'type'] = type; + } else { + _json[r'type'] = null; } if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_device.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_device.dart index dea9bfd3..5ed65e1f 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_device.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_device.dart @@ -65,12 +65,18 @@ class PushServerDevice { final _json = {}; if (pushTokenHash != null) { _json[r'pushTokenHash'] = pushTokenHash; + } else { + _json[r'pushTokenHash'] = null; } if (devicePublicKey != null) { _json[r'devicePublicKey'] = devicePublicKey; + } else { + _json[r'devicePublicKey'] = null; } if (proxyServer != null) { _json[r'proxyServer'] = proxyServer; + } else { + _json[r'proxyServer'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response.dart index b5477ae2..dd22034f 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response.dart @@ -40,6 +40,8 @@ class PushServerRegistrationResponse { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response_ocs.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response_ocs.dart index 0cb005f8..39a84474 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_registration_response_ocs.dart @@ -44,9 +44,13 @@ class PushServerRegistrationResponseOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } if (data != null) { _json[r'data'] = data; + } else { + _json[r'data'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_subscription.dart b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_subscription.dart index e4843785..e3a224f6 100644 --- a/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_subscription.dart +++ b/packages/nextcloud/lib/src/clients/generated/notifications/model/push_server_subscription.dart @@ -65,12 +65,18 @@ class PushServerSubscription { final _json = {}; if (publicKey != null) { _json[r'publicKey'] = publicKey; + } else { + _json[r'publicKey'] = null; } if (deviceIdentifier != null) { _json[r'deviceIdentifier'] = deviceIdentifier; + } else { + _json[r'deviceIdentifier'] = null; } if (signature != null) { _json[r'signature'] = signature; + } else { + _json[r'signature'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/provisioning_api/api_client.dart b/packages/nextcloud/lib/src/clients/generated/provisioning_api/api_client.dart index 2e0332b8..e4a1ae2c 100644 --- a/packages/nextcloud/lib/src/clients/generated/provisioning_api/api_client.dart +++ b/packages/nextcloud/lib/src/clients/generated/provisioning_api/api_client.dart @@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient { } final valueString = '$value'.toLowerCase(); return valueString == 'true' || valueString == '1'; + case 'DateTime': + return value is DateTime ? value : DateTime.tryParse(value); case 'ProvisioningApiUser': return ProvisioningApiUser.fromJson(value); case 'ProvisioningApiUserDetails': diff --git a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user.dart b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user.dart index 414b2517..0dbde5da 100644 --- a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user.dart +++ b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user.dart @@ -39,6 +39,8 @@ class ProvisioningApiUser { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details.dart b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details.dart index b12bee90..4e35b702 100644 --- a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details.dart +++ b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details.dart @@ -47,6 +47,7 @@ class ProvisioningApiUserDetails { this.groups = const [], this.language, this.locale, + this.notifyEmail, this.backendCapabilities, this.displayName, }); @@ -299,6 +300,14 @@ class ProvisioningApiUserDetails { /// String? locale; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? notifyEmail; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated @@ -353,6 +362,7 @@ class ProvisioningApiUserDetails { other.groups == groups && other.language == language && other.locale == locale && + other.notifyEmail == notifyEmail && other.backendCapabilities == backendCapabilities && other.displayName == displayName; @@ -393,114 +403,184 @@ class ProvisioningApiUserDetails { (groups.hashCode) + (language == null ? 0 : language!.hashCode) + (locale == null ? 0 : locale!.hashCode) + + (notifyEmail == null ? 0 : notifyEmail!.hashCode) + (backendCapabilities == null ? 0 : backendCapabilities!.hashCode) + (displayName == null ? 0 : displayName!.hashCode); @override String toString() => - 'ProvisioningApiUserDetails[storageLocation=$storageLocation, id=$id, lastLogin=$lastLogin, backend=$backend, subadmin=$subadmin, quota=$quota, avatarScope=$avatarScope, email=$email, emailScope=$emailScope, additionalMail=$additionalMail, additionalMailScope=$additionalMailScope, displayname=$displayname, displaynameScope=$displaynameScope, phone=$phone, phoneScope=$phoneScope, address=$address, addressScope=$addressScope, website=$website, websiteScope=$websiteScope, twitter=$twitter, twitterScope=$twitterScope, organisation=$organisation, organisationScope=$organisationScope, role=$role, roleScope=$roleScope, headline=$headline, headlineScope=$headlineScope, biography=$biography, biographyScope=$biographyScope, profileEnabled=$profileEnabled, profileEnabledScope=$profileEnabledScope, groups=$groups, language=$language, locale=$locale, backendCapabilities=$backendCapabilities, displayName=$displayName]'; + 'ProvisioningApiUserDetails[storageLocation=$storageLocation, id=$id, lastLogin=$lastLogin, backend=$backend, subadmin=$subadmin, quota=$quota, avatarScope=$avatarScope, email=$email, emailScope=$emailScope, additionalMail=$additionalMail, additionalMailScope=$additionalMailScope, displayname=$displayname, displaynameScope=$displaynameScope, phone=$phone, phoneScope=$phoneScope, address=$address, addressScope=$addressScope, website=$website, websiteScope=$websiteScope, twitter=$twitter, twitterScope=$twitterScope, organisation=$organisation, organisationScope=$organisationScope, role=$role, roleScope=$roleScope, headline=$headline, headlineScope=$headlineScope, biography=$biography, biographyScope=$biographyScope, profileEnabled=$profileEnabled, profileEnabledScope=$profileEnabledScope, groups=$groups, language=$language, locale=$locale, notifyEmail=$notifyEmail, backendCapabilities=$backendCapabilities, displayName=$displayName]'; Map toJson() { final _json = {}; if (storageLocation != null) { _json[r'storageLocation'] = storageLocation; + } else { + _json[r'storageLocation'] = null; } if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (lastLogin != null) { _json[r'lastLogin'] = lastLogin; + } else { + _json[r'lastLogin'] = null; } if (backend != null) { _json[r'backend'] = backend; + } else { + _json[r'backend'] = null; } _json[r'subadmin'] = subadmin; if (quota != null) { _json[r'quota'] = quota; + } else { + _json[r'quota'] = null; } if (avatarScope != null) { _json[r'avatarScope'] = avatarScope; + } else { + _json[r'avatarScope'] = null; } if (email != null) { _json[r'email'] = email; + } else { + _json[r'email'] = null; } if (emailScope != null) { _json[r'emailScope'] = emailScope; + } else { + _json[r'emailScope'] = null; } _json[r'additional_mail'] = additionalMail; _json[r'additional_mailScope'] = additionalMailScope; if (displayname != null) { _json[r'displayname'] = displayname; + } else { + _json[r'displayname'] = null; } if (displaynameScope != null) { _json[r'displaynameScope'] = displaynameScope; + } else { + _json[r'displaynameScope'] = null; } if (phone != null) { _json[r'phone'] = phone; + } else { + _json[r'phone'] = null; } if (phoneScope != null) { _json[r'phoneScope'] = phoneScope; + } else { + _json[r'phoneScope'] = null; } if (address != null) { _json[r'address'] = address; + } else { + _json[r'address'] = null; } if (addressScope != null) { _json[r'addressScope'] = addressScope; + } else { + _json[r'addressScope'] = null; } if (website != null) { _json[r'website'] = website; + } else { + _json[r'website'] = null; } if (websiteScope != null) { _json[r'websiteScope'] = websiteScope; + } else { + _json[r'websiteScope'] = null; } if (twitter != null) { _json[r'twitter'] = twitter; + } else { + _json[r'twitter'] = null; } if (twitterScope != null) { _json[r'twitterScope'] = twitterScope; + } else { + _json[r'twitterScope'] = null; } if (organisation != null) { _json[r'organisation'] = organisation; + } else { + _json[r'organisation'] = null; } if (organisationScope != null) { _json[r'organisationScope'] = organisationScope; + } else { + _json[r'organisationScope'] = null; } if (role != null) { _json[r'role'] = role; + } else { + _json[r'role'] = null; } if (roleScope != null) { _json[r'roleScope'] = roleScope; + } else { + _json[r'roleScope'] = null; } if (headline != null) { _json[r'headline'] = headline; + } else { + _json[r'headline'] = null; } if (headlineScope != null) { _json[r'headlineScope'] = headlineScope; + } else { + _json[r'headlineScope'] = null; } if (biography != null) { _json[r'biography'] = biography; + } else { + _json[r'biography'] = null; } if (biographyScope != null) { _json[r'biographyScope'] = biographyScope; + } else { + _json[r'biographyScope'] = null; } if (profileEnabled != null) { _json[r'profile_enabled'] = profileEnabled; + } else { + _json[r'profile_enabled'] = null; } if (profileEnabledScope != null) { _json[r'profile_enabledScope'] = profileEnabledScope; + } else { + _json[r'profile_enabledScope'] = null; } _json[r'groups'] = groups; if (language != null) { _json[r'language'] = language; + } else { + _json[r'language'] = null; } if (locale != null) { _json[r'locale'] = locale; + } else { + _json[r'locale'] = null; + } + if (notifyEmail != null) { + _json[r'notify_email'] = notifyEmail; + } else { + _json[r'notify_email'] = null; } if (backendCapabilities != null) { _json[r'backendCapabilities'] = backendCapabilities; + } else { + _json[r'backendCapabilities'] = null; } if (displayName != null) { _json[r'display-name'] = displayName; + } else { + _json[r'display-name'] = null; } return _json; } @@ -559,6 +639,7 @@ class ProvisioningApiUserDetails { groups: json[r'groups'] is List ? (json[r'groups'] as List).cast() : const [], language: mapValueOfType(json, r'language'), locale: mapValueOfType(json, r'locale'), + notifyEmail: mapValueOfType(json, r'notify_email'), backendCapabilities: ProvisioningApiUserDetailsBackendCapabilities.fromJson(json[r'backendCapabilities']), displayName: mapValueOfType(json, r'display-name'), ); diff --git a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_backend_capabilities.dart b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_backend_capabilities.dart index da0a3210..04ac839c 100644 --- a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_backend_capabilities.dart +++ b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_backend_capabilities.dart @@ -53,9 +53,13 @@ class ProvisioningApiUserDetailsBackendCapabilities { final _json = {}; if (setDisplayName != null) { _json[r'setDisplayName'] = setDisplayName; + } else { + _json[r'setDisplayName'] = null; } if (setPassword != null) { _json[r'setPassword'] = setPassword; + } else { + _json[r'setPassword'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_quota.dart b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_quota.dart index 315210d9..2da2be85 100644 --- a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_quota.dart +++ b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_details_quota.dart @@ -87,18 +87,28 @@ class ProvisioningApiUserDetailsQuota { final _json = {}; if (free != null) { _json[r'free'] = free; + } else { + _json[r'free'] = null; } if (used != null) { _json[r'used'] = used; + } else { + _json[r'used'] = null; } if (total != null) { _json[r'total'] = total; + } else { + _json[r'total'] = null; } if (relative != null) { _json[r'relative'] = relative; + } else { + _json[r'relative'] = null; } if (quota != null) { _json[r'quota'] = quota; + } else { + _json[r'quota'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_ocs.dart b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_ocs.dart index a88143e3..c9267168 100644 --- a/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/provisioning_api/model/provisioning_api_user_ocs.dart @@ -44,9 +44,13 @@ class ProvisioningApiUserOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } if (data != null) { _json[r'data'] = data; + } else { + _json[r'data'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/api_client.dart b/packages/nextcloud/lib/src/clients/generated/user_status/api_client.dart index d9daa102..4aba2552 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/api_client.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/api_client.dart @@ -220,6 +220,8 @@ class ApiClient extends BaseApiClient { } final valueString = '$value'.toLowerCase(); return valueString == 'true' || valueString == '1'; + case 'DateTime': + return value is DateTime ? value : DateTime.tryParse(value); case 'UserStatus': return UserStatus.fromJson(value); case 'UserStatusClearAt': diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status.dart index ac28bc6a..6090005e 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status.dart @@ -120,27 +120,43 @@ class UserStatus { final _json = {}; if (userId != null) { _json[r'userId'] = userId; + } else { + _json[r'userId'] = null; } if (message != null) { _json[r'message'] = message; + } else { + _json[r'message'] = null; } if (messageId != null) { _json[r'messageId'] = messageId; + } else { + _json[r'messageId'] = null; } if (messageIsPredefined != null) { _json[r'messageIsPredefined'] = messageIsPredefined; + } else { + _json[r'messageIsPredefined'] = null; } if (icon != null) { _json[r'icon'] = icon; + } else { + _json[r'icon'] = null; } if (clearAt != null) { _json[r'clearAt'] = clearAt; + } else { + _json[r'clearAt'] = null; } if (status != null) { _json[r'status'] = status; + } else { + _json[r'status'] = null; } if (statusIsUserDefined != null) { _json[r'statusIsUserDefined'] = statusIsUserDefined; + } else { + _json[r'statusIsUserDefined'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_clear_at.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_clear_at.dart index 1d15ce06..254e7c3d 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_clear_at.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_clear_at.dart @@ -49,9 +49,13 @@ class UserStatusClearAt { final _json = {}; if (type != null) { _json[r'type'] = type; + } else { + _json[r'type'] = null; } if (time != null) { _json[r'time'] = time; + } else { + _json[r'time'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses.dart index eb13aefd..553e502d 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses.dart @@ -39,6 +39,8 @@ class UserStatusFindAllStatuses { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses_ocs.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses_ocs.dart index 2e2606ad..8d262c82 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_all_statuses_ocs.dart @@ -38,6 +38,8 @@ class UserStatusFindAllStatusesOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } _json[r'data'] = data; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status.dart index d2b060c3..eeed2caf 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status.dart @@ -39,6 +39,8 @@ class UserStatusFindStatus { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status_ocs.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status_ocs.dart index 42cd754a..1f3c6588 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_find_status_ocs.dart @@ -44,9 +44,13 @@ class UserStatusFindStatusOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } if (data != null) { _json[r'data'] = data; + } else { + _json[r'data'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status.dart index 74f2454f..7f2a3fa1 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status.dart @@ -39,6 +39,8 @@ class UserStatusGetUserStatus { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status_ocs.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status_ocs.dart index c06bcb4d..72bde174 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_get_user_status_ocs.dart @@ -44,9 +44,13 @@ class UserStatusGetUserStatusOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } if (data != null) { _json[r'data'] = data; + } else { + _json[r'data'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_heartbeat.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_heartbeat.dart index 5e8d002e..a212cb17 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_heartbeat.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_heartbeat.dart @@ -39,6 +39,8 @@ class UserStatusHeartbeat { final _json = {}; if (status != null) { _json[r'status'] = status; + } else { + _json[r'status'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_status.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_status.dart index a78c8aa7..9c9d301f 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_status.dart @@ -75,15 +75,23 @@ class UserStatusPredefinedStatus { final _json = {}; if (id != null) { _json[r'id'] = id; + } else { + _json[r'id'] = null; } if (icon != null) { _json[r'icon'] = icon; + } else { + _json[r'icon'] = null; } if (message != null) { _json[r'message'] = message; + } else { + _json[r'message'] = null; } if (clearAt != null) { _json[r'clearAt'] = clearAt; + } else { + _json[r'clearAt'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses.dart index a043dda2..f7f9ec10 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses.dart @@ -39,6 +39,8 @@ class UserStatusPredefinedStatuses { final _json = {}; if (ocs != null) { _json[r'ocs'] = ocs; + } else { + _json[r'ocs'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses_ocs.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses_ocs.dart index 84b04eb1..d96b59ae 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses_ocs.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_predefined_statuses_ocs.dart @@ -38,6 +38,8 @@ class UserStatusPredefinedStatusesOcs { final _json = {}; if (meta != null) { _json[r'meta'] = meta; + } else { + _json[r'meta'] = null; } _json[r'data'] = data; return _json; diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_public_user_status.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_public_user_status.dart index 58e6bb4c..9095db15 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_public_user_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_public_user_status.dart @@ -87,18 +87,28 @@ class UserStatusPublicUserStatus { final _json = {}; if (userId != null) { _json[r'userId'] = userId; + } else { + _json[r'userId'] = null; } if (message != null) { _json[r'message'] = message; + } else { + _json[r'message'] = null; } if (icon != null) { _json[r'icon'] = icon; + } else { + _json[r'icon'] = null; } if (clearAt != null) { _json[r'clearAt'] = clearAt; + } else { + _json[r'clearAt'] = null; } if (status != null) { _json[r'status'] = status; + } else { + _json[r'status'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_custom_message.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_custom_message.dart index 020a8de7..5643c618 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_custom_message.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_custom_message.dart @@ -64,12 +64,18 @@ class UserStatusSetCustomMessage { final _json = {}; if (statusIcon != null) { _json[r'statusIcon'] = statusIcon; + } else { + _json[r'statusIcon'] = null; } if (message != null) { _json[r'message'] = message; + } else { + _json[r'message'] = null; } if (clearAt != null) { _json[r'clearAt'] = clearAt; + } else { + _json[r'clearAt'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_predefined_message.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_predefined_message.dart index cd1bcc65..8f203c08 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_predefined_message.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_predefined_message.dart @@ -50,9 +50,13 @@ class UserStatusSetPredefinedMessage { final _json = {}; if (messageId != null) { _json[r'messageId'] = messageId; + } else { + _json[r'messageId'] = null; } if (clearAt != null) { _json[r'clearAt'] = clearAt; + } else { + _json[r'clearAt'] = null; } return _json; } diff --git a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_user_status.dart b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_user_status.dart index 8f3fbf6b..4f561dce 100644 --- a/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_user_status.dart +++ b/packages/nextcloud/lib/src/clients/generated/user_status/model/user_status_set_user_status.dart @@ -40,6 +40,8 @@ class UserStatusSetUserStatus { final _json = {}; if (statusType != null) { _json[r'statusType'] = statusType; + } else { + _json[r'statusType'] = null; } return _json; } diff --git a/packages/nextcloud/test/news_test.dart b/packages/nextcloud/test/news_test.dart index 47575747..18eb0738 100644 --- a/packages/nextcloud/test/news_test.dart +++ b/packages/nextcloud/test/news_test.dart @@ -39,6 +39,7 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listFeedsWithHttpInfo(), + cleanResponse: true, ))!; expect(response.starredCount, 0); expect(response.newestItemId, null); @@ -53,7 +54,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listFeedsWithHttpInfo(), - cleanResponse: true, ))!; expect(response.starredCount, 0); expect(response.newestItemId, isNotNull); @@ -67,7 +67,6 @@ Future main() async { var articlesResponse = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; expect(articlesResponse.items.length, greaterThan(0)); @@ -81,7 +80,6 @@ Future main() async { articlesResponse = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; expect(articlesResponse.items, hasLength(0)); }); @@ -90,7 +88,6 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(), - cleanResponse: true, ))!; expect(response.items, hasLength(0)); @@ -99,7 +96,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(), - cleanResponse: true, ))!; expect(response.items.length, greaterThan(0)); expect(response.items[0].body, isNotNull); @@ -119,7 +115,6 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(), - cleanResponse: true, ))!; final wikipediaArticles = response.items.length; expect(wikipediaArticles, greaterThan(0)); @@ -129,7 +124,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(), - cleanResponse: true, ))!; final nasaArticles = response.items.length - wikipediaArticles; expect(nasaArticles, greaterThan(0)); @@ -139,7 +133,6 @@ Future main() async { client.news.listUpdatedArticlesWithHttpInfo( lastModified: response.items[response.items.length - 1 - nasaArticles].lastModified, ), - cleanResponse: true, ))!; expect(response.items, hasLength(nasaArticles)); }); @@ -150,7 +143,6 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; final unreadArticles = response.items.length; expect(unreadArticles, greaterThan(0)); @@ -159,7 +151,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; expect(response.items, hasLength(unreadArticles - 1)); }); @@ -170,14 +161,12 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; final readArticle = response.items[0]; await client.news.markArticleAsRead(readArticle.id!); response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; final unreadArticles = response.items.length; expect(unreadArticles, greaterThan(0)); @@ -186,7 +175,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; expect(response.items, hasLength(unreadArticles + 1)); }); @@ -197,7 +185,6 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 2), - cleanResponse: true, ))!; final starredArticles = response.items.length; expect(starredArticles, 0); @@ -205,13 +192,11 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(), - cleanResponse: true, ))!; await client.news.starArticle(response.items[0].feedId!, response.items[0].guidHash!); response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 2), - cleanResponse: true, ))!; expect(response.items, hasLength(1)); }); @@ -222,7 +207,6 @@ Future main() async { var response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(), - cleanResponse: true, ))!; final item = response.items[0]; @@ -230,7 +214,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 2), - cleanResponse: true, ))!; expect(response.items, hasLength(1)); @@ -238,7 +221,6 @@ Future main() async { response = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 2), - cleanResponse: true, ))!; expect(response.items, hasLength(0)); }); @@ -316,7 +298,6 @@ Future main() async { var articlesResponse = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; expect(articlesResponse.items.length, greaterThan(0)); @@ -330,7 +311,6 @@ Future main() async { articlesResponse = (await validateResponse( client.news, client.news.listArticlesWithHttpInfo(type: 6), - cleanResponse: true, ))!; expect(articlesResponse.items, hasLength(0)); }); diff --git a/packages/nextcloud/test/user_status_test.dart b/packages/nextcloud/test/user_status_test.dart index ced5cc1c..23142d11 100644 --- a/packages/nextcloud/test/user_status_test.dart +++ b/packages/nextcloud/test/user_status_test.dart @@ -18,7 +18,6 @@ Future main() async { final response = (await validateResponse( client.userStatus, client.userStatus.findAllPredefinedStatusesWithHttpInfo(), - cleanResponse: true, ))!; expect(response.ocs!.data, hasLength(5)); @@ -56,7 +55,6 @@ Future main() async { final response = (await validateResponse( client.userStatus, client.userStatus.setStatusWithHttpInfo(UserStatusSetUserStatus(statusType: UserStatusTypeEnum.online)), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); @@ -76,12 +74,10 @@ Future main() async { await validateResponse( client.userStatus, client.userStatus.setStatusWithHttpInfo(UserStatusSetUserStatus(statusType: UserStatusTypeEnum.online)), - cleanResponse: true, ); final response = (await validateResponse( client.userStatus, client.userStatus.getStatusWithHttpInfo(), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); @@ -104,13 +100,11 @@ Future main() async { await validateResponse( client.userStatus, client.userStatus.setStatusWithHttpInfo(UserStatusSetUserStatus(statusType: UserStatusTypeEnum.online)), - cleanResponse: true, ); response = (await validateResponse( client.userStatus, client.userStatus.findAllStatusesWithHttpInfo(), - cleanResponse: true, ))!; expect(response.ocs!.data, hasLength(1)); expect(response.ocs!.data[0].userId, 'test'); @@ -125,13 +119,11 @@ Future main() async { await validateResponse( client.userStatus, client.userStatus.setStatusWithHttpInfo(UserStatusSetUserStatus(statusType: UserStatusTypeEnum.online)), - cleanResponse: true, ); final response = (await validateResponse( client.userStatus, client.userStatus.findStatusWithHttpInfo('test'), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); expect(response.ocs!.data!.message, null); @@ -150,7 +142,6 @@ Future main() async { clearAt: clearAt, ), ), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); @@ -174,7 +165,6 @@ Future main() async { clearAt: clearAt, ), ), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); @@ -198,14 +188,12 @@ Future main() async { clearAt: clearAt, ), ), - cleanResponse: true, ); await client.userStatus.clearMessage(); final response = (await validateResponse( client.userStatus, client.userStatus.getStatusWithHttpInfo(), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); expect(response.ocs!.data!.message, null); @@ -222,7 +210,6 @@ Future main() async { final response = (await validateResponse( client.userStatus, client.userStatus.getStatusWithHttpInfo(), - cleanResponse: true, ))!; expect(response.ocs!.data!.userId, 'test'); diff --git a/specs/provisioning_api.json b/specs/provisioning_api.json index fbc04697..c64169f8 100644 --- a/specs/provisioning_api.json +++ b/specs/provisioning_api.json @@ -188,6 +188,9 @@ "locale": { "type": "string" }, + "notify_email": { + "type": "string" + }, "backendCapabilities": { "type": "object", "properties": { From 67b404e04fe83a615d04b0c709d9e13dd4f69254 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 21 Jul 2022 14:29:22 +0200 Subject: [PATCH 2/2] nextcloud: Fix notes tests --- packages/nextcloud/test/notes_test.dart | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/nextcloud/test/notes_test.dart b/packages/nextcloud/test/notes_test.dart index eaf4dd49..dbdbfcee 100644 --- a/packages/nextcloud/test/notes_test.dart +++ b/packages/nextcloud/test/notes_test.dart @@ -74,7 +74,13 @@ Future main() async { .id!; await validateResponse( client.notes, - client.notes.updateNoteWithHttpInfo(id, NotesNote(title: 'b')), + client.notes.updateNoteWithHttpInfo( + id, + NotesNote( + id: id, + title: 'b', + ), + ), ); final response = (await validateResponse( @@ -94,7 +100,10 @@ Future main() async { client.notes, client.notes.updateNoteWithHttpInfo( response.id!, - NotesNote(title: 'b'), + NotesNote( + id: response.id!, + title: 'b', + ), ifMatch: '"${response.etag}"', ), ); @@ -104,7 +113,10 @@ Future main() async { client.notes, client.notes.updateNoteWithHttpInfo( response.id!, - NotesNote(title: 'c'), + NotesNote( + id: response.id!, + title: 'c', + ), ifMatch: '"${response.etag}"', ), ),