Browse Source

Update nextcloud server and notifications to 27.0.0

pull/396/head
jld3103 2 years ago
parent
commit
af3a5085bc
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      external/nextcloud-notifications
  2. 2
      external/nextcloud-server
  3. 2
      packages/neon/neon/lib/src/widgets/account_tile.dart
  4. 6
      packages/nextcloud/lib/src/helpers.dart
  5. 5
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  6. 62
      packages/nextcloud/lib/src/nextcloud.openapi.g.dart
  7. 7
      packages/nextcloud/lib/src/nextcloud.openapi.json
  8. 2
      packages/nextcloud/lib/src/version_supported.dart
  9. 5
      packages/nextcloud/test/provisioning_api.dart
  10. 6
      packages/nextcloud/test/webdav.dart
  11. 5
      specs/core.json
  12. 2
      specs/notifications.json
  13. 4
      specs/provisioning_api.json
  14. 2
      specs/templates/appinfo_core.xml
  15. 2
      specs/templates/core.json
  16. 2
      specs/templates/notifications.json
  17. 10
      specs/templates/provisioning_api.json
  18. 32
      specs/templates/user_status.json
  19. 2
      specs/user_status.json
  20. 2
      tool/Dockerfile.dev

2
external/nextcloud-notifications vendored

@ -1 +1 @@
Subproject commit 69069071ff7a5775ddb06418f55f39593afdbbb1 Subproject commit 09d3a1c9abcdd1c0ec4d8531907b56ac9f368666

2
external/nextcloud-server vendored

@ -1 +1 @@
Subproject commit 8cfcb8e2a2f9ba1bbe993161f00d7dcebf07708f Subproject commit add4e4365a4040d2e4e6aa79c0d03c3edd78583c

2
packages/neon/neon/lib/src/widgets/account_tile.dart

