Browse Source

Merge pull request #533 from provokateurin/fix/coverage

Fix/coverage
pull/536/head
Kate 1 year ago committed by GitHub
parent
commit
9a42bdb3a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 33
      packages/dynamite/dynamite/lib/src/openapi_builder.dart
  2. 989
      packages/nextcloud/lib/src/api/core.openapi.dart
  3. 691
      packages/nextcloud/lib/src/api/files_sharing.openapi.dart
  4. 144
      packages/nextcloud/lib/src/api/news.openapi.dart
  5. 81
      packages/nextcloud/lib/src/api/notes.openapi.dart
  6. 135
      packages/nextcloud/lib/src/api/notifications.openapi.dart
  7. 962
      packages/nextcloud/lib/src/api/provisioning_api.openapi.dart
  8. 13
      packages/nextcloud/lib/src/api/settings.openapi.dart
  9. 104
      packages/nextcloud/lib/src/api/theming.openapi.dart
  10. 137
      packages/nextcloud/lib/src/api/uppush.openapi.dart
  11. 250
      packages/nextcloud/lib/src/api/user_status.openapi.dart
  12. 4
      packages/nextcloud/lib/src/client.dart
  13. 2
      packages/nextcloud/lib/src/helpers/notifications.dart
  14. 2
      tool/coverage.sh

33
packages/dynamite/dynamite/lib/src/openapi_builder.dart

