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. 966
      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 securityRequirements = security.where((final requirement) => requirement.isNotEmpty);
final isOptionalSecurity = securityRequirements.length != security.length;
code.write(' // coverage:ignore-start\n');
for (final requirement in securityRequirements) {
final securityScheme = spec.components!.securitySchemes![requirement.keys.single]!;
code.write('''
@ -387,10 +388,11 @@ class OpenAPIBuilder implements Builder {
if (securityRequirements.isNotEmpty && !isOptionalSecurity) {
code.write('''
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) {
final dartParameterNullable = _isDartParameterNullable(
@ -710,6 +712,7 @@ class OpenAPIBuilder implements Builder {
if (state.resolvedTypes.isNotEmpty) {
output.addAll([
'// coverage:ignore-start',
'final Serializers _serializers = (Serializers().toBuilder()',
...state.resolvedTypes.map((final type) => type.serializers).expand((final element) => element).toSet(),
').build();',
@ -718,7 +721,6 @@ class OpenAPIBuilder implements Builder {
'',
'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;',
'',
'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 = [
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(
r'Map<String, dynamic> toJson\(\) => _\$.*ToJson\(this\);',
r'Map<String, dynamic> toJson\(\) => _jsonSerializers\.serializeWith\(serializer, this\)! as Map<String, dynamic>;',
),
RegExp(
r'dynamic toJson\(\) => _data;',
r'static BuiltSet<.*> get values => _\$.*Values;',
),
];
var outputString = output.join('\n');
for (final pattern in patterns) {
outputString = outputString.replaceAllMapped(
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(
outputId,
formatter.format(outputString),
@ -952,11 +953,6 @@ TypeResult resolveObject(
),
)
..constructors.addAll([
Constructor(
(final b) => b
..name = '_'
..constant = true,
),
Constructor(
(final b) => b
..factory = true
@ -970,6 +966,11 @@ TypeResult resolveObject(
)
..redirect = refer('_\$${state.prefix}$identifier'),
),
Constructor(
(final b) => b
..name = '_'
..constant = true,
),
Constructor(
(final b) => b
..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',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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(
'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -107,11 +109,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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(
'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -132,11 +136,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line
throw Exception('Missing authentication for basic_auth');
}
// coverage:ignore-end
queryParameters['name'] = name;
final response = await doRequest(
'post',
@ -159,11 +165,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
queryParameters['name'] = name;
final response = await doRequest(
@ -183,11 +191,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'delete',
@ -209,11 +219,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
queryParameters['newestItemId'] = newestItemId.toString();
final response = await doRequest(
@ -235,11 +247,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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(
'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -263,11 +277,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line
throw Exception('Missing authentication for basic_auth');
}
// coverage:ignore-end
queryParameters['url'] = url;
if (folderId != null) {
queryParameters['folderId'] = folderId.toString();
@ -290,11 +306,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'delete',
@ -316,11 +334,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
if (folderId != null) {
queryParameters['folderId'] = folderId.toString();
@ -345,11 +365,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
queryParameters['feedTitle'] = feedTitle;
final response = await doRequest(
@ -372,11 +394,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
queryParameters['newestItemId'] = newestItemId.toString();
final response = await doRequest(
@ -405,11 +429,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line
throw Exception('Missing authentication for basic_auth');
}
// coverage:ignore-end
if (type != 3) {
queryParameters['type'] = type.toString();
}
@ -452,11 +478,13 @@ class NewsClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line
throw Exception('Missing authentication for basic_auth');
}
// coverage:ignore-end
if (type != 3) {
queryParameters['type'] = type.toString();
}
@ -484,11 +512,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'post',
@ -507,11 +537,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'post',
@ -530,11 +562,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'post',
@ -553,11 +587,13 @@ class NewsClient extends DynamiteClient {
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'post',
@ -575,23 +611,37 @@ class NewsClient extends DynamiteClient {
abstract class NewsSupportedAPIVersions implements Built<NewsSupportedAPIVersions, NewsSupportedAPIVersionsBuilder> {
factory NewsSupportedAPIVersions([final void Function(NewsSupportedAPIVersionsBuilder)? b]) =
_$NewsSupportedAPIVersions;
// coverage:ignore-start
const NewsSupportedAPIVersions._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsSupportedAPIVersions.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>;
// coverage:ignore-end
BuiltList<String>? get apiLevels;
static Serializer<NewsSupportedAPIVersions> get serializer => _$newsSupportedAPIVersionsSerializer;
}
abstract class NewsArticle implements Built<NewsArticle, NewsArticleBuilder> {
factory NewsArticle([final void Function(NewsArticleBuilder)? b]) = _$NewsArticle;
// coverage:ignore-start
const NewsArticle._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
int get id;
String get guid;
String get guidHash;
@ -617,11 +667,18 @@ abstract class NewsArticle implements Built<NewsArticle, NewsArticleBuilder> {
abstract class NewsFeed implements Built<NewsFeed, NewsFeedBuilder> {
factory NewsFeed([final void Function(NewsFeedBuilder)? b]) = _$NewsFeed;
// coverage:ignore-start
const NewsFeed._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
int get id;
String get url;
String get title;
@ -640,11 +697,18 @@ abstract class NewsFeed implements Built<NewsFeed, NewsFeedBuilder> {
abstract class NewsFolder implements Built<NewsFolder, NewsFolderBuilder> {
factory NewsFolder([final void Function(NewsFolderBuilder)? b]) = _$NewsFolder;
// coverage:ignore-start
const NewsFolder._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
int get id;
String get name;
bool get opened;
@ -656,24 +720,38 @@ abstract class NewsFolder implements Built<NewsFolder, NewsFolderBuilder> {
abstract class NewsListFolders implements Built<NewsListFolders, NewsListFoldersBuilder> {
factory NewsListFolders([final void Function(NewsListFoldersBuilder)? b]) = _$NewsListFolders;
// coverage:ignore-start
const NewsListFolders._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsListFolders.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>;
// coverage:ignore-end
BuiltList<NewsFolder> get folders;
static Serializer<NewsListFolders> get serializer => _$newsListFoldersSerializer;
}
abstract class NewsListFeeds implements Built<NewsListFeeds, NewsListFeedsBuilder> {
factory NewsListFeeds([final void Function(NewsListFeedsBuilder)? b]) = _$NewsListFeeds;
// coverage:ignore-start
const NewsListFeeds._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsListFeeds.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>;
// coverage:ignore-end
int? get starredCount;
int? get newestItemId;
BuiltList<NewsFeed> get feeds;
@ -682,23 +760,37 @@ abstract class NewsListFeeds implements Built<NewsListFeeds, NewsListFeedsBuilde
abstract class NewsListArticles implements Built<NewsListArticles, NewsListArticlesBuilder> {
factory NewsListArticles([final void Function(NewsListArticlesBuilder)? b]) = _$NewsListArticles;
// coverage:ignore-start
const NewsListArticles._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsListArticles.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>;
// coverage:ignore-end
BuiltList<NewsArticle> get items;
static Serializer<NewsListArticles> get serializer => _$newsListArticlesSerializer;
}
abstract class NewsOCSMeta implements Built<NewsOCSMeta, NewsOCSMetaBuilder> {
factory NewsOCSMeta([final void Function(NewsOCSMetaBuilder)? b]) = _$NewsOCSMeta;
// coverage:ignore-start
const NewsOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
String get status;
int get statuscode;
String? get message;
@ -709,12 +801,19 @@ abstract class NewsOCSMeta implements Built<NewsOCSMeta, NewsOCSMetaBuilder> {
abstract class NewsEmptyOCS_Ocs implements Built<NewsEmptyOCS_Ocs, NewsEmptyOCS_OcsBuilder> {
factory NewsEmptyOCS_Ocs([final void Function(NewsEmptyOCS_OcsBuilder)? b]) = _$NewsEmptyOCS_Ocs;
// coverage:ignore-start
const NewsEmptyOCS_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NewsEmptyOCS_Ocs.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>;
// coverage:ignore-end
NewsOCSMeta get meta;
BuiltList<JsonObject> get data;
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> {
factory NewsEmptyOCS([final void Function(NewsEmptyOCSBuilder)? b]) = _$NewsEmptyOCS;
// coverage:ignore-start
const NewsEmptyOCS._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
NewsEmptyOCS_Ocs get ocs;
static Serializer<NewsEmptyOCS> get serializer => _$newsEmptyOCSSerializer;
}
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(NewsSupportedAPIVersions), NewsSupportedAPIVersions.new)
..add(NewsSupportedAPIVersions.serializer)
@ -766,7 +873,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin()))
.build();
// coverage:ignore-start
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));

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

@ -87,11 +87,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line
throw Exception('Missing authentication for basic_auth');
}
// coverage:ignore-end
if (category != null) {
queryParameters['category'] = category;
}
@ -138,11 +140,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} else {
throw Exception('Missing authentication for basic_auth'); // coverage:ignore-line
throw Exception('Missing authentication for basic_auth');
}
// coverage:ignore-end
if (category != '') {
queryParameters['category'] = category;
}
@ -182,11 +186,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
if (exclude != '') {
queryParameters['exclude'] = exclude;
@ -222,11 +228,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
if (content != null) {
queryParameters['content'] = content;
@ -266,11 +274,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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()));
final response = await doRequest(
'delete',
@ -291,11 +301,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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(
'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -316,11 +328,13 @@ class NotesClient extends DynamiteClient {
'Accept': 'application/json',
};
Uint8List? body;
// coverage:ignore-start
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);
} 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';
body = Uint8List.fromList(
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> {
factory NotesNote([final void Function(NotesNoteBuilder)? b]) = _$NotesNote;
// coverage:ignore-start
const NotesNote._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
int get id;
String get etag;
bool get readonly;
@ -368,19 +389,28 @@ class NotesSettings_NoteMode extends EnumClass {
static const NotesSettings_NoteMode rich = _$notesSettingsNoteModeRich;
// coverage:ignore-start
static BuiltSet<NotesSettings_NoteMode> get values => _$notesSettingsNoteModeValues;
// coverage:ignore-end
static NotesSettings_NoteMode valueOf(final String name) => _$valueOfNotesSettings_NoteMode(name);
static Serializer<NotesSettings_NoteMode> get serializer => _$notesSettingsNoteModeSerializer;
}
abstract class NotesSettings implements Built<NotesSettings, NotesSettingsBuilder> {
factory NotesSettings([final void Function(NotesSettingsBuilder)? b]) = _$NotesSettings;
// coverage:ignore-start
const NotesSettings._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesSettings.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>;
// coverage:ignore-end
String get notesPath;
String get fileSuffix;
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> {
factory NotesCapabilities_Notes([final void Function(NotesCapabilities_NotesBuilder)? b]) = _$NotesCapabilities_Notes;
// coverage:ignore-start
const NotesCapabilities_Notes._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesCapabilities_Notes.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>;
// coverage:ignore-end
@BuiltValueField(wireName: 'api_version')
BuiltList<String>? get apiVersion;
String? get version;
@ -403,23 +440,37 @@ abstract class NotesCapabilities_Notes implements Built<NotesCapabilities_Notes,
abstract class NotesCapabilities implements Built<NotesCapabilities, NotesCapabilitiesBuilder> {
factory NotesCapabilities([final void Function(NotesCapabilitiesBuilder)? b]) = _$NotesCapabilities;
// coverage:ignore-start
const NotesCapabilities._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesCapabilities.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>;
// coverage:ignore-end
NotesCapabilities_Notes get notes;
static Serializer<NotesCapabilities> get serializer => _$notesCapabilitiesSerializer;
}
abstract class NotesOCSMeta implements Built<NotesOCSMeta, NotesOCSMetaBuilder> {
factory NotesOCSMeta([final void Function(NotesOCSMetaBuilder)? b]) = _$NotesOCSMeta;
// coverage:ignore-start
const NotesOCSMeta._();
// coverage:ignore-end
// coverage:ignore-start
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>;
// coverage:ignore-end
String get status;
int get statuscode;
String? get message;
@ -430,12 +481,19 @@ abstract class NotesOCSMeta implements Built<NotesOCSMeta, NotesOCSMetaBuilder>
abstract class NotesEmptyOCS_Ocs implements Built<NotesEmptyOCS_Ocs, NotesEmptyOCS_OcsBuilder> {
factory NotesEmptyOCS_Ocs([final void Function(NotesEmptyOCS_OcsBuilder)? b]) = _$NotesEmptyOCS_Ocs;
// coverage:ignore-start
const NotesEmptyOCS_Ocs._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesEmptyOCS_Ocs.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>;
// coverage:ignore-end
NotesOCSMeta get meta;
BuiltList<JsonObject> get data;
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> {
factory NotesEmptyOCS([final void Function(NotesEmptyOCSBuilder)? b]) = _$NotesEmptyOCS;
// coverage:ignore-start
const NotesEmptyOCS._();
// coverage:ignore-end
// coverage:ignore-start
factory NotesEmptyOCS.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>;
// coverage:ignore-end
NotesEmptyOCS_Ocs get ocs;
static Serializer<NotesEmptyOCS> get serializer => _$notesEmptyOCSSerializer;
}
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(NotesNote), NotesNote.new)
..add(NotesNote.serializer)
@ -481,7 +547,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin()))
.build();
// coverage:ignore-start
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));

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

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

966
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',
};
Uint8List? body;
// coverage:ignore-start
if (rootClient.authentications.where((final a) => a.type == 'http' && a.scheme == 'bearer').isNotEmpty) {
headers.addAll(
rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'bearer').headers,
@ -97,8 +98,9 @@ class SettingsLogSettingsClient {
headers
.addAll(rootClient.authentications.singleWhere((final a) => a.type == 'http' && a.scheme == 'basic').headers);
} 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(
'get',
Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null).toString(),
@ -124,12 +126,19 @@ abstract class SettingsLogSettingsLogSettingsDownloadHeaders
factory SettingsLogSettingsLogSettingsDownloadHeaders([
final void Function(SettingsLogSettingsLogSettingsDownloadHeadersBuilder)? b,
]) = _$SettingsLogSettingsLogSettingsDownloadHeaders;
// coverage:ignore-start
const SettingsLogSettingsLogSettingsDownloadHeaders._();
// coverage:ignore-end
// coverage:ignore-start
factory SettingsLogSettingsLogSettingsDownloadHeaders.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>;
// coverage:ignore-end
@BuiltValueField(wireName: 'content-disposition')
String? get contentDisposition;
@BuiltValueSerializer(custom: true)
@ -181,6 +190,7 @@ class _$SettingsLogSettingsLogSettingsDownloadHeadersSerializer
}
}
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(
const FullType(SettingsLogSettingsLogSettingsDownloadHeaders),
@ -196,7 +206,6 @@ final Serializers _jsonSerializers = (_serializers.toBuilder()
..addPlugin(const ContentStringPlugin()))
.build();
// coverage:ignore-start
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));

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

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

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

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

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

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

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

@ -96,6 +96,8 @@ class NextcloudClient extends DynamiteClient {
UserStatusClient get userStatus => _userStatus ??= UserStatusClient.fromClient(this);
}
// coverage:ignore-start
// ignore: public_member_api_docs
final serializers = Serializers.merge([
coreSerializers,
@ -118,3 +120,5 @@ T deserializeNextcloud<T>(final Object data) => serializers.deserialize(data, sp
// ignore: public_member_api_docs
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 'package:crypto/crypto.dart';

2
tool/coverage.sh

@ -8,7 +8,7 @@ mkdir -p /tmp/nextcloud-neon
(
cd packages/nextcloud
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
genhtml coverage/filtered.info -o coverage/html
)

Loading…
Cancel
Save