From d6a9604b534af203d930e4941b659e9af0705005 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 5 Aug 2023 10:33:35 +0200 Subject: [PATCH] fix(nextcloud): Fix exported clients --- packages/nextcloud/lib/nextcloud.dart | 3 +++ packages/nextcloud/lib/src/client.dart | 21 +++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/packages/nextcloud/lib/nextcloud.dart b/packages/nextcloud/lib/nextcloud.dart index 56e91d55..ecd4f1d2 100644 --- a/packages/nextcloud/lib/nextcloud.dart +++ b/packages/nextcloud/lib/nextcloud.dart @@ -1,10 +1,13 @@ export 'package:crypton/crypton.dart' show RSAKeypair, RSAPrivateKey, RSAPublicKey; export 'src/api/core.openapi.dart'; +export 'src/api/files_sharing.openapi.dart'; export 'src/api/news.openapi.dart'; export 'src/api/notes.openapi.dart'; export 'src/api/notifications.openapi.dart'; export 'src/api/provisioning_api.openapi.dart'; +export 'src/api/settings.openapi.dart'; +export 'src/api/theming.openapi.dart'; export 'src/api/uppush.openapi.dart'; export 'src/api/user_status.openapi.dart'; export 'src/app_type.dart'; diff --git a/packages/nextcloud/lib/src/client.dart b/packages/nextcloud/lib/src/client.dart index 59c77caf..bfd3e2f6 100644 --- a/packages/nextcloud/lib/src/client.dart +++ b/packages/nextcloud/lib/src/client.dart @@ -2,6 +2,7 @@ import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/content_string.dart'; import 'package:nextcloud/src/api/core.openapi.dart'; +import 'package:nextcloud/src/api/files_sharing.openapi.dart'; import 'package:nextcloud/src/api/news.openapi.dart'; import 'package:nextcloud/src/api/notes.openapi.dart'; import 'package:nextcloud/src/api/notifications.openapi.dart'; @@ -51,14 +52,15 @@ class NextcloudClient extends DynamiteClient { WebDavClient? _webdav; CoreClient? _core; + FilesSharingClient? _filesSharing; NewsClient? _news; NotesClient? _notes; NotificationsClient? _notifications; ProvisioningApiClient? _provisioningApi; - UppushClient? _uppush; - UserStatusClient? _userStatus; SettingsClient? _settings; ThemingClient? _theming; + UppushClient? _uppush; + UserStatusClient? _userStatus; /// Client for WebDAV WebDavClient get webdav => _webdav ??= WebDavClient(this); @@ -66,6 +68,9 @@ class NextcloudClient extends DynamiteClient { /// Client for the core APIs CoreClient get core => _core ??= CoreClient.fromClient(this); + /// Client for the files sharing APIs + FilesSharingClient get filesSharing => _filesSharing ??= FilesSharingClient.fromClient(this); + /// Client for the news app APIs NewsClient get news => _news ??= NewsClient.fromClient(this); @@ -78,17 +83,17 @@ class NextcloudClient extends DynamiteClient { /// Client for the provisioning APIs ProvisioningApiClient get provisioningApi => _provisioningApi ??= ProvisioningApiClient.fromClient(this); - /// Client for the uppush app APIs - UppushClient get uppush => _uppush ??= UppushClient.fromClient(this); - - /// Client for the user status APIs - UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this); - /// Client for the settings APIs SettingsClient get settings => _settings ??= SettingsClient.fromClient(this); /// Client for the theming APIs ThemingClient get theming => _theming ??= ThemingClient.fromClient(this); + + /// Client for the uppush app APIs + UppushClient get uppush => _uppush ??= UppushClient.fromClient(this); + + /// Client for the user status APIs + UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this); } // ignore: public_member_api_docs