@ -373,6 +373,7 @@ class OpenAPIBuilder implements Builder {
final security = operation.security ?? spec.security ?? []; final security = operation.security ?? spec.security ?? [];
final securityRequirements = security.where((final requirement) => requirement.isNotEmpty); final securityRequirements = security.where((final requirement) => requirement.isNotEmpty);
final isOptionalSecurity = securityRequirements.length != security.length; final isOptionalSecurity = securityRequirements.length != security.length;
code.write(' // coverage:ignore-start\n');
for (final requirement in securityRequirements) { for (final requirement in securityRequirements) {
final securityScheme = spec.components!.securitySchemes![requirement.keys.single]!; final securityScheme = spec.components!.securitySchemes![requirement.keys.single]!;
code.write(''' code.write('''
@ -387,10 +388,11 @@ class OpenAPIBuilder implements Builder {
if (securityRequirements.isNotEmpty && !isOptionalSecurity) { if (securityRequirements.isNotEmpty && !isOptionalSecurity) {
code.write(''' code.write('''
else { else {
throw Exception('Missing authentication for ${securityRequirements.map((final r) => r.keys.single).join(' or ')}'); // coverage:ignore-line throw Exception('Missing authentication for ${securityRequirements.map((final r) => r.keys.single).join(' or ')}');
} }
'''); ''');
} }
code.write(' // coverage:ignore-end\n');
for (final parameter in parameters) { for (final parameter in parameters) {
final dartParameterNullable = _isDartParameterNullable( final dartParameterNullable = _isDartParameterNullable(
@ -710,6 +712,7 @@ class OpenAPIBuilder implements Builder {
if (state.resolvedTypes.isNotEmpty) { if (state.resolvedTypes.isNotEmpty) {
output.addAll([ output.addAll([
'// coverage:ignore-start',
'final Serializers _serializers = (Serializers().toBuilder()', 'final Serializers _serializers = (Serializers().toBuilder()',
...state.resolvedTypes.map((final type) => type.serializers).expand((final element) => element).toSet(), ...state.resolvedTypes.map((final type) => type.serializers).expand((final element) => element).toSet(),
').build();', ').build();',
@ -718,7 +721,6 @@ class OpenAPIBuilder implements Builder {
'', '',
'final Serializers _jsonSerializers = (_serializers.toBuilder()..addPlugin(StandardJsonPlugin())..addPlugin(const ContentStringPlugin())).build();', 'final Serializers _jsonSerializers = (_serializers.toBuilder()..addPlugin(StandardJsonPlugin())..addPlugin(const ContentStringPlugin())).build();',
'', '',
'// coverage:ignore-start',
'T deserialize$classPrefix<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;', 'T deserialize$classPrefix<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;',
'', '',
'Object? serialize$classPrefix<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));', 'Object? serialize$classPrefix<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));',
@ -726,29 +728,28 @@ class OpenAPIBuilder implements Builder {
]); ]);
} }
final formatter = DartFormatter(
pageWidth: 120,
);
const coverageIgnoreStart = ' // coverage:ignore-start';
const coverageIgnoreEnd = ' // coverage:ignore-end';
final patterns = [ final patterns = [
RegExp( RegExp(
r'factory .*\.fromJson\(Map<String, dynamic> json\) => _\$.*FromJson\(json\);', r'const .*\._\(\);',
),
RegExp(
r'factory .*\.fromJson\(Map<String, dynamic> json\) => _jsonSerializers\.deserializeWith\(serializer, json\)!;',
), ),
RegExp( RegExp(
r'Map<String, dynamic> toJson\(\) => _\$.*ToJson\(this\);', r'Map<String, dynamic> toJson\(\) => _jsonSerializers\.serializeWith\(serializer, this\)! as Map<String, dynamic>;',
), ),
RegExp( RegExp(
r'dynamic toJson\(\) => _data;', r'static BuiltSet<.*> get values => _\$.*Values;',
), ),
]; ];
var outputString = output.join('\n'); var outputString = output.join('\n');
for (final pattern in patterns) { for (final pattern in patterns) {
outputString = outputString.replaceAllMapped( outputString = outputString.replaceAllMapped(
pattern, pattern,
(final match) => '$coverageIgnoreStart\n${match.group(0)}\n$coverageIgnoreEnd', (final match) => ' // coverage:ignore-start\n${match.group(0)}\n // coverage:ignore-end',
); );
} }
final formatter = DartFormatter(pageWidth: 120);
await buildStep.writeAsString( await buildStep.writeAsString(
outputId, outputId,
formatter.format(outputString), formatter.format(outputString),
@ -952,11 +953,6 @@ TypeResult resolveObject(
), ),
) )
..constructors.addAll([ ..constructors.addAll([
Constructor(
(final b) => b
..name = '_'
..constant = true,
),
Constructor( Constructor(
(final b) => b (final b) => b
..factory = true ..factory = true
@ -970,6 +966,11 @@ TypeResult resolveObject(
) )
..redirect = refer('_\$${state.prefix}$identifier'), ..redirect = refer('_\$${state.prefix}$identifier'),
), ),
Constructor(
(final b) => b
..name = '_'
..constant = true,
),
Constructor( Constructor(
(final b) => b (final b) => b
..factory = true ..factory = true

989
packages/nextcloud/lib/src/api/core.openapi.dart

File diff suppressed because it is too large Load Diff

691
packages/nextcloud/lib/src/api/files_sharing.openapi.dart

File diff suppressed because it is too large Load Diff

144
packages/nextcloud/lib/src/api/news.openapi.dart

@ -80,11 +80,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -107,11 +109,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -132,11 +136,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
queryParameters['name'] = name; queryParameters['name'] = name;
final response = await doRequest( final response = await doRequest(
'post', 'post',
@ -159,11 +165,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString())); path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString()));
queryParameters['name'] = name; queryParameters['name'] = name;
final response = await doRequest( final response = await doRequest(
@ -183,11 +191,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString())); path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString()));
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
@ -209,11 +219,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString())); path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString()));
queryParameters['newestItemId'] = newestItemId.toString(); queryParameters['newestItemId'] = newestItemId.toString();
final response = await doRequest( final response = await doRequest(
@ -235,11 +247,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -263,11 +277,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
queryParameters['url'] = url; queryParameters['url'] = url;
if (folderId != null) { if (folderId != null) {
queryParameters['folderId'] = folderId.toString(); queryParameters['folderId'] = folderId.toString();
@ -290,11 +306,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString())); path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString()));
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
@ -316,11 +334,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString())); path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString()));
if (folderId != null) { if (folderId != null) {
queryParameters['folderId'] = folderId.toString(); queryParameters['folderId'] = folderId.toString();
@ -345,11 +365,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString())); path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString()));
queryParameters['feedTitle'] = feedTitle; queryParameters['feedTitle'] = feedTitle;
final response = await doRequest( final response = await doRequest(
@ -372,11 +394,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString())); path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString()));
queryParameters['newestItemId'] = newestItemId.toString(); queryParameters['newestItemId'] = newestItemId.toString();
final response = await doRequest( final response = await doRequest(
@ -405,11 +429,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
if (type != 3) { if (type != 3) {
queryParameters['type'] = type.toString(); queryParameters['type'] = type.toString();
} }
@ -452,11 +478,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
if (type != 3) { if (type != 3) {
queryParameters['type'] = type.toString(); queryParameters['type'] = type.toString();
} }
@ -484,11 +512,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString())); path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final response = await doRequest( final response = await doRequest(
'post', 'post',
@ -507,11 +537,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString())); path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final response = await doRequest( final response = await doRequest(
'post', 'post',
@ -530,11 +562,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString())); path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final response = await doRequest( final response = await doRequest(
'post', 'post',
@ -553,11 +587,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final headers = <String, String>{}; final headers = <String, String>{};
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString())); path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final response = await doRequest( final response = await doRequest(
'post', 'post',
@ -575,23 +611,37 @@ class NewsClient extends DynamiteClient {
abstract class NewsSupportedAPIVersions implements Built<NewsSupportedAPIVersions, NewsSupportedAPIVersionsBuilder> { abstract class NewsSupportedAPIVersions implements Built<NewsSupportedAPIVersions, NewsSupportedAPIVersionsBuilder> {
factory NewsSupportedAPIVersions([final void Function(NewsSupportedAPIVersionsBuilder)? b]) = factory NewsSupportedAPIVersions([final void Function(NewsSupportedAPIVersionsBuilder)? b]) =
_$NewsSupportedAPIVersions; _$NewsSupportedAPIVersions;
// coverage:ignore-start
const NewsSupportedAPIVersions._(); const NewsSupportedAPIVersions._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsSupportedAPIVersions.fromJson(final Map<String, dynamic> json) => factory NewsSupportedAPIVersions.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
BuiltList<String>? get apiLevels; BuiltList<String>? get apiLevels;
static Serializer<NewsSupportedAPIVersions> get serializer => _$newsSupportedAPIVersionsSerializer; static Serializer<NewsSupportedAPIVersions> get serializer => _$newsSupportedAPIVersionsSerializer;
} }
abstract class NewsArticle implements Built<NewsArticle, NewsArticleBuilder> { abstract class NewsArticle implements Built<NewsArticle, NewsArticleBuilder> {
factory NewsArticle([final void Function(NewsArticleBuilder)? b]) = _$NewsArticle; factory NewsArticle([final void Function(NewsArticleBuilder)? b]) = _$NewsArticle;
// coverage:ignore-start
const NewsArticle._(); const NewsArticle._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsArticle.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NewsArticle.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int get id; int get id;
String get guid; String get guid;
String get guidHash; String get guidHash;
@ -617,11 +667,18 @@ abstract class NewsArticle implements Built<NewsArticle, NewsArticleBuilder> {
abstract class NewsFeed implements Built<NewsFeed, NewsFeedBuilder> { abstract class NewsFeed implements Built<NewsFeed, NewsFeedBuilder> {
factory NewsFeed([final void Function(NewsFeedBuilder)? b]) = _$NewsFeed; factory NewsFeed([final void Function(NewsFeedBuilder)? b]) = _$NewsFeed;
// coverage:ignore-start
const NewsFeed._(); const NewsFeed._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsFeed.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NewsFeed.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int get id; int get id;
String get url; String get url;
String get title; String get title;
@ -640,11 +697,18 @@ abstract class NewsFeed implements Built<NewsFeed, NewsFeedBuilder> {
abstract class NewsFolder implements Built<NewsFolder, NewsFolderBuilder> { abstract class NewsFolder implements Built<NewsFolder, NewsFolderBuilder> {
factory NewsFolder([final void Function(NewsFolderBuilder)? b]) = _$NewsFolder; factory NewsFolder([final void Function(NewsFolderBuilder)? b]) = _$NewsFolder;
// coverage:ignore-start
const NewsFolder._(); const NewsFolder._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsFolder.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NewsFolder.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int get id; int get id;
String get name; String get name;
bool get opened; bool get opened;
@ -656,24 +720,38 @@ abstract class NewsFolder implements Built<NewsFolder, NewsFolderBuilder> {
abstract class NewsListFolders implements Built<NewsListFolders, NewsListFoldersBuilder> { abstract class NewsListFolders implements Built<NewsListFolders, NewsListFoldersBuilder> {
factory NewsListFolders([final void Function(NewsListFoldersBuilder)? b]) = _$NewsListFolders; factory NewsListFolders([final void Function(NewsListFoldersBuilder)? b]) = _$NewsListFolders;
// coverage:ignore-start
const NewsListFolders._(); const NewsListFolders._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsListFolders.fromJson(final Map<String, dynamic> json) => factory NewsListFolders.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
BuiltList<NewsFolder> get folders; BuiltList<NewsFolder> get folders;
static Serializer<NewsListFolders> get serializer => _$newsListFoldersSerializer; static Serializer<NewsListFolders> get serializer => _$newsListFoldersSerializer;
} }
abstract class NewsListFeeds implements Built<NewsListFeeds, NewsListFeedsBuilder> { abstract class NewsListFeeds implements Built<NewsListFeeds, NewsListFeedsBuilder> {
factory NewsListFeeds([final void Function(NewsListFeedsBuilder)? b]) = _$NewsListFeeds; factory NewsListFeeds([final void Function(NewsListFeedsBuilder)? b]) = _$NewsListFeeds;
// coverage:ignore-start
const NewsListFeeds._(); const NewsListFeeds._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsListFeeds.fromJson(final Map<String, dynamic> json) => factory NewsListFeeds.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int? get starredCount; int? get starredCount;
int? get newestItemId; int? get newestItemId;
BuiltList<NewsFeed> get feeds; BuiltList<NewsFeed> get feeds;
@ -682,23 +760,37 @@ abstract class NewsListFeeds implements Built<NewsListFeeds, NewsListFeedsBuilde
abstract class NewsListArticles implements Built<NewsListArticles, NewsListArticlesBuilder> { abstract class NewsListArticles implements Built<NewsListArticles, NewsListArticlesBuilder> {
factory NewsListArticles([final void Function(NewsListArticlesBuilder)? b]) = _$NewsListArticles; factory NewsListArticles([final void Function(NewsListArticlesBuilder)? b]) = _$NewsListArticles;
// coverage:ignore-start
const NewsListArticles._(); const NewsListArticles._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsListArticles.fromJson(final Map<String, dynamic> json) => factory NewsListArticles.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
BuiltList<NewsArticle> get items; BuiltList<NewsArticle> get items;
static Serializer<NewsListArticles> get serializer => _$newsListArticlesSerializer; static Serializer<NewsListArticles> get serializer => _$newsListArticlesSerializer;
} }
abstract class NewsOCSMeta implements Built<NewsOCSMeta, NewsOCSMetaBuilder> { abstract class NewsOCSMeta implements Built<NewsOCSMeta, NewsOCSMetaBuilder> {
factory NewsOCSMeta([final void Function(NewsOCSMetaBuilder)? b]) = _$NewsOCSMeta; factory NewsOCSMeta([final void Function(NewsOCSMetaBuilder)? b]) = _$NewsOCSMeta;
// coverage:ignore-start
const NewsOCSMeta._(); const NewsOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsOCSMeta.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NewsOCSMeta.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get status; String get status;
int get statuscode; int get statuscode;
String? get message; String? get message;
@ -709,12 +801,19 @@ abstract class NewsOCSMeta implements Built<NewsOCSMeta, NewsOCSMetaBuilder> {
abstract class NewsEmptyOCS_Ocs implements Built<NewsEmptyOCS_Ocs, NewsEmptyOCS_OcsBuilder> { abstract class NewsEmptyOCS_Ocs implements Built<NewsEmptyOCS_Ocs, NewsEmptyOCS_OcsBuilder> {
factory NewsEmptyOCS_Ocs([final void Function(NewsEmptyOCS_OcsBuilder)? b]) = _$NewsEmptyOCS_Ocs; factory NewsEmptyOCS_Ocs([final void Function(NewsEmptyOCS_OcsBuilder)? b]) = _$NewsEmptyOCS_Ocs;
// coverage:ignore-start
const NewsEmptyOCS_Ocs._(); const NewsEmptyOCS_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsEmptyOCS_Ocs.fromJson(final Map<String, dynamic> json) => factory NewsEmptyOCS_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NewsOCSMeta get meta; NewsOCSMeta get meta;
BuiltList<JsonObject> get data; BuiltList<JsonObject> get data;
static Serializer<NewsEmptyOCS_Ocs> get serializer => _$newsEmptyOCSOcsSerializer; static Serializer<NewsEmptyOCS_Ocs> get serializer => _$newsEmptyOCSOcsSerializer;
@ -722,15 +821,23 @@ abstract class NewsEmptyOCS_Ocs implements Built<NewsEmptyOCS_Ocs, NewsEmptyOCS_
abstract class NewsEmptyOCS implements Built<NewsEmptyOCS, NewsEmptyOCSBuilder> { abstract class NewsEmptyOCS implements Built<NewsEmptyOCS, NewsEmptyOCSBuilder> {
factory NewsEmptyOCS([final void Function(NewsEmptyOCSBuilder)? b]) = _$NewsEmptyOCS; factory NewsEmptyOCS([final void Function(NewsEmptyOCSBuilder)? b]) = _$NewsEmptyOCS;
// coverage:ignore-start
const NewsEmptyOCS._(); const NewsEmptyOCS._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsEmptyOCS.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NewsEmptyOCS.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NewsEmptyOCS_Ocs get ocs; NewsEmptyOCS_Ocs get ocs;
static Serializer<NewsEmptyOCS> get serializer => _$newsEmptyOCSSerializer; static Serializer<NewsEmptyOCS> get serializer => _$newsEmptyOCSSerializer;
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(NewsSupportedAPIVersions), NewsSupportedAPIVersions.new) ..addBuilderFactory(const FullType(NewsSupportedAPIVersions), NewsSupportedAPIVersions.new)
..add(NewsSupportedAPIVersions.serializer) ..add(NewsSupportedAPIVersions.serializer)
@ -766,7 +873,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeNews<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeNews<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeNews<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeNews<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

81
packages/nextcloud/lib/src/api/notes.openapi.dart

@ -87,11 +87,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
if (category != null) { if (category != null) {
queryParameters['category'] = category; queryParameters['category'] = category;
} }
@ -138,11 +140,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
if (category != '') { if (category != '') {
queryParameters['category'] = category; queryParameters['category'] = category;
} }
@ -182,11 +186,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString()));
if (exclude != '') { if (exclude != '') {
queryParameters['exclude'] = exclude; queryParameters['exclude'] = exclude;
@ -222,11 +228,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString()));
if (content != null) { if (content != null) {
queryParameters['content'] = content; queryParameters['content'] = content;
@ -266,11 +274,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString()));
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
@ -291,11 +301,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -316,11 +328,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
headers['Content-Type'] = 'application/json'; headers['Content-Type'] = 'application/json';
body = Uint8List.fromList( body = Uint8List.fromList(
utf8.encode(json.encode(_jsonSerializers.serialize(settings, specifiedType: const FullType(NotesSettings)))), utf8.encode(json.encode(_jsonSerializers.serialize(settings, specifiedType: const FullType(NotesSettings)))),
@ -341,11 +355,18 @@ class NotesClient extends DynamiteClient {
abstract class NotesNote implements Built<NotesNote, NotesNoteBuilder> { abstract class NotesNote implements Built<NotesNote, NotesNoteBuilder> {
factory NotesNote([final void Function(NotesNoteBuilder)? b]) = _$NotesNote; factory NotesNote([final void Function(NotesNoteBuilder)? b]) = _$NotesNote;
// coverage:ignore-start
const NotesNote._(); const NotesNote._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesNote.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NotesNote.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int get id; int get id;
String get etag; String get etag;
bool get readonly; bool get readonly;
@ -368,19 +389,28 @@ class NotesSettings_NoteMode extends EnumClass {
static const NotesSettings_NoteMode rich = _$notesSettingsNoteModeRich; static const NotesSettings_NoteMode rich = _$notesSettingsNoteModeRich;
// coverage:ignore-start
static BuiltSet<NotesSettings_NoteMode> get values => _$notesSettingsNoteModeValues; static BuiltSet<NotesSettings_NoteMode> get values => _$notesSettingsNoteModeValues;
// coverage:ignore-end
static NotesSettings_NoteMode valueOf(final String name) => _$valueOfNotesSettings_NoteMode(name); static NotesSettings_NoteMode valueOf(final String name) => _$valueOfNotesSettings_NoteMode(name);
static Serializer<NotesSettings_NoteMode> get serializer => _$notesSettingsNoteModeSerializer; static Serializer<NotesSettings_NoteMode> get serializer => _$notesSettingsNoteModeSerializer;
} }
abstract class NotesSettings implements Built<NotesSettings, NotesSettingsBuilder> { abstract class NotesSettings implements Built<NotesSettings, NotesSettingsBuilder> {
factory NotesSettings([final void Function(NotesSettingsBuilder)? b]) = _$NotesSettings; factory NotesSettings([final void Function(NotesSettingsBuilder)? b]) = _$NotesSettings;
// coverage:ignore-start
const NotesSettings._(); const NotesSettings._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesSettings.fromJson(final Map<String, dynamic> json) => factory NotesSettings.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get notesPath; String get notesPath;
String get fileSuffix; String get fileSuffix;
NotesSettings_NoteMode get noteMode; NotesSettings_NoteMode get noteMode;
@ -389,12 +419,19 @@ abstract class NotesSettings implements Built<NotesSettings, NotesSettingsBuilde
abstract class NotesCapabilities_Notes implements Built<NotesCapabilities_Notes, NotesCapabilities_NotesBuilder> { abstract class NotesCapabilities_Notes implements Built<NotesCapabilities_Notes, NotesCapabilities_NotesBuilder> {
factory NotesCapabilities_Notes([final void Function(NotesCapabilities_NotesBuilder)? b]) = _$NotesCapabilities_Notes; factory NotesCapabilities_Notes([final void Function(NotesCapabilities_NotesBuilder)? b]) = _$NotesCapabilities_Notes;
// coverage:ignore-start
const NotesCapabilities_Notes._(); const NotesCapabilities_Notes._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesCapabilities_Notes.fromJson(final Map<String, dynamic> json) => factory NotesCapabilities_Notes.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueField(wireName: 'api_version') @BuiltValueField(wireName: 'api_version')
BuiltList<String>? get apiVersion; BuiltList<String>? get apiVersion;
String? get version; String? get version;
@ -403,23 +440,37 @@ abstract class NotesCapabilities_Notes implements Built<NotesCapabilities_Notes,
abstract class NotesCapabilities implements Built<NotesCapabilities, NotesCapabilitiesBuilder> { abstract class NotesCapabilities implements Built<NotesCapabilities, NotesCapabilitiesBuilder> {
factory NotesCapabilities([final void Function(NotesCapabilitiesBuilder)? b]) = _$NotesCapabilities; factory NotesCapabilities([final void Function(NotesCapabilitiesBuilder)? b]) = _$NotesCapabilities;
// coverage:ignore-start
const NotesCapabilities._(); const NotesCapabilities._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesCapabilities.fromJson(final Map<String, dynamic> json) => factory NotesCapabilities.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotesCapabilities_Notes get notes; NotesCapabilities_Notes get notes;
static Serializer<NotesCapabilities> get serializer => _$notesCapabilitiesSerializer; static Serializer<NotesCapabilities> get serializer => _$notesCapabilitiesSerializer;
} }
abstract class NotesOCSMeta implements Built<NotesOCSMeta, NotesOCSMetaBuilder> { abstract class NotesOCSMeta implements Built<NotesOCSMeta, NotesOCSMetaBuilder> {
factory NotesOCSMeta([final void Function(NotesOCSMetaBuilder)? b]) = _$NotesOCSMeta; factory NotesOCSMeta([final void Function(NotesOCSMetaBuilder)? b]) = _$NotesOCSMeta;
// coverage:ignore-start
const NotesOCSMeta._(); const NotesOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesOCSMeta.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!; factory NotesOCSMeta.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get status; String get status;
int get statuscode; int get statuscode;
String? get message; String? get message;
@ -430,12 +481,19 @@ abstract class NotesOCSMeta implements Built<NotesOCSMeta, NotesOCSMetaBuilder>
abstract class NotesEmptyOCS_Ocs implements Built<NotesEmptyOCS_Ocs, NotesEmptyOCS_OcsBuilder> { abstract class NotesEmptyOCS_Ocs implements Built<NotesEmptyOCS_Ocs, NotesEmptyOCS_OcsBuilder> {
factory NotesEmptyOCS_Ocs([final void Function(NotesEmptyOCS_OcsBuilder)? b]) = _$NotesEmptyOCS_Ocs; factory NotesEmptyOCS_Ocs([final void Function(NotesEmptyOCS_OcsBuilder)? b]) = _$NotesEmptyOCS_Ocs;
// coverage:ignore-start
const NotesEmptyOCS_Ocs._(); const NotesEmptyOCS_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesEmptyOCS_Ocs.fromJson(final Map<String, dynamic> json) => factory NotesEmptyOCS_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotesOCSMeta get meta; NotesOCSMeta get meta;
BuiltList<JsonObject> get data; BuiltList<JsonObject> get data;
static Serializer<NotesEmptyOCS_Ocs> get serializer => _$notesEmptyOCSOcsSerializer; static Serializer<NotesEmptyOCS_Ocs> get serializer => _$notesEmptyOCSOcsSerializer;
@ -443,16 +501,24 @@ abstract class NotesEmptyOCS_Ocs implements Built<NotesEmptyOCS_Ocs, NotesEmptyO
abstract class NotesEmptyOCS implements Built<NotesEmptyOCS, NotesEmptyOCSBuilder> { abstract class NotesEmptyOCS implements Built<NotesEmptyOCS, NotesEmptyOCSBuilder> {
factory NotesEmptyOCS([final void Function(NotesEmptyOCSBuilder)? b]) = _$NotesEmptyOCS; factory NotesEmptyOCS([final void Function(NotesEmptyOCSBuilder)? b]) = _$NotesEmptyOCS;
// coverage:ignore-start
const NotesEmptyOCS._(); const NotesEmptyOCS._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesEmptyOCS.fromJson(final Map<String, dynamic> json) => factory NotesEmptyOCS.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotesEmptyOCS_Ocs get ocs; NotesEmptyOCS_Ocs get ocs;
static Serializer<NotesEmptyOCS> get serializer => _$notesEmptyOCSSerializer; static Serializer<NotesEmptyOCS> get serializer => _$notesEmptyOCSSerializer;
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(NotesNote), NotesNote.new) ..addBuilderFactory(const FullType(NotesNote), NotesNote.new)
..add(NotesNote.serializer) ..add(NotesNote.serializer)
@ -481,7 +547,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeNotes<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeNotes<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeNotes<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeNotes<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

135
packages/nextcloud/lib/src/api/notifications.openapi.dart

@ -80,13 +80,15 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { } else if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer or basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -109,11 +111,13 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else { } else {
throw Exception('Missing authentication for bearer'); // coverage:ignore-line throw Exception('Missing authentication for bearer');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -133,13 +137,15 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { } else if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer or basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString()));
final response = await doRequest( final response = await doRequest(
'get', 'get',
@ -163,11 +169,13 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else { } else {
throw Exception('Missing authentication for bearer'); // coverage:ignore-line throw Exception('Missing authentication for bearer');
} }
// coverage:ignore-end
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString()));
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
@ -195,11 +203,13 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else { } else {
throw Exception('Missing authentication for bearer'); // coverage:ignore-line throw Exception('Missing authentication for bearer');
} }
// coverage:ignore-end
queryParameters['pushTokenHash'] = pushTokenHash; queryParameters['pushTokenHash'] = pushTokenHash;
queryParameters['devicePublicKey'] = devicePublicKey; queryParameters['devicePublicKey'] = devicePublicKey;
queryParameters['proxyServer'] = proxyServer; queryParameters['proxyServer'] = proxyServer;
@ -225,11 +235,13 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else { } else {
throw Exception('Missing authentication for bearer'); // coverage:ignore-line throw Exception('Missing authentication for bearer');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -253,11 +265,13 @@ class NotificationsClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers);
} else { } else {
throw Exception('Missing authentication for bearer'); // coverage:ignore-line throw Exception('Missing authentication for bearer');
} }
// coverage:ignore-end
path = path.replaceAll('{userId}', Uri.encodeQueryComponent(userId)); path = path.replaceAll('{userId}', Uri.encodeQueryComponent(userId));
queryParameters['shortMessage'] = shortMessage; queryParameters['shortMessage'] = shortMessage;
if (longMessage != '') { if (longMessage != '') {
@ -281,12 +295,19 @@ class NotificationsClient extends DynamiteClient {
abstract class NotificationsOCSMeta implements Built<NotificationsOCSMeta, NotificationsOCSMetaBuilder> { abstract class NotificationsOCSMeta implements Built<NotificationsOCSMeta, NotificationsOCSMetaBuilder> {
factory NotificationsOCSMeta([final void Function(NotificationsOCSMetaBuilder)? b]) = _$NotificationsOCSMeta; factory NotificationsOCSMeta([final void Function(NotificationsOCSMetaBuilder)? b]) = _$NotificationsOCSMeta;
// coverage:ignore-start
const NotificationsOCSMeta._(); const NotificationsOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsOCSMeta.fromJson(final Map<String, dynamic> json) => factory NotificationsOCSMeta.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get status; String get status;
int get statuscode; int get statuscode;
String? get message; String? get message;
@ -299,12 +320,19 @@ abstract class NotificationsNotificationAction
implements Built<NotificationsNotificationAction, NotificationsNotificationActionBuilder> { implements Built<NotificationsNotificationAction, NotificationsNotificationActionBuilder> {
factory NotificationsNotificationAction([final void Function(NotificationsNotificationActionBuilder)? b]) = factory NotificationsNotificationAction([final void Function(NotificationsNotificationActionBuilder)? b]) =
_$NotificationsNotificationAction; _$NotificationsNotificationAction;
// coverage:ignore-start
const NotificationsNotificationAction._(); const NotificationsNotificationAction._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsNotificationAction.fromJson(final Map<String, dynamic> json) => factory NotificationsNotificationAction.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get label; String get label;
String get link; String get link;
String get type; String get type;
@ -315,12 +343,19 @@ abstract class NotificationsNotificationAction
abstract class NotificationsNotification implements Built<NotificationsNotification, NotificationsNotificationBuilder> { abstract class NotificationsNotification implements Built<NotificationsNotification, NotificationsNotificationBuilder> {
factory NotificationsNotification([final void Function(NotificationsNotificationBuilder)? b]) = factory NotificationsNotification([final void Function(NotificationsNotificationBuilder)? b]) =
_$NotificationsNotification; _$NotificationsNotification;
// coverage:ignore-start
const NotificationsNotification._(); const NotificationsNotification._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsNotification.fromJson(final Map<String, dynamic> json) => factory NotificationsNotification.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueField(wireName: 'notification_id') @BuiltValueField(wireName: 'notification_id')
int get notificationId; int get notificationId;
String get app; String get app;
@ -347,12 +382,19 @@ abstract class NotificationsListNotifications_Ocs
implements Built<NotificationsListNotifications_Ocs, NotificationsListNotifications_OcsBuilder> { implements Built<NotificationsListNotifications_Ocs, NotificationsListNotifications_OcsBuilder> {
factory NotificationsListNotifications_Ocs([final void Function(NotificationsListNotifications_OcsBuilder)? b]) = factory NotificationsListNotifications_Ocs([final void Function(NotificationsListNotifications_OcsBuilder)? b]) =
_$NotificationsListNotifications_Ocs; _$NotificationsListNotifications_Ocs;
// coverage:ignore-start
const NotificationsListNotifications_Ocs._(); const NotificationsListNotifications_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsListNotifications_Ocs.fromJson(final Map<String, dynamic> json) => factory NotificationsListNotifications_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsOCSMeta get meta; NotificationsOCSMeta get meta;
BuiltList<NotificationsNotification> get data; BuiltList<NotificationsNotification> get data;
static Serializer<NotificationsListNotifications_Ocs> get serializer => _$notificationsListNotificationsOcsSerializer; static Serializer<NotificationsListNotifications_Ocs> get serializer => _$notificationsListNotificationsOcsSerializer;
@ -362,12 +404,19 @@ abstract class NotificationsListNotifications
implements Built<NotificationsListNotifications, NotificationsListNotificationsBuilder> { implements Built<NotificationsListNotifications, NotificationsListNotificationsBuilder> {
factory NotificationsListNotifications([final void Function(NotificationsListNotificationsBuilder)? b]) = factory NotificationsListNotifications([final void Function(NotificationsListNotificationsBuilder)? b]) =
_$NotificationsListNotifications; _$NotificationsListNotifications;
// coverage:ignore-start
const NotificationsListNotifications._(); const NotificationsListNotifications._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsListNotifications.fromJson(final Map<String, dynamic> json) => factory NotificationsListNotifications.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsListNotifications_Ocs get ocs; NotificationsListNotifications_Ocs get ocs;
static Serializer<NotificationsListNotifications> get serializer => _$notificationsListNotificationsSerializer; static Serializer<NotificationsListNotifications> get serializer => _$notificationsListNotificationsSerializer;
} }
@ -376,12 +425,19 @@ abstract class NotificationsGetNotification_Ocs
implements Built<NotificationsGetNotification_Ocs, NotificationsGetNotification_OcsBuilder> { implements Built<NotificationsGetNotification_Ocs, NotificationsGetNotification_OcsBuilder> {
factory NotificationsGetNotification_Ocs([final void Function(NotificationsGetNotification_OcsBuilder)? b]) = factory NotificationsGetNotification_Ocs([final void Function(NotificationsGetNotification_OcsBuilder)? b]) =
_$NotificationsGetNotification_Ocs; _$NotificationsGetNotification_Ocs;
// coverage:ignore-start
const NotificationsGetNotification_Ocs._(); const NotificationsGetNotification_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsGetNotification_Ocs.fromJson(final Map<String, dynamic> json) => factory NotificationsGetNotification_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsOCSMeta get meta; NotificationsOCSMeta get meta;
NotificationsNotification get data; NotificationsNotification get data;
static Serializer<NotificationsGetNotification_Ocs> get serializer => _$notificationsGetNotificationOcsSerializer; static Serializer<NotificationsGetNotification_Ocs> get serializer => _$notificationsGetNotificationOcsSerializer;
@ -391,12 +447,19 @@ abstract class NotificationsGetNotification
implements Built<NotificationsGetNotification, NotificationsGetNotificationBuilder> { implements Built<NotificationsGetNotification, NotificationsGetNotificationBuilder> {
factory NotificationsGetNotification([final void Function(NotificationsGetNotificationBuilder)? b]) = factory NotificationsGetNotification([final void Function(NotificationsGetNotificationBuilder)? b]) =
_$NotificationsGetNotification; _$NotificationsGetNotification;
// coverage:ignore-start
const NotificationsGetNotification._(); const NotificationsGetNotification._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsGetNotification.fromJson(final Map<String, dynamic> json) => factory NotificationsGetNotification.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsGetNotification_Ocs get ocs; NotificationsGetNotification_Ocs get ocs;
static Serializer<NotificationsGetNotification> get serializer => _$notificationsGetNotificationSerializer; static Serializer<NotificationsGetNotification> get serializer => _$notificationsGetNotificationSerializer;
} }
@ -404,12 +467,19 @@ abstract class NotificationsGetNotification
abstract class NotificationsEmptyOCS_Ocs implements Built<NotificationsEmptyOCS_Ocs, NotificationsEmptyOCS_OcsBuilder> { abstract class NotificationsEmptyOCS_Ocs implements Built<NotificationsEmptyOCS_Ocs, NotificationsEmptyOCS_OcsBuilder> {
factory NotificationsEmptyOCS_Ocs([final void Function(NotificationsEmptyOCS_OcsBuilder)? b]) = factory NotificationsEmptyOCS_Ocs([final void Function(NotificationsEmptyOCS_OcsBuilder)? b]) =
_$NotificationsEmptyOCS_Ocs; _$NotificationsEmptyOCS_Ocs;
// coverage:ignore-start
const NotificationsEmptyOCS_Ocs._(); const NotificationsEmptyOCS_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsEmptyOCS_Ocs.fromJson(final Map<String, dynamic> json) => factory NotificationsEmptyOCS_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsOCSMeta get meta; NotificationsOCSMeta get meta;
BuiltList<JsonObject> get data; BuiltList<JsonObject> get data;
static Serializer<NotificationsEmptyOCS_Ocs> get serializer => _$notificationsEmptyOCSOcsSerializer; static Serializer<NotificationsEmptyOCS_Ocs> get serializer => _$notificationsEmptyOCSOcsSerializer;
@ -417,12 +487,19 @@ abstract class NotificationsEmptyOCS_Ocs implements Built<NotificationsEmptyOCS_
abstract class NotificationsEmptyOCS implements Built<NotificationsEmptyOCS, NotificationsEmptyOCSBuilder> { abstract class NotificationsEmptyOCS implements Built<NotificationsEmptyOCS, NotificationsEmptyOCSBuilder> {
factory NotificationsEmptyOCS([final void Function(NotificationsEmptyOCSBuilder)? b]) = _$NotificationsEmptyOCS; factory NotificationsEmptyOCS([final void Function(NotificationsEmptyOCSBuilder)? b]) = _$NotificationsEmptyOCS;
// coverage:ignore-start
const NotificationsEmptyOCS._(); const NotificationsEmptyOCS._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsEmptyOCS.fromJson(final Map<String, dynamic> json) => factory NotificationsEmptyOCS.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsEmptyOCS_Ocs get ocs; NotificationsEmptyOCS_Ocs get ocs;
static Serializer<NotificationsEmptyOCS> get serializer => _$notificationsEmptyOCSSerializer; static Serializer<NotificationsEmptyOCS> get serializer => _$notificationsEmptyOCSSerializer;
} }
@ -431,12 +508,19 @@ abstract class NotificationsPushServerSubscription
implements Built<NotificationsPushServerSubscription, NotificationsPushServerSubscriptionBuilder> { implements Built<NotificationsPushServerSubscription, NotificationsPushServerSubscriptionBuilder> {
factory NotificationsPushServerSubscription([final void Function(NotificationsPushServerSubscriptionBuilder)? b]) = factory NotificationsPushServerSubscription([final void Function(NotificationsPushServerSubscriptionBuilder)? b]) =
_$NotificationsPushServerSubscription; _$NotificationsPushServerSubscription;
// coverage:ignore-start
const NotificationsPushServerSubscription._(); const NotificationsPushServerSubscription._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsPushServerSubscription.fromJson(final Map<String, dynamic> json) => factory NotificationsPushServerSubscription.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get publicKey; String get publicKey;
String get deviceIdentifier; String get deviceIdentifier;
String get signature; String get signature;
@ -450,12 +534,19 @@ abstract class NotificationsPushServerRegistration_Ocs
factory NotificationsPushServerRegistration_Ocs([ factory NotificationsPushServerRegistration_Ocs([
final void Function(NotificationsPushServerRegistration_OcsBuilder)? b, final void Function(NotificationsPushServerRegistration_OcsBuilder)? b,
]) = _$NotificationsPushServerRegistration_Ocs; ]) = _$NotificationsPushServerRegistration_Ocs;
// coverage:ignore-start
const NotificationsPushServerRegistration_Ocs._(); const NotificationsPushServerRegistration_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsPushServerRegistration_Ocs.fromJson(final Map<String, dynamic> json) => factory NotificationsPushServerRegistration_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsOCSMeta get meta; NotificationsOCSMeta get meta;
NotificationsPushServerSubscription get data; NotificationsPushServerSubscription get data;
static Serializer<NotificationsPushServerRegistration_Ocs> get serializer => static Serializer<NotificationsPushServerRegistration_Ocs> get serializer =>
@ -466,12 +557,19 @@ abstract class NotificationsPushServerRegistration
implements Built<NotificationsPushServerRegistration, NotificationsPushServerRegistrationBuilder> { implements Built<NotificationsPushServerRegistration, NotificationsPushServerRegistrationBuilder> {
factory NotificationsPushServerRegistration([final void Function(NotificationsPushServerRegistrationBuilder)? b]) = factory NotificationsPushServerRegistration([final void Function(NotificationsPushServerRegistrationBuilder)? b]) =
_$NotificationsPushServerRegistration; _$NotificationsPushServerRegistration;
// coverage:ignore-start
const NotificationsPushServerRegistration._(); const NotificationsPushServerRegistration._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsPushServerRegistration.fromJson(final Map<String, dynamic> json) => factory NotificationsPushServerRegistration.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsPushServerRegistration_Ocs get ocs; NotificationsPushServerRegistration_Ocs get ocs;
static Serializer<NotificationsPushServerRegistration> get serializer => static Serializer<NotificationsPushServerRegistration> get serializer =>
_$notificationsPushServerRegistrationSerializer; _$notificationsPushServerRegistrationSerializer;
@ -482,12 +580,19 @@ abstract class NotificationsCapabilities_Notifications
factory NotificationsCapabilities_Notifications([ factory NotificationsCapabilities_Notifications([
final void Function(NotificationsCapabilities_NotificationsBuilder)? b, final void Function(NotificationsCapabilities_NotificationsBuilder)? b,
]) = _$NotificationsCapabilities_Notifications; ]) = _$NotificationsCapabilities_Notifications;
// coverage:ignore-start
const NotificationsCapabilities_Notifications._(); const NotificationsCapabilities_Notifications._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsCapabilities_Notifications.fromJson(final Map<String, dynamic> json) => factory NotificationsCapabilities_Notifications.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueField(wireName: 'ocs-endpoints') @BuiltValueField(wireName: 'ocs-endpoints')
BuiltList<String>? get ocsEndpoints; BuiltList<String>? get ocsEndpoints;
BuiltList<String>? get push; BuiltList<String>? get push;
@ -500,12 +605,19 @@ abstract class NotificationsCapabilities_Notifications
abstract class NotificationsCapabilities implements Built<NotificationsCapabilities, NotificationsCapabilitiesBuilder> { abstract class NotificationsCapabilities implements Built<NotificationsCapabilities, NotificationsCapabilitiesBuilder> {
factory NotificationsCapabilities([final void Function(NotificationsCapabilitiesBuilder)? b]) = factory NotificationsCapabilities([final void Function(NotificationsCapabilitiesBuilder)? b]) =
_$NotificationsCapabilities; _$NotificationsCapabilities;
// coverage:ignore-start
const NotificationsCapabilities._(); const NotificationsCapabilities._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsCapabilities.fromJson(final Map<String, dynamic> json) => factory NotificationsCapabilities.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
NotificationsCapabilities_Notifications get notifications; NotificationsCapabilities_Notifications get notifications;
static Serializer<NotificationsCapabilities> get serializer => _$notificationsCapabilitiesSerializer; static Serializer<NotificationsCapabilities> get serializer => _$notificationsCapabilitiesSerializer;
} }
@ -515,12 +627,19 @@ abstract class NotificationsNotificationDecryptedSubject
factory NotificationsNotificationDecryptedSubject([ factory NotificationsNotificationDecryptedSubject([
final void Function(NotificationsNotificationDecryptedSubjectBuilder)? b, final void Function(NotificationsNotificationDecryptedSubjectBuilder)? b,
]) = _$NotificationsNotificationDecryptedSubject; ]) = _$NotificationsNotificationDecryptedSubject;
// coverage:ignore-start
const NotificationsNotificationDecryptedSubject._(); const NotificationsNotificationDecryptedSubject._();
// coverage:ignore-end
// coverage:ignore-start
factory NotificationsNotificationDecryptedSubject.fromJson(final Map<String, dynamic> json) => factory NotificationsNotificationDecryptedSubject.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int? get nid; int? get nid;
String? get app; String? get app;
String? get subject; String? get subject;
@ -533,6 +652,7 @@ abstract class NotificationsNotificationDecryptedSubject
_$notificationsNotificationDecryptedSubjectSerializer; _$notificationsNotificationDecryptedSubjectSerializer;
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(NotificationsListNotifications), NotificationsListNotifications.new) ..addBuilderFactory(const FullType(NotificationsListNotifications), NotificationsListNotifications.new)
..add(NotificationsListNotifications.serializer) ..add(NotificationsListNotifications.serializer)
@ -592,7 +712,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeNotifications<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeNotifications<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeNotifications<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeNotifications<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

962
packages/nextcloud/lib/src/api/provisioning_api.openapi.dart

File diff suppressed because it is too large Load Diff

13
packages/nextcloud/lib/src/api/settings.openapi.dart

@ -89,6 +89,7 @@ class SettingsLogSettingsClient {
'Accept': 'application/octet-stream', 'Accept': 'application/octet-stream',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -97,8 +98,9 @@ class SettingsLogSettingsClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -124,12 +126,19 @@ abstract class SettingsLogSettingsLogSettingsDownloadHeaders
factory SettingsLogSettingsLogSettingsDownloadHeaders([ factory SettingsLogSettingsLogSettingsDownloadHeaders([
final void Function(SettingsLogSettingsLogSettingsDownloadHeadersBuilder)? b, final void Function(SettingsLogSettingsLogSettingsDownloadHeadersBuilder)? b,
]) = _$SettingsLogSettingsLogSettingsDownloadHeaders; ]) = _$SettingsLogSettingsLogSettingsDownloadHeaders;
// coverage:ignore-start
const SettingsLogSettingsLogSettingsDownloadHeaders._(); const SettingsLogSettingsLogSettingsDownloadHeaders._();
// coverage:ignore-end
// coverage:ignore-start
factory SettingsLogSettingsLogSettingsDownloadHeaders.fromJson(final Map<String, dynamic> json) => factory SettingsLogSettingsLogSettingsDownloadHeaders.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueField(wireName: 'content-disposition') @BuiltValueField(wireName: 'content-disposition')
String? get contentDisposition; String? get contentDisposition;
@BuiltValueSerializer(custom: true) @BuiltValueSerializer(custom: true)
@ -181,6 +190,7 @@ class _$SettingsLogSettingsLogSettingsDownloadHeadersSerializer
} }
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory( ..addBuilderFactory(
const FullType(SettingsLogSettingsLogSettingsDownloadHeaders), const FullType(SettingsLogSettingsLogSettingsDownloadHeaders),
@ -196,7 +206,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeSettings<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeSettings<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeSettings<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeSettings<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

104
packages/nextcloud/lib/src/api/theming.openapi.dart

@ -91,6 +91,7 @@ class ThemingIconClient {
'Accept': 'image/x-icon', 'Accept': 'image/x-icon',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -99,6 +100,7 @@ class ThemingIconClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} }
// coverage:ignore-end
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app)); path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
@ -120,6 +122,7 @@ class ThemingIconClient {
'Accept': 'image/png', 'Accept': 'image/png',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -128,6 +131,7 @@ class ThemingIconClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} }
// coverage:ignore-end
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app)); path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
@ -152,6 +156,7 @@ class ThemingIconClient {
'Accept': 'image/svg+xml', 'Accept': 'image/svg+xml',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -160,6 +165,7 @@ class ThemingIconClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} }
// coverage:ignore-end
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app)); path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
if (!RegExp(r'^.+$').hasMatch(image)) { if (!RegExp(r'^.+$').hasMatch(image)) {
throw Exception('Invalid value "$image" for parameter "image" with pattern "${r'^.+$'}"'); // coverage:ignore-line throw Exception('Invalid value "$image" for parameter "image" with pattern "${r'^.+$'}"'); // coverage:ignore-line
@ -197,6 +203,7 @@ class ThemingThemingClient {
'Accept': 'text/css', 'Accept': 'text/css',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -205,6 +212,7 @@ class ThemingThemingClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} }
// coverage:ignore-end
path = path.replaceAll('{themeId}', Uri.encodeQueryComponent(themeId)); path = path.replaceAll('{themeId}', Uri.encodeQueryComponent(themeId));
if (plain != 0) { if (plain != 0) {
queryParameters['plain'] = plain.toString(); queryParameters['plain'] = plain.toString();
@ -235,6 +243,7 @@ class ThemingThemingClient {
'Accept': '*/*', 'Accept': '*/*',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -243,6 +252,7 @@ class ThemingThemingClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} }
// coverage:ignore-end
path = path.replaceAll('{key}', Uri.encodeQueryComponent(key)); path = path.replaceAll('{key}', Uri.encodeQueryComponent(key));
if (useSvg != 1) { if (useSvg != 1) {
queryParameters['useSvg'] = useSvg.toString(); queryParameters['useSvg'] = useSvg.toString();
@ -267,6 +277,7 @@ class ThemingThemingClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -275,6 +286,7 @@ class ThemingThemingClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} }
// coverage:ignore-end
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app)); path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
@ -305,6 +317,7 @@ class ThemingUserThemeClient {
'Accept': '*/*', 'Accept': '*/*',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -313,8 +326,9 @@ class ThemingUserThemeClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
@ -341,6 +355,7 @@ class ThemingUserThemeClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -349,8 +364,9 @@ class ThemingUserThemeClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{type}', Uri.encodeQueryComponent(type)); path = path.replaceAll('{type}', Uri.encodeQueryComponent(type));
if (value != '') { if (value != '') {
queryParameters['value'] = value; queryParameters['value'] = value;
@ -380,6 +396,7 @@ class ThemingUserThemeClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -388,8 +405,9 @@ class ThemingUserThemeClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'delete', 'delete',
@ -415,6 +433,7 @@ class ThemingUserThemeClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -423,8 +442,9 @@ class ThemingUserThemeClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{themeId}', Uri.encodeQueryComponent(themeId)); path = path.replaceAll('{themeId}', Uri.encodeQueryComponent(themeId));
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
@ -453,6 +473,7 @@ class ThemingUserThemeClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -461,8 +482,9 @@ class ThemingUserThemeClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{themeId}', Uri.encodeQueryComponent(themeId)); path = path.replaceAll('{themeId}', Uri.encodeQueryComponent(themeId));
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
@ -488,12 +510,19 @@ abstract class ThemingThemingGetManifestResponse200ApplicationJson_Icons
factory ThemingThemingGetManifestResponse200ApplicationJson_Icons([ factory ThemingThemingGetManifestResponse200ApplicationJson_Icons([
final void Function(ThemingThemingGetManifestResponse200ApplicationJson_IconsBuilder)? b, final void Function(ThemingThemingGetManifestResponse200ApplicationJson_IconsBuilder)? b,
]) = _$ThemingThemingGetManifestResponse200ApplicationJson_Icons; ]) = _$ThemingThemingGetManifestResponse200ApplicationJson_Icons;
// coverage:ignore-start
const ThemingThemingGetManifestResponse200ApplicationJson_Icons._(); const ThemingThemingGetManifestResponse200ApplicationJson_Icons._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingThemingGetManifestResponse200ApplicationJson_Icons.fromJson(final Map<String, dynamic> json) => factory ThemingThemingGetManifestResponse200ApplicationJson_Icons.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get src; String get src;
String get type; String get type;
String get sizes; String get sizes;
@ -508,12 +537,19 @@ abstract class ThemingThemingGetManifestResponse200ApplicationJson
factory ThemingThemingGetManifestResponse200ApplicationJson([ factory ThemingThemingGetManifestResponse200ApplicationJson([
final void Function(ThemingThemingGetManifestResponse200ApplicationJsonBuilder)? b, final void Function(ThemingThemingGetManifestResponse200ApplicationJsonBuilder)? b,
]) = _$ThemingThemingGetManifestResponse200ApplicationJson; ]) = _$ThemingThemingGetManifestResponse200ApplicationJson;
// coverage:ignore-start
const ThemingThemingGetManifestResponse200ApplicationJson._(); const ThemingThemingGetManifestResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingThemingGetManifestResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory ThemingThemingGetManifestResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get name; String get name;
@BuiltValueField(wireName: 'short_name') @BuiltValueField(wireName: 'short_name')
String get shortName; String get shortName;
@ -532,12 +568,19 @@ abstract class ThemingThemingGetManifestResponse200ApplicationJson
abstract class ThemingBackground implements Built<ThemingBackground, ThemingBackgroundBuilder> { abstract class ThemingBackground implements Built<ThemingBackground, ThemingBackgroundBuilder> {
factory ThemingBackground([final void Function(ThemingBackgroundBuilder)? b]) = _$ThemingBackground; factory ThemingBackground([final void Function(ThemingBackgroundBuilder)? b]) = _$ThemingBackground;
// coverage:ignore-start
const ThemingBackground._(); const ThemingBackground._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingBackground.fromJson(final Map<String, dynamic> json) => factory ThemingBackground.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String? get backgroundImage; String? get backgroundImage;
String get backgroundColor; String get backgroundColor;
int get version; int get version;
@ -546,12 +589,19 @@ abstract class ThemingBackground implements Built<ThemingBackground, ThemingBack
abstract class ThemingOCSMeta implements Built<ThemingOCSMeta, ThemingOCSMetaBuilder> { abstract class ThemingOCSMeta implements Built<ThemingOCSMeta, ThemingOCSMetaBuilder> {
factory ThemingOCSMeta([final void Function(ThemingOCSMetaBuilder)? b]) = _$ThemingOCSMeta; factory ThemingOCSMeta([final void Function(ThemingOCSMetaBuilder)? b]) = _$ThemingOCSMeta;
// coverage:ignore-start
const ThemingOCSMeta._(); const ThemingOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingOCSMeta.fromJson(final Map<String, dynamic> json) => factory ThemingOCSMeta.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get status; String get status;
int get statuscode; int get statuscode;
String? get message; String? get message;
@ -567,12 +617,19 @@ abstract class ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs
factory ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs([ factory ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs([
final void Function(ThemingUserThemeEnableThemeResponse200ApplicationJson_OcsBuilder)? b, final void Function(ThemingUserThemeEnableThemeResponse200ApplicationJson_OcsBuilder)? b,
]) = _$ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs; ]) = _$ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs._(); const ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
ThemingOCSMeta get meta; ThemingOCSMeta get meta;
JsonObject get data; JsonObject get data;
static Serializer<ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs> get serializer => static Serializer<ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs> get serializer =>
@ -586,12 +643,19 @@ abstract class ThemingUserThemeEnableThemeResponse200ApplicationJson
factory ThemingUserThemeEnableThemeResponse200ApplicationJson([ factory ThemingUserThemeEnableThemeResponse200ApplicationJson([
final void Function(ThemingUserThemeEnableThemeResponse200ApplicationJsonBuilder)? b, final void Function(ThemingUserThemeEnableThemeResponse200ApplicationJsonBuilder)? b,
]) = _$ThemingUserThemeEnableThemeResponse200ApplicationJson; ]) = _$ThemingUserThemeEnableThemeResponse200ApplicationJson;
// coverage:ignore-start
const ThemingUserThemeEnableThemeResponse200ApplicationJson._(); const ThemingUserThemeEnableThemeResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingUserThemeEnableThemeResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory ThemingUserThemeEnableThemeResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs get ocs; ThemingUserThemeEnableThemeResponse200ApplicationJson_Ocs get ocs;
static Serializer<ThemingUserThemeEnableThemeResponse200ApplicationJson> get serializer => static Serializer<ThemingUserThemeEnableThemeResponse200ApplicationJson> get serializer =>
_$themingUserThemeEnableThemeResponse200ApplicationJsonSerializer; _$themingUserThemeEnableThemeResponse200ApplicationJsonSerializer;
@ -604,12 +668,19 @@ abstract class ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs
factory ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs([ factory ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs([
final void Function(ThemingUserThemeDisableThemeResponse200ApplicationJson_OcsBuilder)? b, final void Function(ThemingUserThemeDisableThemeResponse200ApplicationJson_OcsBuilder)? b,
]) = _$ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs; ]) = _$ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs._(); const ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
ThemingOCSMeta get meta; ThemingOCSMeta get meta;
JsonObject get data; JsonObject get data;
static Serializer<ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs> get serializer => static Serializer<ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs> get serializer =>
@ -623,12 +694,19 @@ abstract class ThemingUserThemeDisableThemeResponse200ApplicationJson
factory ThemingUserThemeDisableThemeResponse200ApplicationJson([ factory ThemingUserThemeDisableThemeResponse200ApplicationJson([
final void Function(ThemingUserThemeDisableThemeResponse200ApplicationJsonBuilder)? b, final void Function(ThemingUserThemeDisableThemeResponse200ApplicationJsonBuilder)? b,
]) = _$ThemingUserThemeDisableThemeResponse200ApplicationJson; ]) = _$ThemingUserThemeDisableThemeResponse200ApplicationJson;
// coverage:ignore-start
const ThemingUserThemeDisableThemeResponse200ApplicationJson._(); const ThemingUserThemeDisableThemeResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingUserThemeDisableThemeResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory ThemingUserThemeDisableThemeResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs get ocs; ThemingUserThemeDisableThemeResponse200ApplicationJson_Ocs get ocs;
static Serializer<ThemingUserThemeDisableThemeResponse200ApplicationJson> get serializer => static Serializer<ThemingUserThemeDisableThemeResponse200ApplicationJson> get serializer =>
_$themingUserThemeDisableThemeResponse200ApplicationJsonSerializer; _$themingUserThemeDisableThemeResponse200ApplicationJsonSerializer;
@ -638,12 +716,19 @@ abstract class ThemingPublicCapabilities_Theming
implements Built<ThemingPublicCapabilities_Theming, ThemingPublicCapabilities_ThemingBuilder> { implements Built<ThemingPublicCapabilities_Theming, ThemingPublicCapabilities_ThemingBuilder> {
factory ThemingPublicCapabilities_Theming([final void Function(ThemingPublicCapabilities_ThemingBuilder)? b]) = factory ThemingPublicCapabilities_Theming([final void Function(ThemingPublicCapabilities_ThemingBuilder)? b]) =
_$ThemingPublicCapabilities_Theming; _$ThemingPublicCapabilities_Theming;
// coverage:ignore-start
const ThemingPublicCapabilities_Theming._(); const ThemingPublicCapabilities_Theming._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingPublicCapabilities_Theming.fromJson(final Map<String, dynamic> json) => factory ThemingPublicCapabilities_Theming.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get name; String get name;
String get url; String get url;
String get slogan; String get slogan;
@ -670,16 +755,24 @@ abstract class ThemingPublicCapabilities_Theming
abstract class ThemingPublicCapabilities implements Built<ThemingPublicCapabilities, ThemingPublicCapabilitiesBuilder> { abstract class ThemingPublicCapabilities implements Built<ThemingPublicCapabilities, ThemingPublicCapabilitiesBuilder> {
factory ThemingPublicCapabilities([final void Function(ThemingPublicCapabilitiesBuilder)? b]) = factory ThemingPublicCapabilities([final void Function(ThemingPublicCapabilitiesBuilder)? b]) =
_$ThemingPublicCapabilities; _$ThemingPublicCapabilities;
// coverage:ignore-start
const ThemingPublicCapabilities._(); const ThemingPublicCapabilities._();
// coverage:ignore-end
// coverage:ignore-start
factory ThemingPublicCapabilities.fromJson(final Map<String, dynamic> json) => factory ThemingPublicCapabilities.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
ThemingPublicCapabilities_Theming get theming; ThemingPublicCapabilities_Theming get theming;
static Serializer<ThemingPublicCapabilities> get serializer => _$themingPublicCapabilitiesSerializer; static Serializer<ThemingPublicCapabilities> get serializer => _$themingPublicCapabilitiesSerializer;
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory( ..addBuilderFactory(
const FullType(ThemingThemingGetManifestResponse200ApplicationJson), const FullType(ThemingThemingGetManifestResponse200ApplicationJson),
@ -732,7 +825,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeTheming<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeTheming<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeTheming<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeTheming<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

137
packages/nextcloud/lib/src/api/uppush.openapi.dart

@ -80,11 +80,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -110,11 +112,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
queryParameters['keepalive'] = keepalive.toString(); queryParameters['keepalive'] = keepalive.toString();
final response = await doRequest( final response = await doRequest(
'put', 'put',
@ -139,11 +143,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
queryParameters['deviceName'] = deviceName; queryParameters['deviceName'] = deviceName;
final response = await doRequest( final response = await doRequest(
'put', 'put',
@ -170,11 +176,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{deviceId}', Uri.encodeQueryComponent(deviceId)); path = path.replaceAll('{deviceId}', Uri.encodeQueryComponent(deviceId));
final response = await doRequest( final response = await doRequest(
'get', 'get',
@ -199,11 +207,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{deviceId}', Uri.encodeQueryComponent(deviceId)); path = path.replaceAll('{deviceId}', Uri.encodeQueryComponent(deviceId));
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
@ -231,11 +241,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
queryParameters['deviceId'] = deviceId; queryParameters['deviceId'] = deviceId;
queryParameters['appName'] = appName; queryParameters['appName'] = appName;
final response = await doRequest( final response = await doRequest(
@ -261,11 +273,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{token}', Uri.encodeQueryComponent(token)); path = path.replaceAll('{token}', Uri.encodeQueryComponent(token));
final response = await doRequest( final response = await doRequest(
'delete', 'delete',
@ -292,11 +306,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{token}', Uri.encodeQueryComponent(token)); path = path.replaceAll('{token}', Uri.encodeQueryComponent(token));
final response = await doRequest( final response = await doRequest(
'get', 'get',
@ -321,11 +337,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{token}', Uri.encodeQueryComponent(token)); path = path.replaceAll('{token}', Uri.encodeQueryComponent(token));
final response = await doRequest( final response = await doRequest(
'post', 'post',
@ -350,11 +368,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'get', 'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -378,11 +398,13 @@ class UppushClient extends DynamiteClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) { if (authentications.where((final a) => a.type == 'http' && a.scheme == 'basic').isNotEmpty) {
headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); headers.addAll(authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for basic_auth');
} }
// coverage:ignore-end
final response = await doRequest( final response = await doRequest(
'post', 'post',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(), Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -404,12 +426,19 @@ abstract class UppushCheckResponse200ApplicationJson
factory UppushCheckResponse200ApplicationJson([ factory UppushCheckResponse200ApplicationJson([
final void Function(UppushCheckResponse200ApplicationJsonBuilder)? b, final void Function(UppushCheckResponse200ApplicationJsonBuilder)? b,
]) = _$UppushCheckResponse200ApplicationJson; ]) = _$UppushCheckResponse200ApplicationJson;
// coverage:ignore-start
const UppushCheckResponse200ApplicationJson._(); const UppushCheckResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushCheckResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushCheckResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
static Serializer<UppushCheckResponse200ApplicationJson> get serializer => static Serializer<UppushCheckResponse200ApplicationJson> get serializer =>
_$uppushCheckResponse200ApplicationJsonSerializer; _$uppushCheckResponse200ApplicationJsonSerializer;
@ -421,12 +450,19 @@ abstract class UppushSetKeepaliveResponse200ApplicationJson
factory UppushSetKeepaliveResponse200ApplicationJson([ factory UppushSetKeepaliveResponse200ApplicationJson([
final void Function(UppushSetKeepaliveResponse200ApplicationJsonBuilder)? b, final void Function(UppushSetKeepaliveResponse200ApplicationJsonBuilder)? b,
]) = _$UppushSetKeepaliveResponse200ApplicationJson; ]) = _$UppushSetKeepaliveResponse200ApplicationJson;
// coverage:ignore-start
const UppushSetKeepaliveResponse200ApplicationJson._(); const UppushSetKeepaliveResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushSetKeepaliveResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushSetKeepaliveResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
static Serializer<UppushSetKeepaliveResponse200ApplicationJson> get serializer => static Serializer<UppushSetKeepaliveResponse200ApplicationJson> get serializer =>
_$uppushSetKeepaliveResponse200ApplicationJsonSerializer; _$uppushSetKeepaliveResponse200ApplicationJsonSerializer;
@ -438,12 +474,19 @@ abstract class UppushCreateDeviceResponse200ApplicationJson
factory UppushCreateDeviceResponse200ApplicationJson([ factory UppushCreateDeviceResponse200ApplicationJson([
final void Function(UppushCreateDeviceResponse200ApplicationJsonBuilder)? b, final void Function(UppushCreateDeviceResponse200ApplicationJsonBuilder)? b,
]) = _$UppushCreateDeviceResponse200ApplicationJson; ]) = _$UppushCreateDeviceResponse200ApplicationJson;
// coverage:ignore-start
const UppushCreateDeviceResponse200ApplicationJson._(); const UppushCreateDeviceResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushCreateDeviceResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushCreateDeviceResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
String get deviceId; String get deviceId;
static Serializer<UppushCreateDeviceResponse200ApplicationJson> get serializer => static Serializer<UppushCreateDeviceResponse200ApplicationJson> get serializer =>
@ -455,12 +498,19 @@ abstract class UppushSyncDeviceResponse401ApplicationJson
factory UppushSyncDeviceResponse401ApplicationJson([ factory UppushSyncDeviceResponse401ApplicationJson([
final void Function(UppushSyncDeviceResponse401ApplicationJsonBuilder)? b, final void Function(UppushSyncDeviceResponse401ApplicationJsonBuilder)? b,
]) = _$UppushSyncDeviceResponse401ApplicationJson; ]) = _$UppushSyncDeviceResponse401ApplicationJson;
// coverage:ignore-start
const UppushSyncDeviceResponse401ApplicationJson._(); const UppushSyncDeviceResponse401ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushSyncDeviceResponse401ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushSyncDeviceResponse401ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
static Serializer<UppushSyncDeviceResponse401ApplicationJson> get serializer => static Serializer<UppushSyncDeviceResponse401ApplicationJson> get serializer =>
_$uppushSyncDeviceResponse401ApplicationJsonSerializer; _$uppushSyncDeviceResponse401ApplicationJsonSerializer;
@ -472,12 +522,19 @@ abstract class UppushDeleteDeviceResponse200ApplicationJson
factory UppushDeleteDeviceResponse200ApplicationJson([ factory UppushDeleteDeviceResponse200ApplicationJson([
final void Function(UppushDeleteDeviceResponse200ApplicationJsonBuilder)? b, final void Function(UppushDeleteDeviceResponse200ApplicationJsonBuilder)? b,
]) = _$UppushDeleteDeviceResponse200ApplicationJson; ]) = _$UppushDeleteDeviceResponse200ApplicationJson;
// coverage:ignore-start
const UppushDeleteDeviceResponse200ApplicationJson._(); const UppushDeleteDeviceResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushDeleteDeviceResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushDeleteDeviceResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
static Serializer<UppushDeleteDeviceResponse200ApplicationJson> get serializer => static Serializer<UppushDeleteDeviceResponse200ApplicationJson> get serializer =>
_$uppushDeleteDeviceResponse200ApplicationJsonSerializer; _$uppushDeleteDeviceResponse200ApplicationJsonSerializer;
@ -488,12 +545,19 @@ abstract class UppushCreateAppResponse200ApplicationJson
factory UppushCreateAppResponse200ApplicationJson([ factory UppushCreateAppResponse200ApplicationJson([
final void Function(UppushCreateAppResponse200ApplicationJsonBuilder)? b, final void Function(UppushCreateAppResponse200ApplicationJsonBuilder)? b,
]) = _$UppushCreateAppResponse200ApplicationJson; ]) = _$UppushCreateAppResponse200ApplicationJson;
// coverage:ignore-start
const UppushCreateAppResponse200ApplicationJson._(); const UppushCreateAppResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushCreateAppResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushCreateAppResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
String get token; String get token;
static Serializer<UppushCreateAppResponse200ApplicationJson> get serializer => static Serializer<UppushCreateAppResponse200ApplicationJson> get serializer =>
@ -505,12 +569,19 @@ abstract class UppushDeleteAppResponse200ApplicationJson
factory UppushDeleteAppResponse200ApplicationJson([ factory UppushDeleteAppResponse200ApplicationJson([
final void Function(UppushDeleteAppResponse200ApplicationJsonBuilder)? b, final void Function(UppushDeleteAppResponse200ApplicationJsonBuilder)? b,
]) = _$UppushDeleteAppResponse200ApplicationJson; ]) = _$UppushDeleteAppResponse200ApplicationJson;
// coverage:ignore-start
const UppushDeleteAppResponse200ApplicationJson._(); const UppushDeleteAppResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushDeleteAppResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushDeleteAppResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
static Serializer<UppushDeleteAppResponse200ApplicationJson> get serializer => static Serializer<UppushDeleteAppResponse200ApplicationJson> get serializer =>
_$uppushDeleteAppResponse200ApplicationJsonSerializer; _$uppushDeleteAppResponse200ApplicationJsonSerializer;
@ -523,12 +594,19 @@ abstract class UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush
factory UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush([ factory UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush([
final void Function(UppushUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? b, final void Function(UppushUnifiedpushDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? b,
]) = _$UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush; ]) = _$UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush;
// coverage:ignore-start
const UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush._(); const UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson(final Map<String, dynamic> json) => factory UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
int get version; int get version;
static Serializer<UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush> get serializer => static Serializer<UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush> get serializer =>
_$uppushUnifiedpushDiscoveryResponse200ApplicationJsonUnifiedpushSerializer; _$uppushUnifiedpushDiscoveryResponse200ApplicationJsonUnifiedpushSerializer;
@ -541,12 +619,19 @@ abstract class UppushUnifiedpushDiscoveryResponse200ApplicationJson
factory UppushUnifiedpushDiscoveryResponse200ApplicationJson([ factory UppushUnifiedpushDiscoveryResponse200ApplicationJson([
final void Function(UppushUnifiedpushDiscoveryResponse200ApplicationJsonBuilder)? b, final void Function(UppushUnifiedpushDiscoveryResponse200ApplicationJsonBuilder)? b,
]) = _$UppushUnifiedpushDiscoveryResponse200ApplicationJson; ]) = _$UppushUnifiedpushDiscoveryResponse200ApplicationJson;
// coverage:ignore-start
const UppushUnifiedpushDiscoveryResponse200ApplicationJson._(); const UppushUnifiedpushDiscoveryResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushUnifiedpushDiscoveryResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushUnifiedpushDiscoveryResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush get unifiedpush; UppushUnifiedpushDiscoveryResponse200ApplicationJson_Unifiedpush get unifiedpush;
static Serializer<UppushUnifiedpushDiscoveryResponse200ApplicationJson> get serializer => static Serializer<UppushUnifiedpushDiscoveryResponse200ApplicationJson> get serializer =>
_$uppushUnifiedpushDiscoveryResponse200ApplicationJsonSerializer; _$uppushUnifiedpushDiscoveryResponse200ApplicationJsonSerializer;
@ -556,12 +641,19 @@ abstract class UppushPushResponse201ApplicationJson
implements Built<UppushPushResponse201ApplicationJson, UppushPushResponse201ApplicationJsonBuilder> { implements Built<UppushPushResponse201ApplicationJson, UppushPushResponse201ApplicationJsonBuilder> {
factory UppushPushResponse201ApplicationJson([final void Function(UppushPushResponse201ApplicationJsonBuilder)? b]) = factory UppushPushResponse201ApplicationJson([final void Function(UppushPushResponse201ApplicationJsonBuilder)? b]) =
_$UppushPushResponse201ApplicationJson; _$UppushPushResponse201ApplicationJson;
// coverage:ignore-start
const UppushPushResponse201ApplicationJson._(); const UppushPushResponse201ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushPushResponse201ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushPushResponse201ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get success; bool get success;
static Serializer<UppushPushResponse201ApplicationJson> get serializer => static Serializer<UppushPushResponse201ApplicationJson> get serializer =>
_$uppushPushResponse201ApplicationJsonSerializer; _$uppushPushResponse201ApplicationJsonSerializer;
@ -574,14 +666,21 @@ abstract class UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpus
factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush([ factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush([
final void Function(UppushGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? b, final void Function(UppushGatewayMatrixDiscoveryResponse200ApplicationJson_UnifiedpushBuilder)? b,
]) = _$UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush; ]) = _$UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush;
// coverage:ignore-start
const UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush._(); const UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson( factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush.fromJson(
final Map<String, dynamic> json, final Map<String, dynamic> json,
) => ) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get gateway; String get gateway;
static Serializer<UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush> get serializer => static Serializer<UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush> get serializer =>
_$uppushGatewayMatrixDiscoveryResponse200ApplicationJsonUnifiedpushSerializer; _$uppushGatewayMatrixDiscoveryResponse200ApplicationJsonUnifiedpushSerializer;
@ -594,12 +693,19 @@ abstract class UppushGatewayMatrixDiscoveryResponse200ApplicationJson
factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson([ factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson([
final void Function(UppushGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder)? b, final void Function(UppushGatewayMatrixDiscoveryResponse200ApplicationJsonBuilder)? b,
]) = _$UppushGatewayMatrixDiscoveryResponse200ApplicationJson; ]) = _$UppushGatewayMatrixDiscoveryResponse200ApplicationJson;
// coverage:ignore-start
const UppushGatewayMatrixDiscoveryResponse200ApplicationJson._(); const UppushGatewayMatrixDiscoveryResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushGatewayMatrixDiscoveryResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush get unifiedpush; UppushGatewayMatrixDiscoveryResponse200ApplicationJson_Unifiedpush get unifiedpush;
static Serializer<UppushGatewayMatrixDiscoveryResponse200ApplicationJson> get serializer => static Serializer<UppushGatewayMatrixDiscoveryResponse200ApplicationJson> get serializer =>
_$uppushGatewayMatrixDiscoveryResponse200ApplicationJsonSerializer; _$uppushGatewayMatrixDiscoveryResponse200ApplicationJsonSerializer;
@ -611,17 +717,25 @@ abstract class UppushGatewayMatrixResponse200ApplicationJson
factory UppushGatewayMatrixResponse200ApplicationJson([ factory UppushGatewayMatrixResponse200ApplicationJson([
final void Function(UppushGatewayMatrixResponse200ApplicationJsonBuilder)? b, final void Function(UppushGatewayMatrixResponse200ApplicationJsonBuilder)? b,
]) = _$UppushGatewayMatrixResponse200ApplicationJson; ]) = _$UppushGatewayMatrixResponse200ApplicationJson;
// coverage:ignore-start
const UppushGatewayMatrixResponse200ApplicationJson._(); const UppushGatewayMatrixResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UppushGatewayMatrixResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UppushGatewayMatrixResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
BuiltList<String> get rejected; BuiltList<String> get rejected;
static Serializer<UppushGatewayMatrixResponse200ApplicationJson> get serializer => static Serializer<UppushGatewayMatrixResponse200ApplicationJson> get serializer =>
_$uppushGatewayMatrixResponse200ApplicationJsonSerializer; _$uppushGatewayMatrixResponse200ApplicationJsonSerializer;
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory( ..addBuilderFactory(
const FullType(UppushCheckResponse200ApplicationJson), const FullType(UppushCheckResponse200ApplicationJson),
@ -698,7 +812,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeUppush<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeUppush<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeUppush<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeUppush<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

250
packages/nextcloud/lib/src/api/user_status.openapi.dart

@ -95,6 +95,7 @@ class UserStatusHeartbeatClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -103,8 +104,9 @@ class UserStatusHeartbeatClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
queryParameters['status'] = status; queryParameters['status'] = status;
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
@ -138,6 +140,7 @@ class UserStatusPredefinedStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -146,8 +149,9 @@ class UserStatusPredefinedStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
@ -182,6 +186,7 @@ class UserStatusStatusesClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -190,8 +195,9 @@ class UserStatusStatusesClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
if (limit != null) { if (limit != null) {
queryParameters['limit'] = limit.toString(); queryParameters['limit'] = limit.toString();
} }
@ -225,6 +231,7 @@ class UserStatusStatusesClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -233,8 +240,9 @@ class UserStatusStatusesClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{userId}', Uri.encodeQueryComponent(userId)); path = path.replaceAll('{userId}', Uri.encodeQueryComponent(userId));
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
@ -268,6 +276,7 @@ class UserStatusUserStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -276,8 +285,9 @@ class UserStatusUserStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'get', 'get',
@ -305,6 +315,7 @@ class UserStatusUserStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -313,8 +324,9 @@ class UserStatusUserStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
queryParameters['statusType'] = statusType; queryParameters['statusType'] = statusType;
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
@ -344,6 +356,7 @@ class UserStatusUserStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -352,8 +365,9 @@ class UserStatusUserStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
queryParameters['messageId'] = messageId; queryParameters['messageId'] = messageId;
if (clearAt != null) { if (clearAt != null) {
queryParameters['clearAt'] = clearAt.toString(); queryParameters['clearAt'] = clearAt.toString();
@ -387,6 +401,7 @@ class UserStatusUserStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -395,8 +410,9 @@ class UserStatusUserStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
if (statusIcon != null) { if (statusIcon != null) {
queryParameters['statusIcon'] = statusIcon; queryParameters['statusIcon'] = statusIcon;
} }
@ -432,6 +448,7 @@ class UserStatusUserStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -440,8 +457,9 @@ class UserStatusUserStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
'delete', 'delete',
@ -469,6 +487,7 @@ class UserStatusUserStatusClient {
'Accept': 'application/json', 'Accept': 'application/json',
}; };
Uint8List? body; Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) { if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll( headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers, rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -477,8 +496,9 @@ class UserStatusUserStatusClient {
headers headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers); .addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} else { } else {
throw Exception('Missing authentication for bearer_auth or basic_auth'); // coverage:ignore-line throw Exception('Missing authentication for bearer_auth or basic_auth');
} }
// coverage:ignore-end
path = path.replaceAll('{messageId}', Uri.encodeQueryComponent(messageId)); path = path.replaceAll('{messageId}', Uri.encodeQueryComponent(messageId));
headers['OCS-APIRequest'] = oCSAPIRequest; headers['OCS-APIRequest'] = oCSAPIRequest;
final response = await rootClient.doRequest( final response = await rootClient.doRequest(
@ -499,12 +519,19 @@ class UserStatusUserStatusClient {
abstract class UserStatusOCSMeta implements Built<UserStatusOCSMeta, UserStatusOCSMetaBuilder> { abstract class UserStatusOCSMeta implements Built<UserStatusOCSMeta, UserStatusOCSMetaBuilder> {
factory UserStatusOCSMeta([final void Function(UserStatusOCSMetaBuilder)? b]) = _$UserStatusOCSMeta; factory UserStatusOCSMeta([final void Function(UserStatusOCSMetaBuilder)? b]) = _$UserStatusOCSMeta;
// coverage:ignore-start
const UserStatusOCSMeta._(); const UserStatusOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusOCSMeta.fromJson(final Map<String, dynamic> json) => factory UserStatusOCSMeta.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get status; String get status;
int get statuscode; int get statuscode;
String? get message; String? get message;
@ -515,12 +542,19 @@ abstract class UserStatusOCSMeta implements Built<UserStatusOCSMeta, UserStatusO
abstract class UserStatusPublic implements Built<UserStatusPublic, UserStatusPublicBuilder> { abstract class UserStatusPublic implements Built<UserStatusPublic, UserStatusPublicBuilder> {
factory UserStatusPublic([final void Function(UserStatusPublicBuilder)? b]) = _$UserStatusPublic; factory UserStatusPublic([final void Function(UserStatusPublicBuilder)? b]) = _$UserStatusPublic;
// coverage:ignore-start
const UserStatusPublic._(); const UserStatusPublic._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusPublic.fromJson(final Map<String, dynamic> json) => factory UserStatusPublic.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get userId; String get userId;
String? get message; String? get message;
String? get icon; String? get icon;
@ -531,12 +565,19 @@ abstract class UserStatusPublic implements Built<UserStatusPublic, UserStatusPub
abstract class UserStatusPrivate1 implements Built<UserStatusPrivate1, UserStatusPrivate1Builder> { abstract class UserStatusPrivate1 implements Built<UserStatusPrivate1, UserStatusPrivate1Builder> {
factory UserStatusPrivate1([final void Function(UserStatusPrivate1Builder)? b]) = _$UserStatusPrivate1; factory UserStatusPrivate1([final void Function(UserStatusPrivate1Builder)? b]) = _$UserStatusPrivate1;
// coverage:ignore-start
const UserStatusPrivate1._(); const UserStatusPrivate1._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusPrivate1.fromJson(final Map<String, dynamic> json) => factory UserStatusPrivate1.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String? get messageId; String? get messageId;
bool get messageIsPredefined; bool get messageIsPredefined;
bool get statusIsUserDefined; bool get statusIsUserDefined;
@ -544,14 +585,19 @@ abstract class UserStatusPrivate1 implements Built<UserStatusPrivate1, UserStatu
} }
abstract class UserStatusPrivate implements Built<UserStatusPrivate, UserStatusPrivateBuilder> { abstract class UserStatusPrivate implements Built<UserStatusPrivate, UserStatusPrivateBuilder> {
// coverage:ignore-end
factory UserStatusPrivate([final void Function(UserStatusPrivateBuilder)? b]) = _$UserStatusPrivate; factory UserStatusPrivate([final void Function(UserStatusPrivateBuilder)? b]) = _$UserStatusPrivate;
// coverage:ignore-start
const UserStatusPrivate._(); const UserStatusPrivate._();
JsonObject get data; JsonObject get data;
UserStatusPublic get public; UserStatusPublic get public;
UserStatusPrivate1 get private1; UserStatusPrivate1 get private1;
static UserStatusPrivate fromJson(final Object json) => _jsonSerializers.deserializeWith(serializer, json)!; static UserStatusPrivate fromJson(final Object json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueSerializer(custom: true) @BuiltValueSerializer(custom: true)
static Serializer<UserStatusPrivate> get serializer => _$UserStatusPrivateSerializer(); static Serializer<UserStatusPrivate> get serializer => _$UserStatusPrivateSerializer();
} }
@ -595,12 +641,19 @@ abstract class UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs
factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs([ factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs([
final void Function(UserStatusHeartbeatHeartbeatResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusHeartbeatHeartbeatResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs; ]) = _$UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs._(); const UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusPrivate get data; UserStatusPrivate get data;
static Serializer<UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs> get serializer =>
@ -614,12 +667,19 @@ abstract class UserStatusHeartbeatHeartbeatResponse200ApplicationJson
factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson([ factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson([
final void Function(UserStatusHeartbeatHeartbeatResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusHeartbeatHeartbeatResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusHeartbeatHeartbeatResponse200ApplicationJson; ]) = _$UserStatusHeartbeatHeartbeatResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusHeartbeatHeartbeatResponse200ApplicationJson._(); const UserStatusHeartbeatHeartbeatResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusHeartbeatHeartbeatResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs get ocs; UserStatusHeartbeatHeartbeatResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusHeartbeatHeartbeatResponse200ApplicationJson> get serializer => static Serializer<UserStatusHeartbeatHeartbeatResponse200ApplicationJson> get serializer =>
_$userStatusHeartbeatHeartbeatResponse200ApplicationJsonSerializer; _$userStatusHeartbeatHeartbeatResponse200ApplicationJsonSerializer;
@ -633,7 +693,9 @@ class UserStatusClearAt_Type extends EnumClass {
@BuiltValueEnumConst(wireName: 'end-of') @BuiltValueEnumConst(wireName: 'end-of')
static const UserStatusClearAt_Type endOf = _$userStatusClearAtTypeEndOf; static const UserStatusClearAt_Type endOf = _$userStatusClearAtTypeEndOf;
// coverage:ignore-start
static BuiltSet<UserStatusClearAt_Type> get values => _$userStatusClearAtTypeValues; static BuiltSet<UserStatusClearAt_Type> get values => _$userStatusClearAtTypeValues;
// coverage:ignore-end
static UserStatusClearAt_Type valueOf(final String name) => _$valueOfUserStatusClearAt_Type(name); static UserStatusClearAt_Type valueOf(final String name) => _$valueOfUserStatusClearAt_Type(name);
static Serializer<UserStatusClearAt_Type> get serializer => _$userStatusClearAtTypeSerializer; static Serializer<UserStatusClearAt_Type> get serializer => _$userStatusClearAtTypeSerializer;
} }
@ -645,20 +707,27 @@ class UserStatusClearAtTimeType extends EnumClass {
static const UserStatusClearAtTimeType week = _$userStatusClearAtTimeTypeWeek; static const UserStatusClearAtTimeType week = _$userStatusClearAtTimeTypeWeek;
// coverage:ignore-start
static BuiltSet<UserStatusClearAtTimeType> get values => _$userStatusClearAtTimeTypeValues; static BuiltSet<UserStatusClearAtTimeType> get values => _$userStatusClearAtTimeTypeValues;
// coverage:ignore-end
static UserStatusClearAtTimeType valueOf(final String name) => _$valueOfUserStatusClearAtTimeType(name); static UserStatusClearAtTimeType valueOf(final String name) => _$valueOfUserStatusClearAtTimeType(name);
static Serializer<UserStatusClearAtTimeType> get serializer => _$userStatusClearAtTimeTypeSerializer; static Serializer<UserStatusClearAtTimeType> get serializer => _$userStatusClearAtTimeTypeSerializer;
} }
abstract class UserStatusClearAt_Time implements Built<UserStatusClearAt_Time, UserStatusClearAt_TimeBuilder> { abstract class UserStatusClearAt_Time implements Built<UserStatusClearAt_Time, UserStatusClearAt_TimeBuilder> {
// coverage:ignore-end
factory UserStatusClearAt_Time([final void Function(UserStatusClearAt_TimeBuilder)? b]) = _$UserStatusClearAt_Time; factory UserStatusClearAt_Time([final void Function(UserStatusClearAt_TimeBuilder)? b]) = _$UserStatusClearAt_Time;
// coverage:ignore-start
const UserStatusClearAt_Time._(); const UserStatusClearAt_Time._();
JsonObject get data; JsonObject get data;
int? get $int; int? get $int;
UserStatusClearAtTimeType? get clearAtTimeType; UserStatusClearAtTimeType? get clearAtTimeType;
static UserStatusClearAt_Time fromJson(final Object json) => _jsonSerializers.deserializeWith(serializer, json)!; static UserStatusClearAt_Time fromJson(final Object json) => _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueSerializer(custom: true) @BuiltValueSerializer(custom: true)
static Serializer<UserStatusClearAt_Time> get serializer => _$UserStatusClearAt_TimeSerializer(); static Serializer<UserStatusClearAt_Time> get serializer => _$UserStatusClearAt_TimeSerializer();
} }
@ -704,12 +773,19 @@ class _$UserStatusClearAt_TimeSerializer implements PrimitiveSerializer<UserStat
abstract class UserStatusClearAt implements Built<UserStatusClearAt, UserStatusClearAtBuilder> { abstract class UserStatusClearAt implements Built<UserStatusClearAt, UserStatusClearAtBuilder> {
factory UserStatusClearAt([final void Function(UserStatusClearAtBuilder)? b]) = _$UserStatusClearAt; factory UserStatusClearAt([final void Function(UserStatusClearAtBuilder)? b]) = _$UserStatusClearAt;
// coverage:ignore-start
const UserStatusClearAt._(); const UserStatusClearAt._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusClearAt.fromJson(final Map<String, dynamic> json) => factory UserStatusClearAt.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusClearAt_Type get type; UserStatusClearAt_Type get type;
UserStatusClearAt_Time get time; UserStatusClearAt_Time get time;
static Serializer<UserStatusClearAt> get serializer => _$userStatusClearAtSerializer; static Serializer<UserStatusClearAt> get serializer => _$userStatusClearAtSerializer;
@ -717,12 +793,19 @@ abstract class UserStatusClearAt implements Built<UserStatusClearAt, UserStatusC
abstract class UserStatusPredefined implements Built<UserStatusPredefined, UserStatusPredefinedBuilder> { abstract class UserStatusPredefined implements Built<UserStatusPredefined, UserStatusPredefinedBuilder> {
factory UserStatusPredefined([final void Function(UserStatusPredefinedBuilder)? b]) = _$UserStatusPredefined; factory UserStatusPredefined([final void Function(UserStatusPredefinedBuilder)? b]) = _$UserStatusPredefined;
// coverage:ignore-start
const UserStatusPredefined._(); const UserStatusPredefined._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusPredefined.fromJson(final Map<String, dynamic> json) => factory UserStatusPredefined.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
String get id; String get id;
String get icon; String get icon;
String get message; String get message;
@ -738,12 +821,19 @@ abstract class UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs
factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs([ factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs([
final void Function(UserStatusPredefinedStatusFindAllResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusPredefinedStatusFindAllResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs; ]) = _$UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs._(); const UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
BuiltList<UserStatusPredefined> get data; BuiltList<UserStatusPredefined> get data;
static Serializer<UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs> get serializer =>
@ -757,12 +847,19 @@ abstract class UserStatusPredefinedStatusFindAllResponse200ApplicationJson
factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson([ factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson([
final void Function(UserStatusPredefinedStatusFindAllResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusPredefinedStatusFindAllResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusPredefinedStatusFindAllResponse200ApplicationJson; ]) = _$UserStatusPredefinedStatusFindAllResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusPredefinedStatusFindAllResponse200ApplicationJson._(); const UserStatusPredefinedStatusFindAllResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusPredefinedStatusFindAllResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs get ocs; UserStatusPredefinedStatusFindAllResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusPredefinedStatusFindAllResponse200ApplicationJson> get serializer => static Serializer<UserStatusPredefinedStatusFindAllResponse200ApplicationJson> get serializer =>
_$userStatusPredefinedStatusFindAllResponse200ApplicationJsonSerializer; _$userStatusPredefinedStatusFindAllResponse200ApplicationJsonSerializer;
@ -775,12 +872,19 @@ abstract class UserStatusStatusesFindAllResponse200ApplicationJson_Ocs
factory UserStatusStatusesFindAllResponse200ApplicationJson_Ocs([ factory UserStatusStatusesFindAllResponse200ApplicationJson_Ocs([
final void Function(UserStatusStatusesFindAllResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusStatusesFindAllResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusStatusesFindAllResponse200ApplicationJson_Ocs; ]) = _$UserStatusStatusesFindAllResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusStatusesFindAllResponse200ApplicationJson_Ocs._(); const UserStatusStatusesFindAllResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusStatusesFindAllResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusStatusesFindAllResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
BuiltList<UserStatusPublic> get data; BuiltList<UserStatusPublic> get data;
static Serializer<UserStatusStatusesFindAllResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusStatusesFindAllResponse200ApplicationJson_Ocs> get serializer =>
@ -794,12 +898,19 @@ abstract class UserStatusStatusesFindAllResponse200ApplicationJson
factory UserStatusStatusesFindAllResponse200ApplicationJson([ factory UserStatusStatusesFindAllResponse200ApplicationJson([
final void Function(UserStatusStatusesFindAllResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusStatusesFindAllResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusStatusesFindAllResponse200ApplicationJson; ]) = _$UserStatusStatusesFindAllResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusStatusesFindAllResponse200ApplicationJson._(); const UserStatusStatusesFindAllResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusStatusesFindAllResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusStatusesFindAllResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusStatusesFindAllResponse200ApplicationJson_Ocs get ocs; UserStatusStatusesFindAllResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusStatusesFindAllResponse200ApplicationJson> get serializer => static Serializer<UserStatusStatusesFindAllResponse200ApplicationJson> get serializer =>
_$userStatusStatusesFindAllResponse200ApplicationJsonSerializer; _$userStatusStatusesFindAllResponse200ApplicationJsonSerializer;
@ -812,12 +923,19 @@ abstract class UserStatusStatusesFindResponse200ApplicationJson_Ocs
factory UserStatusStatusesFindResponse200ApplicationJson_Ocs([ factory UserStatusStatusesFindResponse200ApplicationJson_Ocs([
final void Function(UserStatusStatusesFindResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusStatusesFindResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusStatusesFindResponse200ApplicationJson_Ocs; ]) = _$UserStatusStatusesFindResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusStatusesFindResponse200ApplicationJson_Ocs._(); const UserStatusStatusesFindResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusStatusesFindResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusStatusesFindResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusPublic get data; UserStatusPublic get data;
static Serializer<UserStatusStatusesFindResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusStatusesFindResponse200ApplicationJson_Ocs> get serializer =>
@ -831,12 +949,19 @@ abstract class UserStatusStatusesFindResponse200ApplicationJson
factory UserStatusStatusesFindResponse200ApplicationJson([ factory UserStatusStatusesFindResponse200ApplicationJson([
final void Function(UserStatusStatusesFindResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusStatusesFindResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusStatusesFindResponse200ApplicationJson; ]) = _$UserStatusStatusesFindResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusStatusesFindResponse200ApplicationJson._(); const UserStatusStatusesFindResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusStatusesFindResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusStatusesFindResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusStatusesFindResponse200ApplicationJson_Ocs get ocs; UserStatusStatusesFindResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusStatusesFindResponse200ApplicationJson> get serializer => static Serializer<UserStatusStatusesFindResponse200ApplicationJson> get serializer =>
_$userStatusStatusesFindResponse200ApplicationJsonSerializer; _$userStatusStatusesFindResponse200ApplicationJsonSerializer;
@ -849,12 +974,19 @@ abstract class UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs
factory UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs([ factory UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs([
final void Function(UserStatusUserStatusGetStatusResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusUserStatusGetStatusResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs; ]) = _$UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs._(); const UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusPrivate get data; UserStatusPrivate get data;
static Serializer<UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs> get serializer =>
@ -868,12 +1000,19 @@ abstract class UserStatusUserStatusGetStatusResponse200ApplicationJson
factory UserStatusUserStatusGetStatusResponse200ApplicationJson([ factory UserStatusUserStatusGetStatusResponse200ApplicationJson([
final void Function(UserStatusUserStatusGetStatusResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusUserStatusGetStatusResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusUserStatusGetStatusResponse200ApplicationJson; ]) = _$UserStatusUserStatusGetStatusResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusUserStatusGetStatusResponse200ApplicationJson._(); const UserStatusUserStatusGetStatusResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusGetStatusResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusGetStatusResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs get ocs; UserStatusUserStatusGetStatusResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusUserStatusGetStatusResponse200ApplicationJson> get serializer => static Serializer<UserStatusUserStatusGetStatusResponse200ApplicationJson> get serializer =>
_$userStatusUserStatusGetStatusResponse200ApplicationJsonSerializer; _$userStatusUserStatusGetStatusResponse200ApplicationJsonSerializer;
@ -886,12 +1025,19 @@ abstract class UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs
factory UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs([ factory UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs([
final void Function(UserStatusUserStatusSetStatusResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusUserStatusSetStatusResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs; ]) = _$UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs._(); const UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusPrivate get data; UserStatusPrivate get data;
static Serializer<UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs> get serializer =>
@ -905,12 +1051,19 @@ abstract class UserStatusUserStatusSetStatusResponse200ApplicationJson
factory UserStatusUserStatusSetStatusResponse200ApplicationJson([ factory UserStatusUserStatusSetStatusResponse200ApplicationJson([
final void Function(UserStatusUserStatusSetStatusResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusUserStatusSetStatusResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusUserStatusSetStatusResponse200ApplicationJson; ]) = _$UserStatusUserStatusSetStatusResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusUserStatusSetStatusResponse200ApplicationJson._(); const UserStatusUserStatusSetStatusResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusSetStatusResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusSetStatusResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs get ocs; UserStatusUserStatusSetStatusResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusUserStatusSetStatusResponse200ApplicationJson> get serializer => static Serializer<UserStatusUserStatusSetStatusResponse200ApplicationJson> get serializer =>
_$userStatusUserStatusSetStatusResponse200ApplicationJsonSerializer; _$userStatusUserStatusSetStatusResponse200ApplicationJsonSerializer;
@ -923,14 +1076,21 @@ abstract class UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJso
factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs([ factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs([
final void Function(UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs; ]) = _$UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs._(); const UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs.fromJson( factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs.fromJson(
final Map<String, dynamic> json, final Map<String, dynamic> json,
) => ) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusPrivate get data; UserStatusPrivate get data;
static Serializer<UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs> get serializer =>
@ -944,14 +1104,21 @@ abstract class UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJso
factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson([ factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson([
final void Function(UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson; ]) = _$UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson._(); const UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson.fromJson( factory UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson.fromJson(
final Map<String, dynamic> json, final Map<String, dynamic> json,
) => ) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs get ocs; UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson> get serializer => static Serializer<UserStatusUserStatusSetPredefinedMessageResponse200ApplicationJson> get serializer =>
_$userStatusUserStatusSetPredefinedMessageResponse200ApplicationJsonSerializer; _$userStatusUserStatusSetPredefinedMessageResponse200ApplicationJsonSerializer;
@ -964,14 +1131,21 @@ abstract class UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Oc
factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs([ factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs([
final void Function(UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs; ]) = _$UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs._(); const UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs.fromJson( factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs.fromJson(
final Map<String, dynamic> json, final Map<String, dynamic> json,
) => ) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusPrivate get data; UserStatusPrivate get data;
static Serializer<UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs> get serializer =>
@ -985,12 +1159,19 @@ abstract class UserStatusUserStatusSetCustomMessageResponse200ApplicationJson
factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson([ factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson([
final void Function(UserStatusUserStatusSetCustomMessageResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusUserStatusSetCustomMessageResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusUserStatusSetCustomMessageResponse200ApplicationJson; ]) = _$UserStatusUserStatusSetCustomMessageResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusUserStatusSetCustomMessageResponse200ApplicationJson._(); const UserStatusUserStatusSetCustomMessageResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusSetCustomMessageResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs get ocs; UserStatusUserStatusSetCustomMessageResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusUserStatusSetCustomMessageResponse200ApplicationJson> get serializer => static Serializer<UserStatusUserStatusSetCustomMessageResponse200ApplicationJson> get serializer =>
_$userStatusUserStatusSetCustomMessageResponse200ApplicationJsonSerializer; _$userStatusUserStatusSetCustomMessageResponse200ApplicationJsonSerializer;
@ -1003,12 +1184,19 @@ abstract class UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs
factory UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs([ factory UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs([
final void Function(UserStatusUserStatusClearMessageResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusUserStatusClearMessageResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs; ]) = _$UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs._(); const UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
JsonObject get data; JsonObject get data;
static Serializer<UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs> get serializer =>
@ -1022,12 +1210,19 @@ abstract class UserStatusUserStatusClearMessageResponse200ApplicationJson
factory UserStatusUserStatusClearMessageResponse200ApplicationJson([ factory UserStatusUserStatusClearMessageResponse200ApplicationJson([
final void Function(UserStatusUserStatusClearMessageResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusUserStatusClearMessageResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusUserStatusClearMessageResponse200ApplicationJson; ]) = _$UserStatusUserStatusClearMessageResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusUserStatusClearMessageResponse200ApplicationJson._(); const UserStatusUserStatusClearMessageResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusClearMessageResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusClearMessageResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs get ocs; UserStatusUserStatusClearMessageResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusUserStatusClearMessageResponse200ApplicationJson> get serializer => static Serializer<UserStatusUserStatusClearMessageResponse200ApplicationJson> get serializer =>
_$userStatusUserStatusClearMessageResponse200ApplicationJsonSerializer; _$userStatusUserStatusClearMessageResponse200ApplicationJsonSerializer;
@ -1037,9 +1232,12 @@ abstract class UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Da
implements implements
Built<UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data, Built<UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data,
UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_DataBuilder> { UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_DataBuilder> {
// coverage:ignore-end
factory UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data([ factory UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data([
final void Function(UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_DataBuilder)? b, final void Function(UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_DataBuilder)? b,
]) = _$UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data; ]) = _$UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data;
// coverage:ignore-start
const UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data._(); const UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data._();
JsonObject get data; JsonObject get data;
@ -1047,7 +1245,9 @@ abstract class UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Da
JsonObject? get jsonObject; JsonObject? get jsonObject;
static UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data fromJson(final Object json) => static UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data fromJson(final Object json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueSerializer(custom: true) @BuiltValueSerializer(custom: true)
static Serializer<UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data> get serializer => static Serializer<UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data> get serializer =>
_$UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_DataSerializer(); _$UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_DataSerializer();
@ -1103,12 +1303,19 @@ abstract class UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs
factory UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs([ factory UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs([
final void Function(UserStatusUserStatusRevertStatusResponse200ApplicationJson_OcsBuilder)? b, final void Function(UserStatusUserStatusRevertStatusResponse200ApplicationJson_OcsBuilder)? b,
]) = _$UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs; ]) = _$UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs;
// coverage:ignore-start
const UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs._(); const UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusOCSMeta get meta; UserStatusOCSMeta get meta;
UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data get data; UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs_Data get data;
static Serializer<UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs> get serializer => static Serializer<UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs> get serializer =>
@ -1122,12 +1329,19 @@ abstract class UserStatusUserStatusRevertStatusResponse200ApplicationJson
factory UserStatusUserStatusRevertStatusResponse200ApplicationJson([ factory UserStatusUserStatusRevertStatusResponse200ApplicationJson([
final void Function(UserStatusUserStatusRevertStatusResponse200ApplicationJsonBuilder)? b, final void Function(UserStatusUserStatusRevertStatusResponse200ApplicationJsonBuilder)? b,
]) = _$UserStatusUserStatusRevertStatusResponse200ApplicationJson; ]) = _$UserStatusUserStatusRevertStatusResponse200ApplicationJson;
// coverage:ignore-start
const UserStatusUserStatusRevertStatusResponse200ApplicationJson._(); const UserStatusUserStatusRevertStatusResponse200ApplicationJson._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusUserStatusRevertStatusResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) => factory UserStatusUserStatusRevertStatusResponse200ApplicationJson.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs get ocs; UserStatusUserStatusRevertStatusResponse200ApplicationJson_Ocs get ocs;
static Serializer<UserStatusUserStatusRevertStatusResponse200ApplicationJson> get serializer => static Serializer<UserStatusUserStatusRevertStatusResponse200ApplicationJson> get serializer =>
_$userStatusUserStatusRevertStatusResponse200ApplicationJsonSerializer; _$userStatusUserStatusRevertStatusResponse200ApplicationJsonSerializer;
@ -1137,12 +1351,19 @@ abstract class UserStatusCapabilities_UserStatus
implements Built<UserStatusCapabilities_UserStatus, UserStatusCapabilities_UserStatusBuilder> { implements Built<UserStatusCapabilities_UserStatus, UserStatusCapabilities_UserStatusBuilder> {
factory UserStatusCapabilities_UserStatus([final void Function(UserStatusCapabilities_UserStatusBuilder)? b]) = factory UserStatusCapabilities_UserStatus([final void Function(UserStatusCapabilities_UserStatusBuilder)? b]) =
_$UserStatusCapabilities_UserStatus; _$UserStatusCapabilities_UserStatus;
// coverage:ignore-start
const UserStatusCapabilities_UserStatus._(); const UserStatusCapabilities_UserStatus._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusCapabilities_UserStatus.fromJson(final Map<String, dynamic> json) => factory UserStatusCapabilities_UserStatus.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
bool get enabled; bool get enabled;
bool get restore; bool get restore;
@BuiltValueField(wireName: 'supports_emoji') @BuiltValueField(wireName: 'supports_emoji')
@ -1152,17 +1373,25 @@ abstract class UserStatusCapabilities_UserStatus
abstract class UserStatusCapabilities implements Built<UserStatusCapabilities, UserStatusCapabilitiesBuilder> { abstract class UserStatusCapabilities implements Built<UserStatusCapabilities, UserStatusCapabilitiesBuilder> {
factory UserStatusCapabilities([final void Function(UserStatusCapabilitiesBuilder)? b]) = _$UserStatusCapabilities; factory UserStatusCapabilities([final void Function(UserStatusCapabilitiesBuilder)? b]) = _$UserStatusCapabilities;
// coverage:ignore-start
const UserStatusCapabilities._(); const UserStatusCapabilities._();
// coverage:ignore-end
// coverage:ignore-start
factory UserStatusCapabilities.fromJson(final Map<String, dynamic> json) => factory UserStatusCapabilities.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
@BuiltValueField(wireName: 'user_status') @BuiltValueField(wireName: 'user_status')
UserStatusCapabilities_UserStatus get userStatus; UserStatusCapabilities_UserStatus get userStatus;
static Serializer<UserStatusCapabilities> get serializer => _$userStatusCapabilitiesSerializer; static Serializer<UserStatusCapabilities> get serializer => _$userStatusCapabilitiesSerializer;
} }
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory( ..addBuilderFactory(
const FullType(UserStatusHeartbeatHeartbeatResponse200ApplicationJson), const FullType(UserStatusHeartbeatHeartbeatResponse200ApplicationJson),
@ -1303,7 +1532,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin())) ..addPlugin(const ContentStringPlugin()))
.build(); .build();
// coverage:ignore-start
T deserializeUserStatus<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T; T deserializeUserStatus<T>(final Object data) => _serializers.deserialize(data, specifiedType: FullType(T))! as T;
Object? serializeUserStatus<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T)); Object? serializeUserStatus<T>(final T data) => _serializers.serialize(data, specifiedType: FullType(T));

4
packages/nextcloud/lib/src/client.dart

@ -96,6 +96,8 @@ class NextcloudClient extends DynamiteClient {
UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this); UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this);
} }
// coverage:ignore-start
// ignore: public_member_api_docs // ignore: public_member_api_docs
final serializers = Serializers.merge([ final serializers = Serializers.merge([
coreSerializers, coreSerializers,
@ -118,3 +120,5 @@ T deserializeNextcloud<T>(final Object data) => serializers.deserialize(data, sp
// ignore: public_member_api_docs // ignore: public_member_api_docs
Object? serializeNextcloud<T>(final T data) => serializers.serialize(data, specifiedType: FullType(T)); Object? serializeNextcloud<T>(final T data) => serializers.serialize(data, specifiedType: FullType(T));
// coverage:ignore-end

2
packages/nextcloud/lib/src/helpers/notifications.dart

@ -1,3 +1,5 @@
// coverage:ignore-file
import 'dart:convert'; import 'dart:convert';
import 'package:crypto/crypto.dart'; import 'package:crypto/crypto.dart';

2
tool/coverage.sh

@ -8,7 +8,7 @@ mkdir -p /tmp/nextcloud-neon
( (
cd packages/nextcloud cd packages/nextcloud
rm coverage -rf rm coverage -rf
fvm dart run coverage:test_with_coverage --function-coverage --branch-coverage -- --timeout 60s "$@" fvm dart run coverage:test_with_coverage -- --concurrency="$(nproc --all)" "$@"
lcov --remove coverage/lcov.info "$(pwd)/lib/src/**.g.dart" -o coverage/filtered.info lcov --remove coverage/lcov.info "$(pwd)/lib/src/**.g.dart" -o coverage/filtered.info
genhtml coverage/filtered.info -o coverage/html genhtml coverage/filtered.info -o coverage/html
) )

Loading…
Cancel
Save