Skip to content

Commit

Permalink
fix(nextcloud): Fix exported clients
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin committed Aug 5, 2023
1 parent e78054c commit d6a9604
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/nextcloud/lib/nextcloud.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
21 changes: 13 additions & 8 deletions packages/nextcloud/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -51,21 +52,25 @@ 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);

/// 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);

Expand All @@ -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
Expand Down

0 comments on commit d6a9604

Please sign in to comment.