@ -43,7 +43,7 @@ class NeonAccountTile extends StatelessWidget {
if (userDetails.data != null) ...[ if (userDetails.data != null) ...[
Flexible( Flexible(
child: Text( child: Text(
userDetails.data!.getDisplayName()!, userDetails.data!.displayname,
style: Theme.of(context).textTheme.bodyLarge!.copyWith( style: Theme.of(context).textTheme.bodyLarge!.copyWith(
color: textColor, color: textColor,
), ),

6
packages/nextcloud/lib/src/helpers.dart

@ -14,12 +14,6 @@ NextcloudNotificationsNotificationDecryptedSubject decryptPushNotificationSubjec
json.decode(privateKey.decrypt(subject)) as Map<String, dynamic>, json.decode(privateKey.decrypt(subject)) as Map<String, dynamic>,
); );
extension UserDetailsDisplayName on openapi.NextcloudProvisioningApiUserDetails {
/// This is used to work around an API change that wasn't made for every endpoint
/// See https://github.com/nextcloud/server/commit/5086335643b6181284ee50f57b95525002842992
String? getDisplayName() => displayname ?? displayName;
}
/// See https://github.com/nextcloud/news/blob/4a107b3d53c4fe651ac704251b99e04a53cd587f/lib/Db/ListType.php /// See https://github.com/nextcloud/news/blob/4a107b3d53c4fe651ac704251b99e04a53cd587f/lib/Db/ListType.php
enum NewsListType { enum NewsListType {
feed(0), feed(0),

5
packages/nextcloud/lib/src/nextcloud.openapi.dart

@ -3196,6 +3196,7 @@ abstract class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
jsonSerializers.deserializeWith(serializer, json)!; jsonSerializers.deserializeWith(serializer, json)!;
Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
bool? get restore;
bool? get enabled; bool? get enabled;
@BuiltValueField(wireName: 'supports_emoji') @BuiltValueField(wireName: 'supports_emoji')
bool? get supportsEmoji; bool? get supportsEmoji;
@ -4015,7 +4016,7 @@ abstract class NextcloudProvisioningApiUserDetails
BuiltList<String> get additionalMail; BuiltList<String> get additionalMail;
@BuiltValueField(wireName: 'additional_mailScope') @BuiltValueField(wireName: 'additional_mailScope')
BuiltList<String> get additionalMailScope; BuiltList<String> get additionalMailScope;
String? get displayname; String get displayname;
String get displaynameScope; String get displaynameScope;
String get phone; String get phone;
String get phoneScope; String get phoneScope;
@ -4046,7 +4047,7 @@ abstract class NextcloudProvisioningApiUserDetails
String? get notifyEmail; String? get notifyEmail;
NextcloudProvisioningApiUserDetails_BackendCapabilities get backendCapabilities; NextcloudProvisioningApiUserDetails_BackendCapabilities get backendCapabilities;
@BuiltValueField(wireName: 'display-name') @BuiltValueField(wireName: 'display-name')
String? get displayName; String get displayName;
static Serializer<NextcloudProvisioningApiUserDetails> get serializer => static Serializer<NextcloudProvisioningApiUserDetails> get serializer =>
_$nextcloudProvisioningApiUserDetailsSerializer; _$nextcloudProvisioningApiUserDetailsSerializer;
} }

62
packages/nextcloud/lib/src/nextcloud.openapi.g.dart

@ -3757,6 +3757,12 @@ class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusSerializ
{FullType specifiedType = FullType.unspecified}) { {FullType specifiedType = FullType.unspecified}) {
final result = <Object?>[]; final result = <Object?>[];
Object? value; Object? value;
value = object.restore;
if (value != null) {
result
..add('restore')
..add(serializers.serialize(value, specifiedType: const FullType(bool)));
}
value = object.enabled; value = object.enabled;
if (value != null) { if (value != null) {
result result
@ -3784,6 +3790,9 @@ class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusSerializ
iterator.moveNext(); iterator.moveNext();
final Object? value = iterator.current; final Object? value = iterator.current;
switch (key) { switch (key) {
case 'restore':
result.restore = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?;
break;
case 'enabled': case 'enabled':
result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; result.enabled = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?;
break; break;
@ -6109,6 +6118,8 @@ class _$NextcloudProvisioningApiUserDetailsSerializer
serializers.serialize(object.additionalMail, specifiedType: const FullType(BuiltList, [FullType(String)])), serializers.serialize(object.additionalMail, specifiedType: const FullType(BuiltList, [FullType(String)])),
'additional_mailScope', 'additional_mailScope',
serializers.serialize(object.additionalMailScope, specifiedType: const FullType(BuiltList, [FullType(String)])), serializers.serialize(object.additionalMailScope, specifiedType: const FullType(BuiltList, [FullType(String)])),
'displayname',
serializers.serialize(object.displayname, specifiedType: const FullType(String)),
'displaynameScope', 'displaynameScope',
serializers.serialize(object.displaynameScope, specifiedType: const FullType(String)), serializers.serialize(object.displaynameScope, specifiedType: const FullType(String)),
'phone', 'phone',
@ -6160,6 +6171,8 @@ class _$NextcloudProvisioningApiUserDetailsSerializer
'backendCapabilities', 'backendCapabilities',
serializers.serialize(object.backendCapabilities, serializers.serialize(object.backendCapabilities,
specifiedType: const FullType(NextcloudProvisioningApiUserDetails_BackendCapabilities)), specifiedType: const FullType(NextcloudProvisioningApiUserDetails_BackendCapabilities)),
'display-name',
serializers.serialize(object.displayName, specifiedType: const FullType(String)),
]; ];
Object? value; Object? value;
value = object.enabled; value = object.enabled;
@ -6180,24 +6193,12 @@ class _$NextcloudProvisioningApiUserDetailsSerializer
..add('email') ..add('email')
..add(serializers.serialize(value, specifiedType: const FullType(String))); ..add(serializers.serialize(value, specifiedType: const FullType(String)));
} }
value = object.displayname;
if (value != null) {
result
..add('displayname')
..add(serializers.serialize(value, specifiedType: const FullType(String)));
}
value = object.notifyEmail; value = object.notifyEmail;
if (value != null) { if (value != null) {
result result
..add('notify_email') ..add('notify_email')
..add(serializers.serialize(value, specifiedType: const FullType(String))); ..add(serializers.serialize(value, specifiedType: const FullType(String)));
} }
value = object.displayName;
if (value != null) {
result
..add('display-name')
..add(serializers.serialize(value, specifiedType: const FullType(String)));
}
return result; return result;
} }
@ -6254,7 +6255,7 @@ class _$NextcloudProvisioningApiUserDetailsSerializer
specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList<Object?>); specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList<Object?>);
break; break;
case 'displayname': case 'displayname':
result.displayname = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; result.displayname = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
break; break;
case 'displaynameScope': case 'displaynameScope':
result.displaynameScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String; result.displaynameScope = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
@ -6338,7 +6339,7 @@ class _$NextcloudProvisioningApiUserDetailsSerializer
as NextcloudProvisioningApiUserDetails_BackendCapabilities); as NextcloudProvisioningApiUserDetails_BackendCapabilities);
break; break;
case 'display-name': case 'display-name':
result.displayName = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; result.displayName = serializers.deserialize(value, specifiedType: const FullType(String))! as String;
break; break;
} }
} }
@ -13537,6 +13538,8 @@ class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_ThemingBuilder
class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus { extends NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus {
@override @override
final bool? restore;
@override
final bool? enabled; final bool? enabled;
@override @override
final bool? supportsEmoji; final bool? supportsEmoji;
@ -13545,7 +13548,8 @@ class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
[void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder)? updates]) => [void Function(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder)? updates]) =>
(NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder()..update(updates))._build(); (NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder()..update(updates))._build();
_$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._({this.enabled, this.supportsEmoji}) : super._(); _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._({this.restore, this.enabled, this.supportsEmoji})
: super._();
@override @override
NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus rebuild( NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus rebuild(
@ -13560,6 +13564,7 @@ class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
bool operator ==(Object other) { bool operator ==(Object other) {
if (identical(other, this)) return true; if (identical(other, this)) return true;
return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus && return other is NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus &&
restore == other.restore &&
enabled == other.enabled && enabled == other.enabled &&
supportsEmoji == other.supportsEmoji; supportsEmoji == other.supportsEmoji;
} }
@ -13567,6 +13572,7 @@ class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
@override @override
int get hashCode { int get hashCode {
var _$hash = 0; var _$hash = 0;
_$hash = $jc(_$hash, restore.hashCode);
_$hash = $jc(_$hash, enabled.hashCode); _$hash = $jc(_$hash, enabled.hashCode);
_$hash = $jc(_$hash, supportsEmoji.hashCode); _$hash = $jc(_$hash, supportsEmoji.hashCode);
_$hash = $jf(_$hash); _$hash = $jf(_$hash);
@ -13576,6 +13582,7 @@ class _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
@override @override
String toString() { String toString() {
return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus') return (newBuiltValueToStringHelper(r'NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus')
..add('restore', restore)
..add('enabled', enabled) ..add('enabled', enabled)
..add('supportsEmoji', supportsEmoji)) ..add('supportsEmoji', supportsEmoji))
.toString(); .toString();
@ -13588,6 +13595,10 @@ class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder
NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder> { NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder> {
_$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? _$v; _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus? _$v;
bool? _restore;
bool? get restore => _$this._restore;
set restore(bool? restore) => _$this._restore = restore;
bool? _enabled; bool? _enabled;
bool? get enabled => _$this._enabled; bool? get enabled => _$this._enabled;
set enabled(bool? enabled) => _$this._enabled = enabled; set enabled(bool? enabled) => _$this._enabled = enabled;
@ -13601,6 +13612,7 @@ class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder
NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder get _$this { NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder get _$this {
final $v = _$v; final $v = _$v;
if ($v != null) { if ($v != null) {
_restore = $v.restore;
_enabled = $v.enabled; _enabled = $v.enabled;
_supportsEmoji = $v.supportsEmoji; _supportsEmoji = $v.supportsEmoji;
_$v = null; _$v = null;
@ -13625,7 +13637,7 @@ class NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatusBuilder
_$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus _build() { _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus _build() {
final _$result = _$v ?? final _$result = _$v ??
_$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._( _$NextcloudCoreServerCapabilities_Ocs_Data_Capabilities_UserStatus._(
enabled: enabled, supportsEmoji: supportsEmoji); restore: restore, enabled: enabled, supportsEmoji: supportsEmoji);
replace(_$result); replace(_$result);
return _$result; return _$result;
} }
@ -18682,7 +18694,7 @@ class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUser
@override @override
final BuiltList<String> additionalMailScope; final BuiltList<String> additionalMailScope;
@override @override
final String? displayname; final String displayname;
@override @override
final String displaynameScope; final String displaynameScope;
@override @override
@ -18736,7 +18748,7 @@ class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUser
@override @override
final NextcloudProvisioningApiUserDetails_BackendCapabilities backendCapabilities; final NextcloudProvisioningApiUserDetails_BackendCapabilities backendCapabilities;
@override @override
final String? displayName; final String displayName;
factory _$NextcloudProvisioningApiUserDetails([void Function(NextcloudProvisioningApiUserDetailsBuilder)? updates]) => factory _$NextcloudProvisioningApiUserDetails([void Function(NextcloudProvisioningApiUserDetailsBuilder)? updates]) =>
(NextcloudProvisioningApiUserDetailsBuilder()..update(updates))._build(); (NextcloudProvisioningApiUserDetailsBuilder()..update(updates))._build();
@ -18754,7 +18766,7 @@ class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUser
required this.emailScope, required this.emailScope,
required this.additionalMail, required this.additionalMail,
required this.additionalMailScope, required this.additionalMailScope,
this.displayname, required this.displayname,
required this.displaynameScope, required this.displaynameScope,
required this.phone, required this.phone,
required this.phoneScope, required this.phoneScope,
@ -18781,7 +18793,7 @@ class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUser
required this.locale, required this.locale,
this.notifyEmail, this.notifyEmail,
required this.backendCapabilities, required this.backendCapabilities,
this.displayName}) required this.displayName})
: super._() { : super._() {
BuiltValueNullFieldError.checkNotNull(id, r'NextcloudProvisioningApiUserDetails', 'id'); BuiltValueNullFieldError.checkNotNull(id, r'NextcloudProvisioningApiUserDetails', 'id');
BuiltValueNullFieldError.checkNotNull(lastLogin, r'NextcloudProvisioningApiUserDetails', 'lastLogin'); BuiltValueNullFieldError.checkNotNull(lastLogin, r'NextcloudProvisioningApiUserDetails', 'lastLogin');
@ -18793,6 +18805,7 @@ class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUser
BuiltValueNullFieldError.checkNotNull(additionalMail, r'NextcloudProvisioningApiUserDetails', 'additionalMail'); BuiltValueNullFieldError.checkNotNull(additionalMail, r'NextcloudProvisioningApiUserDetails', 'additionalMail');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
additionalMailScope, r'NextcloudProvisioningApiUserDetails', 'additionalMailScope'); additionalMailScope, r'NextcloudProvisioningApiUserDetails', 'additionalMailScope');
BuiltValueNullFieldError.checkNotNull(displayname, r'NextcloudProvisioningApiUserDetails', 'displayname');
BuiltValueNullFieldError.checkNotNull(displaynameScope, r'NextcloudProvisioningApiUserDetails', 'displaynameScope'); BuiltValueNullFieldError.checkNotNull(displaynameScope, r'NextcloudProvisioningApiUserDetails', 'displaynameScope');
BuiltValueNullFieldError.checkNotNull(phone, r'NextcloudProvisioningApiUserDetails', 'phone'); BuiltValueNullFieldError.checkNotNull(phone, r'NextcloudProvisioningApiUserDetails', 'phone');
BuiltValueNullFieldError.checkNotNull(phoneScope, r'NextcloudProvisioningApiUserDetails', 'phoneScope'); BuiltValueNullFieldError.checkNotNull(phoneScope, r'NextcloudProvisioningApiUserDetails', 'phoneScope');
@ -18821,6 +18834,7 @@ class _$NextcloudProvisioningApiUserDetails extends NextcloudProvisioningApiUser
BuiltValueNullFieldError.checkNotNull(locale, r'NextcloudProvisioningApiUserDetails', 'locale'); BuiltValueNullFieldError.checkNotNull(locale, r'NextcloudProvisioningApiUserDetails', 'locale');
BuiltValueNullFieldError.checkNotNull( BuiltValueNullFieldError.checkNotNull(
backendCapabilities, r'NextcloudProvisioningApiUserDetails', 'backendCapabilities'); backendCapabilities, r'NextcloudProvisioningApiUserDetails', 'backendCapabilities');
BuiltValueNullFieldError.checkNotNull(displayName, r'NextcloudProvisioningApiUserDetails', 'displayName');
} }
@override @override
@ -19223,7 +19237,8 @@ class NextcloudProvisioningApiUserDetailsBuilder
emailScope, r'NextcloudProvisioningApiUserDetails', 'emailScope'), emailScope, r'NextcloudProvisioningApiUserDetails', 'emailScope'),
additionalMail: additionalMail.build(), additionalMail: additionalMail.build(),
additionalMailScope: additionalMailScope.build(), additionalMailScope: additionalMailScope.build(),
displayname: displayname, displayname: BuiltValueNullFieldError.checkNotNull(
displayname, r'NextcloudProvisioningApiUserDetails', 'displayname'),
displaynameScope: BuiltValueNullFieldError.checkNotNull( displaynameScope: BuiltValueNullFieldError.checkNotNull(
displaynameScope, r'NextcloudProvisioningApiUserDetails', 'displaynameScope'), displaynameScope, r'NextcloudProvisioningApiUserDetails', 'displaynameScope'),
phone: BuiltValueNullFieldError.checkNotNull(phone, r'NextcloudProvisioningApiUserDetails', 'phone'), phone: BuiltValueNullFieldError.checkNotNull(phone, r'NextcloudProvisioningApiUserDetails', 'phone'),
@ -19243,8 +19258,7 @@ class NextcloudProvisioningApiUserDetailsBuilder
twitterScope, r'NextcloudProvisioningApiUserDetails', 'twitterScope'), twitterScope, r'NextcloudProvisioningApiUserDetails', 'twitterScope'),
organisation: BuiltValueNullFieldError.checkNotNull( organisation: BuiltValueNullFieldError.checkNotNull(
organisation, r'NextcloudProvisioningApiUserDetails', 'organisation'), organisation, r'NextcloudProvisioningApiUserDetails', 'organisation'),
organisationScope: BuiltValueNullFieldError.checkNotNull( organisationScope: BuiltValueNullFieldError.checkNotNull(organisationScope, r'NextcloudProvisioningApiUserDetails', 'organisationScope'),
organisationScope, r'NextcloudProvisioningApiUserDetails', 'organisationScope'),
role: BuiltValueNullFieldError.checkNotNull(role, r'NextcloudProvisioningApiUserDetails', 'role'), role: BuiltValueNullFieldError.checkNotNull(role, r'NextcloudProvisioningApiUserDetails', 'role'),
roleScope: BuiltValueNullFieldError.checkNotNull(roleScope, r'NextcloudProvisioningApiUserDetails', 'roleScope'), roleScope: BuiltValueNullFieldError.checkNotNull(roleScope, r'NextcloudProvisioningApiUserDetails', 'roleScope'),
headline: BuiltValueNullFieldError.checkNotNull(headline, r'NextcloudProvisioningApiUserDetails', 'headline'), headline: BuiltValueNullFieldError.checkNotNull(headline, r'NextcloudProvisioningApiUserDetails', 'headline'),
@ -19260,7 +19274,7 @@ class NextcloudProvisioningApiUserDetailsBuilder
locale: BuiltValueNullFieldError.checkNotNull(locale, r'NextcloudProvisioningApiUserDetails', 'locale'), locale: BuiltValueNullFieldError.checkNotNull(locale, r'NextcloudProvisioningApiUserDetails', 'locale'),
notifyEmail: notifyEmail, notifyEmail: notifyEmail,
backendCapabilities: backendCapabilities.build(), backendCapabilities: backendCapabilities.build(),
displayName: displayName); displayName: BuiltValueNullFieldError.checkNotNull(displayName, r'NextcloudProvisioningApiUserDetails', 'displayName'));
} catch (_) { } catch (_) {
late String _$failedField; late String _$failedField;
try { try {

7
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Nextcloud", "title": "Nextcloud",
"version": "26.0.1", "version": "27.0.0",
"description": "All supported Nextcloud APIs in one", "description": "All supported Nextcloud APIs in one",
"license": { "license": {
"name": "agpl", "name": "agpl",
@ -755,6 +755,9 @@
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"properties": { "properties": {
"restore": {
"type": "boolean"
},
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
}, },
@ -1507,6 +1510,8 @@
"emailScope", "emailScope",
"additional_mail", "additional_mail",
"additional_mailScope", "additional_mailScope",
"display-name",
"displayname",
"displaynameScope", "displaynameScope",
"phone", "phone",
"phoneScope", "phoneScope",

2
packages/nextcloud/lib/src/version_supported.dart

@ -1,7 +1,7 @@
part of '../nextcloud.dart'; part of '../nextcloud.dart';
/// Version of core/Server supported /// Version of core/Server supported
const coreSupportedVersion = 26; const coreSupportedVersion = 27;
/// API version of the news app supported /// API version of the news app supported
const newsSupportedVersion = 'v1-3'; const newsSupportedVersion = 'v1-3';

5
packages/nextcloud/test/provisioning_api.dart

@ -1,4 +1,3 @@
import 'package:nextcloud/nextcloud.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'helper.dart'; import 'helper.dart';
@ -20,7 +19,7 @@ Future run(final DockerImage image) async {
test('Get current user', () async { test('Get current user', () async {
final user = await client.provisioningApi.getCurrentUser(); final user = await client.provisioningApi.getCurrentUser();
expect(user.ocs.data.id, 'user1'); expect(user.ocs.data.id, 'user1');
expect(user.ocs.data.getDisplayName(), 'User One'); expect(user.ocs.data.displayname, 'User One');
expect(user.ocs.data.displaynameScope, 'v2-federated'); expect(user.ocs.data.displaynameScope, 'v2-federated');
expect(user.ocs.data.language, 'en'); expect(user.ocs.data.language, 'en');
}); });
@ -28,7 +27,7 @@ Future run(final DockerImage image) async {
test('Get user by username', () async { test('Get user by username', () async {
final user = await client.provisioningApi.getUser(userId: 'user1'); final user = await client.provisioningApi.getUser(userId: 'user1');
expect(user.ocs.data.id, 'user1'); expect(user.ocs.data.id, 'user1');
expect(user.ocs.data.getDisplayName(), 'User One'); expect(user.ocs.data.displayname, 'User One');
expect(user.ocs.data.displaynameScope, 'v2-federated'); expect(user.ocs.data.displaynameScope, 'v2-federated');
expect(user.ocs.data.language, 'en'); expect(user.ocs.data.language, 'en');
}); });

6
packages/nextcloud/test/webdav.dart

@ -47,7 +47,7 @@ Future run(final DockerImage image) async {
), ),
)) ))
.responses; .responses;
expect(responses, hasLength(9)); expect(responses, hasLength(10));
final props = final props =
responses.singleWhere((final response) => response.href!.endsWith('/Nextcloud.png')).propstats.first.prop; responses.singleWhere((final response) => response.href!.endsWith('/Nextcloud.png')).propstats.first.prop;
expect(props.nchaspreview, isTrue); expect(props.nchaspreview, isTrue);
@ -62,7 +62,7 @@ Future run(final DockerImage image) async {
depth: 'infinity', depth: 'infinity',
)) ))
.responses; .responses;
expect(responses, hasLength(37)); expect(responses, hasLength(48));
}); });
test('Create directory', () async { test('Create directory', () async {
@ -96,7 +96,7 @@ Future run(final DockerImage image) async {
), ),
)) ))
.responses; .responses;
expect(responses, hasLength(11)); expect(responses, hasLength(12));
expect( expect(
responses.singleWhere((final response) => response.href!.endsWith('/test.png')).propstats.first.prop.ocsize, responses.singleWhere((final response) => response.href!.endsWith('/test.png')).propstats.first.prop.ocsize,
pngBytes.lengthInBytes, pngBytes.lengthInBytes,

5
specs/core.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Core", "title": "Core",
"version": "26.0.1", "version": "27.0.0",
"description": "Core functionality of Nextcloud", "description": "Core functionality of Nextcloud",
"license": { "license": {
"name": "agpl", "name": "agpl",
@ -755,6 +755,9 @@
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"properties": { "properties": {
"restore": {
"type": "boolean"
},
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
}, },

2
specs/notifications.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Notifications", "title": "Notifications",
"version": "2.14.0", "version": "2.15.0",
"description": "This app provides a backend and frontend for the notification API available in Nextcloud.", "description": "This app provides a backend and frontend for the notification API available in Nextcloud.",
"license": { "license": {
"name": "agpl", "name": "agpl",

4
specs/provisioning_api.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Provisioning API", "title": "Provisioning API",
"version": "1.16.0", "version": "1.17.0",
"description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.", "description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.",
"license": { "license": {
"name": "agpl", "name": "agpl",
@ -112,6 +112,8 @@
"emailScope", "emailScope",
"additional_mail", "additional_mail",
"additional_mailScope", "additional_mailScope",
"display-name",
"displayname",
"displaynameScope", "displaynameScope",
"phone", "phone",
"phoneScope", "phoneScope",

2
specs/templates/appinfo_core.xml

@ -4,6 +4,6 @@
<name>Core</name> <name>Core</name>
<summary>Core functionality of Nextcloud</summary> <summary>Core functionality of Nextcloud</summary>
<description><![CDATA[Core functionality of Nextcloud]]></description> <description><![CDATA[Core functionality of Nextcloud]]></description>
<version>26.0.1</version> <version>27.0.0</version>
<licence>agpl</licence> <licence>agpl</licence>
</info> </info>

2
specs/templates/core.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Core", "title": "Core",
"version": "26.0.1", "version": "27.0.0",
"description": "Core functionality of Nextcloud", "description": "Core functionality of Nextcloud",
"license": { "license": {
"name": "agpl", "name": "agpl",

2
specs/templates/notifications.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Notifications", "title": "Notifications",
"version": "2.14.0", "version": "2.15.0",
"description": "This app provides a backend and frontend for the notification API available in Nextcloud.", "description": "This app provides a backend and frontend for the notification API available in Nextcloud.",
"license": { "license": {
"name": "agpl", "name": "agpl",

10
specs/templates/provisioning_api.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Provisioning API", "title": "Provisioning API",
"version": "1.16.0", "version": "1.17.0",
"description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.", "description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.",
"license": { "license": {
"name": "agpl", "name": "agpl",
@ -562,6 +562,14 @@
"type": "string", "type": "string",
"default": "" "default": ""
} }
},
{
"name": "manager",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
} }
], ],
"responses": { "responses": {

32
specs/templates/user_status.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "User status", "title": "User status",
"version": "1.6.0", "version": "1.7.0",
"description": "User status", "description": "User status",
"license": { "license": {
"name": "agpl", "name": "agpl",
@ -232,6 +232,36 @@
} }
} }
}, },
"/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}": {
"parameters": [
{
"name": "messageId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"delete": {
"operationId": "userstatus-revertstatus-TODO",
"tags": [
"user_status"
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/ocs/v2.php/apps/user_status/api/v1/predefined_statuses": { "/ocs/v2.php/apps/user_status/api/v1/predefined_statuses": {
"get": { "get": {
"operationId": "predefinedstatus-findall-TODO", "operationId": "predefinedstatus-findall-TODO",

2
specs/user_status.json

@ -2,7 +2,7 @@
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "User status", "title": "User status",
"version": "1.6.0", "version": "1.7.0",
"description": "User status", "description": "User status",
"license": { "license": {
"name": "agpl", "name": "agpl",

2
tool/Dockerfile.dev

@ -1,4 +1,4 @@
FROM nextcloud:26.0.1 FROM nextcloud:27.0.0
WORKDIR /usr/src/nextcloud WORKDIR /usr/src/nextcloud
RUN chown -R www-data:www-data . RUN chown -R www-data:www-data .
USER www-data USER www-data

Loading…
Cancel
Save