Browse Source

Merge pull request #529 from provokateurin/fix/exported-clients

fix(nextcloud): Fix exported clients
pull/530/head
Kate 1 year ago committed by GitHub
parent
commit
a75eecf2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nextcloud/lib/nextcloud.dart
  2. 21
      packages/nextcloud/lib/src/client.dart

3
packages/nextcloud/lib/nextcloud.dart

@ -1,10 +1,13 @@
export 'package:crypton/crypton.dart' show RSAKeypair, RSAPrivateKey, RSAPublicKey; export 'package:crypton/crypton.dart' show RSAKeypair, RSAPrivateKey, RSAPublicKey;
export 'src/api/core.openapi.dart'; export 'src/api/core.openapi.dart';
export 'src/api/files_sharing.openapi.dart';
export 'src/api/news.openapi.dart'; export 'src/api/news.openapi.dart';
export 'src/api/notes.openapi.dart'; export 'src/api/notes.openapi.dart';
export 'src/api/notifications.openapi.dart'; export 'src/api/notifications.openapi.dart';
export 'src/api/provisioning_api.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/uppush.openapi.dart';
export 'src/api/user_status.openapi.dart'; export 'src/api/user_status.openapi.dart';
export 'src/app_type.dart'; export 'src/app_type.dart';

21
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:built_value/standard_json_plugin.dart';
import 'package:dynamite_runtime/content_string.dart'; import 'package:dynamite_runtime/content_string.dart';
import 'package:nextcloud/src/api/core.openapi.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/news.openapi.dart';
import 'package:nextcloud/src/api/notes.openapi.dart'; import 'package:nextcloud/src/api/notes.openapi.dart';
import 'package:nextcloud/src/api/notifications.openapi.dart'; import 'package:nextcloud/src/api/notifications.openapi.dart';
@ -51,14 +52,15 @@ class NextcloudClient extends DynamiteClient {
WebDavClient? _webdav; WebDavClient? _webdav;
CoreClient? _core; CoreClient? _core;
FilesSharingClient? _filesSharing;
NewsClient? _news; NewsClient? _news;
NotesClient? _notes; NotesClient? _notes;
NotificationsClient? _notifications; NotificationsClient? _notifications;
ProvisioningApiClient? _provisioningApi; ProvisioningApiClient? _provisioningApi;
UppushClient? _uppush;
UserStatusClient? _userStatus;
SettingsClient? _settings; SettingsClient? _settings;
ThemingClient? _theming; ThemingClient? _theming;
UppushClient? _uppush;
UserStatusClient? _userStatus;
/// Client for WebDAV /// Client for WebDAV
WebDavClient get webdav => _webdav ??= WebDavClient(this); WebDavClient get webdav => _webdav ??= WebDavClient(this);
@ -66,6 +68,9 @@ class NextcloudClient extends DynamiteClient {
/// Client for the core APIs /// Client for the core APIs
CoreClient get core => _core ??= CoreClient.fromClient(this); 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 /// Client for the news app APIs
NewsClient get news => _news ??= NewsClient.fromClient(this); NewsClient get news => _news ??= NewsClient.fromClient(this);
@ -78,17 +83,17 @@ class NextcloudClient extends DynamiteClient {
/// Client for the provisioning APIs /// Client for the provisioning APIs
ProvisioningApiClient get provisioningApi => _provisioningApi ??= ProvisioningApiClient.fromClient(this); 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 /// Client for the settings APIs
SettingsClient get settings => _settings ??= SettingsClient.fromClient(this); SettingsClient get settings => _settings ??= SettingsClient.fromClient(this);
/// Client for the theming APIs /// Client for the theming APIs
ThemingClient get theming => _theming ??= ThemingClient.fromClient(this); 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 // ignore: public_member_api_docs

Loading…
Cancel
Save